Correctly copy resolver address. Fixes bug #13028.
[platform/upstream/glibc.git] / ChangeLog
1 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
2
3         [BZ #13028]
4         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
5         address.
6
7 2013-10-14  P. J. McDermott  <pj@pehjota.net>
8
9         [BZ #832]
10         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
11         testing pipefail option.
12
13 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
14
15         * soft-fp/double.h: Indent preprocessor directives inside #if.
16         * soft-fp/extended.h: Likewise.
17         * soft-fp/op-2.h: Likewise.
18         * soft-fp/op-4.h: Likewise.
19         * soft-fp/op-common.h: Likewise.
20         * soft-fp/quad.h: Likewise.
21         * soft-fp/single.h: Likewise.
22         * soft-fp/soft-fp.h: Likewise.
23
24 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
25
26         * iconv/iconv_prog.c: Fix typos.
27         * stdio-common/psiginfo-data.h: Likewise.
28
29 2013-10-12   Reuben Thomas <rrt@sc3d.org>
30
31         [BZ #15764]
32         * locale/setlocale.c: Fix typo.
33
34 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
35
36         [BZ #16036]
37         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
38         signaling NaN arguments.
39         * soft-fp/unordsf2.c (__unordsf2): Likewise.
40         * soft-fp/unordtf2.c (__unordtf2): Likewise.
41
42         [BZ #14910]
43         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
44         unordered operands.
45         * soft-fp/gesf2.c (__gesf2): Likewise.
46         * soft-fp/getf2.c (__getf2): Likewise.
47         * soft-fp/ledf2.c (__ledf2): Likewise.
48         * soft-fp/lesf2.c (__lesf2): Likewise.
49         * soft-fp/letf2.c (__letf2): Likewise.
50
51         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
52         * soft-fp/eqsf2.c (__eqsf2): Likewise.
53         * soft-fp/eqtf2.c (__eqtf2): Likewise.
54         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
55         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
56         * soft-fp/fixdfti.c (__fixdfti): Likewise.
57         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
58         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
59         * soft-fp/fixsfti.c (__fixsfti): Likewise.
60         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
61         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
62         * soft-fp/fixtfti.c (__fixtfti): Likewise.
63         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
64         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
65         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
66         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
67         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
68         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
69         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
70         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
71         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
72         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
73         * soft-fp/floatdisf.c (__floatdisf): Likewise.
74         * soft-fp/floatsisf.c (__floatsisf): Likewise.
75         * soft-fp/floattidf.c (__floattidf): Likewise.
76         * soft-fp/floattisf.c (__floattisf): Likewise.
77         * soft-fp/floattitf.c (__floattitf): Likewise.
78         * soft-fp/floatundidf.c (__floatundidf): Likewise.
79         * soft-fp/floatundisf.c (__floatundisf): Likewise.
80         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
81         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
82         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
83         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
84         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
85         * soft-fp/gesf2.c (__gesf2): Likewise.
86         * soft-fp/getf2.c (__getf2): Likewise.
87         * soft-fp/ledf2.c (__ledf2): Likewise.
88         * soft-fp/lesf2.c (__lesf2): Likewise.
89         * soft-fp/letf2.c (__letf2): Likewise.
90
91         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
92         Undefine and redefine.
93         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
94         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
95         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
96         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
97         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
98         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
99         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
100         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
101         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
102         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
103         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
104         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
105         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
106         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
107         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
108
109         [BZ #16032]
110         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
111         without decrementing exponent if mantissa >= that for the
112         denominator, not >.
113         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
114         denominator, not >.  Decrement exponent in < case instead of
115         incrementing in >= case.
116         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
117         without decrementing exponent if mantissa >= that for the
118         denominator, not >.
119
120         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
121         computing saturated result for unsigned overflow.
122
123 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
124             Jeff Law  <law@redhat.com>
125
126         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
127         (atan2Mp): Add systemtap probe marker.
128         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
129         (__ieee754_log): Add systemtap probe marker.
130         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
131         (atanMp): Add systemtap probe marker.
132         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
133         (tanMp): Add systemtap probe marker.
134         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
135         (__slowexp): Add systemtap probe marker.
136         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
137         (__slowpow): Add systemtap probe marker.
138         * manual/probes.texi: Document probes.
139
140 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
141
142         [BZ #15362]
143         * libio/fileops.c (_IO_new_file_write): Return count of bytes
144         written.
145         (_IO_new_file_xsputn): Don't return EOF if nothing has been
146         written.
147         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
148         written to buffer but not flushed.
149         * libio/iofwrite_u.c:  Likewise.
150         * libio/iopadn.c:  Return bytes returned even if EOF was
151         encountered.
152         * libio/iowpadn.c:  Likewise.
153         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
154         if _IO_padn does not write the whole buffer.
155         [!COMPILE_WPRINTF] (PAD): Likewise.
156
157 2013-10-10  David S. Miller  <davem@davemloft.net>
158
159         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
160         directory block.
161
162 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
163
164         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
165         instead of FSF address.
166         * soft-fp/fixdfti.c: Likewise.
167         * soft-fp/fixsfti.c: Likewise.
168         * soft-fp/fixtfti.c: Likewise.
169         * soft-fp/fixunsdfti.c: Likewise.
170         * soft-fp/fixunssfti.c: Likewise.
171         * soft-fp/fixunstfti.c: Likewise.
172         * soft-fp/floattidf.c: Likewise.
173         * soft-fp/floattisf.c: Likewise.
174         * soft-fp/floattitf.c: Likewise.
175         * soft-fp/floatuntidf.c: Likewise.
176         * soft-fp/floatuntisf.c: Likewise.
177         * soft-fp/floatuntitf.c: Likewise.
178         * soft-fp/trunctfxf2.c: Likewise.
179
180         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
181         * soft-fp/fixdfti.c: Likewise.
182         * soft-fp/fixsfti.c: Likewise.
183         * soft-fp/fixtfti.c: Likewise.
184         * soft-fp/fixunsdfti.c: Likewise.
185         * soft-fp/fixunssfti.c: Likewise.
186         * soft-fp/fixunstfti.c: Likewise.
187         * soft-fp/floattidf.c: Likewise.
188         * soft-fp/floattisf.c: Likewise.
189         * soft-fp/floattitf.c: Likewise.
190         * soft-fp/floatuntidf.c: Likewise.
191         * soft-fp/floatuntisf.c: Likewise.
192         * soft-fp/floatuntitf.c: Likewise.
193         * soft-fp/trunctfxf2.c: Likewise.
194
195 2013-10-10  David S. Miller  <davem@davemloft.net>
196
197         * sysdeps/sparc/fpu/libm-test-ulps: Update.
198
199 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
200
201         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
202         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
203         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
204         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
205         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
206         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
207         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
208
209         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
210         for NaNs before doing comparisons on argument.
211         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
212         Likewise.
213
214 2013-10-10  Will Newton  <will.newton@linaro.org>
215
216         * malloc/hooks.c (memalign_check): Ensure the value of bytes
217         passed to _int_memalign does not overflow.
218
219 2013-10-10  Torvald Riegel  <triegel@redhat.com>
220
221         * scripts/bench.pl: Add include-sources directive.
222         * benchtests/README: Update documentation.
223
224 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
225
226         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
227         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
228         instead of FP_INIT_ROUNDMODE.
229         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
230         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
231
232         [BZ #16034]
233         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
234         copy class of input value.
235         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
236         not handle exceptions.
237         * soft-fp/negsf2.c (__negsf2): Likewise.
238         * soft-fp/negtf2.c (__negtf2): Likewise.
239         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
240
241 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
242
243         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
244         semicolon.  From Linux kernel.
245
246 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
247
248         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
249
250 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
251
252         [BZ #156]
253         * manual/socket.texi: Added statement about buffer
254         for gethostbyname2_r.
255
256 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
257
258         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
259         Use .p2align directive instead, throughout.
260         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
261         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
262         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
263         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
264         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
265         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
266         * sysdeps/x86_64/strchr.S: Likewise.
267         * sysdeps/x86_64/strrchr.S: Likewise.
268
269 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
270
271         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
272
273         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
274
275         * sysdeps/generic/math_private.h (__mpsin1): Remove
276         declaration.
277         (__mpcos1): Likewise.
278         (__mpsin): New argument __range_reduce.
279         (__mpcos): Likewise.
280         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
281         (slow): Use __mpsin and __mpcos.
282         (slow1): Likewise.
283         (slow2): Likewise.
284         (sloww): Likewise.
285         (sloww1): Likewise.
286         (sloww2): Likewise.
287         (bsloww): Likewise.
288         (bsloww1): Likewise.
289         (bsloww2): Likewise.
290         (cslow2): Likewise.
291         (csloww): Likewise.
292         (csloww1): Likewise.
293         (csloww2): Likewise.
294         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
295         range_reduce.  Merge in __mpsin1.
296         (__mpcos): Likewise.
297         (__mpsin1): Remove.
298         (__mpcos1): Likewise.
299
300 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
301
302         * locale/loadlocale.c (_nl_intern_locale_data): Use
303         LOCFILE_ALIGNED_P.
304         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
305         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
306         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
307         obstack data is appropriately aligned.
308         (obstack_int32_grow_fast): Likewise.
309         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
310         * locale/programs/locfile.c (add_locale_uint32): Likewise.
311         (add_locale_uint32_array): Likewise.
312
313 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
314
315         * benchtests/Makefile: Remove ARGLIST and RET variables.
316         ($(objpfx)bench-%.c): Pass only function name to the script.
317         * benchtests/README: Update documentation.
318         * benchtests/acos-inputs: Add new directives.
319         * benchtests/acosh-inputs: Likewise.
320         * benchtests/asin-inputs: Likewise.
321         * benchtests/asinh-inputs: Likewise.
322         * benchtests/atan-inputs: Likewise.
323         * benchtests/atanh-inputs: Likewise.
324         * benchtests/cos-inputs: Likewise.
325         * benchtests/cosh-inputs: Likewise.
326         * benchtests/exp-inputs: Likewise.
327         * benchtests/log-inputs: Likewise.
328         * benchtests/pow-inputs: Likewise.
329         * benchtests/rint-inputs: Likewise.
330         * benchtests/sin-inputs: Likewise.
331         * benchtests/sinh-inputs: Likewise.
332         * benchtests/tan-inputs: Likewise.
333         * benchtests/tanh-inputs: Likewise.
334         * scripts/bench.pl: Add support for new directives.
335
336 2013-10-07  Alan Modra  <amodra@gmail.com>
337
338         * README: Fix careless merge.
339
340 2013-10-05  Alan Modra  <amodra@gmail.com>
341
342         * NEWS: Mention powerpc64le support and bugs fixed.
343         * README: Both big-endian and little-endian powerpc64 supported.
344
345 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
346
347         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
348         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
349         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
350         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
351
352 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
353
354         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
355         match prototype.
356
357 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
358
359         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
360         Move -mhard-float appending from
361         ports/sysdeps/powerpc/powerpc32/Makefile.
362         [$(with-fp) = yes] (ASFLAGS): Likewise.
363         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
364         * sysdeps/powerpc/nofpu: Move directory from
365         ports/sysdeps/powerpc/nofpu.
366         * sysdeps/powerpc/soft-fp: Move directory from
367         ports/sysdeps/powerpc/soft-fp.
368         * sysdeps/powerpc/powerpc32/405: Move directory from
369         ports/sysdeps/powerpc/powerpc32/405.
370         * sysdeps/powerpc/powerpc32/440: Move directory from
371         ports/sysdeps/powerpc/powerpc32/440.
372         * sysdeps/powerpc/powerpc32/464: Move directory from
373         ports/sysdeps/powerpc/powerpc32/464.
374         * sysdeps/powerpc/powerpc32/476: Move directory from
375         ports/sysdeps/powerpc/powerpc32/476.
376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
377         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
379         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
381         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
383         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
385         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
386         * README: Update for powerpc-*-linux-gnu software floating point
387         support in libc.
388
389         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
390         case to powerpc/powerpc32*.
391         * sysdeps/unix/sysv/linux/configure: Regenerated.
392
393         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
394         (_FPU_MASK_OM): Define as 0x04.
395         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
396         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
397         0x00c10080.
398         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
399         0x0000003c.
400         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
401
402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
403         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
404         getcontext_e500.
405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
406         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
407         setcontext_e500.
408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
409         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
410         and setcontext_e500.
411
412 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
413
414         * locale/iso-3166.def: Update iso-1366.def and related occurrences
415
416 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
417
418         * manual/threads.texi (Default Thread Attributes): Fix typo.
419
420 2013-10-04  Will Newton  <will.newton@linaro.org>
421
422         * malloc/Makefile: Add tst-memalign.
423         * malloc/tst-memalign.c: New file.
424
425         * malloc/tst-posix_memalign.c: Add comments.
426         (do_test): Add comments and call free on all potentially
427         allocated pointers. Add space after cast.
428
429         * malloc/tst-pvalloc.c: Add comments.
430         (do_test): Add comments and call free on all potentially
431         allocated pointers. Remove duplicate check for NULL pointer.
432         Add space after cast.
433
434         * malloc/tst-valloc.c: Add comments.
435         (do_test): Add comments and call free on all potentially
436         allocated pointers. Remove duplicate check for NULL pointer.
437         Add space after cast.
438
439 2013-10-04  Alan Modra  <amodra@gmail.com>
440
441         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
442         Use stdint types in rather than __attribute__((mode())).
443         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
444
445 2013-10-04  Alan Modra  <amodra@gmail.com>
446
447         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
448         Correct handling of unaligned relocs for little-endian.
449         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
450
451 2013-10-04  Alan Modra  <amodra@gmail.com>
452
453         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
454         * configure: Regenerate.
455         * nptl/shlib-versions: Powerpc*le starts at 2.18.
456         * shlib-versions: Likewise.
457
458 2013-10-04  Alan Modra  <amodra@gmail.com>
459
460         * string/tester.c (test_memrchr): Increment reported test cycle.
461
462 2013-10-04  Alan Modra  <amodra@gmail.com>
463
464         * string/test-memcpy.c (do_one_test): When reporting errors, print
465         string address and don't overrun end of string.
466
467 2013-10-04  Alan Modra  <amodra@gmail.com>
468
469         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
470         insrdi.  Make better use of reg selection to speed exit slightly.
471         Schedule entry path a little better.  Remove useless "are we done"
472         checks on entry to main loop.  Handle wrapping around zero address.
473         Correct main loop count.  Handle single left-over word from main
474         loop inline rather than by using loop_small.  Remove extra word
475         case in loop_small caused by wrong loop count.  Add little-endian
476         support.
477         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
478         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
479         cache hint.
480         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
481         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
482         support.  Avoid rlwimi.
483         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
484
485 2013-10-04  Alan Modra  <amodra@gmail.com>
486
487         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
488         insrdi.  Formatting.
489         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
490         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
491         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
492         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
493         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
494         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
495
496 2013-10-04  Alan Modra  <amodra@gmail.com>
497
498         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
499         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
500         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
501         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
502         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
503         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
504         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
505         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
506         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
507         use of regs.  Use power7 mtocrf.  Tidy function tails.
508
509 2013-10-04  Alan Modra  <amodra@gmail.com>
510
511         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
512         Formatting.  Consistently use rXXX register defines or rN defines.
513         Use early exit labels that avoid restoring unused non-volatile regs.
514         Make cr field use more consistent with rWORDn compares.  Rename
515         regs used as shift registers for unaligned loop, using rN defines
516         for short lifetime/multiple use regs.
517         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
518         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
519         addi 1,1,64 to pop stack frame.  Simplify return value code.
520         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
521
522 2013-10-04  Alan Modra  <amodra@gmail.com>
523
524         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
525         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
526         rather than rlwimi.
527         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
528         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
529         little-endian support.  Correct typos.
530         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
531         rather than rlwimi.
532         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
533         in loop and entry code to keep "and." results.
534         (strchr): Add little-endian support.  Comment.  Move cntlzd
535         earlier in tail.
536         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
537
538 2013-10-04  Alan Modra  <amodra@gmail.com>
539
540         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
541         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
542         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
543         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
544
545 2013-10-04  Alan Modra  <amodra@gmail.com>
546
547         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
548         (rTMP): Define as r11.
549         (strcmp): Add little-endian support.  Optimise tail.
550         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
551         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
552         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
553         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
554         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
555         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
556         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
557
558 2013-10-04  Alan Modra  <amodra@gmail.com>
559
560         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
561         little-endian support.  Remove unnecessary "are we done" tests.
562         Handle "s" wrapping around zero and extremely large "size".
563         Correct main loop count.  Handle single left-over word from main
564         loop inline rather than by using small_loop.  Correct comments.
565         Delete "zero" tail, use "end_max" instead.
566         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
567
568 2013-10-04  Alan Modra  <amodra@gmail.com>
569
570         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
571         support.  Don't branch over align.
572         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
573         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
574         support.  Rearrange tmp reg use to suit.  Comment.
575         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
576
577 2013-10-04  Alan Modra  <amodra@gmail.com>
578
579         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
580
581 2013-10-04  Alan Modra  <amodra@gmail.com>
582
583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
584         conditional form of branch and link when obtaining pc.
585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
586
587 2013-10-04  Alan Modra  <amodra@gmail.com>
588
589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
590         HIWORD/LOWORD.
591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
593
594 2013-10-04  Alan Modra  <amodra@gmail.com>
595
596         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
597         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
598         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
599         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
600         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
601         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
602         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
603         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
604         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
605         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
606
607 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
608             Alistair Popple <alistair@ozlabs.au.ibm.com>
609             Alan Modra <amodra@gmail.com>
610
611         [BZ #15723]
612         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
613         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
614         _dl_hwcap access for little-endian.
615         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
616         destroy vmx regs when saving unaligned.
617         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
618         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
619         destroy vmx regs when saving unaligned.
620
621 2013-10-04  Alan Modra  <amodra@gmail.com>
622
623         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
624         Don't use a union to pack hi/low value.
625
626 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
627
628         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
629         for little-endian.
630         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
631         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
632         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
633         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
634         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
635
636 2013-10-04  Alan Modra  <amodra@gmail.com>
637
638         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
639         constants to usual value for .cst8 section, and remove redundant
640         high address load.
641         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
642         constant for 0x1p52.  Load little-endian words of double from
643         correct stack offsets.
644
645 2013-10-04  Alan Modra  <amodra@gmail.com>
646
647         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
648         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
649         words of double from correct stack offsets.
650         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
651         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
652         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
653         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
654         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
655         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
656         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
657         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
658         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
659         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
660         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
661         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
662         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
663         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
664         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
665         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
666         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
667
668 2013-10-04  Alan Modra  <amodra@gmail.com>
669
670         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
671         64-bit int/double union.
672         (_FPU_SETCW): Likewise.
673         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
674         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
675
676 2013-10-04  Alan Modra  <amodra@gmail.com>
677
678         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
679         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
680
681 2013-10-04  Alan Modra  <amodra@gmail.com>
682
683         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
684         use vector int constants.
685         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
686
687 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
688
689         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
690         array with long long.
691         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
692         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
693         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
694         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
695         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
696         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
697         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
698         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
699         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
700         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
701         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
702         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
703         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
704
705 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
706
707         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
708         (__signbit): Likewise.  Correct for little-endian.
709         (__signbitl): Call __signbit.
710         (lrint): Correct for little-endian.
711         (lrintf): Call lrint.
712
713 2013-10-04  Alan Modra  <amodra@gmail.com>
714
715         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
716         union 32-bit int array member with 64-bit int array.
717         (t515, tm256): Double rather than long double.
718         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
719
720 2013-10-04  Alan Modra  <amodra@gmail.com>
721
722         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
723         Delete.
724         (IEEE854_LONG_DOUBLE_BIAS): Delete.
725         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
726         version of math_ldbl.h.
727
728 2013-10-04  Alan Modra  <amodra@gmail.com>
729
730         [BZ #15734], [BZ #15735]
731         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
732         all uses of ieee875 long double macros and unions.  Simplify test
733         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
734         ldbl_extract_mantissa value for ix,iy exponents.  Properly
735         normalize after ldbl_extract_mantissa, and don't add hidden bit
736         already handled.  Don't treat low word of ieee854 mantissa like
737         low word of IBM long double and mask off bit when testing for
738         zero.
739         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
740         all uses of ieee875 long double macros and unions.  Simplify tests
741         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
742         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
743         two1022, instead use their values.  Recognise that tests for large
744         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
745         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
746         Rewrite all uses of ieee875 long double macros and unions.  Simplify
747         test for 0.0L and nan.  Correct negation.
748         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
749         ieee875 long double macros and unions.  Correct output for large
750         magnitude x.  Correct absolute value calculation.
751         (__erfcl): Likewise.
752         * math/libm-test.inc: Add tests for errors discovered in IBM long
753         double versions of fmodl, remainderl, erfl and erfcl.
754
755 2013-10-04  Alan Modra  <amodra@gmail.com>
756
757         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
758         all uses of ieee854 long double macros and unions.  Simplify tests
759         for long doubles that are fully specified by the high double.
760         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
761         Likewise.
762         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
763         Remove dead code too.
764         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
765         (__ieee754_ynl): Likewise.
766         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
767         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
768         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
769         Remove dead code too.
770         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
771         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
772         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
773         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
774         Simplify.
775         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
776         Simplify.
777         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
778         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
779         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
780         Comment on variable precision.
781         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
782         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
783         Likewise.
784         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
785         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
786         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
787         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
788         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
789
790 2013-10-04  Alan Modra  <amodra@gmail.com>
791
792         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
793         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
794         all uses of ieee854 long double macros and unions.
795         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
796         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
797         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
798         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
799         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
800         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
801         Likewise.
802         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
803         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
804         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
805         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
806         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
807         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
808         Simplify sign and nan test too.
809         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
810         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
811         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
812         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
813         Likewise.
814         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
815         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
816         Likewise.
817         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
818         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
819         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
820         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
821         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
822         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
823
824 2013-10-04  Alan Modra  <amodra@gmail.com>
825
826         * stdio-common/printf_size.c (__printf_size): Don't use
827         union ieee854_long_double in fpnum union.
828         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
829         signbit macro to retrieve sign from long double.
830         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
831         retrieve sign from long double.
832         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
833         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
834         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
835         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
836         * math/test-misc.c (main): Don't use union ieee854_long_double.
837
838 2013-10-04  Alan Modra  <amodra@gmail.com>
839
840         [BZ #15680]
841         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
842         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
843         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
844         calculation.  Remove unnecessary test for denormal exponent.
845         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
846         Correct handling of denormals.  Avoid undefined shift behaviour.
847         Correct normalisation of low mantissa when low double is denormal.
848         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
849         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
850         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
851         Correct normalisation of low mantissa.  Test for overflow of high
852         mantissa and normalise.
853         (ldbl_nearbyint): Use more readable constant for two52.
854         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
855         (__mpn_construct_long_double): Fix test for overflow of high
856         mantissa and correct normalisation.  Avoid undefined shift.
857
858 2013-10-04  Alan Modra  <amodra@gmail.com>
859
860         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
861         (union ibm_extended_long_double): Define as an array of ieee754_double.
862         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
863         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
864         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
865         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
866         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
867         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
868         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
869         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
870         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
871         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
872         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
873
874 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
875
876         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
877         page size instead of calling getpagesize.
878
879         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
880         (LOCFILE_ALIGN_MASK): Likewise.
881         (LOCFILE_ALIGN_UP): Likewise.
882         (LOCFILE_ALIGNED_P): Likewise.
883         * locale/programs/ld-collate.c (collate_output): Use the new
884         macros instead of __alignof__ (int32_t).
885         * locale/weight.h (findidx): Likewise.
886
887 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
888
889         [BZ #431]
890         * manual/string.texi: Fix strncat and wcsncat.
891
892 2013-10-03  Brooks Moses  <bmoses@google.com>
893
894         [BZ #15915]
895         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
896         * Makerules: ...here, and adjust associated comments.
897
898 2013-10-02  Will Newton  <will.newton@linaro.org>
899
900         * malloc/Makefile: Add tst-pvalloc.
901         * malloc/tst-pvalloc.c: New file.
902
903 2013-10-02  Will Newton  <will.newton@linaro.org>
904
905         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
906         improve test coverage.
907
908 2013-10-02  Will Newton  <will.newton@linaro.org>
909
910         * malloc/Makefile: Add tst-posix_memalign.
911         * malloc/tst-posix_memalign.c: New file.
912
913 2013-10-01  Eric Blake  <eblake@redhat.com>
914
915         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
916         Use __THROWNL rather than __THROW on static functions.
917
918 2013-09-30  Petr Machata  <pmachata@redhat.com>
919
920         * elf/elf.h (R_AARCH64_ABS16): New macro.
921         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
922         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
923         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
924         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
925         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
926         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
927         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
928         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
929         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
930         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
931         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
932         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
933         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
934         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
935         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
936         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
937         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
938         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
939         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
940         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
941         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
942         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
943         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
944         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
945         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
946         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
947         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
948         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
949         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
950         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
951         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
952         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
953         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
954         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
955         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
956         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
957         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
958         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
959         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
960         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
961         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
962         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
963         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
964         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
965         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
966         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
967         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
968         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
969         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
970         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
971         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
972         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
973         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
974         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
975         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
976         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
977         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
978         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
979         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
980         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
981         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
982         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
983         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
984         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
985         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
986         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
987         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
988         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
989         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
990         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
991         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
992         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
993         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
994         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
995         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
996         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
997         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
998         (R_AARCH64_TLSDESC_LDR): Likewise.
999         (R_AARCH64_TLSDESC_ADD): Likewise.
1000         (R_AARCH64_TLSDESC_CALL): Likewise.
1001
1002 2013-09-30  Andreas Schwab  <schwab@suse.de>
1003
1004         [BZ #15048]
1005         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
1006         the nss database lookup.
1007         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1008         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1009
1010 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1011
1012         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
1013
1014 2013-09-28  P. J. McDermott  <pj@pehjota.net>
1015
1016         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
1017         ${Bash-specific parameter/pattern/string} parameter expansion.
1018         * sysdeps/unix/make-syscalls.sh: Likewise.
1019
1020 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1021
1022         * sysdeps/sh/stackguard-macros.h: New file.
1023
1024 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
1025
1026         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1027         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
1028         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
1029         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
1030         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1031         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
1032
1033 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1034
1035         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
1036         Fix thread ID register.
1037
1038 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
1039
1040         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
1041         [POSIX || UNIX98]: Require rather than permitting all symbols from
1042         <time.h>.
1043         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
1044         element of struct sched_param.
1045         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
1046         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
1047         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
1048         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
1049         constant.
1050
1051 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
1052
1053         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
1054         argument calculation.
1055
1056 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
1057
1058         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
1059         Expect macro.
1060         [POSIX] (pthread_attr_t): Do not require type.
1061         [POSIX] (pthread_cond_t): Likewise.
1062         [POSIX] (pthread_condattr_t): Likewise.
1063         [POSIX] (pthread_key_t): Likewise.
1064         [POSIX] (pthread_mutex_t): Likewise.
1065         [POSIX] (pthread_mutexattr_t): Likewise.
1066         [POSIX] (pthread_once_t): Likewise.
1067         [POSIX] (pthread_t): Likewise.
1068         [POSIX-based standards] (pthread_atfork): Expect function.
1069
1070 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
1071             Richard Sandiford  <richard@codesourcery.com>
1072
1073         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
1074         (swap_endianness_p): New extern variable.
1075         (set_big_endian): New inline function.
1076         (maybe_swap_uint32): Likewise.
1077         (maybe_swap_uint32_array): Likewise.
1078         (maybe_swap_uint32_obstack): Likewise.
1079         * locale/programs/locfile.c: Include <stdbool.h>.
1080         (swap_endianness_p): New variable.
1081         (add_locale_uint32): Call maybe_swap_uint32.
1082         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
1083         (write_locale_data): Call maybe_swap_uint32_array.
1084         * locale/programs/ld-collate.c (obstack_int32_grow): Call
1085         maybe_swap_uint32.
1086         (obstack_int32_grow_fast): Likewise.
1087         (output_weightwc): Call maybe_swap_uint32_obstack.
1088         (collate_output): Likewise.
1089         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
1090         (OPT_LITTLE_ENDIAN): Likewise.
1091         (options): Add --little-endian and --big-endian options.
1092         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
1093         * locale/programs/locarchive.c: Include "locfile.h".
1094         (GET): New macro.
1095         (SET): Likewise.
1096         (INC): Likewise.
1097         (create_archive): Use the new macros to access fields of
1098         structures directly mapped from or written to locale archives.
1099         (oldlocrecentcmp): Likewise.
1100         (enlarge_archive): Likewise.
1101         (insert_name): Likewise.
1102         (add_alias): Likewise.
1103         (add_locale): Likewise.
1104         (delete_locales_from_archive): Likewise.
1105         (show_archive_content): Likewise.
1106         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
1107         locale data.
1108
1109 2013-09-24  Roland McGrath  <roland@hack.frob.com>
1110
1111         * manual/freemanuals.texi: Updated from (newly) canonical copy at
1112         http://www.gnu.org/doc/freemanuals.texi.
1113         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
1114
1115 2013-09-24  Will Newton  <will.newton@linaro.org>
1116
1117         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
1118         macro.
1119
1120 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
1121
1122         * locale/hashval.h (compute_hashval): Interpret bytes of key as
1123         unsigned char.
1124
1125 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
1126
1127         * manual/threads.texi (POSIX Threads): Fix a typo.
1128
1129 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1130
1131         [BZ #14547]
1132         * string/tst-strcoll-overflow.c: New test case.
1133         * string/Makefile (xtests): Add tst-strcoll-overflow.
1134         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
1135         cache if string sizes may cause integer overflow.
1136
1137         [BZ #14547]
1138         * string/strcoll_l.c (coll_seq): New members rule, idx,
1139         save_idx and back_us.
1140         (get_next_seq_nocache): New function.
1141         (do_compare_nocache): New function.
1142         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
1143         when malloc fails.
1144
1145 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
1146
1147         [BZ #15754]
1148         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
1149         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
1150         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
1151
1152         [BZ #15754]
1153         * elf/Makefile (tests): Add tst-ptrguard1.
1154         (tests-static): Add tst-ptrguard1-static.
1155         (tst-ptrguard1-ARGS): Define.
1156         (tst-ptrguard1-static-ARGS): Define.
1157         * elf/tst-ptrguard1.c: New file.
1158         * elf/tst-ptrguard1-static.c: New file.
1159         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
1160         * sysdeps/i386/stackguard-macros.h: Likewise.
1161         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
1162         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
1163         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
1164         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
1165         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
1166         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
1167
1168 2013-09-23  Hector Marco  <hecmargi@upv.es>
1169             Ismael Ripoll  <iripoll@disca.upv.es>
1170             Carlos O'Donell  <carlos@redhat.com>
1171
1172         [BZ #15754]
1173         * sysdeps/generic/stackguard-macros.h: Define
1174         __pointer_chk_guard_local and POINTER_CHK_GUARD.
1175         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
1176         Define __pointer_chk_guard_local.
1177         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
1178         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
1179
1180 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
1181
1182         [BZ #15859]
1183         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
1184
1185 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1186
1187         * include/string.h (__ffs): Declare as hidden.
1188         * string/ffs.c (__ffs): Define as hidden.
1189         * sysdeps/i386/ffs.c (__ffs): Likewise.
1190         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
1191         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
1192         * sysdeps/s390/ffs.c (__ffs): Likewise.
1193         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
1194
1195 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
1196
1197         * NEWS: Mention malloc probes.
1198
1199         * malloc/arena.c (new_heap): New memory_heap_new probe.
1200         (grow_heap): New memory_heap_more probe.
1201         (shrink_heap): New memory_heap_less probe.
1202         (heap_trim): New memory_heap_free probe.
1203         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
1204         (systrim): New memory_sbrk_less probe.
1205         * manual/probes.texi: Document them.
1206
1207         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
1208         * manual/probes.texi: Document it.
1209
1210         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
1211         (__libc_realloc): Add memory_realloc_retry probe.
1212         (__libc_memalign): Add memory_memalign_retry probe.
1213         (__libc_valloc): Add memory_valloc_retry probe.
1214         (__libc_pvalloc): Add memory_pvalloc_retry probe.
1215         (__libc_calloc): Add memory_calloc_retry probe.
1216         * manual/probes.texi: Document them.
1217
1218         * malloc/arena.c (get_free_list): Add probe
1219         memory_arena_reuse_free_list.
1220         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
1221         and memory_arena_reuse.
1222         (arena_get2) [!PER_THREAD]: Likewise.
1223         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
1224         memory_arena_reuse_realloc.
1225         * manual/probes.texi: Document them.
1226
1227         * malloc/malloc.c (__libc_free): Add
1228         memory_mallopt_free_dyn_thresholds probe.
1229         (__libc_mallopt): Add multiple memory_mallopt probes.
1230         * manual/probes.texi: Document them.
1231
1232         * malloc/malloc.c: Include stap-probe.h.
1233         (__libc_mallopt): Add memory_mallopt probe.
1234         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
1235         * manual/probes.texi: New.
1236         * manual/Makefile (chapters): Add probes.
1237         * manual/threads.texi: Set next node.
1238
1239 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
1240
1241         [BZ #15963, #13985]
1242         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
1243         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
1244         Add `Chinese' to `nan' entry name.
1245
1246 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1247
1248         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
1249         (POLYNOMIAL): Likewise.
1250         (TAYLOR_SINCOS): Likewise.
1251         (TAYLOR_SLOW): Likewise.
1252         (__sin): Use TAYLOR_SINCOS.
1253         (__cos): Likewise.
1254         (slow): Use TAYLOR_SLOW.
1255         (sloww): Likewise.
1256         (bsloww): Likewise.
1257         (csloww): Likewise.
1258
1259 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1260
1261         * stdlib/strtod_l.c: Fix buffer overrun.
1262
1263 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1264
1265         * benchtests/Makefile (bench): Add sincos.
1266         * benchtests/bench-sincos.c: New file.
1267
1268         * math/libm-test.inc (cos_test_data): New test inputs.
1269         (sin_test_data): Likewise.
1270
1271         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
1272         macro.
1273         (__sin): Use it.
1274         (__cos): Likewise.
1275         (slow1): Likewise.
1276         (slow2): Likewise.
1277         (sloww1): Likewise.
1278         (sloww2): Likewise.
1279         (bsloww1): Likewise.
1280         (bsloww2): Likewise.
1281         (cslow2): Likewise.
1282         (csloww1): Likewise.
1283         (csloww2): Likewise.
1284
1285         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
1286         function.
1287         (__sin): Use it.
1288         (__cos): Likewise.
1289
1290         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
1291         gotos.
1292         (__cos): Likewise.
1293
1294 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
1295
1296         * config.h.in (HAVE_MIPS_NAN2008): New macro.
1297         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
1298         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
1299         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
1300         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
1301         * elf/cache.c (print_entry): Handle the new cache flags.
1302
1303 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1304             Aldy Hernandez  <aldyh@redhat.com>
1305
1306         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
1307         Change condition to [_SOFT_FLOAT].
1308         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
1309         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
1310         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
1311         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
1312         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
1313         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
1314         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
1315         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
1316         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
1317         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
1318         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
1319         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
1320         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
1321         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
1322         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
1323         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
1324         declaration.
1325
1326 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1327
1328         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
1329         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1330         (__longjmp): Use LOAD_GP to load saved GPRs.
1331         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
1332         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1333         (__sigsetjmp): Use SAVE_GP to save GPRs.
1334
1335         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
1336         Do not append -msoft-float.
1337         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
1338
1339 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1340
1341         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
1342
1343 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
1344
1345         [BZ #15966]
1346         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
1347         (_FPU_GETCW): Use initial "__" on variable and field names but not
1348         on macro parameter name.
1349         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
1350         parentheses around reference to macro parameter.
1351
1352 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
1353
1354         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
1355         prototype.
1356         (ctype_startup): Use uint32_t in cast and sizeof for
1357         ctype->charnames.
1358
1359 2013-09-11  Jia Liu  <proljc@gmail.com>
1360
1361         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
1362         __daddr_t_defined.
1363         [__FreeBSD__]: Likewise.
1364
1365 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
1366
1367         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1368         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
1369         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
1370         (strchr): Remove __strchr_sse42 ifunc selection.
1371         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
1372         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
1373
1374 2013-09-11  Will Newton  <will.newton@linaro.org>
1375
1376         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
1377         parameter to RES. Remove hardcoded 1000 value.
1378         * benchtests/bench-skeleton.c (main): Pass RES parameter
1379         to TIMING_INIT and multiply result by 1000.
1380
1381 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1382
1383         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1384
1385 2013-09-11  Andreas Schwab  <schwab@suse.de>
1386
1387         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
1388         if not defined.
1389         (O_TMPFILE) [__USE_GNU]: Define.
1390         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
1391         Define.
1392
1393 2013-09-11  Will Newton  <will.newton@linaro.org>
1394
1395         [BZ #15857]
1396         * malloc/malloc.c (__libc_memalign): Check the value of bytes
1397         does not overflow.
1398
1399 2013-09-11  Will Newton  <will.newton@linaro.org>
1400
1401         [BZ #15856]
1402         * malloc/malloc.c (__libc_valloc): Check the value of bytes
1403         does not overflow.
1404
1405 2013-09-11  Will Newton  <will.newton@linaro.org>
1406
1407         [BZ #15855]
1408         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
1409         does not overflow.
1410
1411 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
1412
1413         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
1414         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1415         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1416         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1417         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1418
1419 2013-09-10  Allan McRae  <allan@archlinux.org>
1420
1421         [BZ #15748]
1422         * manual/arith.texi (Parsing of Floats): Clarify
1423         cross-reference.
1424
1425         [BZ #15849]
1426         * manual/install.texi (Running make install): Mention
1427         --enable-pt-chown.
1428         * INSTALL: Regenerated.
1429
1430 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1431
1432         * csu/init-first.c (_init): Remove the !SHARED condition around
1433         FPU control word initialization.
1434         * elf/dl-support.c (_dl_fpu_control): New variable.
1435         (_dl_aux_init) <AT_FPUCW>: Initialize it.
1436         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
1437         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
1438         * math/test-fpucw-static.c: New file.
1439         * math/test-fpucw-ieee.c: New file.
1440         * math/test-fpucw-ieee-static.c: New file.
1441         * math/Makefile (tests): Add `test-fpucw-ieee' and
1442         `$(tests-static)'.
1443         (tests-static): New variable.
1444         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
1445         dependency to...
1446         [($(build-shared),yes)]
1447         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
1448         ... this.
1449         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
1450         New dependency.
1451
1452 2013-09-09  Allan McRae  <allan@archlinux.org>
1453
1454         [BZ #15939]
1455         * manual/string.texi (Collation Functions): Fix typo in
1456         strcoll example.
1457         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
1458
1459         [BZ #15893]
1460         * stdlib/isomac.c (get_null_defines): Fix memory leak.
1461
1462         [BZ #15892]
1463         * libio/memstream.c (open_memstream): Fix memory leak.
1464         * libio/wmemstream.c (open_wmemstream): Likewise.
1465
1466         [BZ #15895]
1467         * nscd/netgroupcache.c: Fix nesting of ifdefs.
1468
1469 2013-09-09  Will Newton  <will.newton@linaro.org>
1470
1471         * malloc/Makefile: Add tst-realloc to tests.
1472         * malloc/tst-realloc.c: New file.
1473
1474 2013-09-09  Allan McRae  <allan@archlinux.org>
1475
1476         [BZ #15844]
1477         * COPYING: Update from GNU website to fix FSF address.
1478         * COPYING.LIB: Likewise.
1479
1480 2013-09-06  David S. Miller  <davem@davemloft.net>
1481
1482         * po/zh_TW.po: Update Chinese (traditional) translation from
1483         translation project.
1484
1485 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
1486             Joseph Myers  <joseph@codesourcery.com>
1487
1488         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
1489         "localeinfo.h".
1490         (obstack_chunk_alloc): New macro.
1491         (obstack_chunk_free): Likewise.
1492         (record_offset): New function.
1493         (init_locale_data): Likewise.
1494         (align_locale_data): Likewise.
1495         (add_locale_empty): Likewise.
1496         (add_locale_raw_data): Likewise.
1497         (add_locale_raw_obstack): Likewise.
1498         (add_locale_string): Likewise.
1499         (add_locale_wstring): Likewise.
1500         (add_locale_uint32): Likewise.
1501         (add_locale_uint32_array): Likewise.
1502         (add_locale_char): Likewise.
1503         (start_locale_structure): Likewise.
1504         (end_locale_structure): Likewise.
1505         (start_locale_prelude): Likewise.
1506         (end_locale_prelude): Likewise.
1507         (write_locale_data): Take locale_file structure rather than an
1508         iovec.
1509         * locale/programs/locfile.h: Include "obstack.h".
1510         (struct locale_file): Change to store locale file contents instead
1511         of header.
1512         (init_locale_data): New prototype.
1513         (align_locale_data): Likewise.
1514         (add_locale_empty): Likewise.
1515         (add_locale_raw_data): Likewise.
1516         (add_locale_raw_obstack): Likewise.
1517         (add_locale_string): Likewise.
1518         (add_locale_wstring): Likewise.
1519         (add_locale_uint32): Likewise.
1520         (add_locale_uint32_array): Likewise.
1521         (add_locale_char): Likewise.
1522         (start_locale_structure): Likewise.
1523         (end_locale_structure): Likewise.
1524         (start_locale_prelude): Likewise.
1525         (end_locale_prelude): Likewise.
1526         (write_locale_data): Update prototype.
1527         * locale/programs/3level.h (struct TABLE): Remove result field.
1528         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
1529         Use new locale_file interface.
1530         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
1531         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
1532         * locale/programs/ld-address.c (address_output): Use new
1533         locale_file interface.
1534         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
1535         NO_ADD_LOCALE.
1536         (collate_finish): Don't call collseq_table_finalize.
1537         (collate_output): Use new locale_file interface.
1538         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
1539         in file.
1540         (NO_FINALIZE): Change to NO_ADD_LOCALE.
1541         (TABLE): Move defines earlier in file.
1542         (ELEMENT): Likewise.
1543         (DEFAULT): Likewise.
1544         (wctrans_table_add): Move macro and inline function earlier in
1545         file.
1546         (struct wctype_table): Move type earlier in file.
1547         (add_locale_wctype_table): New static prototype.
1548         (struct locale_ctype_t): Use logical types instead of struct iovec
1549         pointers for members.
1550         (ctype_output): Use new locale_file interface.
1551         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
1552         new locale_file interface.
1553         (allocate_arrays): Update for use of new locale_file interface.
1554         * locale/programs/ld-identification.c (identification_output): Use
1555         new locale_file interface.
1556         * locale/programs/ld-measurement.c (measurement_output): Likewise.
1557         * locale/programs/ld-messages.c (messages_output): Likewise.
1558         * locale/programs/ld-monetary.c (monetary_output): Likewise.
1559         * locale/programs/ld-name.c (name_output): Likewise.
1560         * locale/programs/ld-numeric.c (numeric_output): Likewise.
1561         * locale/programs/ld-paper.c (paper_output): Likewise.
1562         * locale/programs/ld-telephone.c (telephone_output): Likewise.
1563         * locale/programs/ld-time.c (time_output): Likewise.
1564
1565 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1566
1567         * benchtests/Makefile: Add memrchr benchmark.
1568         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
1569         benchmark as memrchr.
1570         * benchtests/bench-memrchr-ifunc.c: New file.
1571         * benchtests/bench-memrchr.c: New file.
1572
1573 2013-09-06   Will Newton  <will.newton@linaro.org>
1574
1575         * benchtests/Makefile (string-bench): Add memcpy.
1576
1577 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
1578             Cong Wang  <amwang@redhat.com>
1579
1580         * sysdeps/unix/sysv/linux/bits/in.h
1581         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
1582         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
1583         before __USE_KERNEL_IPV6_DEFS uses.
1584         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
1585         IPPROTO_BEETPH.
1586         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
1587         sockaddr_in6, or ipv6_mreq.
1588
1589 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1590
1591         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
1592         memory access for final bytes in some large inputs.
1593         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
1594
1595 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1596
1597         * string/test-memrchr.c: New file.
1598         * string/test-memrchr-ifunc.c: New file.
1599         * string/Makefile: Add new memrchr testcase.
1600
1601 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
1602
1603         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
1604         fanotify_init returns EPERM.
1605
1606 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1607
1608         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
1609         errors.
1610         (top level): Treat second token from macro or constant entries for
1611         allowed headers as allowed.
1612         * include/complex.h: Condition internal declarations on
1613         [!_ISOMAC].
1614         * include/fenv.h: Condition include of <stdbool.h> and internal
1615         declarations on [!_ISOMAC].
1616
1617 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
1618
1619         [BZ #15923]
1620         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
1621
1622 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1623
1624         * configure.in (--enable-versioning): Remove configure option.
1625         (libc_cv_asm_symver_directive): Remove configure test.
1626         (libc_cv_ld_version_script_option): Likewise.
1627         (VERSIONING): Remove variable and AC_SUBST.
1628         (DO_VERSIONING): Remove AC_DEFINE.
1629         * configure: Regenerated.
1630         * config.h.in (DO_VERSIONING): Remove macro.
1631         * Makerules [$(versioning) = yes]: Change conditionals to
1632         [$(build-shared) = yes].
1633         * config.make.in (versioning): Remove variable.
1634         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
1635         [$(build-shared) = yes].
1636         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
1637         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
1638         * elf/Makefile [$(versioning) = yes]: Change conditionals to
1639         [$(build-shared) = yes].
1640         * extra-lib.mk [$(versioning) = yes]: Likewise.
1641         * hurd/Makefile [$(versioning) = yes]: Likewise.
1642         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
1643         [SHARED].
1644         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
1645         [SHARED].
1646         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
1647         [SHARED && !NO_HIDDEN].
1648         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
1649         [SHARED].
1650         [SHARED && DO_VERSIONING]: Likewise..
1651         * libio/Makefile [$(versioning) = yes]: Change conditionals to
1652         [$(build-shared) = yes].
1653         * manual/install.texi (--disable-versioning): Remove
1654         documentation.
1655         * INSTALL: Regenerated.
1656         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
1657         to [SHARED].
1658         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
1659         [$(build-shared) = yes].
1660         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
1661         * sysdeps/i386/i686/multiarch/strstr-c.c
1662         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
1663         [SHARED && !NO_HIDDEN].
1664         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
1665         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
1666         * sysdeps/powerpc/powerpc32/dl-machine.c
1667         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
1668         * sysdeps/powerpc/powerpc32/sysdep.h
1669         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
1670         to [SHARED && PIC && !NO_HIDDEN].
1671         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
1672         conditional to [SHARED].
1673
1674 2013-09-04   Will Newton  <will.newton@linaro.org>
1675
1676         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
1677         * benchtests/bench-string.h: Include bench-timing.h instead
1678         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
1679         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
1680         call to HP_TIMING_DIFF_INIT.
1681         * benchtests/bench-memccpy.c: Use bench-timing.h macros
1682         instead of hp-timing.h macros.
1683         * benchtests/bench-memchr.c: Likewise.
1684         * benchtests/bench-memcmp.c: Likewise.
1685         * benchtests/bench-memcpy.c: Likewise.
1686         * benchtests/bench-memmem.c: Likewise.
1687         * benchtests/bench-memmove.c: Likewise.
1688         * benchtests/bench-memset.c: Likewise.
1689         * benchtests/bench-rawmemchr.c: Likewise.
1690         * benchtests/bench-strcasecmp.c: Likewise.
1691         * benchtests/bench-strcasestr.c: Likewise.
1692         * benchtests/bench-strcat.c: Likewise.
1693         * benchtests/bench-strchr.c: Likewise.
1694         * benchtests/bench-strcmp.c: Likewise.
1695         * benchtests/bench-strcpy.c: Likewise.
1696         * benchtests/bench-strcpy_chk.c: Likewise.
1697         * benchtests/bench-strlen.c: Likewise.
1698         * benchtests/bench-strncasecmp.c: Likewise.
1699         * benchtests/bench-strncat.c: Likewise.
1700         * benchtests/bench-strncmp.c: Likewise.
1701         * benchtests/bench-strncpy.c: Likewise.
1702         * benchtests/bench-strnlen.c: Likewise.
1703         * benchtests/bench-strpbrk.c: Likewise.
1704         * benchtests/bench-strrchr.c: Likewise.
1705         * benchtests/bench-strspn.c: Likewise.
1706         * benchtests/bench-strstr.c: Likewise.
1707
1708 2013-09-04  Will Newton  <will.newton@linaro.org>
1709
1710         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
1711
1712 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
1713
1714         [BZ #15427]
1715         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
1716         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
1717         * math/libm-test.inc (lgamma_test_data): Add more tests.
1718         * sysdeps/i386/fpu/libm-test-ulps: Update.
1719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1720
1721 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
1722
1723         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
1724         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1725         Add ifunc.
1726         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1727         Add strcmp-sse2-unaligned
1728         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
1729
1730 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
1731
1732         * Versions.def (libc): Add GLIBC_2.19.
1733
1734 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
1735
1736         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
1737         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
1738
1739 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
1740
1741         [BZ #14155]
1742         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
1743         intermediate calculations in recurrence.
1744         (__ieee754_ynf): Likewise.
1745         * math/libm-test.inc (jn_test_data): Do not allow spurious
1746         underflow exception.  Add more tests.
1747         (yn_test_data): Add more tests.
1748         * sysdeps/i386/fpu/libm-test-ulps: Update.
1749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1750
1751 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
1752
1753         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
1754
1755 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
1756
1757         * csu/init-first.c: Fix then/than typos.
1758         * locale/programs/ld-collate.c: Likewise.
1759         * locale/programs/linereader.h: Likewise.
1760         * manual/charset.texi: Likewise.
1761         * manual/filesys.texi: Likewise.
1762         * manual/stdio.texi: Likewise.
1763         * manual/string.texi: Likewise.
1764         * stdlib/fmtmsg.c: Likewise.
1765         * sysdeps/i386/stpncpy.S: Likewise.
1766         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1767         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
1768         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1769         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1770
1771 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
1772
1773         * elf/dl-open.c: Fix typos.
1774         * iconvdata/gbbig5.c: Likewise.
1775         * iconvdata/iso-2022-jp.c: Likewise.
1776         * iconv/gconv_int.h: Likewise.
1777         * iconv/loop.c: Likewise.
1778         * nis/rpcsvc/nis.h: Likewise.
1779         * resolv/ns_name.c: Likewise.
1780         * stdio-common/vfscanf.c: Likewise.
1781         * streams/stropts.h: Likewise.
1782         * sunrpc/rpc_thread.c: Likewise.
1783         * sysdeps/i386/strpbrk.S: Likewise.
1784         * sysdeps/ieee754/k_standard.c: Likewise.
1785         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1786         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1787         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1788         * sysdeps/mach/hurd/profil.c: Likewise.
1789         * sysdeps/s390/dl-procinfo.h: Likewise.
1790         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1791         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1792         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1793         * sysdeps/x86_64/dl-trampoline.S: Likewise.
1794         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1795
1796 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
1797
1798         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
1799         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
1800
1801 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
1802
1803         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
1804         aix specific files.
1805         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
1806         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
1807         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
1808         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
1809         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
1810         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
1811         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
1812         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
1813
1814 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
1815             Roland McGrath  <roland@hack.frob.com>
1816
1817         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
1818         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
1819
1820 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1821
1822         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
1823         __executable_start symbol instead of _start.
1824
1825 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
1826
1827         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
1828         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
1829         Move macros to...
1830         * sysdeps/gnu/ldsodefs.h: ... this new file.
1831
1832         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
1833         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
1834         instead of ELFOSABI_LINUX.
1835
1836         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
1837         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
1838         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
1839         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
1840         Likewise.
1841         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
1842         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
1843         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
1844         Likewise.
1845         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
1846         (ibm_extended_long_double): Add ieee_nan member.
1847         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
1848         (do_test): New function.
1849
1850         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
1851         TEST_TRUNC.
1852         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
1853         functions, renamed from truncdfsf_test, trunctfsf_test,
1854         trunctfdf_test.
1855         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
1856         functions.
1857         (do_test): Run all these.
1858
1859 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
1860
1861         * argp/argp-help.c: Fix typos.
1862         * argp/argp-parse.c: Likewise.
1863         * debug/backtracesyms.c: Likewise.
1864         * elf/elf.h: Likewise.
1865         * malloc/malloc.c: Likewise.
1866         * nis/nis_print.c: Likewise.
1867         * resolv/res_comp.c: Likewise.
1868         * stdlib/stdlib.h: Likewise.
1869         * sunrpc/clnt_tcp.c: Likewise.
1870         * sunrpc/clnt_udp.c: Likewise.
1871         * sunrpc/clnt_unix.c: Likewise.
1872         * sysdeps/unix/bsd/ptsname.c: Likewise.
1873         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1874         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
1875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
1876         Likewise.
1877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1878         Likewise.
1879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1880         Likewise.
1881         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1882
1883 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1884
1885         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
1886         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1887
1888 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
1889
1890         [BZ #15897]
1891         * dlfcn/Makefile (tests): Add bug-dl-leaf.
1892         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
1893         ($(objpfx)bug-dl-leaf): New rule.
1894         ($(objpfx)bug-dl-leaf.so): Likewise.
1895         ($(objpfx)bug-dl-leaf.out): Likewise.
1896         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
1897         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
1898         * dlfcn/bug-dl-leaf.c: New test.
1899         * dlfcn/bug-dl-leaf-lib.c: Likewise.
1900         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
1901         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
1902         (dlclose): Likewise.
1903         (dlmopen): Likewise.
1904
1905 2013-08-27  Roland McGrath  <roland@hack.frob.com>
1906
1907         * include/netdb.h [!_ISOMAC]:
1908         Don't include <tls.h>.
1909         (h_errno, __libc_h_errno): Move declaration and macros out of
1910         [_LIBC_REENTRANT].
1911
1912         * include/resolv.h [_RESOLV_H_]:
1913         Don't include <tls.h>.
1914         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
1915         * resolv/res_libc.c: Don't include <tls.h>.
1916         (_res): Use __attribute__ ((nocommon)) in place of
1917         __attribute__ ((section (".bss"))).
1918
1919         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
1920         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
1921
1922         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
1923
1924         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
1925         only under [SIOCGIFCONF && SIOCGIFNETMASK].
1926
1927         * resolv/res_mkquery.c: Include <sys/time.h>.
1928
1929         * inet/ifreq.c: Moved to ...
1930         * sysdeps/unix/ifreq.c: ... here.
1931         * inet/ifreq.c: New file, true stub version.
1932
1933         * socket/sa_len.c: New file.
1934         * socket/Makefile (aux): Add it.
1935         * sysdeps/unix/sysv/linux/Makefile
1936         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
1937         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
1938         and #include <socket/sa_len.c>.
1939         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
1940         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
1941
1942         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
1943         * bits/socket.h: ... here.
1944
1945         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
1946         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
1947         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
1948
1949 2013-08-27  Andreas Schwab  <schwab@suse.de>
1950
1951         [BZ #15736]
1952         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
1953         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
1954         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
1955         * string/test-strcasecmp.c (test_main): Run tests in several
1956         locales.
1957         * string/test-strncasecmp.c (test_main): Likewise.
1958
1959         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
1960         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
1961         to __strcasecmp_nonascii and __strncasecmp_nonascii.
1962         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
1963         (__strncasecmp_ssse3) [PIC]: Likewise.
1964
1965 2013-08-26  Roland McGrath  <roland@hack.frob.com>
1966
1967         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
1968
1969         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
1970         instead of explicitly declaring xdecrypt.
1971         * nis/nss_nis/nis-publickey.c: Likewise.
1972
1973 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1974
1975         [BZ #15890]
1976         * nscd/aicache.c: Include res_hconf.h.
1977         (addhstaiX): Initialize res_hconf.
1978
1979 2013-08-26  Andreas Schwab  <schwab@suse.de>
1980
1981         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
1982         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
1983
1984 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1985
1986         * nscd/aicache.c (addhstaiX): Fix indentation.
1987
1988 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
1989
1990         * configure.ac: Quote $build_pt_chown test.
1991         * configure: Regenerated.
1992
1993 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
1994
1995         [BZ #15532]
1996         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
1997         * math/s_cexpf.c (__cexpf): Likewise.
1998         * math/s_cexpl.c (__cexpl): Likewise.
1999         * math/libm-test.inc (cexp_test_data): Correct expected return
2000         value for NaN + i0.  Add another test.
2001
2002 2013-08-22  David S. Miller  <davem@davemloft.net>
2003
2004         * po/ca.po: Update Catalan translation from translation project.
2005         * po/uk.po: Add Ukrainian translations from translation project.
2006
2007 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
2008
2009         [BZ #15797]
2010         * math/s_fdim.c (__fdim): Check for infinite arguments if result
2011         is infinite, not alongside NaN test.
2012         * math/s_fdimf.c (__fdimf): Likewise.
2013         * math/s_fdiml.c (__fdiml): Likewise.
2014         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
2015         errno is unchanged.
2016
2017 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
2018
2019         * argp/argp-help.c: Fix typos.
2020         * crypt/speeds.c: Likewise.
2021         * csu/check_fds.c: Likewise.
2022         * elf/dl-load.c: Likewise.
2023         * elf/dl-open.c: Likewise.
2024         * elf/reldep3.c: Likewise.
2025         * elf/reldep.c: Likewise.
2026         * elf/sprof.c: Likewise.
2027         * iconv/iconv_charmap.c: Likewise.
2028         * iconv/skeleton.c: Likewise.
2029         * iconv/strtab.c: Likewise.
2030         * io/lockf64.c: Likewise.
2031         * libio/libioP.h: Likewise.
2032         * resolv/gai_notify.c: Likewise.
2033         * resolv/ns_name.c: Likewise.
2034         * resolv/ns_samedomain.c: Likewise.
2035         * resolv/res_send.c: Likewise.
2036         * stdlib/random.c: Likewise.
2037         * sunrpc/rpc/xdr.h: Likewise.
2038         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
2039         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
2040         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
2041         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
2042         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
2043         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
2044         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
2045         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
2046         * sysdeps/mach/hurd/check_fds.c: Likewise.
2047         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
2048         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
2049         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2050         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
2051         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
2052         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
2053         * sysdeps/pthread/aio_notify.c: Likewise.
2054         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
2055         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
2056         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
2057         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
2058         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
2059
2060 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2061
2062         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
2063         version if bit_Slow_SSE4_2 is set.
2064         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2065         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2066
2067 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2068
2069         [BZ #15867]
2070         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
2071         trampoline stack frame information.
2072         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
2073         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
2074         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
2075         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
2076         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
2077         * sysdeps/unix/sysv/linux/powerpc/init-first.c
2078         (_libc_vdso_platform_setup): Initialize the signal trampolines.
2079         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
2080         sa_flags value.
2081         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
2082         interrupting a syscall and set with option SA_SIGINFO.
2083
2084 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2085
2086         [BZ #15531]
2087         * math/s_cproj.c (__cproj): Only return an infinity if one part of
2088         argument is infinite.
2089         * math/s_cprojf.c (__cprojf): Likewise.
2090         * math/s_cprojl.c (__cprojl): Likewise.
2091         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
2092         * math/libm-test.inc (cproj_test_data): Add more tests.
2093
2094         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
2095
2096         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
2097         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
2098         size.  Use __ffs to determine corresponding shift.
2099
2100 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2101             Roland McGrath  <roland@hack.frob.com>
2102
2103         * Makefile (INSTALL): Remove trailing blank lines from output of
2104         makeinfo.
2105
2106 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2107
2108         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
2109         Align 32 bit compat elf_greg to 8 bytes.
2110
2111 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2112
2113         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
2114
2115 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2116
2117         * string/strcoll_l.c (coll_seq): New structure.
2118         (get_next_seq_cached): New function.
2119         (get_next_seq): New function.
2120         (do_compare): New function.
2121         (STRCOLL): Use GNU style definition.  Simplify implementation
2122         by using get_next_seq, get_next_seq_cached and do_compare.
2123
2124 2013-08-16  Florian Weimer  <fweimer@redhat.com>
2125
2126         [BZ #14699]
2127         CVE-2013-4237
2128         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
2129         member.
2130         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
2131         member.
2132         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
2133         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
2134         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
2135         conditional.
2136         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
2137         GETDENTS_64BIT_ALIGNED.
2138         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2139         * manual/filesys.texi (Reading/Closing Directory): Document
2140         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
2141         strongly.
2142         * manual/conf.texi (Limits for Files): Add portability note to
2143         NAME_MAX, PATH_MAX.
2144         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
2145
2146 2013-08-13  Andreas Schwab  <schwab@suse.de>
2147
2148         [BZ #15749]
2149         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
2150         of fabs.
2151         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
2152         LDBL_MAX_EXP >= 16384]: Add tests for it.
2153
2154 2013-08-12  David S. Miller  <davem@davemloft.net>
2155
2156         * version.h (RELEASE): Set to "development".
2157         (VERSION): Set to "2.18.90".
2158         * NEWS: Add 2.19 section.
2159
2160 2013-08-03  David S. Miller  <davem@davemloft.net>
2161
2162         * po/ko.po: Update Korean translation from translation project.
2163
2164 2013-08-01  David S. Miller  <davem@davemloft.net>
2165
2166         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
2167         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
2168         Bilka.
2169
2170 2013-07-30  David S. Miller  <davem@davemloft.net>
2171
2172         * po/fr.po: Update French translation from translation project.
2173
2174 2013-07-28  David S. Miller  <davem@davemloft.net>
2175
2176         * po/cs.po: Update Czech translation from translation project.
2177
2178         * po/sv.po: Update Swedish translation from translation project.
2179
2180 2013-07-27  David S. Miller  <davem@davemloft.net>
2181
2182         * po/eo.po: Update Esperanto translation from translation project.
2183
2184         * po/vi.po: Update Vietnamese translation from translation project.
2185
2186         * po/de.po: Update German translation from translation project.
2187
2188 2013-07-26  David S. Miller  <davem@davemloft.net>
2189
2190         * po/bg.po: Update Bulgarian translation from translation project.
2191
2192         * po/nl.po: Update Dutch translation from translation project.
2193         * po/pl.po: Update Polish translation from translation project.
2194         * po/ru.po: Update Russian translation from translation project.
2195
2196 2013-07-24  David S. Miller  <davem@davemloft.net>
2197
2198         * po/libc.pot: Update.
2199
2200 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2201
2202         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
2203         variable page size.
2204         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
2205         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
2206         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
2207
2208 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2209
2210         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
2211
2212 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2213             Andreas Schwab  <schwab@suse.de>
2214             Roland McGrath  <roland@hack.frob.com>
2215             Joseph Myers  <joseph@codesourcery.com>
2216             Carlos O'Donell  <carlos@redhat.com>
2217
2218         [BZ #15755]
2219         * config.h.in: Define HAVE_PT_CHOWN.
2220         * config.make.in (build-pt-chown): New variable.
2221         * configure.in (--enable-pt_chown): New configure option.
2222         * configure: Regenerate.
2223         * login/Makefile: Include Makeconfig.  Build pt_chown only if
2224         build-pt-chown is enabled.
2225         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
2226         pt_chown to fix pty ownership.
2227         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
2228         CLOSE_ALL_FDS.
2229         * manual/install.texi (Configuring and compiling): Mention
2230         --enable-pt_chown. Add @findex for grantpt.
2231         * INSTALL: Regenerate.
2232
2233 2013-07-20  David S. Miller  <davem@davemloft.net>
2234
2235         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
2236         difference between 32-bit and 64-bit.
2237
2238 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
2239
2240         [BZ #15711]
2241         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
2242         Avoid system header dependency with -ffreestanding.
2243         ($(objpfx)bits/syscall%d): Likewise.
2244
2245 2013-07-13  David S. Miller  <davem@davemloft.net>
2246
2247         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
2248         underflows from atanl/atan2l due to bug 15319.
2249         (casinh_test_data): Likewise.
2250
2251 2013-07-07  David S. Miller  <davem@davemloft.net>
2252
2253         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
2254
2255 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
2256
2257         * sysdeps/i386/fpu/libm-test-ulps: Update.
2258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2259
2260 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2261
2262         * configure.in (--enable-lock-elision): Fix message text.
2263         * INSTALL: Regenerate.
2264         * configure: Regenerate.
2265
2266 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2267
2268         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2269
2270 2013-07-03  Andreas Jaeger  <aj@suse.de>
2271
2272         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
2273         define.
2274         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
2275         (ptrace_peeksiginfo_args): Add.
2276         (__ptrace_peeksiginfo_flags): Add.
2277         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2278         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2279         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2280
2281 2013-07-03  Allan McRae  <allan@archlinux.org>
2282
2283         * sysdeps/i386/fpu/libm-test-ulps: Update.
2284
2285 2013-07-02  David S. Miller  <davem@davemloft.net>
2286
2287         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2288
2289 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
2290
2291         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2292
2293 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2294
2295         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2297
2298 2013-07-02  Andi Kleen <ak@linux.intel.com>
2299
2300         * config.h.in (ENABLE_LOCK_ELISION): Add.
2301         * configure.in (--enable-lock-elision): Add option.
2302         * manual/install.texi: Document --enable lock elision.
2303         * configure: Regenerate
2304         * INSTALL: Regenerate.
2305
2306 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2307
2308         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
2309         SSE4.2 strcasecmp for libc.a.
2310         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
2311
2312 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2313
2314         [BZ #13304]
2315         * soft-fp/op-common.h (_FP_FMA): New macro.
2316         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
2317         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
2318         (_FP_MUL_MEAT_1_imm): ... here.
2319         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
2320         (_FP_MUL_MEAT_1_wide): ... here.
2321         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
2322         (_FP_MUL_MEAT_1_hard): ... here.
2323         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
2324         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
2325         (_FP_MUL_MEAT_2_wide): ... here.
2326         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
2327         (_FP_MUL_MEAT_2_wide_3mul): ... here.
2328         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
2329         (_FP_MUL_MEAT_2_gmp): ... here.
2330         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
2331         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
2332         (_FP_MUL_MEAT_4_wide): ... here.
2333         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
2334         (_FP_MUL_MEAT_4_gmp): ... here.
2335         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
2336         (_FP_WFRACBITS_DW_S): Likewise.
2337         (_FP_WFRACXBITS_DW_S): Likewise.
2338         (_FP_HIGHBIT_DW_S): Likewise.
2339         (FP_FMA_S): Likewise.
2340         (_FP_FRAC_HIGH_DW_S): Likewise.
2341         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
2342         (_FP_WFRACBITS_DW_D): Likewise.
2343         (_FP_WFRACXBITS_DW_D): Likewise.
2344         (_FP_HIGHBIT_DW_D): Likewise.
2345         (FP_FMA_D): Likewise.
2346         (_FP_FRAC_HIGH_DW_D): Likewise.
2347         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
2348         (_FP_WFRACBITS_DW_E): Likewise.
2349         (_FP_WFRACXBITS_DW_E): Likewise.
2350         (_FP_HIGHBIT_DW_E): Likewise.
2351         (FP_FMA_E): Likewise.
2352         (_FP_FRAC_HIGH_DW_E): Likewise.
2353         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
2354         (_FP_WFRACBITS_DW_Q): Likewise.
2355         (_FP_WFRACXBITS_DW_Q): Likewise.
2356         (_FP_HIGHBIT_DW_Q): Likewise.
2357         (FP_FMA_Q): Likewise.
2358         (_FP_FRAC_HIGH_DW_Q): Likewise.
2359         * soft-fp/fmasf4.c: New file.
2360         * soft-fp/fmadf4.c: Likewise.
2361         * soft-fp/fmatf4.c: Likewise.
2362
2363 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2364
2365         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
2366         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
2367         Silvermont.
2368         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
2369         macro.
2370         (index_Slow_SSE4_2): Likewise.
2371         (index_Prefer_PMINUB_for_stringop): Likewise.
2372         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
2373         bit_Slow_SSE4_2 is set.
2374         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2375         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2376
2377 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2378
2379         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
2380         rtld_global._dl_hwcap2.
2381         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
2382         POWER8.
2383         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
2384         POWER8 feature descriptions defined in _dl_hwcap2.
2385         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
2386         string handling for POWER8 feature bits.
2387         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
2388         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
2389         _dl_powerpc_cap_flags.
2390         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
2391         * sysdeps/powerpc/rtld-global-offsets.sym
2392         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
2393         _dl_hwcap2 in the rtld_global_ro structure.
2394
2395 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2396
2397         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
2398         hardware capabilities in support of AT_HWCAP2.
2399         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
2400         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
2401         GLRO(dl_hwcap2).
2402         (_dl_show_auxv): Add support for calling _dl_procinfo to display
2403         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
2404         explicitly the unknown a_type display mechanism is used.
2405         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
2406         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
2407         struct member.
2408         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
2409         to macro prototype for AT_HWCAP2 support.
2410         * sysdeps/i386/dl-procinfo.h: Likewise.
2411         * sysdeps/s390/dl-procinfo.h: Likewise.
2412         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
2413         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
2414         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
2415         return -1 for unknown a_type display fallback.
2416         * sysdeps/sparc/dl-procinfo.h: Likewise.
2417         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2418         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
2419
2420 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
2421
2422         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
2423         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
2424
2425 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
2426
2427         [BZ #12492]
2428         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
2429         mprotect making __stack_prot writable.
2430
2431 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2432             Joseph Myers  <joseph@codesourcery.com>
2433
2434         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
2435         as being properly aligned.
2436
2437 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
2438
2439         * dlfcn/modstatic5.c: New file.
2440         * dlfcn/tststatic5.c: New file.
2441         * dlfcn/Makefile (tests): Add tststatic5.
2442         (tests-static): Likewise.
2443         (modules-names): Add modstatic5.
2444         (tststatic5-ENV): New variable.
2445         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
2446
2447         [BZ #15022]
2448         * elf/dl-support.c (_dl_main_map): New variable.
2449         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
2450         (_dl_nns, _dl_load_adds): Set to 1.
2451         (_dl_initial_searchlist): Refer to _dl_main_map.
2452         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
2453         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
2454         call to _dl_get_origin.
2455         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
2456         around call_map.
2457         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
2458         * dlfcn/modstatic3.c: New file.
2459         * dlfcn/tststatic3.c: New file.
2460         * dlfcn/tststatic4.c: New file.
2461         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
2462         (tests-static): Likewise.
2463         (modules-names): Add modstatic3.
2464         (tststatic3-ENV, tststatic4-ENV): New variables.
2465         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
2466         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
2467
2468 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
2469
2470         * configure.in (CC): Require GCC version 4.4 or later.
2471         * configure: Regenerated.
2472         * manual/install.texi (Tools for Compilation): Update GCC version
2473         requirement.
2474         * INSTALL: Regenerated.
2475
2476 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2477
2478         [BZ #15674]
2479         * string/test-memcmp.c (check2): New.
2480         (main): Call check2.
2481
2482         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
2483
2484 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
2485
2486         [BZ #15022]
2487         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
2488         over to...
2489         (dl_open_worker) [!SHARED]: ... here.
2490
2491 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2492
2493         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
2494
2495 2013-06-25  Richard Henderson  <rth@redhat.com>
2496
2497         * locale/programs/locarchive.c: Include <libc-internal.h>
2498
2499 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
2500
2501         * manual/texinfo.tex: Update to version 2013-06-21.17, with
2502         trailing whitespace removed.
2503
2504 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2505
2506         [BZ #10283]
2507         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
2508         * locale/programs/locarchive.c: Include libc-mmap.h.
2509         (prepare_address_space): Take two new outputs (the mmap base and len).
2510         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
2511         values.
2512         (create_archive): Declare new mmap base and len values for
2513         prepare_address_space, and store the result in ah.
2514         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
2515         (enlarge_archive): If ah->mmap_base is not NULL, use that and
2516         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2517         Declare new mmap base and len values for
2518         prepare_address_space, and store the result in new_ah.
2519         (open_archive): Declare new mmap base and len values for
2520         prepare_address_space, and store the result in ah.
2521         (close_archive): If ah->mmap_base is not NULL, use that and
2522         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2523         * sysdeps/generic/libc-mmap.h: New file.
2524
2525 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2526
2527         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
2528         (ALIGN_UP): Likewise.
2529         (PTR_ALIGN_DOWN): Likewise.
2530         (PTR_ALIGN_UP): Likewise.
2531
2532 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2533
2534         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
2535         entry mapped to PPC_PLATFORM_POWER8.
2536         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
2537         POWER8.
2538         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
2539         (_dl_string_platform): Add case for exporting platform position for
2540         POWER8.
2541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
2542         search path to sysdeps/powerpc/powerpc32/power8 directory.
2543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
2544         search path to sysdeps/powerpc/powerpc64/power8 directory.
2545         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
2546         power7 directories.
2547         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
2548         power7 directories.
2549
2550 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2551
2552         * INSTALL: Regenerate.
2553
2554         * nscd/connections.c (nscd_init): Fix comment.
2555
2556 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
2557
2558         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
2559
2560         [BZ #15667]
2561         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
2562         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
2563
2564 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2565
2566         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
2567         DL_DST_REQ_STATIC.
2568         (DL_DST_REQ_STATIC): Remove macro.
2569
2570 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
2571
2572         [BZ #7006]
2573         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
2574         with a shift of 0 bits.
2575
2576 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2577
2578         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
2579         $(tststatic-ENV).
2580
2581 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2582
2583         [BZ #15655]
2584         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
2585
2586 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2587
2588         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
2589         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
2590         accepts -fno-tree-loop-distribute-patterns.
2591         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
2592         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
2593         recursive call.
2594         * string/memset.c (memset): Likewise.
2595         * string/test-memmove.c (simple_memmove): Disable loop transformation
2596         to library calls.
2597         * string/test-memset.c (simple_memset): Likewise.
2598         * benchtests/bench-memmove.c (simple_memmove): Likewise.
2599         * benchtests/bench-memset.c (simple_memset): Likewise.
2600         * configure: Regenerated.
2601
2602 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
2603
2604         * math/test-misc.c (main): Ignore fesetround failure when failures
2605         of subsequent rounding tests would be ignored.
2606
2607         [BZ #15654]
2608         * math/fedisblxcpt.c (fedisableexcept): Return 0.
2609         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
2610         * math/fegetenv.c (__fegetenv): Return 0.
2611         * math/fegetexcept.c (fegetexcept): Return 0.
2612         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
2613         FE_TONEAREST.
2614         * math/feholdexcpt.c (feholdexcept): Return 0.
2615         * math/fesetenv.c (__fesetenv): Return 0.
2616         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
2617         argument FE_TONEAREST.
2618         * math/feupdateenv.c (__feupdateenv): Return 0.
2619         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
2620
2621 2013-06-18  Roland McGrath  <roland@hack.frob.com>
2622
2623         * elf/rtld-Rules (rtld-compile-command.S): New variable.
2624         (rtld-compile-command.s, rtld-compile-command.c): New variables.
2625         ($(objpfx)rtld-%.os rules): Use them.
2626
2627 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2628
2629         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
2630         fields.
2631
2632 2013-06-17  Roland McGrath  <roland@hack.frob.com>
2633
2634         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
2635         length of target pattern, then descending length of dependency pattern.
2636         * configure.in (AWK): Require gawk 3.1.2 or newer.
2637         * manual/install.texi (Tools for Compilation): Say that we do.
2638         * configure: Regenerated.
2639
2640         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
2641         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
2642         * scripts/sysd-rules.awk: ... this new script.
2643         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
2644         than a glob-style pattern.
2645
2646 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
2647
2648         * math/test-misc.c (main): Do not treat incorrectly rounded
2649         conversions as failure unless ROUNDING_TESTS passes.
2650
2651 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
2652
2653         [BZ #15631]
2654         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
2655         restore exception state around main square root computation, then
2656         check for inexactness explicitly.
2657
2658         * math/libm-test.inc (fma_test_data): Add another test.
2659
2660 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2661
2662         * manual/threads.texi (Non-POSIX Extensions): New document
2663         node.  Document pthread_getattr_default_np and
2664         pthread_setattr_default_np.
2665
2666         * Versions.def (libpthread): Add GLIBC_2.18.
2667         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
2668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2669         Likewise.
2670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2671         Likewise.
2672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2673         Likewise.
2674         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2675         Likewise.
2676         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
2677         Likewise.
2678         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2679         Likewise.
2680         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2681         Likewise.
2682         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2683         Likewise.
2684         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
2685         Likewise.
2686
2687 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2688
2689         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2690         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
2691
2692 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2693             H.J. Lu  <hjl.tools@gmail.com>
2694
2695         [BZ #15627]
2696         * sysdeps/x86_64/rtld-memset.c: Remove file.
2697         * sysdeps/x86_64/rtld-memset.S: New file.
2698
2699 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
2700
2701         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
2702         (test_in_one_mode): Take arguments for whether the rounding mode
2703         is supported for each floating-point type.
2704         (do_test): Pass new arguments to test_in_one_mode using
2705         ROUNDING_TESTS.
2706
2707 2013-06-13  Roland McGrath  <roland@hack.frob.com>
2708
2709         * posix/tst-waitid.c (do_test): Distinguish different instances of
2710         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
2711         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
2712         before entering the kernel for waitpid.
2713
2714 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2715
2716         * NEWS: Fix note on clock function precision.  Text by Roland
2717         McGrath.
2718
2719 2013-06-13  Roland McGrath  <roland@hack.frob.com>
2720
2721         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
2722         it into place only when and if the sanity check passes.
2723
2724 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
2725
2726         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
2727         output for whether conversion result is exact.  Take argument
2728         indicating whether type is IBM long double.
2729         (round_for_all): Change need_exact field to ibm_ld.
2730         * stdlib/tst-strtod-round.c (struct exactness): New type.
2731         (struct test): Change bool ld_ok field to struct exactness exact.
2732         (TEST): Update all definitions for change to field.
2733         (tests): Regenerate array contents.
2734         (test_in_one_mode): Take pointer to new field instead of old ld_ok
2735         field value.  Check for IBM long double here.
2736         (do_test): Update calls to test_in_one_mode.
2737
2738 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2739
2740         [BZ #12515]
2741         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
2742         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
2743
2744 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2745
2746         [BZ #15605]
2747         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
2748         generated by the compiler on loop optimizations.
2749         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
2750         general definitions.
2751
2752 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
2753
2754         * math/bug-nextafter.c: Include <math-tests.h>.
2755         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2756         the relevant type.
2757         * math/bug-nexttoward.c: Include <math-tests.h>.
2758         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2759         the relevant type.
2760         * math/test-misc.c: Include <math-tests.h>.
2761         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2762         the relevant type.
2763
2764 2013-06-12  Andreas Jaeger  <aj@suse.de>
2765
2766         * po/ia.po: Update Interlingua translation from translation
2767         project.
2768
2769 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2770
2771         * include/fenv.h: Include stdbool.h.
2772         (struct rm_ctx): New structure.
2773         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
2774         Define macro.
2775         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
2776         (SET_RESTORE_ROUNDF): Likewise.
2777         (SET_RESTORE_ROUNDL): Likewise.
2778         (SET_RESTORE_ROUND_NOEX): Likewise.
2779         (SET_RESTORE_ROUND_NOEXF): Likewise.
2780         (SET_RESTORE_ROUND_NOEXL): Likewise.
2781         (SET_RESTORE_ROUND_53BIT): Likewise.
2782         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
2783         (libc_feresetround_noexf_ctx): Likewise.
2784         (libc_feresetround_noexl_ctx): Likewise.
2785         (libc_feholdsetround_53bit_ctx): Likewise.
2786         (libc_feresetround_53bit_ctx): Likewise.
2787         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
2788         (libc_feholdexcept_setround_sse_ctx): New function.
2789         (libc_fesetenv_sse_ctx): Likewise.
2790         (libc_feupdateenv_sse_ctx): Likewise.
2791         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
2792         (libc_feholdexcept_setround_387_ctx): Likewise.
2793         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
2794         (libc_feholdsetround_387_prec_ctx): Likewise.
2795         (libc_feholdsetround_387_ctx): Likewise.
2796         (libc_feholdsetround_387_53bit_ctx): Likewise.
2797         (libc_feholdsetround_sse_ctx): Likewise.
2798         (libc_feresetround_sse_ctx): Likewise.
2799         (libc_feresetround_387_ctx): Likewise.
2800         (libc_feupdateenv_387_ctx): Likewise.
2801         (libc_feholdexcept_setroundf_ctx): Define macro.
2802         (libc_fesetenvf_ctx): Likewise.
2803         (libc_feupdateenvf_ctx): Likewise.
2804         (libc_feholdsetroundf_ctx): Likewise.
2805         (libc_feresetroundf_ctx): Likewise.
2806         (libc_feholdexcept_setround_ctx): Likewise.
2807         (libc_fesetenv_ctx): Likewise.
2808         (libc_feupdateenv_ctx): Likewise.
2809         (libc_feholdsetround_ctx): Likewise.
2810         (libc_feresetround_ctx): Likewise.
2811         (libc_feholdexcept_setroundl_ctx): Likewise.
2812         (libc_feupdateenvl_ctx): Likewise.
2813         (libc_feholdsetroundl_ctx): Likewise.
2814         (libc_feresetroundl_ctx): Likewise.
2815         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
2816         (libc_feresetround_53bit_ctx): Likewise.
2817
2818 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2819
2820         * locale/iso-639.def: Convert to UTF-8.
2821
2822 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
2823
2824         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
2825         (EXCEPTION_TESTS_double): Likewise.
2826         (EXCEPTION_TESTS_long_double): Likewise.
2827         (EXCEPTION_TESTS): Likewise.
2828         * math/libm-test.inc (test_exceptions): Only test exceptions if
2829         EXCEPTION_TESTS (FLOAT).
2830
2831 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2832
2833         * benchtests/Makefile (string-bench): Add strcpy_chk and
2834         stpcpy_chk.
2835         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
2836         * benchtests/bench-stpcpy_chk.c: New file.
2837         * benchtests/bench-strcpy_chk-ifunc.c: New file.
2838         * benchtests/bench-strcpy_chk.c: New file.
2839         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
2840         code.
2841         (do_test): Likewise.
2842
2843 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2844
2845         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
2846         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
2847         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
2848         with tabs where appropriate.
2849         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
2850         dl-procinfo.h.
2851         [PPC_PLATFORM_PPC440]: Likewise.
2852         [PPC_PLATFORM_PPC464]: Likewise.
2853         [PPC_PLATFORM_PPC476]: Likewise.
2854         (_dl_string_platform): Add support for detecting ppc405, ppc440,
2855         ppc464, and ppc476 platform strings merging from ports/
2856         dl-procinfo.h.
2857
2858 2013-06-11  Andreas Schwab  <schwab@suse.de>
2859
2860         [BZ #14991]
2861         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
2862         (from_ucs4_idx): Regenerate.
2863         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
2864         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
2865         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
2866         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
2867         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
2868         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
2869         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
2870         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
2871         from FROM_LOOP and TO_LOOP specific macros.
2872         (BODY): Handle combining characters.
2873         * iconvdata/BIG5HKSCS.irreversible: Update.
2874         * iconvdata/BIG5HKSCS.precomposed: New file.
2875         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
2876         characters.
2877         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
2878
2879 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2880
2881         * include/sys/time.h: Fix indentation and add copyright header.
2882
2883         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
2884         (do_test): Likewise.
2885         * string/test-memchr.c (do_one_test): Likewise.
2886         (do_test): Likewise.
2887         * string/test-memcmp.c (do_one_test): Likewise.
2888         (do_test): Likewise.
2889         * string/test-memcpy.c (do_one_test): Likewise.
2890         (do_test): Likewise.
2891         * string/test-memmem.c (do_one_test): Likewise.
2892         (do_test): Likewise.
2893         (do_random_tests): Likewise.
2894         * string/test-memmove.c (do_one_test): Likewise.
2895         (do_test): Likewise.
2896         * string/test-memset.c (do_one_test): Likewise.
2897         (do_test): Likewise.
2898         * string/test-rawmemchr.c (do_one_test): Likewise.
2899         (do_test): Likewise.
2900         * string/test-strcasecmp.c (do_one_test): Likewise.
2901         (do_test): Likewise.
2902         * string/test-strcasestr.c (do_one_test): Likewise.
2903         (do_test): Likewise.
2904         * string/test-strcat.c (do_one_test): Likewise.
2905         (do_test): Likewise.
2906         * string/test-strchr.c (do_one_test): Likewise.
2907         (do_test): Likewise.
2908         * string/test-strcmp.c (do_one_test): Likewise.
2909         (do_test): Likewise.
2910         * string/test-strcpy.c (do_one_test): Likewise.
2911         (do_test): Likewise.
2912         * string/test-string.h: Likewise.
2913         (test_init): Likewise.
2914         * string/test-strlen.c (do_one_test): Likewise.
2915         (do_test): Likewise.
2916         * string/test-strncasecmp.c (do_one_test): Likewise.
2917         (do_test): Likewise.
2918         * string/test-strncat.c (do_one_test): Likewise.
2919         (do_test): Likewise.
2920         * string/test-strncmp.c (do_one_test): Likewise.
2921         (do_test_limit): Likewise.
2922         (do_test): Likewise.
2923         * string/test-strncpy.c (do_one_test): Likewise.
2924         (do_test): Likewise.
2925         * string/test-strnlen.c (do_one_test): Likewise.
2926         (do_test): Likewise.
2927         * string/test-strpbrk.c (do_one_test): Likewise.
2928         (do_test): Likewise.
2929         * string/test-strrchr.c (do_one_test): Likewise.
2930         (do_test): Likewise.
2931         * string/test-strspn.c (do_one_test): Likewise.
2932         (do_test): Likewise.
2933         * string/test-strstr.c (do_one_test): Likewise.
2934         (do_test): Likewise.
2935
2936         * benchtests/Makefile (string-bench): Add string benchmarks.
2937         * benchtests/bench-bcopy-ifunc.c: New file.
2938         * benchtests/bench-bcopy.c: New file.
2939         * benchtests/bench-bzero-ifunc.c: New file.
2940         * benchtests/bench-bzero.c: New file.
2941         * benchtests/bench-memccpy-ifunc.c: New file.
2942         * benchtests/bench-memccpy.c: New file.
2943         * benchtests/bench-memchr-ifunc.c: New file.
2944         * benchtests/bench-memchr.c: New file.
2945         * benchtests/bench-memcmp-ifunc.c: New file.
2946         * benchtests/bench-memcmp.c: New file.
2947         * benchtests/bench-memmem-ifunc.c: New file.
2948         * benchtests/bench-memmem.c: New file.
2949         * benchtests/bench-memmove-ifunc.c: New file.
2950         * benchtests/bench-memmove.c: New file.
2951         * benchtests/bench-mempcpy-ifunc.c: New file.
2952         * benchtests/bench-mempcpy.c: New file.
2953         * benchtests/bench-memset-ifunc.c: New file.
2954         * benchtests/bench-memset.c: New file.
2955         * benchtests/bench-rawmemchr-ifunc.c: New file.
2956         * benchtests/bench-rawmemchr.c: New file.
2957         * benchtests/bench-stpcpy-ifunc.c: New file.
2958         * benchtests/bench-stpcpy.c: New file.
2959         * benchtests/bench-stpncpy-ifunc.c: New file.
2960         * benchtests/bench-stpncpy.c: New file.
2961         * benchtests/bench-strcasecmp-ifunc.c: New file.
2962         * benchtests/bench-strcasecmp.c: New file.
2963         * benchtests/bench-strcasestr-ifunc.c: New file.
2964         * benchtests/bench-strcasestr.c: New file.
2965         * benchtests/bench-strcat-ifunc.c: New file.
2966         * benchtests/bench-strcat.c: New file.
2967         * benchtests/bench-strchr-ifunc.c: New file.
2968         * benchtests/bench-strchr.c: New file.
2969         * benchtests/bench-strchrnul-ifunc.c: New file.
2970         * benchtests/bench-strchrnul.c: New file.
2971         * benchtests/bench-strcmp-ifunc.c: New file.
2972         * benchtests/bench-strcmp.c: New file.
2973         * benchtests/bench-strcpy-ifunc.c: New file.
2974         * benchtests/bench-strcpy.c: New file.
2975         * benchtests/bench-strcspn-ifunc.c: New file.
2976         * benchtests/bench-strcspn.c: New file.
2977         * benchtests/bench-strlen-ifunc.c: New file.
2978         * benchtests/bench-strlen.c: New file.
2979         * benchtests/bench-strncasecmp-ifunc.c: New file.
2980         * benchtests/bench-strncasecmp.c: New file.
2981         * benchtests/bench-strncat-ifunc.c: New file.
2982         * benchtests/bench-strncat.c: New file.
2983         * benchtests/bench-strncmp-ifunc.c: New file.
2984         * benchtests/bench-strncmp.c: New file.
2985         * benchtests/bench-strncpy-ifunc.c: New file.
2986         * benchtests/bench-strncpy.c: New file.
2987         * benchtests/bench-strnlen-ifunc.c: New file.
2988         * benchtests/bench-strnlen.c: New file.
2989         * benchtests/bench-strpbrk-ifunc.c: New file.
2990         * benchtests/bench-strpbrk.c: New file.
2991         * benchtests/bench-strrchr-ifunc.c: New file.
2992         * benchtests/bench-strrchr.c: New file.
2993         * benchtests/bench-strspn-ifunc.c: New file.
2994         * benchtests/bench-strspn.c: New file.
2995         * benchtests/bench-strstr-ifunc.c: New file.
2996         * benchtests/bench-strstr.c: New file.
2997
2998         * benchtests/Makefile: Disable parallel execution of targets.
2999         (string-bench): Add memcpy.
3000         (benchset): New variable to store a list of benchmark sets.
3001         (bench-func): Renamed from bench.
3002         (bench-set): New target.
3003         (bench): Depend on bench-func and bench-set.
3004         * benchtests/README: Add section on benchmark sets.
3005         * benchtests/bench-memcpy-ifunc.c: New file.
3006         * benchtests/bench-memcpy.c: New file.
3007         * benchtests/bench-string.h: New file.
3008
3009 2013-06-11  Andreas Schwab  <schwab@suse.de>
3010
3011         [BZ #15577]
3012         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
3013         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
3014         values in the triple.
3015         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
3016         terminator in the group key.
3017
3018 2013-06-11  Andreas Jaeger  <aj@suse.de>
3019
3020         * po/zh_TW.po: Update Chinese (traditional) translation from
3021         translation project.
3022
3023 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3024
3025         * include/time.h (__clock_gettime): Add libc_hidden_proto.
3026         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
3027         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
3028         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3029         (clock_getcpuclockid): Likewise.
3030         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
3031         Add weak_alias and libc_hidden_def.
3032         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
3033         * rt/clock_gettime.c (clock_gettime): Rename to
3034         __clock_gettime.  Add weak_alias and libc_hidden_def.
3035         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
3036         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
3037         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
3038         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
3039         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
3040         Likewise.
3041         * rt/clock_settime.c (clock_settime): Rename to
3042         __clock_settime.  Add weak_alias and libc_hidden_def.
3043         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
3044
3045 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
3046
3047         * mach/err_boot.sub: Remove trailing whitespace.
3048         * mach/err_ipc.sub: Likewise.
3049         * mach/err_mach.sub: Likewise.
3050
3051         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
3052         (ROUNDING_TESTS_double): Likewise.
3053         (ROUNDING_TESTS_long_double): Likewise.
3054         (ROUNDING_TESTS): Likewise.
3055         * math/libm-test.inc: Include <math-tests.h>.
3056         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
3057         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
3058         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
3059         (IF_ROUND_INIT_FE_UPWARD): Likewise.
3060
3061 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3062
3063         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
3064         of assigning.
3065
3066 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
3067
3068         * sysdeps/gnu/errlist.awk: Do not generate space at end of
3069         otherwise empty TRANS lines.
3070         * sysdeps/gnu/errlist.c: Regenerated.
3071
3072         * catgets/gencat.c (error_print): Use (void) in function
3073         definition.
3074         * crypt/crypt_util.c (__init_des): Likewise.
3075         * crypt/speeds.c (Stop): Likewise.
3076         (main): Likewise.
3077         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
3078         * inet/ruserpass.c (token): Likewise.
3079         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
3080         * intl/localealias.c (extend_alias_table): Likewise.
3081         * intl/plural-exp.c (init_germanic_plural): Likewise.
3082         * libio/fcloseall.c (__fcloseall): Likewise.
3083         * libio/genops.c (_IO_flush_all): Likewise.
3084         (_IO_flush_all_linebuffered): Likewise.
3085         (_IO_cleanup): Likewise.
3086         (_IO_iter_begin): Likewise.
3087         (_IO_iter_end): Likewise.
3088         (_IO_list_lock): Likewise.
3089         (_IO_list_unlock): Likewise.
3090         (_IO_list_resetlock): Likewise.
3091         * libio/getchar.c (getchar): Likewise.
3092         * libio/getchar_u.c (getchar_unlocked): Likewise.
3093         * libio/getwchar.c (getwchar): Likewise.
3094         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3095         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
3096         * login/getpt.c (__getpt): Likewise.
3097         * login/tst-utmp.c (main): Likewise.
3098         * malloc/hooks.c (__malloc_check_init): Likewise.
3099         * malloc/malloc.c (__malloc_stats): Likewise.
3100         * malloc/mtrace.c (tr_break): Likewise.
3101         (mtrace): Likewise.
3102         (muntrace): Likewise.
3103         * misc/fstab.c (endfsent): Likewise.
3104         * misc/getclktck.c (__getclktck): Likewise.
3105         * misc/getdtsz.c (__getdtablesize): Likewise.
3106         * misc/gethostid.c (gethostid): Likewise.
3107         * misc/getpagesize.c (__getpagesize): Likewise.
3108         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
3109         (__get_nprocs): Likewise.
3110         (__get_phys_pages): Likewise.
3111         (__get_avphys_pages): Likewise.
3112         * misc/getttyent.c (getttyent): Likewise.
3113         (setttyent): Likewise.
3114         (endttyent): Likewise.
3115         * misc/getusershell.c (getusershell): Likewise.
3116         (endusershell): Likewise.
3117         (setusershell): Likewise.
3118         (initshells): Likewise.
3119         * misc/hsearch.c (__hdestroy): Likewise.
3120         * misc/sync.c (sync): Likewise.
3121         * misc/syslog.c (closelog_internal): Likewise.
3122         (closelog): Likewise.
3123         * misc/ttyslot.c (ttyslot): Likewise.
3124         * misc/vhangup.c (vhangup): Likewise.
3125         * posix/fork.c (__fork): Likewise.
3126         * posix/getegid.c (__getegid): Likewise.
3127         * posix/geteuid.c (__geteuid): Likewise.
3128         * posix/getgid.c (__getgid): Likewise.
3129         * posix/getpid.c (__getpid): Likewise.
3130         * posix/getppid.c (__getppid): Likewise.
3131         * posix/getuid.c (__getuid): Likewise.
3132         * posix/pause.c (pause): Likewise.
3133         * posix/setpgrp.c (setpgrp): Likewise.
3134         * posix/setsid.c (__setsid): Likewise.
3135         * posix/test-vfork.c (noop): Likewise.
3136         * resolv/gethnamaddr.c (_endhtent): Likewise.
3137         (_gethtent): Likewise.
3138         (ht_endhostent): Likewise.
3139         (gethostent): Likewise.
3140         (dns_service): Likewise.
3141         * stdlib/drand48.c (drand48): Likewise.
3142         * stdlib/lrand48.c (lrand48): Likewise.
3143         * stdlib/mrand48.c (mrand48): Likewise.
3144         * stdlib/rand.c (rand): Likewise.
3145         * stdlib/random.c (__random): Likewise.
3146         * stdlib/setenv.c (clearenv): Likewise.
3147         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
3148         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
3149         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3150         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
3151         (__get_nprocs): Likewise.
3152         (__get_phys_pages): Likewise.
3153         (__get_avphys_pages): Likewise.
3154         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
3155         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
3156         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
3157         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
3158         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
3159         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
3160         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
3161         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
3162         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3163         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
3164         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
3165         * sysdeps/mach/hurd/sync.c (sync): Likewise.
3166         * sysdeps/posix/clock.c (clock): Likewise.
3167         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
3168         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
3169         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
3170         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3171         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
3172         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
3173         (__get_nprocs_conf): Likewise.
3174         (__get_phys_pages): Likewise.
3175         (__get_avphys_pages): Likewise.
3176         * time/clock.c (clock): Likewise.
3177         * time/tzset.c (__tzname_max): Likewise.
3178
3179 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
3180
3181         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
3182         (__bswap_32): Do not use "register".
3183         * crypt/crypt.c (_ufc_doit_r): Likewise.
3184         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
3185         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
3186         * gmon/gmon.c (__monstartup): Likewise.
3187         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
3188         * hurd/hurdmalloc.c (more_memory): Likewise.
3189         (malloc): Likewise.
3190         (free): Likewise.
3191         (realloc): Likewise.
3192         (malloc_fork_prepare): Likewise.
3193         (malloc_fork_parent): Likewise.
3194         (malloc_fork_child): Likewise.
3195         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
3196         (_svcauth_des): Likewise.
3197         * inet/inet_lnaof.c (inet_lnaof): Likewise.
3198         * inet/inet_net.c (inet_network): Likewise.
3199         * inet/inet_netof.c (inet_netof): Likewise.
3200         * inet/rcmd.c (__validuser2_sa): Likewise.
3201         * io/fts.c (fts_open): Likewise.
3202         (fts_load): Likewise.
3203         (fts_close): Likewise.
3204         (fts_read): Likewise.
3205         (fts_children): Likewise.
3206         (fts_build): Likewise.
3207         (fts_stat): Likewise.
3208         (fts_sort): Likewise.
3209         (fts_alloc): Likewise.
3210         (fts_lfree): Likewise.
3211         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
3212         (_IO_file_xsgetn): Likewise.
3213         (_IO_file_xsgetn_mmap): Likewise.
3214         * libio/iofopncook.c (_IO_cookie_read): Likewise.
3215         (_IO_cookie_write): Likewise.
3216         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
3217         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
3218         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
3219         * malloc/obstack.c (_obstack_begin): Likewise.
3220         (_obstack_begin_1): Likewise.
3221         (_obstack_newchunk): Likewise.
3222         (_obstack_allocated_p): Likewise.
3223         (obstack_free): Likewise.
3224         (_obstack_memory_used): Likewise.
3225         * misc/getttyent.c (getttynam): Likewise.
3226         (getttyent): Likewise.
3227         (skip): Likewise.
3228         (value): Likewise.
3229         * misc/getusershell.c (initshells): Likewise.
3230         * misc/syslog.c (__vsyslog_chk): Likewise.
3231         * misc/ttyslot.c (ttyslot): Likewise.
3232         * nis/nis_hash.c (__nis_hash): Likewise.
3233         * posix/fnmatch_loop.c (FCT): Likewise.
3234         * posix/getconf.c (print_all): Likewise.
3235         (main): Likewise.
3236         * posix/getopt.c (exchange): Likewise.
3237         * posix/glob.c (globfree): Likewise.
3238         (prefix_array): Likewise.
3239         (__glob_pattern_type): Likewise.
3240         * resolv/arpa/nameser.h (NS_GET16): Likewise.
3241         (NS_GET32): Likewise.
3242         (NS_PUT16): Likewise.
3243         (NS_PUT32): Likewise.
3244         * resolv/gethnamaddr.c (getanswer): Likewise.
3245         (gethostbyname2): Likewise.
3246         (gethostbyaddr): Likewise.
3247         (_gethtent): Likewise.
3248         (_gethtbyname2): Likewise.
3249         (_gethtbyaddr): Likewise.
3250         * resolv/ns_print.c (dst_s_get_int16): Likewise.
3251         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
3252         * resolv/res_init.c (__res_vinit): Likewise.
3253         (net_mask): Likewise.
3254         * resolv/res_mkquery.c (outchar): Likewise.
3255         (PRINT): Likewise.
3256         * stdio-common/printf_fp.c (outchar): Likewise.
3257         (PRINT): Likewise.
3258         * stdio-common/printf_fphex.c (outchar): Likewise.
3259         (PRINT): Likewise.
3260         * stdio-common/printf_size.c (outchar): Likewise.
3261         (PRINT): Likewise.
3262         * stdio-common/test_rdwr.c (main): Likewise.
3263         * stdio-common/tfformat.c (matches): Likewise.
3264         * stdio-common/vfprintf.c (outchar): Likewise.
3265         (printf_unknown): Likewise.
3266         (buffered_vfprintf): Likewise.
3267         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
3268         * stdio-common/xbug.c (AppendToBuffer): Likewise.
3269         (ReadFile): Likewise.
3270         * stdlib/qsort.c (SWAP): Likewise.
3271         (_quicksort): Likewise.
3272         * stdlib/setenv.c (__add_to_environ): Likewise.
3273         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
3274         * stdlib/strtol_l.c (__strtol_l): Likewise.
3275         * stdlib/tst-strtod.c (main): Likewise.
3276         * stdlib/tst-strtol.c (main): Likewise.
3277         * stdlib/tst-strtoll.c (main): Likewise.
3278         * string/bits/string2.h (__strcmp_cc): Likewise.
3279         (__strcmp_cg): Likewise.
3280         (__strcspn_c1): Likewise.
3281         (__strcspn_c2): Likewise.
3282         (__strcspn_c3): Likewise.
3283         (__strspn_c1): Likewise.
3284         (__strspn_c2): Likewise.
3285         (__strspn_c3): Likewise.
3286         (__strsep_1c): Likewise.
3287         (__strsep_2c): Likewise.
3288         (__strsep_3c): Likewise.
3289         * string/memccpy.c (__memccpy): Likewise.
3290         * string/stpcpy.c (__stpcpy): Likewise.
3291         * string/strcmp.c (strcmp): Likewise.
3292         * string/strrchr.c (strrchr): Likewise.
3293         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
3294         Likewise.
3295         * sysdeps/mach/hurd/getcwd.c
3296         (_hurd_canonicalize_directory_name_internal): Likewise.
3297         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
3298         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
3299         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
3300         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
3301         Likewise, in both definitions.
3302         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
3303         definitions.
3304         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
3305         64] (__bswap_64): Likewise.
3306         * time/test_time.c (main): Likewise.
3307         * time/tzfile.c (__tzfile_read): Likewise.
3308         (__tzfile_compute): Likewise.
3309         * time/tzset.c (__tzset_parse_tz): Likewise.
3310         (tzset_internal): Likewise.
3311         (compute_change): Likewise.
3312         * wcsmbs/wcscat.c (__wcscat): Likewise.
3313         * wcsmbs/wcschr.c (wcschr): Likewise.
3314         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
3315         * wcsmbs/wcscspn.c (wcscspn): Likewise.
3316         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3317         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
3318         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3319         * wcsmbs/wcsstr.c (wcsstr): Likewise.
3320         * wcsmbs/wmemchr.c (wmemchr): Likewise.
3321         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
3322         * wcsmbs/wmemset.c (wmemset): Likewise.
3323
3324 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
3325
3326         * scripts/config.guess: Update to version 2013-05-16.
3327         * scripts/config.sub: Update to version 2013-04-24.
3328         * scripts/install-sh: Update to version 2011-11-20.07.
3329         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
3330         * scripts/move-if-change: Update to version 2012-01-06 07:23.
3331
3332 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
3333
3334         * debug/fgetws_u_chk.c: Fix leading whitespaces.
3335         * elf/sln.c: Likewise.
3336         * hurd/hurd/ioctl.h: Likewise.
3337         * hurd/hurdmalloc.c: Likewise.
3338         * hurd/xattr.c: Likewise.
3339         * include/shlib-compat.h: Likewise.
3340         * inet/ruserpass.c: Likewise.
3341         * libio/iofgets_u.c: Likewise.
3342         * libio/iofgetws_u.c: Likewise.
3343         * locale/programs/ld-identification.c: Likewise.
3344         * locale/programs/ld-time.c: Likewise.
3345         * mach/msg-destroy.c: Likewise.
3346         * nss/nss_files/files-netgrp.c: Likewise.
3347         * resolv/res_data.c: Likewise.
3348         * soft-fp/op-1.h: Likewise.
3349         * soft-fp/op-2.h: Likewise.
3350         * soft-fp/op-4.h: Likewise.
3351         * soft-fp/op-common.h: Likewise.
3352         * stdio-common/printf_fphex.c: Likewise.
3353         * stdlib/strtod_l.c: Likewise.
3354         * sunrpc/rpc/clnt.h: Likewise.
3355         * sysdeps/generic/framestate.c: Likewise.
3356         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3357         * sysdeps/i386/bsd-setjmp.S: Likewise.
3358         * sysdeps/i386/__longjmp.S: Likewise.
3359         * sysdeps/i386/setjmp.S: Likewise.
3360         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3361         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3362         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3363         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3364         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3365         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3366         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3367         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3368         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3369         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3370         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3371         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3372         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3373         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3374         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3375         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3376         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3377         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
3378         * sysdeps/ieee754/support.c: Likewise.
3379         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3380         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
3381         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
3382         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
3383         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
3384         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
3385         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
3386         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
3387         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
3388         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
3389         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
3390         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
3391         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
3392         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
3393         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
3394         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
3395         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
3396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3397
3398 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
3399
3400         * posix/transbug.c: Remove executable mode.
3401
3402 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
3403
3404         * crypt/speeds.c: Remove trailing whitespace.
3405         * dlfcn/default.c: Likewise.
3406         * elf/ifuncdep2.c: Likewise.
3407         * elf/ifuncmain1.c: Likewise.
3408         * elf/ifuncmain1vis.c: Likewise.
3409         * elf/testobj.h: Likewise.
3410         * elf/tst-stackguard1.c: Likewise.
3411         * gmon/sys/gmon.h: Likewise.
3412         * hurd/hurdmsg.c: Likewise.
3413         * hurd/new-fd.c: Likewise.
3414         * hurd/ports-get.c: Likewise.
3415         * iconvdata/ibm1008_420.c: Likewise.
3416         * inet/tst-getni1.c: Likewise.
3417         * inet/tst-getni2.c: Likewise.
3418         * libio/ioungetc.c: Likewise.
3419         * libio/wfiledoalloc.c: Likewise.
3420         * manual/libm-err-tab.pl: Likewise.
3421         * math/w_dremf.c: Likewise.
3422         * misc/ftruncate.c: Likewise.
3423         * posix/bug-glob2.c: Likewise.
3424         * posix/tst-pcre.c: Likewise.
3425         * posix/wait4.c: Likewise.
3426         * resolv/README: Likewise.
3427         * resolv/res_debug.h: Likewise.
3428         * resolv/tst-inet_ntop.c: Likewise.
3429         * setjmp/bug269-setjmp.c: Likewise.
3430         * soft-fp/extended.h: Likewise.
3431         * soft-fp/op-1.h: Likewise.
3432         * soft-fp/op-2.h: Likewise.
3433         * soft-fp/op-4.h: Likewise.
3434         * soft-fp/op-8.h: Likewise.
3435         * soft-fp/testit.c: Likewise.
3436         * stdio-common/bug16.c: Likewise.
3437         * stdlib/random.c: Likewise.
3438         * sunrpc/rpcsvc/rquota.x: Likewise.
3439         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3440         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3441         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3442         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3443         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3444         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3445         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3446         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3447         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3448         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3449         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3450         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3451         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3452         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3453         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3454         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3455         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3456         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3457         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3458         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3459         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3460         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3461         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
3462         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3463         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3464         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3465         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3466         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
3467         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3468         * sysdeps/ieee754/s_lib_version.c: Likewise.
3469         * sysdeps/mach/hurd/check_fds.c: Likewise.
3470         * sysdeps/mach/hurd/getsockname.c: Likewise.
3471         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
3472         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3473         * sysdeps/powerpc/bits/link.h: Likewise.
3474         * sysdeps/powerpc/dl-procinfo.c: Likewise.
3475         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
3476         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
3477         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
3478         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
3479         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3480         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
3481         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3482         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
3483         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3484         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3485         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
3486         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
3487         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3488         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
3489         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3490         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3491         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3492         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3493         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3494         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
3495         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
3496         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3497         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3498         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3499         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3500         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3501         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3502         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3503         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3504         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3505         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3506         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3507         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3508         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
3509         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3510         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3511         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3512         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3513         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
3514         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3515         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3516         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3517         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3518         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3519         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
3520         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3521         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3522         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
3523         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
3524         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3525         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3526         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3527         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3528         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3529         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3530         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3531         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3532         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
3533         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3534         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3535         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3536         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
3537         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3538         * sysdeps/powerpc/sysdep.h: Likewise.
3539         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3540         * sysdeps/s390/s390-64/sub_n.S: Likewise.
3541         * sysdeps/sh/dl-trampoline.S: Likewise.
3542         * sysdeps/sh/memset.S: Likewise.
3543         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
3544         * sysdeps/sh/strlen.S: Likewise.
3545         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
3546         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
3547         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
3548         * sysdeps/sparc/sparc32/rem.S: Likewise.
3549         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
3550         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
3551         * sysdeps/sparc/sparc32/strchr.S: Likewise.
3552         * sysdeps/sparc/sparc32/udiv.S: Likewise.
3553         * sysdeps/sparc/sparc32/urem.S: Likewise.
3554         * sysdeps/sparc/sparc64/add_n.S: Likewise.
3555         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3556         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
3557         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
3558         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
3559         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
3560         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
3561         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
3562         * sysdeps/unix/bsd/times.c: Likewise.
3563         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
3564         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
3568         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
3569         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3570         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
3571         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
3572         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
3573         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
3574         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3575         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
3576         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
3577         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3578         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3579         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3580         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3581         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
3582         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
3583         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
3584         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
3585         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
3586         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
3587         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
3588         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
3589         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
3590         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3591         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
3592         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
3593         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
3594         * sysdeps/x86_64/strcspn.S: Likewise.
3595
3596 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3597
3598         * locale/C-translit.h: Revert #include <stdint.h> because this is a
3599         generated file.  Regenerate properly from gen-translit.pl.
3600         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
3601         locale/C-translit.h.
3602
3603 2013-06-05  Andreas Schwab  <schwab@suse.de>
3604
3605         [BZ #15100]
3606         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
3607         week as 6 instead of -1.
3608         * time/tst-strptime.c (day_tests): Add test case.
3609
3610 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3611
3612         * sysdeps/generic/math_private.h
3613         (libc_feholdexcept_setround_53bit): Replace with
3614         libc_feholdsetround_53bit.
3615         (libc_feupdateenv_53bit): Replace with
3616         libc_feresetround_53bit.
3617         (SET_RESTORE_ROUND_53BIT): Adjust.
3618
3619 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
3620
3621         * string/test-strchrnul.c: Add copyright header.
3622
3623         * posix/tst-getaddrinfo4.c: Increase test timeout.
3624
3625 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
3626
3627         [BZ #15536]
3628         * math/libm-test.inc (MAX_EXP): Remove
3629         (MIN_EXP): Define.
3630         (ulp): Use MIN_EXP - MANT_DIG.
3631         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
3632
3633 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
3634
3635         * po/be.po: Revert last change.
3636         * po/zh_CN.po: Likewise.
3637         * po/header.pot: Likewise.
3638
3639 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
3640
3641         * Makefile ($(common-objpfx)linkobj/libc.so): Define
3642         link-libc-deps to empty as target-specific variable.
3643         * Makerules (link-libc-args): New variable.
3644         (libc-for-link): Likewise.
3645         (link-libc-deps): Likewise.
3646         (lib%.so): Depend on $(link-libc-deps).  Link with
3647         $(link-libc-args).
3648         (build-module): Link with $(link-libc-args).
3649         (build-module-asneeded): Likewise.
3650         (build-module-helper-objlist): Filter out $(link-libc-deps) from
3651         list of objects.
3652         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
3653         target-specific variable.
3654         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
3655         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
3656         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
3657         libc.
3658         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
3659         libc and ld.so.
3660         ($(objpfx)libpcprofile.so): Likewise.
3661         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
3662         libc_nonshared.a.
3663         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
3664         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
3665         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
3666         $(link-libc-deps).
3667         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
3668         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
3669         * login/Makefile ($(objpfx)libutil.so): Likewise.
3670         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
3671         * math/Makefile ($(objpfx)libm.so): Likewise.
3672         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
3673         $(objpfx)libnsl.so): Define libc-for-link as target-specific
3674         variable instead of depending directly on libc.
3675         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
3676         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
3677         $(link-libc-deps).
3678         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
3679         libc.
3680         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
3681         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
3682         ($(objpfx)libanl.so): Likewise.
3683         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
3684         ld.so.
3685         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
3686         $(link-libc-deps).
3687         * sysdeps/i386/fpu/Makefile: Remove file.
3688         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
3689         ($(objpfx)libm.so): Remove dependency on ld.so.
3690
3691 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
3692
3693         [BZ # 15553]
3694         * nis/yp_xdr.c (XDRMAXNAME): Define.
3695         (XDRMAXRECORD): Define.
3696         (xdr_domainname): Use XDRMAXNAME.
3697         (xdr_mapname): Likewise.
3698         (xdr_peername): Likewise.
3699         (xdr_keydat): Use XDRMAXRECORD.
3700         (xdr_valdat): Likewise.
3701
3702 2013-05-30  Jeff Law  <law@redhat.com>
3703
3704         [BZ #14256]
3705         * manual/errno.texi (ESTALE): Update to account for more than
3706         just NFS file systems.
3707         * sysdeps/gnu/errlist.c: Regenerated.
3708
3709 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3710
3711         [BZ #15465]
3712         * elf/Makefile (tests): Add tst-null-argv.
3713         (modules-names):  Add tst-null-argv-lib.
3714         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
3715         (tst-null-argv-ENV): Set environment for tst-null-argv.
3716         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
3717         (RTLD_PROGNAME): New macro.
3718         * elf/tst-null-argv.c: New test case.
3719         * elf/tst-null-argv-lib.c: Library for test case.
3720         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
3721         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3722         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
3723         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
3724         * elf/dl-init.c (call_init): Likewise.
3725         (_dl_init): Likewise.
3726         * elf/dl-load.c (print_search_path): Likewise.
3727         (_dl_map_object): Likewise.
3728         * elf/dl-lookup.c (do_lookup_x): Likewise.
3729         (add_dependency): Likewise.
3730         (_dl_lookup_symbol_x): Likewise.
3731         (_dl_debug_bindings): Likewise.
3732         * elf/dl-open.c (_dl_show_scope): Likewise.
3733         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3734         * elf/dl-version.c (match_symbol): Likewise.
3735         (_dl_check_map_versions): Likewise.
3736         * elf/rtld.c (dl_main): Likewise.
3737         (print_unresolved): Use RTLD_PROGNAME.
3738         (print_missing_version): Likewise.
3739         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3740         (elf_machine_rela): Likewise.
3741         * sysdeps/powerpc/powerpc32/dl-machine.c
3742         (__process_machine_rela): Likewise.
3743         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3744         Likewise.
3745         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3746         Likewise.
3747         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
3748         Likewise.
3749         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3750         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
3751         Likewise.
3752         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
3753         Likewise.
3754         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3755
3756 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
3757
3758         * po/be.po: Add descriptive title.
3759         * po/zh_CN.po: Likewise.
3760         * po/header.pot: Likewise.
3761
3762 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
3763
3764         * locale/programs/locarchive.c (create_archive): Inlucde fname in
3765         error message.
3766         (enlarge_archive): Likewise.
3767
3768 2013-05-28  Ben North  <ben@redfrontdoor.org>
3769
3770         * manual/arith.texi (frexp): It is the magnitude of the return
3771         value which lies in [0.5, 1), not the return value itself.
3772
3773 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3774
3775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3776
3777 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
3778
3779         * stdio-common/bug26.c (main): Correct fscanf template.
3780
3781         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
3782         declare _dl_skip_args.
3783
3784         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
3785         Don't declare.
3786
3787         * manual/platform.texi: Add missing @end deftypefun.
3788
3789 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
3790
3791         [BZ #15529]
3792         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
3793         bit of mantissa of 2^16382.
3794         * math/libm-test.inc (hypot_test_data): Add more tests.
3795
3796         * math/libm-test.inc: Add drem and pow10 to list of tested
3797         functions.
3798         (pow10_test): New function.
3799         (drem_test): Likewise.
3800         (drem_test_tonearest): Likewise.
3801         (drem_test_towardzero): Likewise.
3802         (drem_test_downward): Likewise.
3803         (drem_test_upward): Likewise.
3804         (main): Call the new functions.
3805
3806         * math/libm-test.inc (finite_test_data): Remove.
3807         (finite_test): Run tests from isfinite_test_data.
3808         (gamma_test_data): Remove.
3809         (gamma_test): Run tests from lgamma_test_data.
3810         * sysdeps/i386/fpu/libm-test-ulps: Update.
3811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3812
3813 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3814
3815         * manual/platform.texi: Add PowerPC PPR function set documentation.
3816         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
3817         implementation.
3818
3819 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
3820
3821         * math/libm-test.inc (MAX_EXP): Define.
3822         (ULPDIFF): Define.
3823         (ulp): New function.
3824         (check_float_internal): Use ULPDIFF.
3825         (cpow_test): Disable failing test.
3826         (check_ulp): Test ulp() implemetnation.
3827         (main): Call check_ulp before starting tests.
3828
3829 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
3830
3831         * math/gen-libm-test.pl (generate_testfile): Do not handle
3832         START_DATA and END_DATA.
3833         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
3834         END_DATA.
3835         (acos_tonearest_test_data): Likewise.
3836         (acos_towardzero_test_data): Likewise.
3837         (acos_downward_test_data): Likewise.
3838         (acos_upward_test_data): Likewise.
3839         (acosh_test_data): Likewise.
3840         (asin_test_data): Likewise.
3841         (asin_tonearest_test_data): Likewise.
3842         (asin_towardzero_test_data): Likewise.
3843         (asin_downward_test_data): Likewise.
3844         (asin_upward_test_data): Likewise.
3845         (asinh_test_data): Likewise.
3846         (atan_test_data): Likewise.
3847         (atanh_test_data): Likewise.
3848         (atan2_test_data): Likewise.
3849         (cabs_test_data): Likewise.
3850         (cacos_test_data): Likewise.
3851         (cacosh_test_data): Likewise.
3852         (carg_test_data): Likewise.
3853         (casin_test_data): Likewise.
3854         (casinh_test_data): Likewise.
3855         (catan_test_data): Likewise.
3856         (catanh_test_data): Likewise.
3857         (cbrt_test_data): Likewise.
3858         (ccos_test_data): Likewise.
3859         (ccosh_test_data): Likewise.
3860         (ceil_test_data): Likewise.
3861         (cexp_test_data): Likewise.
3862         (cimag_test_data): Likewise.
3863         (clog_test_data): Likewise.
3864         (clog10_test_data): Likewise.
3865         (conj_test_data): Likewise.
3866         (copysign_test_data): Likewise.
3867         (cos_test_data): Likewise.
3868         (cos_tonearest_test_data): Likewise.
3869         (cos_towardzero_test_data): Likewise.
3870         (cos_downward_test_data): Likewise.
3871         (cos_upward_test_data): Likewise.
3872         (cosh_test_data): Likewise.
3873         (cosh_tonearest_test_data): Likewise.
3874         (cosh_towardzero_test_data): Likewise.
3875         (cosh_downward_test_data): Likewise.
3876         (cosh_upward_test_data): Likewise.
3877         (cpow_test_data): Likewise.
3878         (cproj_test_data): Likewise.
3879         (creal_test_data): Likewise.
3880         (csin_test_data): Likewise.
3881         (csinh_test_data): Likewise.
3882         (csqrt_test_data): Likewise.
3883         (ctan_test_data): Likewise.
3884         (ctan_tonearest_test_data): Likewise.
3885         (ctan_towardzero_test_data): Likewise.
3886         (ctan_downward_test_data): Likewise.
3887         (ctan_upward_test_data): Likewise.
3888         (ctanh_test_data): Likewise.
3889         (ctanh_tonearest_test_data): Likewise.
3890         (ctanh_towardzero_test_data): Likewise.
3891         (ctanh_downward_test_data): Likewise.
3892         (ctanh_upward_test_data): Likewise.
3893         (erf_test_data): Likewise.
3894         (erfc_test_data): Likewise.
3895         (exp_test_data): Likewise.
3896         (exp_tonearest_test_data): Likewise.
3897         (exp_towardzero_test_data): Likewise.
3898         (exp_downward_test_data): Likewise.
3899         (exp_upward_test_data): Likewise.
3900         (exp10_test_data): Likewise.
3901         (exp2_test_data): Likewise.
3902         (expm1_test_data): Likewise.
3903         (fabs_test_data): Likewise.
3904         (fdim_test_data): Likewise.
3905         (finite_test_data): Likewise.
3906         (floor_test_data): Likewise.
3907         (fma_test_data): Likewise.
3908         (fma_towardzero_test_data): Likewise.
3909         (fma_downward_test_data): Likewise.
3910         (fma_upward_test_data): Likewise.
3911         (fmax_test_data): Likewise.
3912         (fmin_test_data): Likewise.
3913         (fmod_test_data): Likewise.
3914         (fpclassify_test_data): Likewise.
3915         (frexp_test_data): Likewise.
3916         (gamma_test_data): Likewise.
3917         (hypot_test_data): Likewise.
3918         (ilogb_test_data): Likewise.
3919         (isfinite_test_data): Likewise.
3920         (isgreater_test_data): Likewise.
3921         (isgreaterequal_test_data): Likewise.
3922         (isinf_test_data): Likewise.
3923         (isless_test_data): Likewise.
3924         (islessequal_test_data): Likewise.
3925         (islessgreater_test_data): Likewise.
3926         (isnan_test_data): Likewise.
3927         (isnormal_test_data): Likewise.
3928         (issignaling_test_data): Likewise.
3929         (isunordered_test_data): Likewise.
3930         (j0_test_data): Likewise.
3931         (j1_test_data): Likewise.
3932         (jn_test_data): Likewise.
3933         (ldexp_test_data): Likewise.
3934         (lgamma_test_data): Likewise.
3935         (lrint_test_data): Likewise.
3936         (lrint_tonearest_test_data): Likewise.
3937         (lrint_towardzero_test_data): Likewise.
3938         (lrint_downward_test_data): Likewise.
3939         (lrint_upward_test_data): Likewise.
3940         (llrint_test_data): Likewise.
3941         (llrint_tonearest_test_data): Likewise.
3942         (llrint_towardzero_test_data): Likewise.
3943         (llrint_downward_test_data): Likewise.
3944         (llrint_upward_test_data): Likewise.
3945         (log_test_data): Likewise.
3946         (log10_test_data): Likewise.
3947         (log1p_test_data): Likewise.
3948         (log2_test_data): Likewise.
3949         (logb_test_data): Likewise.
3950         (logb_downward_test_data): Likewise.
3951         (lround_test_data): Likewise.
3952         (llround_test_data): Likewise.
3953         (modf_test_data): Likewise.
3954         (nearbyint_test_data): Likewise.
3955         (nextafter_test_data): Likewise.
3956         (nexttoward_test_data): Likewise.
3957         (pow_test_data): Likewise.
3958         (pow_tonearest_test_data): Likewise.
3959         (pow_towardzero_test_data): Likewise.
3960         (pow_downward_test_data): Likewise.
3961         (pow_upward_test_data): Likewise.
3962         (remainder_test_data): Likewise.
3963         (remainder_tonearest_test_data): Likewise.
3964         (remainder_towardzero_test_data): Likewise.
3965         (remainder_downward_test_data): Likewise.
3966         (remainder_upward_test_data): Likewise.
3967         (remquo_test_data): Likewise.
3968         (rint_test_data): Likewise.
3969         (rint_tonearest_test_data): Likewise.
3970         (rint_towardzero_test_data): Likewise.
3971         (rint_downward_test_data): Likewise.
3972         (rint_upward_test_data): Likewise.
3973         (round_test_data): Likewise.
3974         (scalb_test_data): Likewise.
3975         (scalbn_test_data): Likewise.
3976         (scalbln_test_data): Likewise.
3977         (signbit_test_data): Likewise.
3978         (sin_test_data): Likewise.
3979         (sin_tonearest_test_data): Likewise.
3980         (sin_towardzero_test_data): Likewise.
3981         (sin_downward_test_data): Likewise.
3982         (sin_upward_test_data): Likewise.
3983         (sincos_test_data): Likewise.
3984         (sinh_test_data): Likewise.
3985         (sinh_tonearest_test_data): Likewise.
3986         (sinh_towardzero_test_data): Likewise.
3987         (sinh_downward_test_data): Likewise.
3988         (sinh_upward_test_data): Likewise.
3989         (sqrt_test_data): Likewise.
3990         (tan_test_data): Likewise.
3991         (tan_tonearest_test_data): Likewise.
3992         (tan_towardzero_test_data): Likewise.
3993         (tan_downward_test_data): Likewise.
3994         (tan_upward_test_data): Likewise.
3995         (tanh_test_data): Likewise.
3996         (tgamma_test_data): Likewise.
3997         (trunc_test_data): Likewise.
3998         (y0_test_data): Likewise.
3999         (y1_test_data): Likewise.
4000         (yn_test_data): Likewise.
4001         (significand_test_data): Likewise.
4002
4003         * math/gen-libm-test.pl (@functions): Remove variable.
4004         (generate_testfile): Don't handle START and END lines.
4005         * math/libm-test.inc (START): New macro.
4006         (END): Likewise.
4007         (END_COMPLEX): Likewise.
4008         (acos_test): Use END macro without arguments.
4009         (acos_test_tonearest): Likewise.
4010         (acos_test_towardzero): Likewise.
4011         (acos_test_downward): Likewise.
4012         (acos_test_upward): Likewise.
4013         (acosh_test): Likewise.
4014         (asin_test): Likewise.
4015         (asin_test_tonearest): Likewise.
4016         (asin_test_towardzero): Likewise.
4017         (asin_test_downward): Likewise.
4018         (asin_test_upward): Likewise.
4019         (asinh_test): Likewise.
4020         (atan_test): Likewise.
4021         (atanh_test): Likewise.
4022         (atan2_test): Likewise.
4023         (cabs_test): Likewise.
4024         (cacos_test): Use END_COMPLEX macro without arguments.
4025         (cacosh_test): Likewise.
4026         (carg_test): Use END macro without arguments.
4027         (casin_test): Use END_COMPLEX macro without arguments.
4028         (casinh_test): Likewise.
4029         (catan_test): Likewise.
4030         (catanh_test): Likewise.
4031         (cbrt_test): Use END macro without arguments.
4032         (ccos_test): Use END_COMPLEX macro without arguments.
4033         (ccosh_test): Likewise.
4034         (ceil_test): Use END macro without arguments.
4035         (cexp_test): Use END_COMPLEX macro without arguments.
4036         (cimag_test): Use END macro without arguments.
4037         (clog_test): Use END_COMPLEX macro without arguments.
4038         (clog10_test): Likewise.
4039         (conj_test): Likewise.
4040         (copysign_test): Use END macro without arguments.
4041         (cos_test): Likewise.
4042         (cos_test_tonearest): Likewise.
4043         (cos_test_towardzero): Likewise.
4044         (cos_test_downward): Likewise.
4045         (cos_test_upward): Likewise.
4046         (cosh_test): Likewise.
4047         (cosh_test_tonearest): Likewise.
4048         (cosh_test_towardzero): Likewise.
4049         (cosh_test_downward): Likewise.
4050         (cosh_test_upward): Likewise.
4051         (cpow_test): Use END_COMPLEX macro without arguments.
4052         (cproj_test): Likewise.
4053         (creal_test): Use END macro without arguments.
4054         (csin_test): Use END_COMPLEX macro without arguments.
4055         (csinh_test): Likewise.
4056         (csqrt_test): Likewise.
4057         (ctan_test): Likewise.
4058         (ctan_test_tonearest): Likewise.
4059         (ctan_test_towardzero): Likewise.
4060         (ctan_test_downward): Likewise.
4061         (ctan_test_upward): Likewise.
4062         (ctanh_test): Likewise.
4063         (ctanh_test_tonearest): Likewise.
4064         (ctanh_test_towardzero): Likewise.
4065         (ctanh_test_downward): Likewise.
4066         (ctanh_test_upward): Likewise.
4067         (erf_test): Use END macro without arguments.
4068         (erfc_test): Likewise.
4069         (exp_test): Likewise.
4070         (exp_test_tonearest): Likewise.
4071         (exp_test_towardzero): Likewise.
4072         (exp_test_downward): Likewise.
4073         (exp_test_upward): Likewise.
4074         (exp10_test): Likewise.
4075         (exp2_test): Likewise.
4076         (expm1_test): Likewise.
4077         (fabs_test): Likewise.
4078         (fdim_test): Likewise.
4079         (finite_test): Likewise.
4080         (floor_test): Likewise.
4081         (fma_test): Likewise.
4082         (fma_test_towardzero): Likewise.
4083         (fma_test_downward): Likewise.
4084         (fma_test_upward): Likewise.
4085         (fmax_test): Likewise.
4086         (fmin_test): Likewise.
4087         (fmod_test): Likewise.
4088         (fpclassify_test): Likewise.
4089         (frexp_test): Likewise.
4090         (gamma_test): Likewise.
4091         (hypot_test): Likewise.
4092         (ilogb_test): Likewise.
4093         (isfinite_test): Likewise.
4094         (isgreater_test): Likewise.
4095         (isgreaterequal_test): Likewise.
4096         (isinf_test): Likewise.
4097         (isless_test): Likewise.
4098         (islessequal_test): Likewise.
4099         (islessgreater_test): Likewise.
4100         (isnan_test): Likewise.
4101         (isnormal_test): Likewise.
4102         (issignaling_test): Likewise.
4103         (isunordered_test): Likewise.
4104         (j0_test): Likewise.
4105         (j1_test): Likewise.
4106         (jn_test): Likewise.
4107         (ldexp_test): Likewise.
4108         (lgamma_test): Likewise.
4109         (lrint_test): Likewise.
4110         (lrint_test_tonearest): Likewise.
4111         (lrint_test_towardzero): Likewise.
4112         (lrint_test_downward): Likewise.
4113         (lrint_test_upward): Likewise.
4114         (llrint_test): Likewise.
4115         (llrint_test_tonearest): Likewise.
4116         (llrint_test_towardzero): Likewise.
4117         (llrint_test_downward): Likewise.
4118         (llrint_test_upward): Likewise.
4119         (log_test): Likewise.
4120         (log10_test): Likewise.
4121         (log1p_test): Likewise.
4122         (log2_test): Likewise.
4123         (logb_test): Likewise.
4124         (logb_test_downward): Likewise.
4125         (lround_test): Likewise.
4126         (llround_test): Likewise.
4127         (modf_test): Likewise.
4128         (nearbyint_test): Likewise.
4129         (nextafter_test): Likewise.
4130         (nexttoward_test): Likewise.
4131         (pow_test): Likewise.
4132         (pow_test_tonearest): Likewise.
4133         (pow_test_towardzero): Likewise.
4134         (pow_test_downward): Likewise.
4135         (pow_test_upward): Likewise.
4136         (remainder_test): Likewise.
4137         (remainder_test_tonearest): Likewise.
4138         (remainder_test_towardzero): Likewise.
4139         (remainder_test_downward): Likewise.
4140         (remainder_test_upward): Likewise.
4141         (remquo_test): Likewise.
4142         (rint_test): Likewise.
4143         (rint_test_tonearest): Likewise.
4144         (rint_test_towardzero): Likewise.
4145         (rint_test_downward): Likewise.
4146         (rint_test_upward): Likewise.
4147         (round_test): Likewise.
4148         (scalb_test): Likewise.
4149         (scalbn_test): Likewise.
4150         (scalbln_test): Likewise.
4151         (signbit_test): Likewise.
4152         (sin_test): Likewise.
4153         (sin_test_tonearest): Likewise.
4154         (sin_test_towardzero): Likewise.
4155         (sin_test_downward): Likewise.
4156         (sin_test_upward): Likewise.
4157         (sincos_test): Likewise.
4158         (sinh_test): Likewise.
4159         (sinh_test_tonearest): Likewise.
4160         (sinh_test_towardzero): Likewise.
4161         (sinh_test_downward): Likewise.
4162         (sinh_test_upward): Likewise.
4163         (sqrt_test): Likewise.
4164         (tan_test): Likewise.
4165         (tan_test_tonearest): Likewise.
4166         (tan_test_towardzero): Likewise.
4167         (tan_test_downward): Likewise.
4168         (tan_test_upward): Likewise.
4169         (tanh_test): Likewise.
4170         (tgamma_test): Likewise.
4171         (trunc_test): Likewise.
4172         (y0_test): Likewise.
4173         (y1_test): Likewise.
4174         (yn_test): Likewise.
4175         (significand_test): Likewise.
4176
4177 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
4178
4179         [BZ #15381]
4180         * libio/genops.c (_IO_no_init): Initialize wide struct info.
4181
4182 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4183
4184         [BZ #14894]
4185         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
4186         __ppc_mdoio and __ppc_mdoom.
4187         * manual/platform.texi: Document new functions __ppc_yield,
4188         __ppc_mdoio and __ppc_mdoom.
4189
4190 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
4191
4192         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
4193         (main): Mention "tls" pseudo-hwcap is legacy.
4194         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
4195
4196 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4197
4198         * math/gen-libm-test.pl (parse_args): Output only string of
4199         arguments as text for test name, not full call or descriptions of
4200         tests for extra outputs.
4201         (generate_testfile): Do not pass function name to parse_args.
4202         Generate this_func variable from START.
4203         * math/libm-test.inc (struct test_f_f_data): Rename test_name
4204         field to arg_str.
4205         (struct test_ff_f_data): Likewise.
4206         (test_ff_f_data_nexttoward): Likewise.
4207         (struct test_fi_f_data): Likewise.
4208         (struct test_fl_f_data): Likewise.
4209         (struct test_if_f_data): Likewise.
4210         (struct test_fff_f_data): Likewise.
4211         (struct test_c_f_data): Likewise.
4212         (struct test_f_f1_data): Likewise.  Remove field extra_name.
4213         (struct test_fF_f1_data): Likewise.
4214         (struct test_ffI_f1_data): Likewise.
4215         (struct test_c_c_data): Rename test_name field to arg_str.
4216         (struct test_cc_c_data): Likewise.
4217         (struct test_f_i_data): Likewise.
4218         (struct test_ff_i_data): Likewise.
4219         (struct test_f_l_data): Likewise.
4220         (struct test_f_L_data): Likewise.
4221         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
4222         and extra2_name.
4223         (COMMON_TEST_SETUP): New macro.
4224         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4225         (COMMON_TEST_CLEANUP): Likewise.
4226         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4227         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
4228         macros.
4229         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
4230         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
4231         macros.
4232         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
4233         (RUN_TEST_fff_f): Take argument string.  Call new setup and
4234         cleanup macros.
4235         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
4236         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
4237         macros.
4238         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
4239         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
4240         macros.
4241         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4242         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
4243         cleanup macros.
4244         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4245         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
4246         cleanup macros.
4247         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4248         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
4249         cleanup macros.
4250         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4251         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
4252         macros.
4253         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
4254         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
4255         macros.
4256         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
4257         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
4258         macros.
4259         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
4260         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
4261         cleanup macros.
4262         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
4263         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
4264         cleanup macros.
4265         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
4266         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
4267         macros.
4268         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
4269         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
4270         cleanup macros.
4271         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
4272         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
4273         macros.
4274         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
4275         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
4276         macros.
4277         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
4278         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
4279         cleanup macros.
4280         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
4281
4282 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4283
4284         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
4285         to _sifields.sigfault.
4286         (si_addr_lsb): Define new macro.
4287         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
4288         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4289         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
4290
4291 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
4292
4293         [BZ #15441]
4294         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
4295         returns -1.
4296         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
4297         null return -1.
4298         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
4299         loading the domain.
4300
4301 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4302
4303         * math/gen-libm-test.pl (parse_args): Do not include expected
4304         result in test name.
4305         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
4306         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4307         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4308         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4309         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4311
4312 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4313
4314         * benchtests/Makefile: Sort function entries.
4315
4316         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
4317         tanh, asinh, acosh, atanh.
4318         * benchtests/acos-inputs: New file.
4319         * benchtests/acosh-inputs: New file.
4320         * benchtests/asin-inputs: New file.
4321         * benchtests/asinh-inputs: New file.
4322         * benchtests/atanh-inputs: New file.
4323         * benchtests/cosh-inputs: New file.
4324         * benchtests/log-inputs: New file.
4325         * benchtests/sinh-inputs: New file.
4326         * benchtests/tanh-inputs: New file.
4327
4328 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
4329
4330         [BZ #15339]
4331         * posix/tst-getaddrinfo4.c: New test.
4332         * posix/Makefile (tests): Add it.
4333
4334 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4335
4336         [BZ #15339]
4337         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
4338         when no services were used.
4339         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
4340         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
4341
4342 2013-05-21  Andreas Schwab  <schwab@suse.de>
4343
4344         [BZ #15014]
4345         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
4346         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
4347         successful.
4348         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
4349         redundant variable declarations and reallocation of buffer when
4350         parsing as IPv6 address.  Always set NSS status when called from
4351         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
4352         buffer too small.  Correct computation of needed size.
4353         * nss/Makefile (tests): Add test-digits-dots.
4354         * nss/test-digits-dots.c: New test.
4355
4356 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4357
4358         * benchtests/Makefile: Remove instructions for adding
4359         benchmark tests.
4360         * benchtests/README: New file to explain how to execute and
4361         enhance the benchmark tests.
4362
4363 2013-05-21  Andreas Schwab  <schwab@suse.de>
4364
4365         [BZ #15493]
4366         * setjmp/Makefile (tests): Add tst-sigsetjmp.
4367         * setjmp/tst-sigsetjmp.c: New test.
4368
4369 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4370
4371         * sysdeps/x86_64/memset.S (memset): New implementation.
4372         (__bzero): Likewise.
4373         (__memset_tail): New function.
4374
4375 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4376
4377         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
4378         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
4379         __memcpy_sse2_unaligned ifunc selection.
4380         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
4381         Add memcpy-sse2-unaligned.S.
4382         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4383         Add: __memcpy_sse2_unaligned.
4384
4385 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
4386
4387         [BZ #15490]
4388         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4389         math_force_eval before restoring floating-point envrionment.
4390         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
4391         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4392         Likewise.
4393         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
4394         <math_private.h>.
4395         (__nearbyintl): Use math_force_eval before restoring
4396         floating-point environment.
4397         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
4398
4399         * math/gen-libm-test.pl (special_functions): Remove.
4400         (parse_args): Don't handle TEST_extra.  Handle functions with no
4401         return value.
4402         * math/libm-test.inc (struct test_sincos_data): Replace with
4403         struct test_fFF_11_data.
4404         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
4405         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
4406         (sincos_test_data): Change element type to struct
4407         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
4408         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
4409         RUN_TEST_LOOP_sincos.
4410         * math/README.libm-test: Don't mention special handling of
4411         individual functions.
4412         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
4413         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4414         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4415         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4416         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4418
4419         * math/gen-libm-test.pl (get_variable): Remove function.
4420         (parse_args): Don't show pointer parameters to call in test
4421         names.  Use "extra output N" in test names for extra outputs
4422         rather than naming variables.
4423
4424 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
4425
4426         [BZ #15488]
4427         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
4428         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
4429         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
4430         double tests.
4431         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
4432         disable.
4433         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
4434         check_long_double.
4435
4436         * math/gen-libm-test.pl (@tests): Remove variable.
4437         ($count): Likewise.
4438         (new_test): Remove function.
4439         (show_exceptions): New function.
4440         (special_functions): Use show_exceptions instead of new_test.
4441         (parse_args): Likewise.
4442         (generate_testfile): Pass only function name in generated call to
4443         print_max_error or print_complex_max_error.
4444         (get_ulps): Do not handle complex tests specially.
4445         (output_test): Rename to ...
4446         (get_all_ulps_for_test): ... this.  Return a string rather than
4447         printing to a file.  Require ulps to be present.
4448         (output_ulps): Generate arrays rather than #defines.
4449         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
4450         (struct ulp_data): New type.
4451         (BUILD_COMPLEX_ULP): Remove macro.
4452         (compare_ulp_data): New function.
4453         (find_ulps): Likewise.
4454         (find_test_ulps): Likewise.
4455         (find_function_ulps): Likewise.
4456         (find_complex_function_ulps): Likewise.
4457         (print_max_error): Determine allowed ulps using
4458         find_function_ulps.
4459         (print_complex_max_error): Determine allowed ulps using
4460         find_complex_function_ulps.
4461         (check_float_internal): Determine max ulps using find_test_ulps.
4462         (check_float): Do not take max_ulp parameter.  Update call to
4463         check_float_internal.
4464         (check_complex): Likewise.
4465         (check_int): Do not take max_ulp parameter.
4466         (check_long): Likewise.
4467         (check_bool): Likewise.
4468         (check_longlong): Likewise.
4469         (struct test_f_f_data): Remove max_ulp field.
4470         (struct test_ff_f_data): Likewise.
4471         (struct test_ff_f_data_nexttoward): Likewise.
4472         (struct test_fi_f_data): Likewise.
4473         (struct test_fl_f_data): Likewise.
4474         (struct test_if_f_data): Likewise.
4475         (struct test_fff_f_data): Likewise.
4476         (struct test_c_f_data): Likewise.
4477         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
4478         (struct test_fF_f1_data): Likewise.
4479         (struct test_ffI_f1_data): Likewise.
4480         (struct test_c_c_data): Remove max_ulp field.
4481         (struct test_cc_c_data): Likewise.
4482         (struct test_f_i_data): Likewise.
4483         (struct test_ff_i_data): Likewise.
4484         (struct test_f_l_data): Likewise.
4485         (struct test_f_L_data): Likewise.
4486         (struct test_sincos_data): Likewise.
4487         (RUN_TEST_f_f): Do not handle ulps.
4488         (RUN_TEST_LOOP_f_f): Likewise.
4489         (RUN_TEST_2_f): Likewise.
4490         (RUN_TEST_LOOP_2_f): Likewise.
4491         (RUN_TEST_fff_f): Likewise.
4492         (RUN_TEST_LOOP_fff_f): Likewise.
4493         (RUN_TEST_c_f): Likewise.
4494         (RUN_TEST_LOOP_c_f): Likewise.
4495         (RUN_TEST_f_f1): Likewise.
4496         (RUN_TEST_LOOP_f_f1): Likewise.
4497         (RUN_TEST_fF_f1): Likewise.
4498         (RUN_TEST_LOOP_fF_f1): Likewise.
4499         (RUN_TEST_fI_f1): Likewise.
4500         (RUN_TEST_LOOP_fI_f1): Likewise.
4501         (RUN_TEST_ffI_f1): Likewise.
4502         (RUN_TEST_LOOP_ffI_f1): Likewise.
4503         (RUN_TEST_c_c): Likewise.
4504         (RUN_TEST_LOOP_c_c): Likewise.
4505         (RUN_TEST_cc_c): Likewise.
4506         (RUN_TEST_LOOP_cc_c): Likewise.
4507         (RUN_TEST_f_i): Likewise.
4508         (RUN_TEST_LOOP_f_i): Likewise.
4509         (RUN_TEST_f_i_tg): Likewise.
4510         (RUN_TEST_LOOP_f_i_tg): Likewise.
4511         (RUN_TEST_ff_i_tg): Likewise.
4512         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4513         (RUN_TEST_f_b): Likewise.
4514         (RUN_TEST_LOOP_f_b): Likewise.
4515         (RUN_TEST_f_b_tg): Likewise.
4516         (RUN_TEST_LOOP_f_b_tg): Likewise.
4517         (RUN_TEST_f_l): Likewise.
4518         (RUN_TEST_LOOP_f_l): Likewise.
4519         (RUN_TEST_f_L): Likewise.
4520         (RUN_TEST_LOOP_f_L): Likewise.
4521         (RUN_TEST_sincos): Likewise.
4522         (RUN_TEST_LOOP_sincos): Likewise.
4523
4524 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
4525
4526         [BZ #15480]
4527         [BZ #15485]
4528         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
4529         main case of finite arguments, set rounding mode to FE_TONEAREST
4530         and discard exceptions.
4531         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
4532         exceptions.
4533         (remainder_tonearest_test_data): New variable.
4534         (remainder_test_tonearest): New function.
4535         (remainder_towardzero_test_data): New variable.
4536         (remainder_test_towardzero): New function.
4537         (remainder_downward_test_data): New variable.
4538         (remainder_test_downward): New function.
4539         (remainder_upward_test_data): New variable.
4540         (remainder_test_upward): New function.
4541         (main): Call the new test functions.
4542
4543         * math/libm-test.inc (struct test_f_f1_data): Remove field
4544         extra_init.
4545         (struct test_fF_f1_data): Likewise.
4546         (struct test_ffI_f1_data): Likewise.
4547         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
4548         based on value of EXTRA_EXPECTED.
4549         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4550         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
4551         EXTRA_VAR based on value of EXTRA_EXPECTED.
4552         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4553         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
4554         EXTRA_VAR based on value of EXTRA_EXPECTED.
4555         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4556         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
4557         EXTRA_VAR based on value of EXTRA_EXPECTED.
4558         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4559         * math/gen-libm-test.pl (parse_args): Don't output initializers
4560         for extra output values.
4561
4562         * math/libm-test.inc (check_int): Expect result to be exactly
4563         equal to expected value and do not handle ulps.
4564         (check_long): Likewise.
4565         (check_longlong): Likewise.
4566
4567         * math/libm-test.inc (ceil_test_data): Test for "inexact"
4568         exceptions.
4569         (cimag_test_data): Likewise.
4570         (conj_test_data): Likewise.
4571         (copysign_test_data): Likewise.
4572         (cproj_test_data): Likewise.
4573         (creal_test_data): Likewise.
4574         (fabs_test_data): Likewise.
4575         (fdim_test_data): Likewise.
4576         (finite_test_data): Likewise.
4577         (floor_test_data): Likewise.
4578         (fmax_test_data): Likewise.
4579         (fmin_test_data): Likewise.
4580         (fmod_test_data): Likewise.
4581         (fpclassify_test_data): Likewise.
4582         (frexp_test_data): Likewise.
4583         (ilogb_test_data): Likewise.
4584         (isfinite_test_data): Likewise.
4585         (isgreater_test_data): Likewise.
4586         (isgreaterequal_test_data): Likewise.
4587         (isinf_test_data): Likewise.
4588         (isless_test_data): Likewise.
4589         (islessequal_test_data): Likewise.
4590         (islessgreater_test_data): Likewise.
4591         (isnan_test_data): Likewise.
4592         (isnormal_test_data): Likewise.
4593         (issignaling_test_data): Likewise.
4594         (isunordered_test_data): Likewise.
4595         (ldexp_test_data): Likewise.
4596         (lrint_test_data): Likewise.
4597         (lrint_test_data) [TEST_FLOAT]: Disable one test.
4598         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
4599         (lrint_tonearest_test_data): Test for "inexact" exceptions.
4600         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4601         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
4602         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4603         test input.
4604         (lrint_towardzero_test_data): Test for "inexact" exceptions.
4605         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4606         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
4607         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
4608         that test input.
4609         (lrint_downward_test_data): Test for "inexact" exceptions.
4610         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
4611         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
4612         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4613         test input.
4614         (lrint_upward_test_data): Test for "inexact" exceptions.
4615         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
4616         test input.
4617         (llrint_test_data): Test for "inexact" exceptions.
4618         (llrint_test_data) [TEST_FLOAT]: Disable one test.
4619         (llrint_tonearest_test_data): Test for "inexact" exceptions.
4620         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4621         (llrint_towardzero_test_data): Test for "inexact" exceptions.
4622         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4623         (llrint_downward_test_data): Test for "inexact" exceptions.
4624         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
4625         (llrint_upward_test_data): Test for "inexact" exceptions.
4626         (logb_test_data): Likewise.
4627         (logb_downward_test_data): Likewise.
4628         (nextafter_test_data): Likewise.
4629         (nexttoward_test_data): Likewise.
4630         (remainder_test_data): Likewise.
4631         (remquo_test_data): Likewise.
4632         (scalbn_test_data): Likewise.
4633         (scalbln_test_data): Likewise.
4634         (signbit_test_data): Likewise.
4635         (sqrt_test_data): Likewise.
4636         (significand_test_data): Likewise.
4637
4638 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4639
4640         [BZ #15424]
4641         * benchtests/bench-modf.c (struct args): Mark arg0 as
4642         volatile.
4643         * scripts/bench.pl: Mark members of struct args as volatile.
4644
4645 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4646
4647         [BZ # 15497]
4648         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
4649         negative infinity on POWER6 or lower.
4650         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
4651
4652 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
4653
4654         [BZ #15442]
4655         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
4656         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
4657         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
4658         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
4659         (_FP_SETQNAN): New macro.
4660         (_FP_SETQNAN_SEMIRAW): Likewise.
4661         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
4662         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
4663         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
4664         (FP_EXTEND): Use _FP_FRAC_SNANP.
4665         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
4666         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
4667         into account.
4668         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
4669         New macro.
4670         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
4671         Likewise.
4672
4673 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4674
4675         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
4676         with DIVIDE_BY_ZERO_EXCEPTION.
4677         (gamma_test_data): Likewise.
4678         (lgamma_test_data): Likewise.
4679         (log_test_data): Likewise.
4680         (log10_test_data): Likewise.
4681         (log2_test_data): Likewise.
4682         (tgamma_test_data): Likewise.
4683
4684         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
4685         (acos_test_tonearest): Likewise.
4686         (acos_test_towardzero): Likewise.
4687         (acos_test_downward): Likewise.
4688         (acos_test_upward): Likewise.
4689         (acosh_test): Likewise.
4690         (asin_test): Likewise.
4691         (asin_test_tonearest): Likewise.
4692         (asin_test_towardzero): Likewise.
4693         (asin_test_downward): Likewise.
4694         (asin_test_upward): Likewise.
4695         (asinh_test): Likewise.
4696         (atan_test): Likewise.
4697         (atanh_test): Likewise.
4698         (atan2_test): Likewise.
4699         (cabs_test): Likewise.
4700         (cacos_test): Likewise.
4701         (cacosh_test): Likewise.
4702         (casin_test): Likewise.
4703         (casinh_test): Likewise.
4704         (catan_test): Likewise.
4705         (catanh_test): Likewise.
4706         (cbrt_test): Likewise.
4707         (ccos_test): Likewise.
4708         (ccosh_test): Likewise.
4709         (cexp_test): Likewise.
4710         (clog_test): Likewise.
4711         (clog10_test): Likewise.
4712         (cos_test): Likewise.
4713         (cos_test_tonearest): Likewise.
4714         (cos_test_towardzero): Likewise.
4715         (cos_test_downward): Likewise.
4716         (cos_test_upward): Likewise.
4717         (cosh_test): Likewise.
4718         (cosh_test_tonearest): Likewise.
4719         (cosh_test_towardzero): Likewise.
4720         (cosh_test_downward): Likewise.
4721         (cosh_test_upward): Likewise.
4722         (cpow_test): Likewise.
4723         (csin_test): Likewise.
4724         (csinh_test): Likewise.
4725         (csqrt_test): Likewise.
4726         (ctan_test): Likewise.
4727         (ctan_test_tonearest): Likewise.
4728         (ctan_test_towardzero): Likewise.
4729         (ctan_test_downward): Likewise.
4730         (ctan_test_upward): Likewise.
4731         (ctanh_test): Likewise.
4732         (ctanh_test_tonearest): Likewise.
4733         (ctanh_test_towardzero): Likewise.
4734         (ctanh_test_downward): Likewise.
4735         (ctanh_test_upward): Likewise.
4736         (erf_test): Likewise.
4737         (erfc_test): Likewise.
4738         (exp_test): Likewise.
4739         (exp_test_tonearest): Likewise.
4740         (exp_test_towardzero): Likewise.
4741         (exp_test_downward): Likewise.
4742         (exp_test_upward): Likewise.
4743         (exp10_test): Likewise.
4744         (exp2_test): Likewise.
4745         (expm1_test): Likewise.
4746         (fmod_test): Likewise.
4747         (gamma_test): Likewise.
4748         (hypot_test): Likewise.
4749         (j0_test): Likewise.
4750         (j1_test): Likewise.
4751         (jn_test): Likewise.
4752         (lgamma_test): Likewise.
4753         (log_test): Likewise.
4754         (log10_test): Likewise.
4755         (log1p_test): Likewise.
4756         (log2_test): Likewise.
4757         (logb_test_downward): Likewise.
4758         (pow_test): Likewise.
4759         (pow_test_tonearest): Likewise.
4760         (pow_test_towardzero): Likewise.
4761         (pow_test_downward): Likewise.
4762         (pow_test_upward): Likewise.
4763         (remainder_test): Likewise.
4764         (remquo_test): Likewise.
4765         (sin_test): Likewise.
4766         (sin_test_tonearest): Likewise.
4767         (sin_test_towardzero): Likewise.
4768         (sin_test_downward): Likewise.
4769         (sin_test_upward): Likewise.
4770         (sincos_test): Likewise.
4771         (sinh_test): Likewise.
4772         (sinh_test_tonearest): Likewise.
4773         (sinh_test_towardzero): Likewise.
4774         (sinh_test_downward): Likewise.
4775         (sinh_test_upward): Likewise.
4776         (sqrt_test): Likewise.
4777         (tan_test): Likewise.
4778         (tan_test_tonearest): Likewise.
4779         (tan_test_towardzero): Likewise.
4780         (tan_test_downward): Likewise.
4781         (tan_test_upward): Likewise.
4782         (tanh_test): Likewise.
4783         (tgamma_test): Likewise.
4784         (y0_test): Likewise.
4785         (y1_test): Likewise.
4786         (yn_test): Likewise.
4787
4788         * math/gen-libm-test.pl (adjust_arg): Remove function.
4789         (special_function): Remove argument $in_func.  Only handle
4790         generating output for tables of tests, not inside functions.
4791         (parse_args): Likewise.
4792         (generate_testfile): Remove variable $in_func.  Update call to
4793         parse_args.
4794         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
4795         (MINUS_ZERO_INIT): Rename macro to minus_zero.
4796         (PLUS_INFTY_INIT): Rename macro to plus_infty.
4797         (MINUS_INFTY_INIT): Rename macro to minus_infty.
4798         (QNAN_VALUE_INIT): Rename macro to qnan_value.
4799         (MAX_VALUE_INIT): Rename macro to max_value.
4800         (MIN_VALUE_INIT): Rename macro to min_value.
4801         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
4802         (plus_zero): Remove variable.
4803         (minus_zero): Likewise.
4804         (plus_infty): Likewise.
4805         (minus_infty): Likewise.
4806         (qnan_value): Likewise.
4807         (max_value): Likewise.
4808         (min_value): Likewise.
4809         (min_subnorm_value): Likewise.
4810
4811 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4812
4813         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
4814         uint64_t or uint32_t usage.
4815         * crypt/sha256-block.c: Likewise.
4816         * crypt/sha256-crypt.c: Likewise.
4817         * crypt/sha256.c: Likewise.
4818         * crypt/sha512-block.c: Likewise.
4819         * crypt/sha512-crypt.c: Likewise.
4820         * crypt/sha512.c: Likewise.
4821         * debug/backtrace-tst.c: Likewise.
4822         * debug/pcprofiledump.c: Likewise.
4823         * elf/cache.c: Likewise.
4824         * elf/dl-cache.c: Likewise.
4825         * elf/dl-misc.c: Likewise.
4826         * elf/dl-profile.c: Likewise.
4827         * elf/dl-support.c: Likewise.
4828         * elf/ldconfig.c: Likewise.
4829         * elf/sprof.c: Likewise.
4830         * iconv/dummy-repertoire.c: Likewise.
4831         * iconv/iconv_charmap.c: Likewise.
4832         * iconv/skeleton.c: Likewise.
4833         * iconvdata/8bit-generic.c: Likewise.
4834         * iconvdata/cp737.h: Likewise.
4835         * iconvdata/cp775.h: Likewise.
4836         * iconvdata/ibm1008.h: Likewise.
4837         * iconvdata/ibm1025.h: Likewise.
4838         * iconvdata/ibm1046.h: Likewise.
4839         * iconvdata/ibm1097.h: Likewise.
4840         * iconvdata/ibm1112.h: Likewise.
4841         * iconvdata/ibm1122.h: Likewise.
4842         * iconvdata/ibm1123.h: Likewise.
4843         * iconvdata/ibm1124.h: Likewise.
4844         * iconvdata/ibm1129.h: Likewise.
4845         * iconvdata/ibm1130.h: Likewise.
4846         * iconvdata/ibm1132.h: Likewise.
4847         * iconvdata/ibm1133.h: Likewise.
4848         * iconvdata/ibm1137.h: Likewise.
4849         * iconvdata/ibm1140.h: Likewise.
4850         * iconvdata/ibm1141.h: Likewise.
4851         * iconvdata/ibm1142.h: Likewise.
4852         * iconvdata/ibm1143.h: Likewise.
4853         * iconvdata/ibm1144.h: Likewise.
4854         * iconvdata/ibm1145.h: Likewise.
4855         * iconvdata/ibm1146.h: Likewise.
4856         * iconvdata/ibm1147.h: Likewise.
4857         * iconvdata/ibm1148.h: Likewise.
4858         * iconvdata/ibm1149.h: Likewise.
4859         * iconvdata/ibm1153.h: Likewise.
4860         * iconvdata/ibm1154.h: Likewise.
4861         * iconvdata/ibm1155.h: Likewise.
4862         * iconvdata/ibm1156.h: Likewise.
4863         * iconvdata/ibm1157.h: Likewise.
4864         * iconvdata/ibm1158.h: Likewise.
4865         * iconvdata/ibm1160.h: Likewise.
4866         * iconvdata/ibm1161.h: Likewise.
4867         * iconvdata/ibm1162.h: Likewise.
4868         * iconvdata/ibm1163.h: Likewise.
4869         * iconvdata/ibm1164.h: Likewise.
4870         * iconvdata/ibm1166.h: Likewise.
4871         * iconvdata/ibm1167.h: Likewise.
4872         * iconvdata/ibm12712.h: Likewise.
4873         * iconvdata/ibm1390.h: Likewise.
4874         * iconvdata/ibm1399.h: Likewise.
4875         * iconvdata/ibm16804.h: Likewise.
4876         * iconvdata/ibm4517.h: Likewise.
4877         * iconvdata/ibm4899.h: Likewise.
4878         * iconvdata/ibm4909.h: Likewise.
4879         * iconvdata/ibm4971.h: Likewise.
4880         * iconvdata/ibm5347.h: Likewise.
4881         * iconvdata/ibm803.h: Likewise.
4882         * iconvdata/ibm856.h: Likewise.
4883         * iconvdata/ibm901.h: Likewise.
4884         * iconvdata/ibm902.h: Likewise.
4885         * iconvdata/ibm9030.h: Likewise.
4886         * iconvdata/ibm9066.h: Likewise.
4887         * iconvdata/ibm921.h: Likewise.
4888         * iconvdata/ibm922.h: Likewise.
4889         * iconvdata/ibm9448.h: Likewise.
4890         * iconvdata/isiri-3342.h: Likewise.
4891         * iconvdata/jis0201.h: Likewise.
4892         * include/link.h: Likewise.
4893         * include/netdb.h: Likewise.
4894         * inet/check_native.c: Likewise.
4895         * inet/check_pf.c: Likewise.
4896         * inet/getipv4sourcefilter.c: Likewise.
4897         * inet/getnameinfo.c: Likewise.
4898         * inet/getsourcefilter.c: Likewise.
4899         * inet/htonl.c: Likewise.
4900         * inet/setipv4sourcefilter.c: Likewise.
4901         * inet/setsourcefilter.c: Likewise.
4902         * inet/test-inet6_opt.c: Likewise.
4903         * inet/tst-network.c: Likewise.
4904         * locale/C-collate.c: Likewise.
4905         * locale/C-ctype.c: Likewise.
4906         * locale/C-time.c: Likewise.
4907         * locale/C-translit.h: Likewise.
4908         * locale/loadarchive.c: Likewise.
4909         * locale/programs/3level.h: Likewise.
4910         * locale/programs/charmap.c: Likewise.
4911         * locale/programs/charmap.h: Likewise.
4912         * locale/programs/ld-address.c: Likewise.
4913         * locale/programs/ld-collate.c: Likewise.
4914         * locale/programs/ld-ctype.c: Likewise.
4915         * locale/programs/ld-identification.c: Likewise.
4916         * locale/programs/ld-measurement.c: Likewise.
4917         * locale/programs/ld-messages.c: Likewise.
4918         * locale/programs/ld-monetary.c: Likewise.
4919         * locale/programs/ld-name.c: Likewise.
4920         * locale/programs/ld-numeric.c: Likewise.
4921         * locale/programs/ld-paper.c: Likewise.
4922         * locale/programs/ld-telephone.c: Likewise.
4923         * locale/programs/ld-time.c: Likewise.
4924         * locale/programs/linereader.c: Likewise.
4925         * locale/programs/locale.c: Likewise.
4926         * locale/programs/locarchive.c: Likewise.
4927         * locale/programs/locfile.h: Likewise.
4928         * locale/programs/repertoire.c: Likewise.
4929         * locale/programs/simple-hash.c: Likewise.
4930         * locale/programs/simple-hash.h: Likewise.
4931         * malloc/memusage.c: Likewise.
4932         * malloc/memusagestat.c: Likewise.
4933         * nis/nis_defaults.c: Likewise.
4934         * nis/nis_hash.c: Likewise.
4935         * nis/nis_print.c: Likewise.
4936         * nis/nis_xdr.c: Likewise.
4937         * nscd/connections.c: Likewise.
4938         * nscd/hstcache.c: Likewise.
4939         * nscd/nscd_gethst_r.c: Likewise.
4940         * nscd/nscd_getserv_r.c: Likewise.
4941         * nscd/nscd_helper.c: Likewise.
4942         * nscd/servicescache.c: Likewise.
4943         * nss/makedb.c: Likewise.
4944         * nss/nss_db/db-XXX.c: Likewise.
4945         * nss/nss_db/db-initgroups.c: Likewise.
4946         * nss/nss_db/db-netgrp.c: Likewise.
4947         * nss/nss_files/files-network.c: Likewise.
4948         * nss/nss_files/files-parse.c: Likewise.
4949         * posix/bug-regex5.c: Likewise.
4950         * posix/fnmatch_loop.c: Likewise.
4951         * posix/regcomp.c: Likewise.
4952         * posix/regexec.c: Likewise.
4953         * posix/tst-rfc3484-2.c: Likewise.
4954         * posix/tst-rfc3484-3.c: Likewise.
4955         * posix/tst-rfc3484.c: Likewise.
4956         * resolv/nss_dns/dns-canon.c: Likewise.
4957         * resolv/nss_dns/dns-network.c: Likewise.
4958         * resolv/res_init.c: Likewise.
4959         * resolv/res_mkquery.c: Likewise.
4960         * resolv/tst-aton.c: Likewise.
4961         * stdlib/cxa_atexit.c: Likewise.
4962         * stdlib/cxa_finalize.c: Likewise.
4963         * stdlib/gen-fpioconst.c: Likewise.
4964         * stdlib/strtol_l.c: Likewise.
4965         * string/tst-endian.c: Likewise.
4966         * sunrpc/auth_des.c: Likewise.
4967         * sunrpc/clnt_udp.c: Likewise.
4968         * sunrpc/rtime.c: Likewise.
4969         * sunrpc/svcauth_des.c: Likewise.
4970         * sunrpc/xdr.c: Likewise.
4971         * sunrpc/xdr_intXX_t.c: Likewise.
4972         * sunrpc/xdr_rec.c: Likewise.
4973         * sysdeps/generic/ldconfig.h: Likewise.
4974         * sysdeps/generic/ldsodefs.h: Likewise.
4975         * sysdeps/generic/memusage.h: Likewise.
4976         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
4977         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
4978         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
4979         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
4980         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
4981         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4982         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
4983         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
4984         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
4985         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4986         * sysdeps/posix/getaddrinfo.c: Likewise.
4987         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4988         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4989         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
4990         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4991         * sysdeps/powerpc/test-gettimebase.c: Likewise.
4992         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
4993         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
4994         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
4995         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
4996         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
4997         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4998         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4999         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
5000         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
5001         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
5002         * sysdeps/x86_64/dl-tls.h: Likewise.
5003         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
5004         * time/alt_digit.c: Likewise.
5005         * time/era.c: Likewise.
5006         * wcsmbs/tst-c16c32-1.c: Likewise.
5007
5008 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5009
5010         * math/libm-test.inc (struct test_sincos_data): New type.
5011         (RUN_TEST_LOOP_sincos): New macro.
5012         (sincos_test_data): New variable.
5013         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
5014
5015 2013-05-16  Richard Henderson  <rth@redhat.com>
5016
5017         * math/atest-exp2.c (LIMB64): New macro.
5018         (CONSTSZ): New macro.
5019         (mp_exp1, mp_exp_m1, mp_log2): New variables.
5020         (hexdig): Move ...
5021         (print_mpn_fp): ... to function scope.
5022         (read_mpn_hex): Remove.
5023         (get_log2): Remove.
5024         (exp2_mpn): Use mp_log2.
5025         (main): Use mp_exp1.
5026
5027 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5028
5029         * math/libm-test.inc: Remove comment about not testing "inexact"
5030         exceptions.
5031         (INEXACT_EXCEPTION): New macro.
5032         (NO_INEXACT_EXCEPTION): Likewise.
5033         (INVALID_EXCEPTION_OK): Update value.
5034         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5035         (OVERFLOW_EXCEPTION_OK): Likewise.
5036         (UNDERFLOW_EXCEPTION_OK): Likewise.
5037         (IGNORE_ZERO_INF_SIGN): Likewise.
5038         (ERRNO_UNCHANGED): Likewise.
5039         (ERRNO_EDOM): Likewise.
5040         (ERRNO_ERANGE): Likewise.
5041         (test_exceptions): Handle testing "inexact" exceptions.
5042         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
5043         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
5044         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
5045         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
5046         INEXACT_EXCEPTION.
5047         (rint_towardzero_test_data): Likewise.
5048         (rint_downward_test_data): Likewise.
5049         (rint_upward_test_data): Likewise.
5050
5051         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
5052         with OVERFLOW_EXCEPTION.
5053         (exp10_test_data): Likewise.
5054         (exp2_test_data): Likewise.
5055         (expm1_test_data): Likewise.
5056         (lgamma_test_data): Likewise.
5057         (pow_test_data): Likewise.
5058         (tgamma_test_data): Likewise.
5059         (yn_test_data): Remove duplicate test of overflow.
5060
5061         * math/libm-test.inc (struct test_cc_c_data): New type.
5062         (RUN_TEST_LOOP_cc_c): New macro.
5063         (cpow_test_data): New variable.
5064         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
5065
5066         * math/libm-test.inc (struct test_f_L_data): New type.
5067         (RUN_TEST_LOOP_f_L): New macro.
5068         (llrint_test_data): New variable.
5069         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
5070         (llrint_tonearest_test_data): New variable.
5071         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
5072         (llrint_towardzero_test_data): New variable.
5073         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
5074         (llrint_downward_test_data): New variable.
5075         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
5076         (llrint_upward_test_data): New variable.
5077         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
5078         (llround_test_data): New variable.
5079         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
5080
5081 2013-05-13  Peter Collingbourne  <pcc@google.com>
5082
5083         * math/atest-exp2.c (get_log2): Remove const attribute.
5084
5085 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5086
5087         * math/libm-test.inc (struct test_f_l_data): New type.
5088         (RUN_TEST_LOOP_f_l): New macro.
5089         (lrint_test_data): New variable.
5090         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
5091         (lrint_tonearest_test_data): New variable.
5092         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
5093         (lrint_towardzero_test_data): New variable.
5094         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
5095         (lrint_downward_test_data): New variable.
5096         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
5097         (lrint_upward_test_data): New variable.
5098         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
5099         (lround_test_data): New variable.
5100         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
5101
5102 2013-05-15  Peter Collingbourne  <pcc@google.com>
5103
5104         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
5105         (EXTRACT_WORDS64) Use where appropriate.
5106         (INSERT_WORDS64) Likewise.
5107
5108         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
5109         constraints with x constraints.
5110         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
5111
5112         * malloc/obstack.c (_obstack_compat): Add initializer.
5113
5114 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5115
5116         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
5117         si_trapno and add si_addr_lsb to _sifields.sigfault.
5118         (si_trapno): Remove macro.
5119         (si_addr_lsb): Define new macro.
5120         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
5121
5122 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5123
5124         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
5125         instead of TEST_f_l.
5126         (llrint_test_tonearest): Likewise.
5127         (llrint_test_towardzero): Likewise.
5128         (llrint_test_downward): Likewise.
5129         (llrint_test_upward): Likewise.
5130         (llround_test): Likewise.
5131
5132         * math/libm-test.inc (struct test_f_i_data): Add comment.
5133         (RUN_TEST_LOOP_f_b): New macro.
5134         (RUN_TEST_LOOP_f_b_tg): Likewise.
5135         (finite_test_data): New variable.
5136         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
5137         (isfinite_test_data): New variable.
5138         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5139         (isinf_test_data): New variable.
5140         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5141         (isnan_test_data): New variable.
5142         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5143         (isnormal_test_data): New variable.
5144         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5145         (issignaling_test_data): New variable.
5146         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5147         (signbit_test_data): New variable.
5148         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5149
5150         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
5151         with INVALID_EXCEPTION.
5152         (acosh_test_data): Likewise.
5153         (asin_test_data): Likewise.
5154         (atanh_test_data): Likewise.
5155         (fmod_test_data): Likewise.
5156         (log_test_data): Likewise.
5157         (log10_test_data): Likewise.
5158         (log2_test_data): Likewise.
5159         (pow_test_data): Likewise.
5160         (sqrt_test_data): Likewise.
5161         (y0_test_data): Likewise.
5162         (y1_test_data): Likewise.
5163         (yn_test_data): Likewise.
5164
5165         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
5166         function contents.
5167
5168         * math/libm-test.inc (struct test_ff_i_data): New type.
5169         (RUN_TEST_LOOP_ff_i_tg): New macro.
5170         (isgreater_test_data): New variable.
5171         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5172         (isgreaterequal_test_data): New variable.
5173         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5174         (isless_test_data): New variable.
5175         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5176         (islessequal_test_data): New variable.
5177         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5178         (islessgreater_test_data): New variable.
5179         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5180         (isunordered_test_data): New variable.
5181         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5182
5183 2013-05-14  David S. Miller  <davem@davemloft.net>
5184
5185         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5186
5187 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
5188
5189         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
5190
5191         * math/libm-test.inc (struct test_fF_f1_data): Change type of
5192         extra_test to int.
5193         (struct test_f_i_data): Change type of max_ulp to int.
5194
5195         * math/libm-test.inc (test_ffI_f1_data): New type.
5196         (RUN_TEST_LOOP_ffI_f1): New macro.
5197         (remquo_test_data): New variable.
5198         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
5199
5200         * setjmp/tst-setjmp-fp.c: New file.
5201         * setjmp/Makefile (tests): Add tst-setjmp-fp.
5202         (link-libm): New variable.
5203         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
5204
5205         * math/libm-test.inc (struct test_f_i_data): New type.
5206         (RUN_TEST_LOOP_f_i): New macro.
5207         (RUN_TEST_LOOP_f_i_tg): Likewise.
5208         (fpclassify_test_data): New variable.
5209         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
5210         (ilogb_test_data): New variable.
5211         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
5212
5213         * math/libm-test.inc (scalbln_test): Correct function name in END
5214         call.
5215
5216         * math/libm-test.inc (struct test_f_f1_data): Add comment.
5217         (RUN_TEST_LOOP_fI_f1): New macro.
5218         (frexp_test_data): New variable.
5219         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
5220
5221         * math/libm-test.inc (struct test_fF_f1_data): New type.
5222         (RUN_TEST_LOOP_fF_f1): New macro.
5223         (modf_test_data): New variable.
5224         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
5225
5226         * math/libm-test.inc (struct test_f_f1_data): New type.
5227         (RUN_TEST_LOOP_f_f1): New macro.
5228         (gamma_test_data): New variable.
5229         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5230         (lgamma_test_data): New variable.
5231         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5232
5233 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
5234
5235         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
5236         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
5237         (main): Comment "tls" pseudo-hwcap.
5238
5239 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
5240
5241         * math/libm-test.inc (struct test_fl_f_data): New type.
5242         (RUN_TEST_LOOP_fl_f): New variable.
5243         (scalbln_test_data): New variable.
5244         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
5245
5246         * math/libm-test.inc (struct test_fi_f_data): New type.
5247         (RUN_TEST_LOOP_fi_f): New macro.
5248         (ldexp_test_data): New variable.
5249         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
5250         (scalbn_test_data): New variable.
5251         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
5252
5253         * math/libm-test.inc (struct test_c_f_data): New type.
5254         (RUN_TEST_LOOP_c_f): New macro.
5255         (cabs_test_data): New variable.
5256         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
5257         (carg_test_data): New variable.
5258         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
5259         (cimag_test_data): New variable.
5260         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
5261         (creal_test_data): New variable.
5262         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
5263
5264         * math/libm-test.inc (struct test_if_f_data): New type.
5265         (RUN_TEST_LOOP_if_f): New macro.
5266         (jn_test_data): New variable.
5267         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
5268         (yn_test_data): New variable.
5269         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
5270
5271         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
5272
5273 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5274
5275         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
5276         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
5277
5278 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5279
5280         * benchtests/Makefile (CPPFLAGS-nonlib): Add
5281         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
5282         (bench-deps): Add bench-timing.h.
5283         * benchtests-bench-skeleton.c: Include bench-timing.h.
5284         (main): Use TIMING_* macros instead of clock_gettime.
5285         * benchtests/bench-timing.h: New file.
5286
5287         [BZ #14582]
5288         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
5289         Renamed from _LIB_VERSION.
5290         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
5291
5292 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
5293
5294         * math/libm-test.inc (struct test_fff_f_data): New type.
5295         (RUN_TEST_LOOP_fff_f): New macro.
5296         (fma_test_data): New variable.
5297         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
5298         (fma_towardzero_test_data): New variable.
5299         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
5300         (fma_downward_test_data): New variable.
5301         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
5302         (fma_upward_test_data): New variable.
5303         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
5304
5305         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
5306         (struct test_c_c_data): New type.
5307         (RUN_TEST_LOOP_c_c): New macro.
5308         (cacos_test_data): New variable.
5309         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
5310         (cacosh_test_data): New variable.
5311         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
5312         (casin_test_data): New variable.
5313         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
5314         (casinh_test_data): New variable.
5315         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
5316         (catan_test_data): New variable.
5317         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
5318         (catanh_test_data): New variable.
5319         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
5320         (ccos_test_data): New variable.
5321         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
5322         (ccosh_test_data): New variable.
5323         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
5324         (cexp_test_data): New variable.
5325         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
5326         (clog_test_data): New variable.
5327         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
5328         (clog10_test_data): New variable.
5329         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
5330         (conj_test_data): New variable.
5331         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
5332         (cproj_test_data): New variable.
5333         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
5334         (csin_test_data): New variable.
5335         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
5336         (csinh_test_data): New variable.
5337         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
5338         (csqrt_test_data): New variable.
5339         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
5340         (ctan_test_data): New variable.
5341         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
5342         (ctan_tonearest_test_data): New variable.
5343         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5344         (ctan_towardzero_test_data): New variable.
5345         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5346         (ctan_downward_test_data): New variable.
5347         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5348         (ctan_upward_test_data): New variable.
5349         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5350         (ctanh_test_data): New variable.
5351         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
5352         (ctanh_tonearest_test_data): New variable.
5353         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5354         (ctanh_towardzero_test_data): New variable.
5355         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5356         (ctanh_downward_test_data): New variable.
5357         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5358         (ctanh_upward_test_data): New variable.
5359         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5360         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
5361         of BUILD_COMPLEX.
5362
5363         * math/libm-test.inc (struct test_ff_f_data): New type.
5364         (struct test_ff_f_data_nexttoward): Likewise.
5365         (RUN_TEST_LOOP_2_f): New macro.
5366         (RUN_TEST_LOOP_ff_f): Likewise.
5367         (atan2_test_data): New variable.
5368         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
5369         (copysign_test_data): New variable.
5370         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
5371         (fdim_test_data): New variable.
5372         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
5373         (fmax_test_data): New variable.
5374         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
5375         (fmin_test_data): New variable.
5376         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
5377         (fmod_test_data): New variable.
5378         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
5379         (hypot_test_data): New variable.
5380         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
5381         (nextafter_test_data): New variable.
5382         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
5383         (nexttoward_test_data): New variable.
5384         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
5385         (pow_test_data): New variable.
5386         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
5387         (pow_tonearest_test_data): New variable.
5388         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
5389         (pow_towardzero_test_data): New variable.
5390         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
5391         (pow_downward_test_data): New variable.
5392         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
5393         (pow_upward_test_data): New variable.
5394         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
5395         (remainder_test_data): New variable.
5396         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
5397         (scalb_test_data): New variable.
5398         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
5399         * sysdeps/i386/fpu/libm-test-ulps: Update.
5400
5401 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
5402
5403         * math/libm-test.inc (fma_test): Use max_value instead of local
5404         variable fltmax.
5405         (nextafter_test): Likewise.
5406
5407         * math/libm-test.inc (acos_towardzero_test_data): New variable.
5408         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5409         (acos_downward_test_data): New variable.
5410         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5411         (acos_upward_test_data): New variable.
5412         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5413         (acosh_test_data): New variable.
5414         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
5415         (asin_test_data): New variable.
5416         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
5417         (asin_tonearest_test_data): New variable.
5418         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5419         (asin_towardzero_test_data): New variable.
5420         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5421         (asin_downward_test_data): New variable.
5422         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5423         (asin_upward_test_data): New variable.
5424         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5425         (asinh_test_data): New variable.
5426         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
5427         (atan_test_data): New variable.
5428         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
5429         (atanh_test_data): New variable.
5430         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
5431         (cbrt_test_data): New variable.
5432         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
5433         (ceil_test_data): New variable.
5434         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
5435         (cos_test_data): New variable.
5436         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
5437         (cos_tonearest_test_data): New variable.
5438         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5439         (cos_towardzero_test_data): New variable.
5440         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5441         (cos_downward_test_data): New variable.
5442         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5443         (cos_upward_test_data): New variable.
5444         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5445         (cosh_test_data): New variable.
5446         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
5447         (cosh_tonearest_test_data): New variable.
5448         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5449         (cosh_towardzero_test_data): New variable.
5450         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5451         (cosh_downward_test_data): New variable.
5452         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5453         (cosh_upward_test_data): New variable.
5454         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5455         (erf_test_data): New variable.
5456         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
5457         (erfc_test_data): New variable.
5458         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
5459         (exp_test_data): New variable.
5460         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
5461         (exp_tonearest_test_data): New variable.
5462         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5463         (exp_towardzero_test_data): New variable.
5464         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5465         (exp_downward_test_data): New variable.
5466         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5467         (exp_upward_test_data): New variable.
5468         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5469         (exp10_test_data): New variable.
5470         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
5471         (exp2_test_data): New variable.
5472         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
5473         (expm1_test_data): New variable.
5474         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
5475         (fabs_test_data): New variable.
5476         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
5477         (floor_test_data): New variable.
5478         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
5479         (j0_test_data): New variable.
5480         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
5481         (j1_test_data): New variable.
5482         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
5483         (log_test_data): New variable.
5484         (log_test): Run tests with RUN_TEST_LOOP_f_f.
5485         (log10_test_data): New variable.
5486         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
5487         (log1p_test_data): New variable.
5488         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
5489         (log2_test_data): New variable.
5490         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
5491         (logb_test_data): New variable.
5492         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
5493         (logb_downward_test_data): New variable.
5494         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5495         (nearbyint_test_data): New variable.
5496         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
5497         (rint_test_data): New variable.
5498         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
5499         (rint_tonearest_test_data): New variable.
5500         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5501         (rint_towardzero_test_data): New variable.
5502         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5503         (rint_downward_test_data): New variable.
5504         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5505         (rint_upward_test_data): New variable.
5506         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5507         (round_test_data): New variable.
5508         (round_test): Run tests with RUN_TEST_LOOP_f_f.
5509         (sin_test_data): New variable.
5510         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
5511         (sin_tonearest_test_data): New variable.
5512         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5513         (sin_towardzero_test_data): New variable.
5514         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5515         (sin_downward_test_data): New variable.
5516         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5517         (sin_upward_test_data): New variable.
5518         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5519         (sinh_test_data): New variable.
5520         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
5521         (sinh_tonearest_test_data): New variable.
5522         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5523         (sinh_towardzero_test_data): New variable.
5524         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5525         (sinh_downward_test_data): New variable.
5526         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5527         (sinh_upward_test_data): New variable.
5528         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5529         (sqrt_test_data): New variable.
5530         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
5531         (tan_test_data): New variable.
5532         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
5533         (tan_tonearest_test_data): New variable.
5534         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5535         (tan_towardzero_test_data): New variable.
5536         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5537         (tan_downward_test_data): New variable.
5538         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5539         (tan_upward_test_data): New variable.
5540         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5541         (tanh_test_data): New variable.
5542         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
5543         (tgamma_test_data): New variable.
5544         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
5545         (trunc_test_data): New variable.
5546         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
5547         (y0_test_data): New variable.
5548         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
5549         (y1_test_data): New variable.
5550         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
5551         (significand_test_data): New variable.
5552         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
5553
5554 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
5555
5556         [BZ #12387]
5557         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
5558
5559 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5560
5561         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
5562
5563 2013-05-10  Andreas Jaeger  <aj@suse.de>
5564
5565         [BZ #15448]
5566         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
5567         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
5568
5569 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5570
5571         * math/gen-libm-test.pl (adjust_arg): New function.
5572         (special_functions): Handle generating output in both functions
5573         and arrays.
5574         (parse_args): Likewise.
5575         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
5576         $in_func argument to parse_args.
5577         * math/libm-test.inc (struct test_f_f_data): New type.
5578         (IF_ROUND_INIT_): New macro.
5579         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
5580         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
5581         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
5582         (IF_ROUND_INIT_FE_UPWARD): Likewise.
5583         (ROUND_RESTORE_): Likewise.
5584         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
5585         (ROUND_RESTORE_FE_TONEAREST): Likewise.
5586         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
5587         (ROUND_RESTORE_FE_UPWARD): Likewise.
5588         (RUN_TEST_LOOP_f_f): New macro.
5589         (acos_test_data): New variable.
5590         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
5591         (acos_tonearest_test_data): New variable.
5592         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5593
5594 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5595
5596         * benchtests/bench-skeleton.c (startup): Fix coding style.
5597
5598 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5599
5600         [BZ #6809]
5601         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
5602         negative infinity argument.
5603         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
5604         negative infinity argument.
5605         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
5606         negative infinity argument.
5607         * math/libm-test.inc (tgamma_test): Expect errno to be set for
5608         domain errors.
5609
5610 2013-05-10  Florian Weimer  <fweimer@redhat.com>
5611
5612         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
5613         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
5614         * iconv/iconv_prog.c (main): Likewise.
5615         * locale/programs/charmap-dir.c (charmap_readdir)
5616         (fopen_uncompressed): Likewise.
5617         * locale/programs/locfile.c (siblings_uncached)
5618         (write_locale_data): Use lstat64 instead of lstat.
5619         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
5620         stat.
5621
5622 2013-05-10  Andreas Jaeger  <aj@suse.de>
5623
5624         [BZ #15395]
5625         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
5626         localization.
5627         Include <locale.h>.
5628
5629 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
5630
5631         * elf/dl-close.c (_dl_close_worker): Add comments.
5632
5633 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
5634
5635         [BZ #15359]
5636         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
5637         high part of pi/2.
5638         (__ieee754_rem_pio2l): Update comments.
5639
5640         [BZ #15429]
5641         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
5642         high part of pi/2.
5643         (__ieee754_rem_pio2l): Update comments.
5644
5645         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
5646         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
5647
5648         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
5649         M_PI_4l.
5650
5651         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
5652         (M_PI_34_LOG10El): Likewise.
5653         (M_PI2_LOG10El): Likewise.
5654         (M_PI4_LOG10El): Likewise.
5655         (M_PI_LOG10El): Likewise.
5656
5657 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5658
5659         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5660
5661 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
5662
5663         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
5664         (MINUS_ZERO_INIT): Likewise.
5665         (PLUS_INFTY_INIT): Likewise.
5666         (MINUS_INFTY_INIT): Likewise.
5667         (QNAN_VALUE_INIT): Likewise.
5668         (MAX_VALUE_INIT): Likewise.
5669         (MIN_VALUE_INIT): Likewise.
5670         (MIN_SUBNORM_VALUE_INIT): Likewise.
5671         (plus_zero): Initialize with PLUS_ZERO_INIT.
5672         (minus_zero): Initialize with MINUS_ZERO_INIT.
5673         (plus_infty): Initialize with PLUS_INFTY_INIT.
5674         (minus_infty): Initialize with MINUS_INFTY_INIT.
5675         (qnan_value): Initialize with QNAN_VALUE_INIT.
5676         (max_value): Initialize with MAX_VALUE_INIT.
5677         (min_value): Initialize with MIN_VALUE_INIT.
5678         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
5679
5680         * math/libm-test.inc (RUN_TEST_if_f): New macro.
5681         (jn_test): Use TEST_if_f instead of TEST_ff_f.
5682         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
5683         (yn_test): Use TEST_if_f instead of TEST_ff_f.
5684
5685         * math/libm-test.inc (RUN_TEST_f_f): New macro.
5686         (RUN_TEST_2_f): Likewise.
5687         (RUN_TEST_ff_f): Likewise.
5688         (RUN_TEST_fi_f): Likewise.
5689         (RUN_TEST_fl_f): Likewise.
5690         (RUN_TEST_fff_f): Likewise.
5691         (RUN_TEST_c_f): Likewise.
5692         (RUN_TEST_f_f1): Likewise.
5693         (RUN_TEST_fF_f1): Likewise.
5694         (RUN_TEST_fI_f1): Likewise.
5695         (RUN_TEST_ffI_f1): Likewise.
5696         (RUN_TEST_c_c): Likewise.
5697         (RUN_TEST_cc_c): Likewise.
5698         (RUN_TEST_f_i): Likewise.
5699         (RUN_TEST_f_i_tg): Likewise.
5700         (RUN_TEST_ff_i_tg): Likewise.
5701         (RUN_TEST_f_b): Likewise.
5702         (RUN_TEST_f_b_tg): Likewise.
5703         (RUN_TEST_f_l): Likewise.
5704         (RUN_TEST_f_L): Likewise.
5705         (RUN_TEST_sincos): Likewise.
5706         * math/gen-libm-test.pl (new_test): Take new argument to indicate
5707         whether to show exceptions.  Do not include ");\n" in return
5708         value.
5709         (special_functions): Output call to RUN_TEST_sincos instead of
5710         check_float calls.  Update calls to new_test.
5711         (parse_args): Output call to single RUN_TEST_* macro instead of
5712         check_* calls and other assignments.  Update calls to new_test.
5713
5714         [BZ #2546]
5715         [BZ #2560]
5716         [BZ #5159]
5717         [BZ #15426]
5718         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
5719         input to result for tgamma overflow.
5720         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
5721         (gamma_coeff): New variable.
5722         (NCOEFF): New macro.
5723         (gamma_positive): New function.
5724         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
5725         underflow here.  Use gamma_positive instead of exp (lgamma) for
5726         other arguments.
5727         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
5728         (gamma_coeff): New variable.
5729         (NCOEFF): New macro.
5730         (gammaf_positive): New function.
5731         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
5732         underflow here.  Use gamma_positive instead of exp (lgamma) for
5733         other arguments.
5734         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
5735         (gamma_coeff): New variable.
5736         (NCOEFF): New macro.
5737         (gammal_positive): New function.
5738         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
5739         underflow here.  Use gamma_positive instead of exp (lgamma) for
5740         other arguments.
5741         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
5742         (gamma_coeff): New variable.
5743         (NCOEFF): New macro.
5744         (gammal_positive): New function.
5745         (__ieee754_gammal_r): Handle positive infinity, overflow and
5746         underflow here.  Handle NaN the same as positive infinity.  Remove
5747         check x < 0xffffffff for negative integers.  Use gamma_positive
5748         instead of exp (lgamma) for other arguments.
5749         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
5750         (gamma_coeff): New variable.
5751         (NCOEFF): New macro.
5752         (gammal_positive): New function.
5753         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
5754         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
5755         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
5756         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
5757         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
5758         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
5759         * sysdeps/generic/math_private.h (__gamma_productf): New
5760         prototype.
5761         (__gamma_product): Likewise.
5762         (__gamma_productl): Likewise.
5763         * math/Makefile (libm-calls): Add gamma_product.
5764         * math/libm-test.inc (tgamma_test): Add more tests.
5765         * sysdeps/i386/fpu/libm-test-ulps: Update.
5766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5767
5768 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
5769
5770         * benchtests/bench-skeleton.c (main): Preheat CPU.
5771
5772 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
5773
5774         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
5775
5776 2013-05-07  Roland McGrath  <roland@hack.frob.com>
5777
5778         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
5779         and _dl_skip_args_internal.
5780
5781 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
5782
5783         * manual/message.texi (Message Translation): Talk about users.
5784         Message to key mapping impacts design.
5785
5786 2013-05-06  Roland McGrath  <roland@hack.frob.com>
5787
5788         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
5789
5790         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
5791
5792         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
5793         * sysdeps/wordsize-64/glob64.c: ... here.
5794
5795         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
5796         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
5797         New macros.
5798
5799         * debug/getlogin_r_chk.c: Moved to ...
5800         * login/getlogin_r_chk.c: ... here.
5801         * debug/Makefile (routines): Move getlogin_r_chk to ...
5802         * login/Makefile (routines): ... here.
5803         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
5804         * login/Versions (libc: GLIBC_2.4): ... here.
5805
5806         * io/poll.c (__poll): Renamed from poll.
5807         Add libc_hidden_def.
5808         (poll): Define as weak alias.
5809
5810         * debug/ptsname_r_chk.c: Moved to ...
5811         * login/ptsname_r_chk.c: ... here.
5812         * debug/Makefile (routines): Move ptsname_r_chk to ...
5813         * login/Makefile (routines): ... here.
5814         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
5815         * login/Versions (libc: GLIBC_2.4): ... here.
5816
5817         * posix/getlogin.c: Moved to ...
5818         * login/getlogin.c: ... here.
5819         * posix/getlogin_r.c: Moved to ...
5820         * login/getlogin_r.c: ... here.
5821         * posix/getlogin_r.c: Moved to ...
5822         * login/getlogin_r.c: ... here.
5823         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
5824         * login/Makefile (routines): ... here.
5825         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
5826         * login/Versions (libc: GLIBC_2.0): ... here.
5827
5828         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
5829         (setrlimit): Define as weak alias.
5830
5831         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
5832         Call __ names for open, ftruncate, and close.
5833         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
5834         (truncate): Define as weak alias.
5835
5836 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
5837
5838         * math/gen-libm-test.pl (parse_args): Initialize x before each
5839         test of frexp, modf and remquo.
5840
5841         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
5842         test signgam value.
5843
5844 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5845
5846         [BZ #15418]
5847         [BZ #15419]
5848         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
5849         internal tests.
5850         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5851
5852 2013-05-06  Roland McGrath  <roland@hack.frob.com>
5853
5854         * elf/dl-writev.h: New file.
5855         * elf/dl-misc.c: Include it.
5856         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
5857         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
5858
5859 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
5860
5861         * math/libm-test.inc (noXFails): Remove variable.
5862         (noXPasses): Likewise.
5863         (BUILD_COMPLEX_INT): Remove macro.
5864         (print_screen): Remove xfail argument.
5865         (print_screen_max_error): Likewise.
5866         (update_stats): Likewise.
5867         (print_max_error): Likewise.  Update calls to other affected
5868         functions.
5869         (print_complex_max_error): Likewise.
5870         (test_single_exception): Update calls to print_screen.
5871         (test_single_errno): Likewise.
5872         (check_float_internal): Remove xfail argument.  Update calls to
5873         other affected functions.
5874         (check_float): Likewise.
5875         (check_complex): Likewise.
5876         (check_int): Likewise.
5877         (check_long): Likewise.
5878         (check_bool): Likewise.
5879         (check_longlong): Likewise.
5880         (main): Don't print noXFails and noXPasses.
5881         * math/gen-libm-test.pl (top level): Don't mention expected
5882         failure handling in comment.
5883         (new_test): Don't handle expected failures.
5884         (parse_args): Don't mention expected failure handling in comment.
5885         (generate_testfile): Don't handle expected failures.
5886         (parse_ulps): Likewise.
5887         (print_ulps_file): Likewise.
5888         (get_failure): Remove function.
5889         (output_test): Don't handle expected failures.
5890         * make/README.libm-test: Don't mention expected failure handling.
5891
5892         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
5893         (minus_zero): Likewise.
5894         (plus_infty): Likewise.
5895         (minus_infty): Likewise.
5896         (qnan_value): Likewise.
5897         (max_value): Likewise.
5898         (min_value): Likewise.
5899         (min_subnorm_value): Likewise.
5900         (initialize): Do not initialize those variables dynamically.
5901
5902 2013-05-03  Roland McGrath  <roland@hack.frob.com>
5903
5904         * io/open.c (__open_2): Moved to ...
5905         * io/open_2.c: ... this new file.
5906         * io/open64.c (__open64_2): Moved to ...
5907         * io/open64_2.c: ... this new file.
5908         * io/openat.c (__openat_2): Moved to ...
5909         * io/openat_2.c: ... this new file.
5910         * io/openat64.c (__openat64_2): Moved to ...
5911         * io/openat64_2.c: ... this new file.
5912         * io/Makefile (routines): Add them.
5913         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
5914         * sysdeps/unix/sysv/linux/open_2.c: File removed.
5915         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
5916         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
5917         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
5918         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
5919         (__openat64): Add hidden_ver.
5920         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
5921         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
5922
5923         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5924         Separately conditionalize setting of GLRO(dl_sysinfo) so
5925         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
5926         as well, but the actual setting is only under [NEED_DL_SYSINFO].
5927
5928 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5929
5930         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
5931         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
5932         definition.
5933         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
5934         * sysdeps/unix/sysv/linux/powerpc/init-first.c
5935         (_libc_vdso_platform_setup): Add __vdso_time initialization.
5936         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
5937         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
5938
5939 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
5940
5941         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
5942         test signgam value.
5943
5944         * math/libm-test.inc (hypot_test): Do not use
5945         IGNORE_ZERO_INF_SIGN.
5946
5947 2013-05-03  Andreas Jaeger  <aj@suse.de>
5948
5949         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
5950         Linux 3.9.
5951         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
5952         (PF_MAX): Adjust for VSOCK change.
5953
5954 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5955
5956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5957
5958 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
5959
5960         [BZ #15264]
5961         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
5962         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
5963         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
5964
5965 2013-05-02  David S. Miller  <davem@davemloft.net>
5966
5967         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5968
5969 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
5970
5971         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
5972
5973 2013-05-01  Roland McGrath  <roland@hack.frob.com>
5974
5975         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
5976
5977 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
5978
5979         [BZ #14952]
5980         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
5981         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
5982         Use __attribute__ ((__gnu_inline__)).
5983         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
5984         Don't use __attribute__ ((__gnu_inline__)).
5985
5986 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
5987
5988         [BZ #15423]
5989         * math/s_catan.c (__catan): Handle small real or imaginary part of
5990         input specially to avoid spurious underflow.
5991         * math/s_catanf.c (__catanf): Likewise.
5992         * math/s_catanh.c (__catanh): Likewise.
5993         * math/s_catanhf.c (__catanhf): Likewise.
5994         * math/s_catanhl.c (__catanhl): Likewise.
5995         * math/s_catanl.c (__catanl): Likewise.
5996         * math/libm-test.inc (catan_test): Add more tests.
5997         (catanh_test): Likewise.
5998         * sysdeps/i386/fpu/libm-test-ulps: Update.
5999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6000
6001 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6002
6003         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6004
6005 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
6006
6007         [BZ #15416]
6008         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
6009         accurately for denominator in atan2.
6010         * math/s_catanf.c (__catanf): Likewise.
6011         * math/s_catanh.c (__catanh): Likewise.
6012         * math/s_catanhf.c (__catanhf): Likewise.
6013         * math/s_catanhl.c (__catanhl): Likewise.
6014         * math/s_catanl.c (__catanl): Likewise.
6015         * math/libm-test.inc (catan_test): Add more tests.
6016         (catanh_test): Likewise.
6017         * sysdeps/i386/fpu/libm-test-ulps: Update.
6018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6019
6020 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6021
6022         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
6023
6024         * benchtests/Makefile (bench): Remove slow benchmarks.
6025         * benchtests/atan-inputs: Add slow benchmark inputs.
6026         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
6027         (BENCH_FUNC): Accept variant offset.
6028         (VARIANT): Define.
6029         * benchtests/bench-skeleton.c (main): Run benchmark for each
6030         variant.
6031         * benchtests/cos-inputs: Add slow benchmark inputs.
6032         * benchtests/exp-inputs: Likewise.
6033         * benchtests/pow-inputs: Likewise.
6034         * benchtests/sin-inputs: Likewise.
6035         * benchtests/slowatan-inputs: Remove.
6036         * benchtests/slowatan.c: Remove.
6037         * benchtests/slowcos-inputs: Remove.
6038         * benchtests/slowcos.c: Remove.
6039         * benchtests/slowexp-inputs: Remove.
6040         * benchtests/slowexp.c: Remove.
6041         * benchtests/slowpow-inputs: Remove.
6042         * benchtests/slowpow.c: Remove.
6043         * benchtests/slowsin-inputs: Remove.
6044         * benchtests/slowsin.c: Remove.
6045         * benchtests/slowtan-inputs: Remove.
6046         * benchtests/slowtan.c: Remove.
6047         * benchtests/tan-inputs: Add slow benchmark inputs.
6048         * scripts/bench.pl: Parse comments and directives.
6049
6050         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
6051         in CPPFLAGS.
6052         ($(objpfx)bench-%.c): Remove *-ITER.
6053         * benchtests/bench-modf.c: Remove definition of ITER.
6054         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
6055         (main): Loop for DURATION seconds instead of fixed number of
6056         iterations.
6057         * scripts/bench.pl: Don't expect iterations in parameters.
6058
6059 2013-04-29  Roland McGrath  <roland@hack.frob.com>
6060
6061         * io/fchdir.c (__fchdir): Renamed from fchdir.
6062         (fchdir): Define as weak alias.
6063
6064 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6065
6066         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
6067         (ERRNO_EDOM): Likewise.
6068         (ERRNO_ERANGE): Likewise.
6069         (noErrnoTests): New variable.
6070         (init_max_error): Set errno to 0.
6071         (test_single_errno): New function.
6072         (test_errno): Likewise.
6073         (check_float_internal): Call test_errno.  Set errno to 0.
6074         (check_complex): Refer to errno tests in comment.
6075         (check_int): Call test_errno.  Set errno to 0.
6076         (check_long): Likewise.
6077         (check_bool): Likewise.
6078         (check_longlong): Likewise.
6079         (cos_test): Use ERRNO_* flags for errno tests instead of
6080         check_int.
6081         (expm1_test): Likewise.
6082         (fmod_test): Likewise.
6083         (ilogb_test): Likewise.
6084         (lgamma_test): Likewise.
6085         (pow_test): Likewise.
6086         (remainder_test): Likewise.
6087         (sin_test): Likewise.
6088         (tan_test): Likewise.
6089         (yn_test): Likewise.
6090         (initialize): Set errno to 0.
6091         (main): Print number of errno tests.
6092         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
6093
6094 2013-04-29  Andreas Jaeger  <aj@suse.de>
6095
6096         [BZ #15084]
6097         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
6098         and RES_USEVC.
6099
6100         [BZ #15085]
6101         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
6102         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
6103         unimplemented.
6104
6105         [BZ #15380]
6106         * stdlib/random.c (__initstate): Return NULL if
6107         __initstate fails.
6108
6109         [BZ #15086]
6110         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
6111         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
6112         RES_SNGLKUPREOP.
6113
6114 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6115
6116         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6117
6118 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6119
6120         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
6121         of individual tests.
6122         (casin_test): Likewise.
6123         (casinh_test): Likewise.
6124
6125 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
6126
6127         [BZ #15409]
6128         * math/s_catan.c (__catan): Handle arguments with large real or
6129         imaginary part separately without squaring.
6130         * math/s_catanf.c (__catanf): Likewise.
6131         * math/s_catanh.c (__catanh): Likewise.
6132         * math/s_catanhf.c (__catanhf): Likewise.
6133         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6134         and redefine.
6135         (__catanhl): Handle arguments with large real or imaginary part
6136         separately without squaring.
6137         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6138         and redefine.
6139         (__catanl): Handle arguments with large real or imaginary part
6140         separately without squaring.
6141         * math/libm-test.inc (catan_test): Add more tests.
6142         (catanh_test): Likewise.
6143         * sysdeps/i386/fpu/libm-test-ulps: Update.
6144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6145
6146 2013-04-27  Andreas Jaeger  <aj@suse.de>
6147
6148         [BZ #15007]
6149         * stdlib/stdlib.h: Update guards for qecvt.
6150         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
6151         <stdlib.h>.
6152
6153 2013-04-27  Allan McRae  <allan@archlinux.org>
6154
6155         * sysdeps/i386/fpu/libm-test-ulps: Update.
6156
6157 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
6158
6159         [BZ #15406]
6160         * math/s_catan.c: Include <float.h>.
6161         (__catan): Ensure underflow exception occurs for underflowed
6162         result.
6163         * math/s_catanf.c: Include <float.h>.
6164         (__catanf): Ensure underflow exception occurs for underflowed
6165         result.
6166         * math/s_catanh.c: Include <float.h>.
6167         (__catanh): Ensure underflow exception occurs for underflowed
6168         result.
6169         * math/s_catanhf.c: Include <float.h>.
6170         (__catanhf): Ensure underflow exception occurs for underflowed
6171         result.
6172         * math/s_catanhl.c: Include <float.h>.
6173         (__catanhl): Ensure underflow exception occurs for underflowed
6174         result.
6175         * math/s_catanl.c: Include <float.h>.
6176         (__catanl): Ensure underflow exception occurs for underflowed
6177         result.
6178         * math/libm-test.inc (catan_test): Add more tests.
6179         (catanh_test): Likewise.
6180
6181         [BZ #15405]
6182         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
6183         underflowed result.
6184         * math/s_ccoshf.c (__ccoshf): Likewise.
6185         * math/s_ccoshl.c (__ccoshl): Likewise.
6186         * math/s_csin.c (__csin): Likewise.
6187         * math/s_csinf.c (__csinf): Likewise.
6188         * math/s_csinh.c (__csinh): Likewise.
6189         * math/s_csinhf.c (__csinhf): Likewise.
6190         * math/s_csinhl.c (__csinhl): Likewise.
6191         * math/s_csinl.c (__csinl): Likewise.
6192         * math/libm-test.inc (ccos_test): Add more tests.
6193         (ccosh_test): Likewise.
6194         (csin_test): Likewise.
6195         (csinh_test): Likewise.
6196
6197 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6198
6199         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
6200         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
6201         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
6202         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
6203         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
6204         powerpc/power5+/fpu folders.
6205         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
6206
6207
6208 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6209
6210         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6211
6212 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
6213
6214         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
6215         additions to variable.
6216         [$(config-machine) = x86_64] (modules-names): Likewise.
6217         ($(objpfx)tst-audit3): Remove dependency.
6218         ($(objpfx)tst-audit3.out): Likewise.
6219         ($(objpfx)tst-audit4): Likewise.
6220         ($(objpfx)tst-audit4.out): Likewise.
6221         ($(objpfx)tst-audit5): Likewise.
6222         ($(objpfx)tst-audit5.out): Likewise.
6223         ($(objpfx)tst-audit6): Likewise.
6224         ($(objpfx)tst-audit6.out): Likewise.
6225         ($(objpfx)tst-audit7): Likewise.
6226         ($(objpfx)tst-audit7.out): Likewise.
6227         (tst-audit3-ENV): Remove variable.
6228         (tst-audit4-ENV): Likewise.
6229         (tst-audit5-ENV): Likewise.
6230         (tst-audit6-ENV): Likewise.
6231         (tst-audit7-ENV): Likewise.
6232         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
6233         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
6234         addition to variable.
6235         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
6236         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
6237         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
6238         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
6239         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
6240         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
6241         tst-audit3, tst-audit4 and tst-audit5.
6242         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
6243         tst-audit6 and tst-audit7.
6244         [$(subdir) = elf] (modules-names): Add audit modules for those
6245         tests.
6246         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
6247         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
6248         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
6249         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
6250         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
6251         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
6252         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
6253         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
6254         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
6255         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
6256         [$(subdir) = elf] (tst-audit3-ENV): New variable.
6257         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
6258         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
6259         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
6260         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
6261         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
6262         Likewise.
6263         [$(subdir) = elf && $(config-cflags-avx) = yes]
6264         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
6265         [$(subdir) = elf && $(config-cflags-avx) = yes]
6266         (CFLAGS-tst-auditmod4a.c): Likewise.
6267         [$(subdir) = elf && $(config-cflags-avx) = yes]
6268         (CFLAGS-tst-auditmod4b.c): Likewise.
6269         [$(subdir) = elf && $(config-cflags-avx) = yes]
6270         (CFLAGS-tst-auditmod6b.c): Likewise.
6271         [$(subdir) = elf && $(config-cflags-avx) = yes]
6272         (CFLAGS-tst-auditmod6c.c): Likewise.
6273         [$(subdir) = elf && $(config-cflags-avx) = yes]
6274         (CFLAGS-tst-auditmod7b.c): Likewise.
6275         * elf/tst-audit3.c: Move to ...
6276         * sysdeps/x86_64/tst-audit3.c: ... here.
6277         * elf/tst-audit4.c: Move to ...
6278         * sysdeps/x86_64/tst-audit4.c: ... here.
6279         * elf/tst-audit5.c: Move to ...
6280         * sysdeps/x86_64/tst-audit5.c: ... here.
6281         * elf/tst-audit6.c: Move to ...
6282         * sysdeps/x86_64/tst-audit6.c: ... here.
6283         * elf/tst-audit7.c: Move to ...
6284         * sysdeps/x86_64/tst-audit7.c: ... here.
6285         * elf/tst-auditmod3a.c: Move to ...
6286         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
6287         * elf/tst-auditmod3b.c: Move to ...
6288         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
6289         * elf/tst-auditmod4a.c: Move to ...
6290         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
6291         * elf/tst-auditmod4b.c: Move to ...
6292         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
6293         * elf/tst-auditmod5a.c: Move to ...
6294         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
6295         * elf/tst-auditmod5b.c: Move to ...
6296         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
6297         * elf/tst-auditmod6a.c: Move to ...
6298         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
6299         * elf/tst-auditmod6b.c: Move to ...
6300         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
6301         * elf/tst-auditmod6c.c: Move to ...
6302         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
6303         * elf/tst-auditmod7a.c: Move to ...
6304         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
6305         * elf/tst-auditmod7b.c: Move to ...
6306         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
6307
6308 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
6309
6310         [BZ #15366]
6311         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
6312         define unconditionally.
6313         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
6314         define unconditionally.
6315         (INT8_C, INT16_C, etc.): Likewise.
6316
6317 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
6318
6319         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
6320         __ehdr_start with hidden visibility.
6321
6322         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
6323
6324 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
6325
6326         * math/libm-test.inc (cos_test): Use accurate hex constants.
6327         (sincost_test): Likewise.
6328
6329 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
6330
6331         * math/libm-test.inc (catan_test): Add more tests.
6332         (catanh_test): Likewise.
6333
6334         * math/s_catanf.c (__catanf): Use suffixed floating-point
6335         constants.
6336         * math/s_catanhf.c (__catanhf): Likewise.
6337         * math/s_catanhl.c (__catanhl): Likewise.
6338         * math/s_catanl.c (__catanl): Likewise.
6339
6340         [BZ #15394]
6341         * math/s_catan.c (__catan): Calculate imaginary part of result
6342         with log1p not log unless computing log of number close to 0.
6343         * math/s_catanf.c (__catanf): Likewise.
6344         * math/s_catanl.c (__catanl): Likewise.
6345         * math/s_catanh.c (__catanh): Calculate real part of result with
6346         log1p not log unless computing log of number close to 0.
6347         * math/s_catanhf.c (__catanhf): Likewise.
6348         * math/s_catanhl.c (__catanhl): Likewise.
6349         * math/libm-test.inc (catan_test): Add more tests.
6350         (catanh_test): Likewise.
6351         * sysdeps/i386/fpu/libm-test-ulps: Update.
6352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6353
6354 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6355
6356         * benchtests/Makefile: Mention files in which fast and slow
6357         paths of math functions are implemented.
6358
6359 2013-04-23  Roland McGrath  <roland@hack.frob.com>
6360
6361         * sysdeps/posix/timespec_get.c: New file.
6362
6363 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6364
6365         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
6366         POWER.
6367         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
6368         for POWER.
6369         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
6370         powerpc/power5/fpu folders.
6371         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
6372         * benchtests/Makefile: Add modf testcase.
6373         * benchtests/bench-modf.c: New file: Benchmark test for mo
6374
6375 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
6376
6377         [BZ #14888]
6378         * time/Makefile (tests): Add tst-strptime-whitespace.
6379         * time/strptime_l.c (get_number): Use ISSPACE.
6380         (__strptime_internal): Likewise.
6381         * time/tst-strptime-whitespace.c: New test case.
6382
6383 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6384
6385         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
6386         member.
6387         (_nss_files_init): Set it here.
6388
6389 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
6390
6391         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
6392         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
6393         unsigned.
6394
6395 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
6396
6397         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
6398
6399 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6400
6401         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
6402         size just once.
6403
6404 2013-04-21  David S. Miller  <davem@davemloft.net>
6405
6406         * po/ru.po: Update Russion translation from translation project.
6407
6408 2013-04-17  Adam Conrad  <adconrad@0c3.net>
6409
6410         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
6411         and setfsgid.
6412
6413 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
6414
6415         * configure.in: Remove i386 configure warning. Remove i386 case.
6416         * configure: Regenerate.
6417         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
6418         Add example to error message.
6419         * sysdeps/i386/configure: Regenerate.
6420
6421 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
6422
6423         * benchtests/Makefile (bench): Add cos, tan, slowcos and
6424         slowtan.
6425         * benchtests/cos-inputs: New file.
6426         * benchtests/slowcos-inputs: New file.
6427         * benchtests/slowcos.c: New file.
6428         * benchtests/slowtan-inputs: New file.
6429         * benchtests/slowtan.c: New file.
6430         * benchtests/tan-inputs: New file.
6431
6432 2013-04-16  Roland McGrath  <roland@hack.frob.com>
6433
6434         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
6435         considered kosher.
6436
6437 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6438
6439         * benchtests/Makefile: Include cppflags-iterator.mk to add
6440         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
6441
6442         * Makefile.in (bench-clean): New target.
6443         * benchtests/Makefile (bench-clean): Likewise.
6444
6445 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
6446
6447         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
6448
6449 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6450
6451         * stdio-common/tstdiomisc.c: Fix coding-style violation.
6452
6453 2013-04-15  Andreas Schwab  <schwab@suse.de>
6454
6455         * nscd/grpcache.c (cache_addgr): Properly check for short write.
6456         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6457         * nscd/pwdcache.c (cache_addpw): Likewise.
6458         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
6459         more than recsize.
6460
6461 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6462
6463         * benchtests/Makefile (bench): Write all output to
6464         bench-out.tmp together.
6465
6466 2013-04-15  Andreas Schwab  <schwab@suse.de>
6467
6468         * nscd/nscd.c (main): Don't fork again after closing files.
6469
6470 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6471
6472         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
6473
6474         * benchtests/Rules (bench-deps): Collect dependencies into a
6475         single variable.  Add Makefile to dependencies.
6476         ($(objpfx)bench-%.c): Depend on bench-deps.
6477
6478 2013-04-12  Roland McGrath  <roland@hack.frob.com>
6479             Xavier Roche  <roche+kml2@exalead.com>
6480
6481         [BZ #15361]
6482         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
6483         just that it's a file descriptor.
6484         * manual/llio.texi (Synchronizing AIO Operations): Update description
6485         for EBADF error from aio_fsync.
6486
6487 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6488
6489         * Rules (bench): Move target definition...
6490         * benchtests/Makefile: ... here.
6491
6492 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
6493
6494         * math/libm-test.inc (cos_test): Fix PI/2 test.
6495         (sincos_test): Likewise.
6496         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6497         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6498
6499 2013-04-11  Andreas Schwab  <schwab@suse.de>
6500
6501         [BZ #13988]
6502         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
6503         accept exponent character only when digits were seen.
6504         * stdio-common/Makefile (tests): Add bug26.
6505         * stdio-common/bug26.c: New file.
6506
6507         [BZ #14293]
6508         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
6509         non-freeable.
6510
6511 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6512
6513         * Makeconfig (rtld-prefix): Define built linker prefix.
6514         * Rules (run-bench): Use it.
6515         * math/Makefile (run-regen-ulps): Likewise.
6516
6517         * Rules (bench): Remove eval.
6518
6519 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6520             Roland McGrath  <roland@hack.frob.com>
6521             Ondrej Bilka  <neleai@seznam.cz>
6522
6523         [BZ #15346]
6524         * time/getdate.c: Include ctype.h and alloca.h.
6525         (__getdate_r): Trim leading and trailing spaces of input.
6526         * time/tst-getdate.c (tests): Add tests with leading and
6527         trailing spaces.
6528
6529 2013-04-08  Roland McGrath  <roland@hack.frob.com>
6530
6531         [BZ #14280]
6532         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
6533         when computing value.
6534
6535 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6536
6537         * math/README.libm-test (How can I generate "libm-test-ulps"?):
6538         Use testrun.sh to run libm tests.
6539
6540         [BZ #15309]
6541         * elf/dl-open.c (dl_open_worker): memset all of seen array.
6542
6543 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
6544
6545         [BZ #15264]
6546         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
6547
6548 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6549
6550         * Makefile.in (regen-ulps): New target.
6551         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
6552         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
6553         [ifneq (no,$(PERL)] (regen-ulps): New target.
6554         [ifeq (no,$(PERL)] (regen-ulps): New target.
6555         * math/libm-test.inc (ulps_file_name): Define.
6556         (output_dir): New variable.
6557         (options): Add "output-dir" option.
6558         (parse_opt): Handle 'o' case.
6559         (main): If output_dir is non-NULL use it as a prefix
6560         otherwise use "".
6561         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
6562
6563 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6564
6565         [BZ #10060, #10062]
6566         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
6567         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
6568         fail configure if __sync_val_compare_and_swap is not inlined.
6569         * sysdeps/i386/configure: Regenerate.
6570         * configure.in: Build for i686 when configured for i386.
6571         * configure: Regenerate.
6572         * README: Remove i386 reference.
6573
6574 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6575
6576         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
6577         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6578
6579 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6580
6581         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
6582         (lmsnanval): New variables.
6583         (F): Add conversion tests.
6584         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
6585         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
6586
6587         * stdio-common/tstdiomisc.c (F): Properly collect individual
6588         tests' results.
6589
6590         [BZ #14686, #15336]
6591         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
6592         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
6593         Instead, use input NaN values or generate a qNaN by arithmetic
6594         operation.  Also fix bugs to comply with the standard.
6595         * math/libm-test.inc (remainder_test): Add more tests.
6596
6597         [BZ #15335, #15342]
6598         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
6599         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
6600         input NaN values or generate a qNaN by arithmetic operation.
6601
6602         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
6603         unreachable code.
6604
6605         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
6606         definitions.
6607
6608 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
6609
6610         [BZ #14478]
6611         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
6612         underflowed result.
6613         * math/s_cexpf.c (__cexpf): Likewise.
6614         * math/s_cexpl.c (__cexpl): Likewise.
6615         * math/libm-test.inc (cexp_test): Add more tests.
6616
6617 2013-04-03  Andreas Schwab  <schwab@suse.de>
6618
6619         [BZ #15330]
6620         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
6621         order arrays from heap if bigger than alloca cutoff.
6622
6623 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6624
6625         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
6626         (SNAN_TESTS_double): Refer to GCC PR56831.
6627         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
6628         GCC PR56828.
6629
6630 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6631
6632         * Rules (bench): Move bench.out after the run is complete.
6633
6634         * Rules (bench): Echo currently running benchmark.
6635
6636         * benchtests/Makefile (bench): Add atan and slowatan.
6637         * benchtests/atan-inputs: New file.
6638         * benchtests/slowatan-inputs: New file.
6639         * benchtests/slowatan.c: New file.
6640
6641         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
6642         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
6643         its value.
6644
6645         [BZ #15305]
6646         * sysdeps/unix/sysv/linux/kernel-features.h
6647         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
6648         __ASSUME_XFS_RESTRICTED_CHOWN.
6649         * sysdeps/unix/sysv/linux/pathconf.c
6650         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
6651         Save and restore errno.
6652
6653 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
6654
6655         [BZ #15327]
6656         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
6657         arguments using __kernel_casinh.
6658         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
6659         arguments using __kernel_casinhf.
6660         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
6661         arguments using __kernel_casinhl.
6662         * math/libm-test.inc (cacosh_test): Add more tests.
6663         * sysdeps/i386/fpu/libm-test-ulps: Update.
6664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6665
6666 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6667
6668         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
6669         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
6670
6671         * bench/Makefile (bench): Add sin and slowsin.
6672         * benchtests/sin-inputs: New file.
6673         * benchtests/slowsin-inputs: New file.
6674         * benchtests/slowsin.c: New file.
6675
6676         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
6677         (bench): Add slowexp and slowpow.
6678         (exp-ITER): Increase iterations.
6679         (pow-ITER): Likewise.
6680         * benchtests/exp-inputs: Change input.
6681         * benchtests/pow-inputs: Likewise.
6682         * benchtests/slowexp-inputs: New file.
6683         * benchtests/slowexp.c: New file.
6684         * benchtests/slowpow-inputs: New file.
6685         * benchtests/slowpow.c: New file.
6686
6687 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6688
6689         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
6690         instructions.
6691         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
6692         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
6693         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
6694         * benchtests/Makefile: Add rint benchtest.
6695         * benchtests/rint-inputs: Input for rint benchtest.
6696
6697 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
6698
6699         * Versions.def (libm): Add GLIBC_2.18.
6700         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
6701         hidden libm prototypes.
6702         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
6703         * math/Makefile (libm-calls): Add s_issignaling.
6704         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
6705         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
6706         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
6707         declaration.
6708         * math/math.h [__USE_GNU] (issignaling): New macro.
6709         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
6710         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
6711         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
6712         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
6713         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
6714         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
6715         * manual/arith.texi (issignaling): New section.
6716         * manual/libm-err-tab.pl (@all_functions): Update comment.
6717         * math/gen-libm-test.pl (parse_args): Apply special handling for
6718         issignaling.
6719         * math/libm-test.inc (print_float, issignaling_test): New
6720         functions.
6721         (check_float_internal): Add issignaling checks.
6722         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
6723         default definition.
6724         * sysdeps/powerpc/math-tests.h: New file.
6725         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
6726         tests.
6727         * math/test-snan.c (TEST_FUNC): Likewise.
6728
6729 2013-03-30  David S. Miller  <davem@davemloft.net>
6730
6731         * po/de.po: Update from translation team.
6732
6733 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
6734
6735         [BZ #10357]
6736         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6737         imaginary part less than 1.0 and real part less than 0.5
6738         specially.
6739         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6740         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6741         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
6742         (cacos_test): Add more tests.
6743         (casin_test): Likewise.
6744         (casinh_test): Likewise.
6745         * sysdeps/i386/fpu/libm-test-ulps: Update.
6746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6747
6748 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6749
6750         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
6751         ONE with its value.
6752
6753         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
6754         (__pow_mp): Replace ONE and MONE with their values.
6755         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6756         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
6757         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6758         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
6759         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6760         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6761
6762         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
6763
6764         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
6765         (__pow_mp): Replace ZERO and MZERO with their values.
6766         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
6767         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6768         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6769         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
6770         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6771         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
6772         (__sqr): Likewise.
6773
6774         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
6775
6776         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
6777
6778 2013-03-28  Roland McGrath  <roland@hack.frob.com>
6779
6780         * include/stdlib.h [!SHARED] (__call_tls_dtors):
6781         Declare with __attribute__ ((weak)).
6782         * stdlib/exit.c (__libc_atexit) [!SHARED]:
6783         Call __call_tls_dtors only if it's not NULL.
6784
6785 2013-03-28  Roland McGrath  <roland@hack.frob.com>
6786
6787         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
6788         didn't do it already, then set _dl_phdr and _dl_phnum based on the
6789         magic __ehdr_start linker symbol if it's defined.
6790         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
6791         them up here if it was already done.
6792
6793         * elf/dl-support.c (_dl_phdr): Make pointer to const.
6794         (_dl_aux_init): Use const in cast when setting it.
6795         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
6796         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
6797         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
6798
6799         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
6800         Declare them here.
6801         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
6802         * csu/libc-tls.c: Nor here.
6803         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
6804
6805         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
6806         (__libc_message): Never call vsyslog.
6807
6808 2013-03-28  Alan Modra  <amodra@gmail.com>
6809
6810         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
6811         Define as empty.
6812         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
6813         Likewise.
6814
6815 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6816
6817         [BZ #15214]
6818         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
6819         underflow.
6820         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6821
6822 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6823
6824         [BZ #15304]
6825         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
6826         Don't add gid passed as argument.
6827
6828         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
6829
6830 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
6831
6832         [BZ #15307]
6833         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6834         imaginary part between 1.0 and 1.5 and real part less than 0.5
6835         specially.
6836         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6837         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6838         * math/libm-test.inc (cacos_test): Add more tests.
6839         (casin_test): Likewise.
6840         (casinh_test): Likewise.
6841         * sysdeps/i386/fpu/libm-test-ulps: Update.
6842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6843
6844 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6845
6846         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
6847         constants.
6848         (norm): Likewise.
6849         (denorm): Likewise.
6850         (__dbl_mp): Likewise.
6851         (add_magnitudes): Likewise.
6852         (sub_magnitudes): Likewise.
6853         (__add): Likewise.
6854         (__sub): Likewise.
6855         (__mul): Likewise.
6856         (__sqr): Likewise.
6857         (__inv): Likewise.
6858         (__dvd): Likewise.
6859
6860         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
6861         commented code.
6862         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
6863         (__dubcos): Likewise.
6864         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
6865         (__ieee754_acos): Likewise.
6866         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
6867         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
6868         (__exp1): Likewise.
6869         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6870         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6871         (log1): Likewise.
6872         (my_log2): Likewise.
6873         (checkint): Likewise.
6874         * sysdeps/ieee754/dbl-64/e_remainder.c
6875         (__ieee754_remainder): Likewise.
6876         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6877         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
6878         (bsloww): Likewise.
6879         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6880
6881         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
6882         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
6883         MANTISSA_STORE_T to store computations on mantissa.  Use
6884         macros for rounding and division.
6885         (denorm): Likewise.
6886         (__dbl_mp): Likewise.
6887         (add_magnitudes): Likewise.
6888         (sub_magnitudes): Likewise.
6889         (__mul): Likewise.
6890         (__sqr): Likewise.
6891         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
6892         powers of two in terms of TWOPOW macro.
6893         (mp_no): Make type of mantissa as MANTISSA_T.
6894         [!RADIXI]: Define RADIXI.
6895         [!TWO52]: Define TWO52.
6896         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
6897
6898 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6899
6900         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
6901         llroundl symbol when building for PPC32.
6902
6903 2013-03-24  Mark H Weaver  <mhw@netris.org>
6904
6905         * manual/arith.texi (Normalization Functions): Fix prototypes for
6906         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
6907
6908 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6909
6910         [BZ #13889]
6911         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
6912         high value to check if expl overflow.
6913         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
6914         to check for underflow and overflow.
6915         * math/libm-test.inc: Add exp test.
6916
6917 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
6918
6919         [BZ #11120]
6920         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
6921         with NOT_IN_libc.
6922
6923 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6924
6925         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
6926         symbol.
6927
6928 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6929
6930         * math/gen-libm-test.pl (parse_args, special_functions): Properly
6931         wrap blocks consisting of several statements.
6932
6933         * sysdeps/generic/math-tests.h: New file.
6934         * sysdeps/i386/fpu/math-tests.h: Likewise.
6935         * math/test-snan.c: Include it.
6936         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
6937
6938 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
6939
6940         [BZ #15285]
6941         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
6942         (__ieee754_j0l): Do not improve calculations using cos of twice
6943         input for inputs above LDBL_MAX / 2.0L.
6944         (__ieee754_y0l): Likewise.
6945         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
6946         (__ieee754_j1l): Do not improve calculations using cos of twice
6947         input for inputs above LDBL_MAX / 2.0L.
6948         (__ieee754_y1l): Likewise.
6949         * math/libm-test.inc (j0_test): Add another test.
6950         (j1_test): Likewise.
6951         (y0_test): Likewise.
6952         (y1_test): Likewise.
6953         * sysdeps/i386/fpu/libm-test-ulps: Update.
6954
6955 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6956
6957         * Rules ($(objpfx)bench-%.c): Include code from a C source
6958         file.
6959
6960 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
6961
6962         [BZ #15287]
6963         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6964         imaginary part 1.0 and real part less than 0.5 specially.
6965         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6966         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6967         * math/libm-test.inc (cacos_test): Add more tests.
6968         (casin_test): Likewise.
6969         (casinh_test): Likewise.
6970         * sysdeps/i386/fpu/libm-test-ulps: Update.
6971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6972
6973 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6974
6975         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
6976         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
6977
6978 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
6979
6980         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
6981         * config.make.in (config-cflags-sse4): Remove variable.
6982         (config-cflags-avx): Likewise.
6983         (config-cflags-sse2avx): Likewise.
6984         (config-cflags-novzeroupper): Likewise.
6985         (config-asflags-i686): Likewise.
6986         (have-mfma4): Likewise.
6987         (have-as-vis3): Likewise.
6988         (MIG): Likewise.
6989         * configure.in (MIG): Do not AC_SUBST.
6990         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
6991         (libc_cv_cc_sse4): Do not AC_SUBST.
6992         (libc_cv_cc_avx): Likewise.
6993         (libc_cv_cc_sse2avx): Likewise.
6994         (libc_cv_cc_novzeroupper): Likewise.
6995         (libc_cv_cc_fma4): Likewise.
6996         (libc_cv_as_i686): Likewise.
6997         (libc_cv_sparc_as_vis3): Likewise.
6998         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
6999         LIBC_CONFIG_VAR.
7000         (config-asflags-i686): Likewise.
7001         (config-cflags-avx): Likewise.
7002         (config-cflags-sse2avx): Likewise.
7003         (have-mfma4): Likewise.
7004         (config-cflags-novzeroupper): Likewise.
7005         * sysdeps/mach/configure.in (MIG): Likewise.
7006         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
7007         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
7008         LIBC_CONFIG_VAR.
7009         (config-cflags-avx): Likewise.
7010         (config-cflags-sse2avx): Likewise.
7011         (have-mfma4): Likewise.
7012         (config-cflags-novzeroupper): Likewise.
7013         * configure: Regenerated.
7014         * sysdeps/i386/configure: Likewise.
7015         * sysdeps/mach/configure: Likewise.
7016         * sysdeps/sparc/configure: Likewise.
7017         * sysdeps/x86_64/configure: Likewise.
7018
7019 2013-03-20  Roland McGrath  <roland@hack.frob.com>
7020
7021         [BZ #14812]
7022         * locale/programs/localedef.c (options): Put N_ translation marker
7023         on argument names, not just descriptions.
7024
7025 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7026
7027         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
7028
7029 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
7030
7031         [BZ #14176]
7032         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
7033
7034 2013-03-19  Roland McGrath  <roland@hack.frob.com>
7035
7036         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
7037         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
7038         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
7039         [!BEFORE_ABORT] (before_abort): New function.
7040         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
7041         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
7042         (writev_for_fatal): New function.
7043         (WRITEV_FOR_FATAL): New macro; call that.
7044         (backtrace_and_maps): New function.
7045         (BEFORE_ABORT): New macro; call that.
7046         (struct str_list): Type removed.
7047         (__libc_message, __libc_fatal): Functions removed.
7048         Include <sysdeps/posix/libc_fatal.c> instead.
7049
7050 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
7051
7052         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
7053         constants.
7054         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
7055         double constants.
7056
7057 2013-03-19  Andreas Schwab  <schwab@suse.de>
7058
7059         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
7060         * sysdeps/gnu/configure: Regenerate.
7061
7062         * configure.in: Substitute libc_cv_rtlddir.
7063         * configure: Regenerate.
7064         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
7065         * Makeconfig (rtlddir, inst_rtlddir): New variables.
7066         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
7067         * elf/Makefile (install-others, CFLAGS-interp.c)
7068         (ldso_install, common-ldd-rewrite): Likewise.
7069         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
7070         $(inst_slibdir)/$(rtld-installed-name).
7071         * scripts/rellns-sh: Add -p option.
7072         * Makerules (make-shlib-link): Use rellns-sh to get relative name
7073         for source.
7074
7075 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7076
7077         * manual/nptl.texi: Renamed to ...
7078         * manual/threads.texi: ... this.
7079         * manual/Makefile (chapters): Update.
7080
7081 2013-03-18  Roland McGrath  <roland@hack.frob.com>
7082
7083         [BZ #14812]
7084         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
7085         on argument names, not just descriptions.
7086         * malloc/memusagestat.c (options): Likewise.
7087         * nss/getent.c (options): Likewise.
7088
7089 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
7090
7091         [BZ #14812]
7092         * iconv/iconv_prog.c (options): Put N_ translation marker
7093         on argument names, not just descriptions.
7094         * iconv/iconvconfig.c (options): Likewise.
7095
7096 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
7097
7098         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
7099         implementation which is faster on all x86_64 architectures.
7100         Tested on AMD, Intel Nehalem, SNB, IVB.
7101         * sysdeps/x86_64/strnlen.S: Likewise.
7102
7103         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
7104         Remove all multiarch strlen and strnlen versions.
7105         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
7106         Remove strlen and strnlen related parts.
7107
7108         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
7109         Inline strlen part.
7110         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
7111
7112         * sysdeps/x86_64/multiarch/strlen.S: Remove.
7113         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
7114         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
7115         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
7116         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
7117         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
7118
7119 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
7120
7121         * manual/memory.texi (Malloc Tunable Parameters):
7122         Sort parameters alphabetically. Add comments for missing entries.
7123
7124 2013-03-17  David S. Miller  <davem@davemloft.net>
7125
7126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7127
7128 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
7129
7130         [BZ #15283]
7131         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
7132         for arguments at most half maximum finite value.
7133         * math/libm-test.inc (j0_test): Add more tests.
7134         (j1_test): Likewise.
7135         (y0_test): Likewise.
7136         (y1_test): Likewise.
7137         * sysdeps/i386/fpu/libm-test-ulps: Update.
7138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7139
7140         [BZ #14155]
7141         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
7142         1 / x and functions P and Q for arguments above 0x1p256L.
7143         (__ieee754_y0l): Likewise.
7144         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7145         (__ieee754_y1l): Likewise.
7146         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
7147         (j1_test): Likewise.
7148         (y0_test): Likewise.
7149         (y1_test): Likewise.
7150
7151 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
7152
7153         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
7154         variable.
7155
7156 2013-03-15  Roland McGrath  <roland@hack.frob.com>
7157
7158         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
7159         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
7160         zero since it's initialized to EXEC_PAGESIZE.
7161
7162         * sysdeps/unix/sysv/linux/ldsodefs.h
7163         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
7164         * sysdeps/generic/ldsodefs.h: ... here.
7165
7166 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
7167
7168         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
7169
7170         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
7171         math/test-snan.c.
7172         * math/test-snan.c: Renamed from
7173         sysdeps/powerpc/fpu/test-powerpc-snan.c.
7174         * math/Makefile (tests): Add test-snan.
7175         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
7176         test-powerpc-snan.
7177
7178         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
7179         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
7180         functions.
7181         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
7182         __builtin_nan family of functions.
7183         * math/libm-test.inc (initialize): Initialize qnan_value with
7184         __builtin_nan family of functions.
7185         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
7186         Remove variables.
7187         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
7188         Remove functions.
7189         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
7190         storage class.  Initialize qNaN_var and sNaN_var with
7191         __builtin_nan and __builtin_nans families of functions,
7192         respectively.
7193
7194         * math/libm-test.inc (acosh_test): Also test with qNaN input.
7195         (sqrt_test): Remove duplicate test with qNaN input.
7196         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
7197         (round_test, signbit_test, significand_test): Note missing +/-Inf
7198         as well as qNaN tests.
7199
7200         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
7201         qNaN_var.  Fix a few strings, too.
7202         * math/libm-test.inc (nan_value): Rename to qnan_value.
7203         * math/gen-libm-test.pl (%beautify): Adjust to that.
7204         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
7205         * math/test-misc.c (main): Likewise.
7206         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
7207         to __qnan_bytes, and __qnan_union, respectively.
7208         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
7209         Likewise.
7210         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
7211         and lqnanval, respectively.
7212         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
7213         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
7214         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
7215         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
7216
7217         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
7218         * math/test-misc.c (main) [__x86_64__]: Enable test for long
7219         doubles.
7220
7221         * math/test-misc.c (main): Fix copy'n'pastos.
7222         * misc/tst-efgcvt.c (special): Likewise.
7223
7224         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
7225         Remove declarations.
7226
7227 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7228
7229         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
7230         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
7231         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
7232         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
7233
7234 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7235
7236         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
7237         macro to return vdso values correctly in IFUNC implementations.
7238         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
7239         Optimization by using IFUNC.
7240
7241 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7242             Richard Henderson  <rth@redhat.com>
7243             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7244
7245         * Makefile.in (bench): New target.
7246         * NEWS: Mention the benchmark framework.
7247         * Rules (bench): Likewise.
7248         (binaries-bench): Generate binaries for functions to
7249         benchmark.
7250         * benchtests/Makefile: New makefile for benchmark tests.
7251         * benchtests/bench-skeleton.c: New skeleton file for benchmark
7252         programs.
7253         * benchtests/exp-inputs: New input file for EXP function.
7254         * benchtests/pow-inputs: New input file for POW function.
7255         * scripts/bench.pl: New script to generate source files for
7256         benchmark programs.
7257
7258 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7259
7260         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
7261         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
7262         computations on mantissa.  Use macros for rounding and
7263         division.
7264         (denorm): Likewise.
7265         (__dbl_mp): Likewise.
7266         (add_magnitudes): Likewise.
7267         (sub_magnitudes): Likewise.
7268         (__mul): Likewise.
7269         (__sqr): Likewise.
7270         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
7271         powers of two in terms of TWOPOW macro.
7272         (mp_no): Make type of mantissa as MANTISSA_T.
7273         [!RADIXI]: Define RADIXI.
7274         [!TWO52]: Define TWO52.
7275         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7276
7277         * manual/nptl.texi (cindex): Modify threads to pthreads.
7278
7279 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
7280
7281         * sysdeps/x86_64/preconfigure: Regenerated.
7282
7283 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
7284
7285         [BZ #14155]
7286         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
7287         0x1p28 and above.
7288         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
7289         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
7290         0x1p28 and above.
7291         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
7292         * math/libm-test.inc (j0_test): Do not allow one spurious
7293         underflow exception.
7294         (y1_test): Likewise.
7295
7296 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7297
7298         * manual/Makefile (chapters): Add nptl.
7299         * manual/debug.texi (Debugging Support): Add link to Threads
7300         chapter.
7301         * manual/nptl.texi: New file.
7302
7303         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
7304
7305 2013-03-14  Petr Baudis  <pasky@ucw.cz>
7306
7307         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
7308         for non-NULL pointer before the memory validity test. Pointed
7309         out by Holger Brunck <holger.brunck@keymile.com>.
7310
7311 2013-03-13  Andreas Schwab  <schwab@suse.de>
7312
7313         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
7314         instead of .os.
7315
7316 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
7317
7318         * timezone/zic.c: Update from tzcode 2013b.
7319
7320 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
7321
7322         * manual/install.texi (Configuring and compiling):
7323         Mention i686 and i586.
7324         * INSTALL: Regenerate.
7325
7326 2013-03-12  Roland McGrath  <roland@hack.frob.com>
7327
7328         * sysdeps/init_array/elf-init.c: New file.
7329         * csu/elf-init.c
7330         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
7331         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
7332
7333         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
7334         __gmon_start__ as global, but as static with a .preinit_array pointer.
7335         * sysdeps/init_array/gmon-start.c: New file.  Use that.
7336         * sysdeps/init_array/crti.S: New file, empty except for comments.
7337         * sysdeps/init_array/crtn.S: Likewise.
7338
7339 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
7340
7341         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
7342         definining bcopy.
7343         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7344         Remove Prefer_SSE_for_memop.
7345         * sysdeps/x86_64/multiarch/init-arch.h: Remove
7346         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
7347         HAS_PREFER_SSE_FOR_MEMOP.
7348         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7349         memset-x86-64.
7350         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7351         Remove bzero, memset ifunc support.
7352         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
7353         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
7354         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7355         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7356
7357 2013-03-11  Andreas Schwab  <schwab@suse.de>
7358
7359         [BZ #15234]
7360         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
7361         by SHLIB_COMPAT.
7362         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
7363         (GLIBC_2.16): Remove pthread_atfork.
7364
7365 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
7366
7367         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
7368         (ptestcases.h): Likewise.
7369
7370 2013-03-08  Roland McGrath  <roland@hack.frob.com>
7371
7372         * Makeconfig ($(common-objpfx)config.status): Depend on
7373         sysdeps/*/preconfigure{,.in} too.
7374
7375 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
7376
7377         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
7378         (__free_hook): Use void * instead of __malloc_ptr_t.
7379         (__malloc_hook): Likewise.
7380         (__realloc_hook): Likewise.
7381         (__memalign_hook): Likewise.
7382         (__after_morecore_hook): Likewise.
7383         * malloc/arena.c (save_malloc_hook): Likewise.
7384         (save_free_hook): Likewise.
7385         * malloc/hooks.c (malloc_hook_ini): Likewise.
7386         (realloc_hook_ini): Likewise.
7387         (memalign_hook_ini): Likewise.
7388         * malloc/malloc.c (malloc_hook_ini): Likewise.
7389         (realloc_hook_ini): Likewise.
7390         (memalign_hook_ini): Likewise.
7391         (__free_hook): Likewise.
7392         (__malloc_hook): Likewise.
7393         (__realloc_hook): Likewise.
7394         (__memalign_hook): Likewise.
7395         (__libc_malloc): Likewise.
7396         (__libc_free): Likewise.
7397         (__libc_realloc): Likewise.
7398         (__libc_memalign): Likewise.
7399         (__libc_valloc): Likewise.
7400         (__libc_pvalloc): Likewise.
7401         (__libc_calloc): Likewise.
7402         (__posix_memalign): Likewise.
7403         * malloc/morecore.c (__sbrk): Likewise.
7404         (__default_morecore): Likewise.
7405
7406         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
7407
7408         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
7409         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
7410         __malloc_ptrdiff_t.
7411
7412         * malloc/malloc.h (__malloc_size_t): Remove macro.
7413         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
7414         __malloc_size_t.
7415         (old_memalign_hook): Likewise.
7416         (old_realloc_hook): Likewise.
7417         (struct hdr): Likewise.
7418         (flood): Likewise.
7419         (mallochook): Likewise.
7420         (memalignhook): Likewise.
7421         (reallochook): Likewise.
7422         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
7423         (tr_old_realloc_hook): Likewise.
7424         (tr_old_memalign_hook): Likewise.
7425         (tr_mallochook): Likewise.
7426         (tr_reallochook): Likewise.
7427         (tr_memalignhook): Likewise.
7428
7429 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7430
7431         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
7432         default_ldbl_pack and using as default implementation.
7433         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
7434         implementation.
7435         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
7436         redundant definition.
7437         (ldbl_insert_mantissa): Likewise.
7438         (ldbl_canonicalize): Likewise.
7439         (ldbl_nearbyint): Likewise.
7440         (ldbl_pack): Rename to ldbl_pack_ppc.
7441         (ldbl_unpack): Rename to ldbl_unpack_ppc.
7442         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
7443         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
7444
7445 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
7446
7447         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
7448         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
7449         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
7450         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
7451         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
7452         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
7453         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
7454         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
7455
7456 2013-03-07  Andreas Jaeger  <aj@suse.de>
7457
7458         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7459         bits/mman-linux.h.
7460
7461 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7462
7463         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
7464         Include mpa.h and declare __MPEXP.
7465         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
7466         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7467         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7468         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
7469         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7470         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7471         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
7472
7473         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
7474         (__slowpow): Use long double EXPL and LOGL functions to
7475         compute POW.
7476         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7477         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7478         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
7479         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7480         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7481         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
7482
7483         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
7484         intermediate variable to calculate exponent.
7485         (__sqr): Likewise.
7486         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
7487         Likewise.
7488         (__sqr): Likewise.
7489
7490         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
7491         [!NO__SQR]: Define __sqr.
7492         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
7493         and NO__SQR.  Remove all code except __mul and __sqr.  Include
7494         sysdeps/ieee754/dbl-64/mpa.c.
7495         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7496
7497         [BZ #12723]
7498         * posix/Makefile (tests): Add tst-pathconf.
7499         * posix/tst-pathconf.c: New test case.
7500         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
7501         _PC_PIPE_BUF.
7502         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
7503
7504 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
7505
7506         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
7507
7508 2013-03-06  Andreas Jaeger  <aj@suse.de>
7509
7510         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
7511         definition via __MAP_ANONYMOUS.
7512
7513         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
7514         it's not part of Linux headers.
7515
7516         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
7517         (MAP_HUGE_MASK): Define.
7518
7519         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7520         Define.
7521         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7522         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7523         Define.
7524         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7525         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7526         Define.
7527         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7528         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
7529         Define.
7530         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7531
7532         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
7533         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
7534         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
7535         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
7536         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
7537         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
7538
7539         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
7540         Handle f2fs.
7541
7542         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7543         Handle f2fs and efivarfs.
7544
7545         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
7546         f2fs.
7547
7548         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
7549         (EFIVARFS_MAGIC): Add.
7550         (F2FS_LINK_MAX): Add.
7551
7552 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7553
7554         * stdio-common/vfprintf.c: Replace __builtin_expect with
7555         __glibc_unlikely.
7556
7557 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
7558
7559         [BZ #13550]
7560         * sysdeps/generic/bp-sym.h: Remove file.
7561         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
7562         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
7563         <bp-sym.h> and <bp-asm.h>.
7564         (__longjmp): Don't use BP_SYM.
7565         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
7566         and <bp-asm.h>.
7567         (memcpy): Don't use BP_SYM.
7568         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
7569         <bp-sym.h> and <bp-asm.h>.
7570         (memcpy): Don't use BP_SYM.
7571         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
7572         <bp-asm.h>.
7573         (memcpy): Don't use BP_SYM.
7574         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
7575         <bp-asm.h>.
7576         (memset): Don't use BP_SYM.
7577         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7578         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7579         (__bzero): Don't use BP_SYM.
7580         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7581         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7582         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
7583         <bp-sym.h> and <bp-asm.h>.
7584         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7585         pointers.
7586         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
7587         <bp-sym.h> and <bp-asm.h>.
7588         (memcpy): Don't use BP_SYM.
7589         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
7590         <bp-sym.h> and <bp-asm.h>.
7591         (memset): Don't use BP_SYM.
7592         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7593         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7594         (__bzero): Don't use BP_SYM.
7595         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7596         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7597         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
7598         <bp-sym.h> and <bp-asm.h>.
7599         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7600         pointers.
7601         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
7602         <bp-sym.h> and <bp-asm.h>.
7603         (memcpy): Don't use BP_SYM.
7604         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
7605         <bp-sym.h> and <bp-asm.h>.
7606         (memset): Don't use BP_SYM.
7607         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7608         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7609         (__bzero): Don't use BP_SYM.
7610         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7611         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7612         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
7613         <bp-sym.h> and <bp-asm.h>.
7614         (__memchr): Don't use BP_SYM.
7615         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
7616         <bp-sym.h> and <bp-asm.h>.
7617         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7618         pointers.
7619         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
7620         <bp-sym.h> and <bp-asm.h>.
7621         (memcpy): Don't use BP_SYM.
7622         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
7623         <bp-sym.h> and <bp-asm.h>.
7624         (__mempcpy): Don't use BP_SYM.
7625         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
7626         <bp-sym.h> and <bp-asm.h>.
7627         (__memrchr): Don't use BP_SYM.
7628         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
7629         <bp-sym.h> and <bp-asm.h>.
7630         (memset): Don't use BP_SYM.
7631         (__bzero): Likewise.
7632         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
7633         <bp-sym.h> and <bp-asm.h>.
7634         (__rawmemchr): Don't use BP_SYM.
7635         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
7636         <bp-sym.h> and <bp-asm.h>.
7637         (__STRCMP): Don't use BP_SYM.
7638         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
7639         <bp-sym.h> and <bp-asm.h>.
7640         (strchr): Don't use BP_SYM.
7641         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
7642         <bp-sym.h> and <bp-asm.h>.
7643         (__strchrnul): Don't use BP_SYM.
7644         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
7645         <bp-sym.h> and <bp-asm.h>.
7646         (strlen): Don't use BP_SYM.
7647         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
7648         <bp-sym.h> and <bp-asm.h>.
7649         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7650         pointers.
7651         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
7652         <bp-sym.h> and <bp-asm.h>.
7653         (__strnlen): Don't use BP_SYM.
7654         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
7655         <bp-sym.h> and <bp-asm.h>.
7656         (__GI__setjmp): Don't use BP_SYM.
7657         (_setjmp): Likewise.
7658         (__sigsetjmp): Likewise.
7659         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
7660         (L(start_addresses)): Don't use BP_SYM.
7661         (_start): Likewise.
7662         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
7663         <bp-asm.h>.
7664         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
7665         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
7666         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7667         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7668         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
7669         <bp-asm.h>.
7670         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
7671         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
7672         about bounded pointers.
7673         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7674         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7675         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
7676         <bp-asm.h>.
7677         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
7678         about bounded pointers.  Remove GKM FIXME comments.
7679         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7680         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
7681         <bp-asm.h>.
7682         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
7683         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
7684         Remove GKM FIXME comments.
7685         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7686         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7687         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
7688         <bp-asm.h>.
7689         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
7690         about bounded pointers.  Remove GKM FIXME comment.
7691         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
7692         and <bp-asm.h>.
7693         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7694         pointers.
7695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
7696         <bp-sym.h> and <bp-asm.h>.
7697         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
7698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
7699         <bp-sym.h> and <bp-asm.h>.
7700         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
7701         comment.
7702
7703 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7704
7705         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
7706         call free(NULL).
7707
7708 2013-03-05  David S. Miller  <davem@davemloft.net>
7709
7710         * po/es.po: Update from translation team.
7711
7712 2013-03-05  Andreas Jaeger  <aj@suse.de>
7713
7714         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
7715         <bits/mman-linux.h>.
7716         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7717         is fine.
7718         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
7719         <bits/mman-linux.h> to end of file.
7720         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7721         is fine.
7722         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
7723         <bits/mman-linux.h> to end of file.
7724         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7725         is fine.
7726         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
7727         <bits/mman-linux.h> to end of file.
7728
7729         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
7730         (MCL_CURRENT, MCL_FUTURE): Define here.
7731
7732 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7733
7734         [BZ #15232]
7735         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
7736         attribute_hidden.
7737         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
7738
7739 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7740
7741         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
7742         fourth parameter needed for rt_sigprocmask syscall.
7743         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
7744         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7745         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7746         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7747         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7748         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
7749
7750 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
7751
7752         [BZ #13550]
7753         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
7754         comment about bounded pointers.
7755         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
7756         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
7757
7758 2013-03-04  Andreas Jaeger  <aj@suse.de>
7759
7760         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
7761         common definitions.
7762
7763         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
7764         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
7765         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
7766         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7767         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
7768         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7769
7770 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7771
7772         [BZ #15055]
7773         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
7774         __ieee754_sqrl instead of __sqrl.
7775
7776 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
7777
7778         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
7779         * sysdeps/powerpc/fpu_control.h: ... here.
7780         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
7781         * sysdeps/powerpc/bits/fenvinline.h: ... here.
7782         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
7783         * sysdeps/powerpc/bits/mathinline.h: ... here.
7784
7785 2013-03-01  Roland McGrath  <roland@hack.frob.com>
7786
7787         * elf/dl-hwcaps.c (_dl_important_hwcaps):
7788         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
7789         to just [NEED_DL_SYSINFO_DSO].
7790         * elf/dl-support.c: Likewise.
7791         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
7792         * elf/rtld.c (dl_main): Likewise.
7793         * elf/setup-vdso.h (setup_vdso): Likewise.
7794         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
7795         * sysdeps/unix/sysv/linux/dl-sysdep.c
7796         (_dl_discover_osversion): Likewise.
7797
7798 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
7799
7800         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
7801         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
7802
7803 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
7804
7805         * NEWS: Mention libm performance improvements and non-x86 PI
7806         futex support.
7807
7808         * csu/libc-start.c (__pthread_initialize_minimal): Change
7809         function arguments.
7810         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
7811
7812 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
7813
7814         [BZ #13550]
7815         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
7816         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
7817         <bp-sym.h> and <bp-asm.h>.
7818         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7819         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
7820         and <bp-asm.h>.
7821         (memcpy): Don't use BP_SYM.
7822         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
7823         <bp-asm.h>.
7824         (__mpn_add_n): Don't use BP_SYM.
7825         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
7826         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
7827         and <bp-asm.h>.
7828         (__mpn_addmul_1): Don't use BP_SYM.
7829         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7830         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
7831         <bp-sym.h>.
7832         (_setjmp): Don't use BP_SYM.
7833         (__novmx_setjmp): Likewise.
7834         (__GI__setjmp): Likewise.
7835         (__vmx_setjmp): Likewise.
7836         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
7837         <bp-sym.h>.
7838         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
7839         (__bzero): Don't use BP_SYM.
7840         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7841         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7842         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
7843         <bp-sym.h> and <bp-asm.h>.
7844         (memcpy): Don't use BP_SYM.
7845         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
7846         <bp-sym.h> and <bp-asm.h>.
7847         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7848         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
7849         <bp-sym.h> and <bp-asm.h>.
7850         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7851         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
7852         <bp-asm.h>.
7853         (__mpn_lshift): Don't use BP_SYM.
7854         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7855         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
7856         <bp-asm.h>.
7857         (memset): Don't use BP_SYM.
7858         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7859         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7860         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
7861         <bp-asm.h>.
7862         (__mpn_mul_1): Don't use BP_SYM.
7863         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7864         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
7865         <bp-sym.h> and <bp-asm.h>.
7866         (memcmp): Don't use BP_SYM.
7867         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
7868         <bp-sym.h> and <bp-asm.h>.
7869         (memcpy): Don't use BP_SYM.
7870         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
7871         <bp-sym.h> and <bp-asm.h>.
7872         (memset): Don't use BP_SYM.
7873         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
7874         <bp-sym.h> and <bp-asm.h>.
7875         (strncmp): Don't use BP_SYM.
7876         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
7877         <bp-sym.h> and <bp-asm.h>.
7878         (memcpy): Don't use BP_SYM.
7879         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
7880         <bp-sym.h> and <bp-asm.h>.
7881         (memset): Don't use BP_SYM.
7882         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
7883         <bp-sym.h> and <bp-asm.h>.
7884         (__memchr): Don't use BP_SYM.
7885         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
7886         <bp-sym.h> and <bp-asm.h>.
7887         (memcmp): Don't use BP_SYM.
7888         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
7889         <bp-sym.h> and <bp-asm.h>.
7890         (memcpy): Don't use BP_SYM.
7891         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
7892         <bp-sym.h> and <bp-asm.h>.
7893         (__mempcpy): Don't use BP_SYM.
7894         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
7895         <bp-sym.h> and <bp-asm.h>.
7896         (__memrchr): Don't use BP_SYM.
7897         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
7898         <bp-sym.h> and <bp-asm.h>.
7899         (memset): Don't use BP_SYM.
7900         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
7901         <bp-sym.h> and <bp-asm.h>.
7902         (__rawmemchr): Don't use BP_SYM.
7903         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
7904         <bp-sym.h> and <bp-asm.h>.
7905         (__STRCMP): Don't use BP_SYM.
7906         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
7907         <bp-sym.h> and <bp-asm.h>.
7908         (strchr): Don't use BP_SYM.
7909         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
7910         <bp-sym.h> and <bp-asm.h>.
7911         (__strchrnul): Don't use BP_SYM.
7912         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
7913         <bp-sym.h> and <bp-asm.h>.
7914         (strlen): Don't use BP_SYM.
7915         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
7916         <bp-sym.h> and <bp-asm.h>.
7917         (strncmp): Don't use BP_SYM.
7918         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
7919         <bp-sym.h> and <bp-asm.h>.
7920         (__strnlen): Don't use BP_SYM.
7921         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
7922         <bp-asm.h>.
7923         (__mpn_rshift): Don't use BP_SYM.
7924         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7925         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
7926         <bp-sym.h> and <bp-asm.h>.
7927         (__sigsetjmp): Don't use BP_SYM.
7928         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
7929         (L(start_addresses)): Don't use BP_SYM.
7930         (_start): Likewise.
7931         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
7932         <bp-asm.h>.
7933         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
7934         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7935         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7936         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
7937         <bp-asm.h>.
7938         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
7939         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7940         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7941         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
7942         <bp-asm.h>.
7943         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
7944         comments.
7945         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7946         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
7947         <bp-asm.h>.
7948         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
7949         FIXME comments.
7950         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7951         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7952         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
7953         <bp-asm.h>.
7954         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
7955         comment.
7956         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
7957         and <bp-asm.h>.
7958         (strncmp): Don't use BP_SYM,
7959         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
7960         <bp-asm.h>.
7961         (__mpn_sub_n): Don't use BP_SYM.
7962         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7963         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
7964         and <bp-asm.h>.
7965         (__mpn_submul_1): Don't use BP_SYM.
7966         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
7968         <bp-sym.h> and <bp-asm.h>.
7969         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
7970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
7971         <bp-sym.h> and <bp-asm.h>.
7972         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
7973         comment.
7974
7975 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7976
7977         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
7978         Use ZK to minimize writes to Z.
7979         (sub_magnitudes): Simplify code a bit.
7980         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
7981         Use ZK to minimize writes to Z.
7982         (sub_magnitudes): Simplify code a bit.
7983
7984 2013-02-27  Roland McGrath  <roland@hack.frob.com>
7985
7986         * csu/gmon-start.c: Add special exception to license text.
7987
7988 2013-02-27  Richard Henderson  <rth@redhat.com>
7989
7990         * scripts/config.guess: Update from config.git.
7991         * scripts/config.sub: Likewise.
7992
7993 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7994
7995         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
7996
7997         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
7998
7999         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
8000
8001         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
8002
8003         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
8004
8005 2013-02-26  Roland McGrath  <roland@hack.frob.com>
8006
8007         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
8008         [$(build-shared = yes].
8009
8010 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8011
8012         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
8013         (__mul): Reduce iterations for calculating mantissa.
8014
8015         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
8016         MPTWO.
8017         (__mpranred): Likewise.
8018
8019         [BZ #15160]
8020         * malloc/memusagestat.c (main): Draw graphs for heap and stack
8021         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
8022
8023 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8024
8025         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
8026         Define __attribute__.
8027
8028 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8029
8030         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
8031         unused.
8032         * posix/regex_internal.h (__attribute): Remove.
8033         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
8034         (re_string_context_at): Likewise.
8035         (bitset_not): Use __attribute__ and mark function as possibly
8036         unused.
8037         (bitset_merge): Likewise.
8038         (bitset_mask): Likewise.
8039         (re_string_char_size_at): Likewise.
8040         (re_string_wchar_at): Likewise.
8041         (re_string_elem_size_at): Likewise.
8042
8043 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8044
8045         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
8046         code.
8047         (cc32): Likewise.
8048
8049         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
8050         (__acr): Likewise.
8051         (__cpy): Likewise.
8052         (norm): Likewise.
8053         (denorm): Likewise.
8054         (__dbl_mp): Likewise.
8055         (add_magnitudes): Likewise.
8056         (sub_magnitudes): Likewise.
8057         (__mul): Likewise.
8058         (__inv): Likewise.
8059
8060         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
8061         style.
8062
8063         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
8064         style.
8065
8066         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
8067         code.
8068
8069         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
8070         up changes with default code.
8071         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
8072         Likewise.
8073
8074 2013-02-24  Allan McRae  <allan@archlinux.org>
8075
8076         * manual/socket.texi (The Internet Namespace): Order menu items
8077         to match that in the file.
8078
8079         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
8080         node listing of the info page menu.
8081
8082 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
8083
8084         [BZ #13550]
8085         * sysdeps/i386/bp-asm.h: Remove file.
8086         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8087         (PARMS): Do not use macros from bp-asm.h.
8088         (S1): Likewise.
8089         (S2): Likewise.
8090         (SIZE): Likewise.
8091         (__mpn_add_n): Do not use BP_SYM
8092         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
8093         "bp-asm.h".
8094         (PARMS): Do not use macros from bp-asm.h.
8095         (S1): Likewise.
8096         (SIZE): Likewise.
8097         (__mpn_addmul_1): Do not use BP_SYM
8098         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
8099         "bp-asm.h".
8100         (PARMS): Do not use macros from bp-asm.h.
8101         (SIGMSK): Likewise.
8102         (_setjmp): Likewise.  Do not use BP_SYM.
8103         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
8104         "bp-asm.h".
8105         (PARMS): Do not use macros from bp-asm.h.
8106         (SIGMSK): Likewise.
8107         (setjmp): Likewise.  Do not use BP_SYM.
8108         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
8109         "bp-asm.h".
8110         (PARMS): Do not use macros from bp-asm.h.
8111         (__frexp): Do not use BP_SYM.
8112         (frexp): Likewise.
8113         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
8114         "bp-asm.h".
8115         (PARMS): Do not use macros from bp-asm.h.
8116         (__frexpf): Do not use BP_SYM.
8117         (frexpf): Likewise.
8118         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
8119         "bp-asm.h".
8120         (PARMS): Do not use macros from bp-asm.h.
8121         (__frexpl): Do not use BP_SYM.
8122         (frexpl): Likewise.
8123         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
8124         "bp-asm.h".
8125         (PARMS): Do not use macros from bp-asm.h.
8126         (__remquo): Do not use BP_SYM.
8127         (remquo): Likewise.
8128         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
8129         "bp-asm.h".
8130         (PARMS): Do not use macros from bp-asm.h.
8131         (__remquof): Do not use BP_SYM.
8132         (remquof): Likewise.
8133         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
8134         "bp-asm.h".
8135         (PARMS): Do not use macros from bp-asm.h.
8136         (__remquol): Do not use BP_SYM.
8137         (remquol): Likewise.
8138         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
8139         "bp-asm.h".
8140         (PARMS): Do not use macros from bp-asm.h.
8141         (DEST): Likewise.
8142         (SRC): Likewise.
8143         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
8144         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
8145         "bp-asm.h".
8146         (PARMS): Do not use macros from bp-asm.h.
8147         (strlen): Do not use BP_SYM.
8148         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
8149         "bp-asm.h".
8150         (PARMS): Do not use macros from bp-asm.h.
8151         (S1): Likewise.
8152         (S2): Likewise.
8153         (SIZE): Likewise.
8154         (__mpn_add_n): Do not use BP_SYM.
8155         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
8156         "bp-asm.h".
8157         (PARMS): Do not use macros from bp-asm.h.
8158         (S1): Likewise.
8159         (SIZE): Likewise.
8160         (__mpn_addmul_1): Do not use BP_SYM.
8161         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
8162         weak_alias.
8163         (bzero): Likewise.
8164         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
8165         "bp-asm.h".
8166         (PARMS): Do not use macros from bp-asm.h.
8167         (S): Likewise.
8168         (SIZE): Likewise.
8169         (__mpn_lshift): Do not use BP_SYM.
8170         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
8171         "bp-asm.h".
8172         (PARMS): Do not use macros from bp-asm.h.
8173         (DEST): Likewise.
8174         (SRC): Likewise.
8175         (LEN): Likewise.
8176         (memcpy): Likewise.  Do not use BP_SYM.
8177         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
8178         libc_hidden_def and weak_alias.
8179         (mempcpy): Do not use BP_SYM in weak_alias.
8180         * sysdeps/i386/i586/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/i586/mul_1.S: Do not include "bp-sym.h" and
8188         "bp-asm.h".
8189         (PARMS): Do not use macros from bp-asm.h.
8190         (S1): Likewise.
8191         (SIZE): Likewise.
8192         (__mpn_mul_1): Do not use BP_SYM.
8193         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
8194         "bp-asm.h".
8195         (PARMS): Do not use macros from bp-asm.h.
8196         (S): Likewise.
8197         (SIZE): Likewise.
8198         (__mpn_rshift): Do not use BP_SYM.
8199         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
8200         "bp-asm.h".
8201         (PARMS): Do not use macros from bp-asm.h.
8202         (STR): Likewise.
8203         (CHR): Likewise.
8204         (strchr): Likewise.  Do not use BP_SYM.
8205         (index): Do not use BP_SYM in weak_alias.
8206         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
8207         "bp-asm.h".
8208         (PARMS): Do not use macros from bp-asm.h.
8209         (DEST): Likewise.
8210         (SRC): Likewise.
8211         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
8212         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
8213         "bp-asm.h".
8214         (PARMS): Do not use macros from bp-asm.h.
8215         (strlen): Do not use BP_SYM.
8216         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
8217         "bp-asm.h".
8218         (PARMS): Do not use macros from bp-asm.h.
8219         (S1): Likewise.
8220         (S2): Likewise.
8221         (SIZE): Likewise.
8222         (__mpn_sub_n): Do not use BP_SYM.
8223         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
8224         "bp-asm.h".
8225         (PARMS): Do not use macros from bp-asm.h.
8226         (S1): Likewise.
8227         (SIZE): Likewise.
8228         (__mpn_submul_1): Do not use BP_SYM.
8229         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
8230         "bp-asm.h".
8231         (PARMS): Do not use macros from bp-asm.h.
8232         (S1): Likewise.
8233         (S2): Likewise.
8234         (SIZE): Likewise.
8235         (__mpn_add_n): Do not use BP_SYM.
8236         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
8237         weak_alias.
8238         (bzero): Likewise.
8239         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
8240         "bp-asm.h".
8241         (PARMS): Do not use macros from bp-asm.h.
8242         (BLK2): Likewise.
8243         (LEN): Likewise.
8244         (memcmp): Do not use BP_SYM.
8245         (bcmp): Do not use BP_SYM in weak_alias.
8246         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
8247         "bp-asm.h".
8248         (PARMS): Do not use macros from bp-asm.h.
8249         (DEST): Likewise.
8250         (SRC): Likewise.
8251         (LEN): Likewise.
8252         (memcpy): Likewise.  Do not use BP_SYM.
8253         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
8254         "bp-asm.h".
8255         (PARMS): Do not use macros from bp-asm.h.
8256         (DEST): Likewise.
8257         (SRC): Likewise.
8258         (LEN): Likewise.
8259         (memmove): Likewise.  Do not use BP_SYM.
8260         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
8261         "bp-asm.h".
8262         (PARMS): Do not use macros from bp-asm.h.
8263         (DEST): Likewise.
8264         (SRC): Likewise.
8265         (LEN): Likewise.
8266         (__mempcpy): Likewise.  Do not use BP_SYM.
8267         (mempcpy): Do not use BP_SYM in weak_alias.
8268         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
8269         "bp-asm.h".
8270         (PARMS): Do not use macros from bp-asm.h.
8271         (DEST): Likewise.
8272         (LEN): Likewise.
8273         [!BZERO_P] (CHR): Likewise.
8274         (memset): Likewise.  Do not use BP_SYM.
8275         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
8276         "bp-asm.h".
8277         (PARMS): Do not use macros from bp-asm.h.
8278         (STR2): Likewise.
8279         (strcmp): Do not use BP_SYM.
8280         * sysdeps/i386/i686/strtok.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         (DELIM): Likewise.
8285         [USE_AS_STRTOK_R] (SAVE): Likewise.
8286         (FUNCTION): Likewise.  Do not use BP_SYM.
8287         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
8288         aliases.
8289         (strtok_r): Likewise.
8290         (__GI___strtok_r): Likewise.
8291         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8292         (PARMS): Do not use macros from bp-asm.h.
8293         (S): Likewise.
8294         (SIZE): Likewise.
8295         (__mpn_lshift): Do not use BP_SYM.
8296         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8297         (PARMS): Do not use macros from bp-asm.h.
8298         (STR): Likewise.
8299         (CHR): Likewise.
8300         (__memchr): Do not use BP_SYM.
8301         (memchr): Do not use BP_SYM in weak_alias.
8302         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8303         (PARMS): Do not use macros from bp-asm.h.
8304         (BLK2): Likewise.
8305         (LEN): Likewise.
8306         (memcmp): Do not use BP_SYM.
8307         (bcmp): Do not use BP_SYM in weak_alias.
8308         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
8309         (PARMS): Do not use macros from bp-asm.h.
8310         (S1): Likewise.
8311         (SIZE): Likewise.
8312         (__mpn_mul_1): Do not use BP_SYM.
8313         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
8314         "bp-asm.h".
8315         (PARMS): Do not use macros from bp-asm.h.
8316         (STR): Likewise.
8317         (CHR): Likewise.
8318         (__rawmemchr): Do not use BP_SYM.
8319         (rawmemchr): Do not use BP_SYM in weak_alias.
8320         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8321         (PARMS): Do not use macros from bp-asm.h.
8322         (S): Likewise.
8323         (SIZE): Likewise.
8324         (__mpn_rshift): Do not use BP_SYM.
8325         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8326         (PARMS): Do not use macros from bp-asm.h.
8327         (SIGMSK): Likewise.
8328         (__sigsetjmp): Likewise.  Do not use BP_SYM.
8329         * sysdeps/i386/start.S: Do not include "bp-sym.h".
8330         (_start): Do not use BP_SYM.
8331         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
8332         (PARMS): Do not use macros from bp-asm.h.
8333         (DEST): Likewise.
8334         (SRC): Likewise.
8335         (__stpcpy): Likewise.  Do not use BP_SYM.
8336         (stpcpy): Do not use BP_SYM in weak_alias.
8337         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
8338         "bp-asm.h".
8339         (PARMS): Do not use macros from bp-asm.h.
8340         (DEST): Likewise.
8341         (SRC): Likewise.
8342         (LEN): Likewise.
8343         (__stpncpy): Likewise.  Do not use BP_SYM.
8344         (stpncpy): Do not use BP_SYM in weak_alias.
8345         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8346         (PARMS): Do not use macros from bp-asm.h.
8347         (STR): Likewise.
8348         (CHR): Likewise.
8349         (strchr): Likewise.  Do not use BP_SYM.
8350         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
8351         "bp-asm.h".
8352         (PARMS): Do not use macros from bp-asm.h.
8353         (STR): Likewise.
8354         (CHR): Likewise.
8355         (__strchrnul): Likewise.  Do not use BP_SYM.
8356         (strchrnul): Do not use BP_SYM in weak_alias.
8357         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
8358         "bp-asm.h".
8359         (PARMS): Do not use macros from bp-asm.h.
8360         (STOP): Likewise.
8361         (strcspn): Do not use BP_SYM.
8362         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
8363         "bp-asm.h".
8364         (PARMS): Do not use macros from bp-asm.h.
8365         (STR): Likewise.
8366         (STOP): Likewise.
8367         (strpbrk): Likewise.  Do not use BP_SYM.
8368         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
8369         "bp-asm.h".
8370         (PARMS): Do not use macros from bp-asm.h.
8371         (STR): Likewise.
8372         (CHR): Likewise.
8373         (strrchr): Likewise.  Do not use BP_SYM.
8374         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
8375         (PARMS): Do not use macros from bp-asm.h.
8376         (SKIP): Likewise.
8377         (strspn): Do not use BP_SYM.
8378         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
8379         (PARMS): Do not use macros from bp-asm.h.
8380         (STR): Likewise.
8381         (DELIM): Likewise.
8382         (SAVE): Likewise.
8383         (FUNCTION): Likewise.  Do not use BP_SYM.
8384         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
8385         aliases.
8386         (strtok_r): Likewise.
8387         (__GI___strtok_r): Likewise.
8388         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8389         (PARMS): Do not use macros from bp-asm.h.
8390         (S1): Likewise.
8391         (S2): Likewise.
8392         (SIZE): Likewise.
8393         (__mpn_sub_n): Do not use BP_SYM.
8394         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
8395         "bp-asm.h".
8396         (PARMS): Do not use macros from bp-asm.h.
8397         (S1): Likewise.
8398         (SIZE): Likewise.
8399         (__mpn_submul_1): Do not use BP_SYM.
8400         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
8401         <bp-sym.h>.
8402         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
8403         and <bp-asm.h>.
8404         (PARMS): Do not use macros from bp-asm.h.
8405         (FLAGS): Likewise.
8406         (PTID): Likewise.
8407         (TLS): Likewise.
8408         (CTID): Likewise.
8409         (__clone): Do not use BP_SYM.
8410         (clone): Do not use BP_SYM in weak_alias.
8411         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
8412         and <bp-asm.h>.
8413         (PARMS): Do not use macros from bp-asm.h.
8414         (LEN): Likewise.
8415         (__mmap64): Do not use BP_SYM.
8416         (mmap64): Do not use BP_SYM in weak_alias.
8417         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8418         <bp-sym.h> and <bp-asm.h>.
8419         (PARMS): Do not use macros from bp-asm.h.
8420         (__posix_fadvise64_l64): Do not use BP_SYM.
8421         * sysdeps/unix/sysv/linux/i386/semtimedop.S
8422         (PARMS): Do not use macros from bp-asm.h.
8423         (NSOPS): Likewise.
8424         (semtimedop): Do not use BP_SYM.
8425         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
8426         and <bp-asm.h>.
8427
8428 2013-02-21  Allan McRae  <allan@archlinux.org>
8429
8430         * manual/message.texi (Charset conversion in gettext):
8431         Move @end statement to beginning of line.
8432
8433 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8434
8435         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
8436         static.
8437         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
8438         Likewise.
8439
8440         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
8441         (denorm): Likewise.
8442         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
8443         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
8444
8445 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8446
8447         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
8448         tail-call to the resolved function if pltexit isn't needed.
8449
8450 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8451
8452         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
8453         or Y being zero as being unlikely.
8454         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
8455         Likewise.
8456
8457 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
8458
8459         * manual/nss.texi (System Databases and Name Service Switch):
8460         Remove frobnicate @pxref.
8461
8462 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8463
8464         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8465         __attribute__ ((unused)) to __attribute__ ((__unused__)).
8466
8467 2013-02-20  Petr Machata  <pmachata@redhat.com>
8468
8469         * elf/elf.h (R_ARM_TARGET1): New macro.
8470         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
8471         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
8472         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
8473         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
8474         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
8475         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
8476         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
8477         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
8478         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
8479         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
8480         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
8481         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
8482         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
8483         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
8484         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
8485         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
8486         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
8487         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
8488         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
8489         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
8490         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
8491         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
8492         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
8493         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
8494         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
8495         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
8496         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
8497         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
8498         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
8499         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
8500         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
8501         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
8502         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
8503         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
8504         (R_ARM_THM_GOT_BREL12): Likewise.
8505         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
8506         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
8507         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
8508         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
8509         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
8510         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
8511         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
8512         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
8513         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
8514
8515 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8516
8517         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8518         __attribute_used__ to __attribute__ ((unused)).
8519
8520 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8521
8522         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
8523         powerpc mpa.c.
8524         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
8525         comment formatting.
8526         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
8527
8528 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
8529
8530         [BZ #13550]
8531         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
8532         Remove macro.
8533         (ENTER): Remove both macro definitions.
8534         (LEAVE): Likewise.
8535         (CHECK_BOUNDS_LOW): Likewise.
8536         (CHECK_BOUNDS_HIGH): Likewise.
8537         (CHECK_BOUNDS_BOTH): Likewise.
8538         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
8539         (RETURN_BOUNDED_POINTER): Likewise.
8540         (RETURN_NULL_BOUNDED_POINTER): Likewise.
8541         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
8542         (POP_ERRNO_LOCATION_RETURN): Likewise.
8543         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
8544         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8545         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
8546         macros.
8547         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8548         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
8549         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
8550         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
8551         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
8552         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
8553         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
8554         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
8555         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
8556         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
8557         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
8558         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
8559         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8560         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
8561         removed macros.
8562         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8563         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
8564         macros.
8565         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8566         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
8567         * sysdeps/i386/i586/memset.S (memset): Likewise.
8568         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
8569         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8570         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
8571         macros.
8572         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8573         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
8574         Change uses of L(2) to L(out).
8575         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
8576         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
8577         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
8578         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8579         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
8580         removed macros.
8581         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8582         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
8583         macros.
8584         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8585         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
8586         (RETURN): Do not use macro LEAVE.
8587         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
8588         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
8589         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
8590         * sysdeps/i386/i686/memset.S (memset): Likewise.
8591         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
8592         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
8593         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8594         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
8595         Likewise.
8596         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8597         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
8598         L(1_2) and L(1_3) into L(1).
8599         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8600         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
8601         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8602         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
8603         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8604         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
8605         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
8606         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8607         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
8608         macros.
8609         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
8610         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8611         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
8612         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
8613         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
8614         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8615         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
8616         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
8617         * sysdeps/i386/strcspn.S (strcspn): Likewise.
8618         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
8619         * sysdeps/i386/strrchr.S (strrchr): Likewise.
8620         * sysdeps/i386/strspn.S (strspn): Likewise.
8621         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
8622         conditional code.
8623         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8624         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
8625         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8626         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
8627         L(1_3) into L(1_1).
8628         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
8629         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8630         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
8631         macros.
8632         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8633
8634 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
8635
8636         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
8637         macro.
8638
8639 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
8640
8641         * math/atest-exp.c (exp_mpn): Remove ROUND.
8642         * math/atest-exp2.c (exp_mpn): Likewise.
8643         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
8644
8645         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
8646         * stdlib/tst-tls-atexit-lib.c: Likewise.
8647         * stdlib/tst-tls-atexit.c: Likewise.
8648
8649 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8650
8651         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
8652         and __attribute_alloc_size__.
8653
8654 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8655
8656         * include/programs/xmalloc.h: Change __attribute_alloc_size to
8657         __attribute_alloc_size__.
8658         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
8659         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
8660
8661 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8662
8663         * include/programs/xmalloc.h: New file.
8664         * catgets/gencat.c: Include it.
8665         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
8666         * elf/pldd.c: Likewise.
8667         * iconv/iconv_charmap.c: Likewise.
8668         * iconv/iconvconfig.c: Likewise.
8669         * iconv/strtab.c: Likewise.
8670         * locale/programs/locale.c: Likewise.
8671         * locale/programs/localedef.h: Likewise.
8672         * locale/programs/simple-hash.c: Likewise.
8673         * nscd/nscd.h: Likewise.
8674         * nss/makedb.c: Likewise.
8675         * sysdeps/generic/ldconfig.h: Likewise.
8676
8677 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8678
8679         * Versions.def: Add GLIBC_2.18.
8680         * include/link.h (struct link_map): New member l_tls_dtor_count.
8681         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
8682         (__call_tls_dtors): Likewise.
8683         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
8684         __cxa_thread_atexit_impl.
8685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8686         Likewise.
8687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8688         Likewise.
8689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8690         Likewise.
8691         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8692         Likewise.
8693         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8694         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
8695         Likewise.
8696         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
8697         Likewise.
8698         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8699         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
8700         Likewise.
8701         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
8702         (tests): Add test case tst-tls-atexit.
8703         (modules-names): Add shared library for tst-tls-atexit.
8704         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
8705         (GLIBC_PRIVATE): Add __call_tls_dtors.
8706         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
8707         for libstdc++.
8708         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
8709         * stdlib/tst-tls-atexit.c: New test case.
8710         * stdlib/tst-tls-atexit-lib.c: New test case.
8711
8712         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
8713
8714         * elf/Versions (ld): Add _dl_find_dso_for_object.
8715         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
8716         * elf/dl-open.c (_dl_find_dso_for_object): New function.
8717         (dl_open_worker): Use _dl_find_dso_for_object.
8718         * elf/dl-sym.c (do_sym): Likewise.
8719         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
8720
8721 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8722
8723         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
8724         Syntactic changes only.
8725         (_dl_runtime_profile): Do a tail-call to the resolved function.
8726
8727 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
8728
8729         [BZ #13550]
8730         * sysdeps/x86_64/bp-asm.h: Remove file.
8731         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
8732         <bp-sym.h> and <bp-asm.h>.
8733         (__clone): Do not use BP_SYM.
8734         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
8735         <bp-sym.h> and <bp-asm.h>.
8736         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8737         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
8738         "bp-asm.h".
8739         (_setjmp): Do not use BP_SYM.
8740         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
8741         "bp-asm.h".
8742         (setjmp): Do not use BP_SYM.
8743         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
8744         libc_hidden_def.
8745         (mempcpy): Do not use BP_SYM in weak_alias.
8746         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
8747         "bp-asm.h".
8748         (strchr): Do not use BP_SYM.
8749         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
8750         "bp-asm.h".
8751         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
8752         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
8753         (_start): Do not use BP_SYM.
8754         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
8755         "bp-asm.h".
8756         (strcat): Do not use BP_SYM.
8757         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
8758         "bp-asm.h".
8759         (STRCMP): Do not use BP_SYM.
8760         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
8761         "bp-asm.h".
8762         (STRCPY): Do not use BP_SYM.
8763         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
8764         "bp-asm.h".
8765         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
8766         "bp-asm.h".
8767         (FUNCTION): Do not use BP_SYM.
8768         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
8769         weak_alias.
8770         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
8771
8772 2013-02-17  Andreas Jaeger  <aj@suse.de>
8773
8774         * time/Versions: Sort entries.
8775         * string/Versions: Likewise.
8776         * resolv/Versions: Likewise.
8777         * posix/Versions: Likewise.
8778         * iconv/Versions: Likewise.
8779         * elf/Versions: Likewise.
8780         * wcsmbs/Versions: Likewise.
8781
8782 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
8783
8784         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
8785         loop termination condition.
8786
8787         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
8788         variable to calculate EZ.
8789         (__sqr): Likewise.
8790
8791         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
8792         the lower precision input.
8793
8794 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
8795
8796         [BZ #13550]
8797         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
8798         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
8799         (run-via-rtld-prefix): Do not handle %-bp tests.
8800         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
8801         (all-object-suffixes): Remove .ob.
8802         (bppfx): Remove variable.
8803         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
8804         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
8805         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
8806         [$(build-bounded) = yes] (libtype.ob): Likewise.
8807         * Makerules (elide-routines.ob): Remove variable.
8808         (do-tests-clean): Do not handle *-bp.out.
8809         (common-mostlyclean): Do not handle *-bp and *-bp.out.
8810         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
8811         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
8812         (tests): Do not include $(tests-bp.out).
8813         (xtests): Do not include $(xtests-bp.out).
8814         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
8815         [$(build-bounded) = yes] ($(addprefix
8816         $(objpfx),$(binaries-bounded))): Remove rule.
8817         ($(objpfx)%-bp.out): Remove rule.
8818         * config.make.in (build-bounded): Remove variable.
8819         * crypt/Makefile [$(build-bounded) = yes]
8820         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
8821         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
8822         append to variable.
8823         [$(build-bounded) = yes] (install-lib): Likewise.
8824         [$(build-bounded) = yes] (generated): Likewise.
8825         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
8826         Remove rule.
8827         * intl/Makefile [$(build-bounded) = yes]
8828         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
8829         * math/Makefile [$(build-bounded) = yes]
8830         ($(tests:%=$(objpfx)%-bp): Likewise.
8831         * misc/Makefile [$(build-bounded) = yes]
8832         ($(objpfx)tst-tsearch-bp): Likewise.
8833         * nptl/Makeconfig (bounded-thread-library): Remove variable.
8834         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
8835         Remove dependency.
8836         * string/Makefile (o-objects.ob): Remove variable.
8837         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
8838         (CFLAGS-.ob): Remove variable.
8839         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
8840         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
8841         both definitions of variable.
8842         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
8843         (ASFLAGS-.ob): Remove variable.
8844
8845 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
8846
8847         [BZ #13550]
8848         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
8849         Remove __BOUNDED_POINTERS__ from condition.
8850         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
8851         * string/bits/string2.h [!__NO_STRING_INLINES &&
8852         !__BOUNDED_POINTERS__]: Likewise.
8853         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
8854         Likewise.
8855         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
8856         Remove conditional code.
8857         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
8858         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
8859         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
8860         condition.
8861
8862         [BZ #13550]
8863         * csu/libc-start.c: Do not include <bp-sym.h>.
8864         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
8865         * elf/dl-open.c: Do not include <bp-sym.h>.
8866         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
8867         * math/fegetenv.c: Do not include <bp-sym.h>.
8868         (fegetenv): Do not use BP_SYM in versioned symbols.
8869         * nptl/sysdeps/pthread/bits/libc-lockP.h
8870         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
8871         <bp-sym.h>.
8872         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8873         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
8874         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8875         (__pthread_mutex_destroy): Likewise.
8876         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8877         (__pthread_mutex_lock): Likewise.
8878         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8879         (__pthread_mutex_trylock): Likewise.
8880         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8881         (__pthread_mutex_unlock): Likewise.
8882         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8883         (__pthread_mutexattr_init): Likewise.
8884         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8885         (__pthread_mutexattr_destroy): Likewise.
8886         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8887         (__pthread_mutexattr_settype): Likewise.
8888         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8889         (__pthread_rwlock_init): Likewise.
8890         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8891         (__pthread_rwlock_destroy): Likewise.
8892         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8893         (__pthread_rwlock_rdlock): Likewise.
8894         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8895         (__pthread_rwlock_tryrdlock): Likewise.
8896         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8897         (__pthread_rwlock_wrlock): Likewise.
8898         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8899         (__pthread_rwlock_trywrlock): Likewise.
8900         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8901         (__pthread_rwlock_unlock): Likewise.
8902         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8903         (__pthread_key_create): Likewise.
8904         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8905         (__pthread_setspecific): Likewise.
8906         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8907         (__pthread_getspecific): Likewise.
8908         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
8909         Likewise.
8910         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8911         (_pthread_cleanup_push_defer): Likewise.
8912         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8913         (_pthread_cleanup_pop_restore): Likewise.
8914         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8915         (pthread_setcancelstate): Likewise.
8916         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
8917         <bp-sym.h>.
8918         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
8919         (memchr): Do not use BP_SYM in weak_alias.
8920         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
8921         (fegetenv): Do not use BP_SYM in versioned symbols.
8922         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
8923         (fesetenv): Do not use BP_SYM in versioned symbols.
8924         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
8925         (feupdateenv): Do not use BP_SYM in versioned symbols.
8926         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
8927         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
8928         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
8929         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
8930         (open64): Do not use BP_SYM in weak_alias.
8931         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
8932         (fegetenv): Do not use BP_SYM in versioned symbols.
8933         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
8934         (fesetenv): Do not use BP_SYM in versioned symbols.
8935         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
8936         (feupdateenv): Do not use BP_SYM in versioned symbols.
8937         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
8938         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
8939         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
8940         (feraiseexcept): Do not use BP_SYM in versioned symbols.
8941         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
8942         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
8943         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
8944         <bp-sym.h>.
8945         (__libc_start_main): Do not use BP_SYM.
8946
8947 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
8948
8949         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
8950         redundant return line.
8951         (norm): Likewise.
8952         (denorm): Likewise.
8953         (dbl_mp): Likewise.
8954         (sub_magnitudes): Likewise.
8955         (__add): Likewise.
8956         (__sub): Likewise.
8957         (__mul): Likewise.
8958         (__inv): Likewise.
8959         (__dvd): Likewise.
8960         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
8961         (norm): Likewise.
8962         (denorm): Likewise.
8963         (dbl_mp): Likewise.
8964         (sub_magnitudes): Likewise.
8965         (__add): Likewise.
8966         (__sub): Likewise.
8967         (__mul): Likewise.
8968         (__inv): Likewise.
8969         (__dvd): Likewise.
8970
8971         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
8972         instead of __mul.
8973         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8974         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
8975         (cc32): Likewise.
8976
8977         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
8978         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
8979         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
8980         of __mul for squares.
8981         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
8982         function
8983         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
8984         Likewise.
8985         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
8986         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8987
8988 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
8989
8990         [BZ #13550]
8991         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
8992         code.
8993         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
8994         prototype or function definition.  Rename ubp_* variables and
8995         parameters.  Remove argv definitions conditional on
8996         [__BOUNDED_POINTERS__].
8997         * debug/backtrace.c (__backtrace): Do not use __unbounded.
8998         * elf/dl-runtime.c (_dl_fixup): Likewise.
8999         * include/set-hooks.h (RUN_HOOK): Likewise.
9000         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
9001         definition.
9002         * string/strcpy.c (strcpy): Do not use __unbounded.
9003         * sysdeps/generic/frame.h (struct layout): Likewise.
9004         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
9005         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
9006         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
9007         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
9008         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
9009         (__backtrace): Likewise.
9010         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
9011         use __ptrvalue.
9012         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9013         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9014         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9015         Likewise.
9016         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
9017         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
9018         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
9019         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9020         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
9021         Do not use __unbounded.
9022         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
9023         Rename __unboundedrlimits parameter to rlimits in prototype.
9024         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
9025         Do not use __unbounded.
9026         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
9027         not use __ptrvalue.
9028         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9029         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
9030         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9031         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
9032         __ptrvalue or __unbounded.
9033         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
9034         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
9035         use __unbounded.
9036         (__new_msgctl): Do not use __ptrvalue.
9037         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
9038         __unbounded.
9039         (__libc_msgrcv): Do not use __ptrvalue.
9040         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
9041         startup_info): Do not use __unbounded.
9042         (__libc_start_main): Likewise.  Rename ubp_* variables and
9043         parameters.  Remove argv definitions conditional on
9044         [__BOUNDED_POINTERS__].
9045         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
9046         __ptrvalue.
9047         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
9048         use __unbounded.
9049         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
9050         or __ptrvalue.
9051         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
9052         use __unbounded.
9053         (__new_shmctl): Do not use __ptrvalue.
9054         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9055         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9056         Likewise.
9057         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9058         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
9059         (__libc_sigaction): Likewise.
9060         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
9061         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
9062         Likewise.
9063         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9064
9065 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
9066
9067         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
9068
9069         * string/mempcpy.c: Implement by calling memcpy.
9070
9071 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9072
9073         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
9074
9075         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
9076         evaluation.
9077
9078         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
9079         values in the mantissa.
9080
9081         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
9082         minimize writes to Z.
9083         (sub_magnitudes): Simplify code a bit.
9084
9085 2013-02-12  Roland McGrath  <roland@hack.frob.com>
9086
9087         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
9088         from the message.  The linker prefixes all warnings with that already.
9089
9090 2013-02-12  Andreas Schwab  <schwab@suse.de>
9091
9092         [BZ #15078]
9093         * posix/regexec.c (extend_buffers): Add parameter min_len.
9094         (check_matching): Pass minimum needed length.
9095         (clean_state_log_if_needed): Likewise.
9096         (get_subexp): Likewise.
9097         * posix/Makefile (tests): Add bug-regex34.
9098         (bug-regex34-ENV): Define.
9099         * posix/bug-regex34.c: New file.
9100
9101         [BZ #11561]
9102         * posix/regcomp.c (parse_bracket_exp): When looking up collating
9103         elements compare against the byte sequence of it, not its name.
9104         * posix/Makefile (tests): Add bug-regex35.
9105         (bug-regex35-ENV): Define.
9106         * posix/bug-regex35.c: New file.
9107
9108 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9109
9110         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
9111         comment.
9112         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
9113         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
9114         (CHECK_EOL): Add undef.
9115
9116 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
9117
9118         * bits/stdlib-bsearch.h: New file.
9119         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
9120         * stdlib/stdlib.h: Likewise.
9121
9122 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9123
9124         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
9125         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
9126         declaration.
9127         * manual/search.texi (Array Search Function): Add missing const in
9128         lfind prototype.
9129         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
9130         declaration to use rlim_t.
9131         (Basic Scheduling Functions): Remove erroneous const from
9132         sched_getparam prototype.  Remove erroneous * from
9133         sched_get_priority_max and sched_get_priority_min prototypes.
9134         (Resource Usage): Fix summary @comment on vtimes to refer to
9135         sys/vtimes.h rather than vtimes.h.
9136         Add missing *s in vtimes prototype.
9137         (Limits on Resources): Fix ulimit prototype to return long int.
9138         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
9139         prototypes to use long int rather than double.
9140         (BSD Random): Fix initstate and setstate to use char *, not void *.
9141         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
9142         prototype to make second argument 'struct aiocb64 *const[]'.
9143         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
9144         (Status of AIO Operations): Remove erroneous const in aio_return and
9145         aio_return64 prototypes.
9146         (Synchronizing I/O): Fix sync prototype to return void.
9147         * manual/startup.texi (Suboptions): Remove an erroneous const in
9148         getsubopt prototype.
9149         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
9150         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
9151         use size_t rather than int.
9152         (Scanning All Users): Likewise for getpwent_r.
9153         (Setting Groups): Add missing const to setgroups prototype.
9154         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
9155         * manual/socket.texi (Host Names): Fix gethostbyaddr and
9156         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
9157         'const void *' rather than 'const char *'.
9158         (Host Address Functions): Likewise for inet_ntop.
9159         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
9160         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
9161         ssize_t for return value.
9162         (Sending Data): Likewise for send, sendto, sendmsg.
9163         (Socket Option Functions): Add a missing const in setsockopt prototype.
9164         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
9165         use wchar_t for the argument.
9166         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
9167         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
9168         take no arguments.
9169         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
9170         double/float/long double for second argument.
9171         Fix return types of significand, significandf, significandl.
9172         * manual/filesys.texi (Setting Permissions): Use mode_t for second
9173         argument in fchmod prototype.
9174         (File Owner): Use uid_t and gid_t in fchown prototype.
9175         (File Times): Add const to utimes, futimes, and lutimes prototypes.
9176         (Making Special Files): Use mode_t and dev_t in mknod prototype.
9177         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
9178         use 'const struct dirent **' as argument types to CMP function pointer
9179         argument.
9180         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
9181         (File Times): Fix summary magic @comment for struct utimbuf and utime
9182         to refer to utime.h, not time.h.
9183         * manual/string.texi (Argz Functions): Add missing const in
9184         argz_extract and argz_next prototypes.
9185         (Finding Tokens in a String): Likewise for basename.
9186         (String/Array Comparison): Fix typo in wcscasecmp prototype.
9187         (Copying and Concatenation): Fix typo in wmemmove prototype.
9188         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
9189         (Signal Stack): Remove erroneous const in sigstack prototype.
9190         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
9191         prototype.
9192         (Simple Calendar Time): Likewise for stime.
9193         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
9194         prototype.
9195         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
9196         say sys/sysctl.h instead.
9197         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
9198         and vsyslog prototypes.
9199
9200 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9201
9202         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
9203         Remove.
9204
9205 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9206
9207         * misc/sys/mman.h: Fix typo in mremap comment.
9208
9209 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9210
9211         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
9212         the '\0' terminator.
9213
9214 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9215
9216         [BZ #13550]
9217         * debug/segfault.c: Don't include <bp-checks.h>.
9218         * sysdeps/generic/bp-checks.h: Remove file.
9219         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
9220         (__GETDENTS): Don't use CHECK_N.
9221         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
9222         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
9223         (__getgroups): Don't use CHECK_N.
9224         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
9225         (setgroups): Don't use CHECK_N.
9226         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
9227         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9228         (__libc_msgrcv): Don't use CHECK_N.
9229         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
9230         (__libc_msgsnd): Don't use CHECK_N.
9231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
9232         <bp-checks.h>.
9233         (__libc_pread): Don't use CHECK_N.
9234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
9235         include <bp-checks.h>.
9236         (__libc_pread64): Don't use CHECK_N.
9237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
9238         include <bp-checks.h>.
9239         (__libc_pwrite): Don't use CHECK_N.
9240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
9241         include <bp-checks.h>.
9242         (__libc_pwrite64): Don't use CHECK_N.
9243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
9244         <bp-checks.h>.
9245         (__libc_pread): Don't use CHECK_N.
9246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
9247         include <bp-checks.h>.
9248         (__libc_pread64): Don't use CHECK_N.
9249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
9250         include <bp-checks.h>.
9251         (__libc_pwrite): Don't use CHECK_N.
9252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
9253         include <bp-checks.h>.
9254         (__libc_pwrite64): Don't use CHECK_N.
9255         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
9256         (do_pread): Don't use CHECK_N.
9257         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
9258         (do_pread64): Don't use CHECK_N.
9259         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
9260         (do_pwrite): Don't use CHECK_N.
9261         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
9262         (do_pwrite64): Don't use CHECK_N.
9263         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
9264         (__libc_readv): Don't use CHECK_N.
9265         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
9266         (semop): Don't use CHECK_N.
9267         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
9268         <bp-checks.h>.
9269         (semtimedop): Don't use CHECK_N.
9270         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
9271         (__libc_pread): Don't use CHECK_N.
9272         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
9273         <bp-checks.h>.
9274         (__libc_pread64): Don't use CHECK_N.
9275         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
9276         <bp-checks.h>.
9277         (__libc_pwrite): Don't use CHECK_N.
9278         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
9279         <bp-checks.h>.
9280         (__libc_pwrite64): Don't use CHECK_N.
9281         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
9282         <bp-checks.h>.
9283         (__libc_msgrcv): Don't use CHECK_N.
9284         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
9285         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
9286         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
9287         (__libc_writev): Don't use CHECK_N.
9288
9289 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9290
9291         * string/strcpy.c: Removed unused variable.
9292
9293         * Makeconfig (+sysdep-includes): Define with := rather than =.
9294         Use an existing include/ subdir of each sysdeps dir before it.
9295
9296 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9297
9298         * nscd/connection.c (register_traced_file): Comment function.
9299         [HAVE_INOTIFY] (union __inev): Define.
9300         [HAVE_INOTIFY] (inotify_check_files): New function.
9301         [HAVE_INOTIFY] (clear_db_cache): Likewise.
9302         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
9303         clear_db_cache.
9304         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
9305
9306 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9307
9308         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
9309         loaded if not already and that a failure is permanent.
9310
9311 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9312
9313         [BZ #15006]
9314         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
9315         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
9316
9317 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9318
9319         [BZ #13550]
9320         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
9321         (CHECK_1_NULL_OK): Likewise.
9322         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
9323         (__fxstat): Do not use CHECK_1.
9324         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9325         <bp-checks.h>.
9326         (___fxstat64): Do not use CHECK_1.
9327         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
9328         <bp-checks.h>.
9329         (__fxstatat): Do not use CHECK_1.
9330         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
9331         <bp-checks.h>.
9332         (__fxstatat64): Do not use CHECK_1.
9333         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
9334         <bp-checks.h>.
9335         (__fxstat): Do not use CHECK_1.
9336         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
9337         <bp-checks.h>.
9338         (__fxstatat): Do not use CHECK_1.
9339         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
9340         <bp-checks.h>.
9341         (__getresgid): Do not use CHECK_1.
9342         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
9343         <bp-checks.h>.
9344         (__getresuid): Do not use CHECK_1.
9345         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
9346         <bp-checks.h>.
9347         (__lxstat): Do not use CHECK_1.
9348         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
9349         <bp-checks.h>.
9350         (__old_msgctl): Do not use CHECK_1.
9351         (__new_msgctl): Likewise.
9352         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
9353         <bp-checks.h>.
9354         (__new_setrlimit): Do not use CHECK_1.
9355         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
9356         <bp-checks.h>.
9357         (__old_shmctl): Do not use CHECK_1.
9358         (__new_shmctl): Likewise.
9359         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
9360         <bp-checks.h>.
9361         (__xstat): Do not use CHECK_1.
9362         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
9363         (__lxstat): Do not use CHECK_1.
9364         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9365         <bp-checks.h>.
9366         (___lxstat64): Do not use CHECK_1.
9367         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
9368         (__old_msgctl): Do not use CHECK_1.
9369         (__new_msgctl): Likewise.
9370         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
9371         <bp-checks.h>.
9372         (__gettimeofday): Do not use CHECK_1.
9373         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
9374         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
9375         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
9376         <bp-checks.h>.
9377         (__gettimeofday): Do not use CHECK_1.
9378         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
9379         (__old_shmctl): Do not use CHECK_1_NULL_OK.
9380         (__new_shmctl): Do not use CHECK_1.
9381         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
9382         <bp-checks.h>.
9383         (do_sigtimedwait): Do not use CHECK_1.
9384         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
9385         <bp-checks.h>.
9386         (do_sigwaitinfo): Do not use CHECK_1.
9387         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
9388         <bp-checks.h>.
9389         (msgctl): Do not use CHECK_1.
9390         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
9391         <bp-checks.h>.
9392         (shmctl): Do not use CHECK_1.
9393         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
9394         (ustat): Do not use CHECK_1.
9395         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
9396         <bp-checks.h>.
9397         (__fxstat): Do not use CHECK_1.
9398         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
9399         <bp-checks.h>.
9400         (__fxstatat): Do not use CHECK_1.
9401         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
9402         <bp-checks.h>.
9403         (__lxstat): Do not use CHECK_1.
9404         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
9405         <bp-checks.h>.
9406         (__xstat): Do not use CHECK_1.
9407         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
9408         (__xstat): Do not use CHECK_1.
9409         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
9410         (___xstat64): Do not use CHECK_1.
9411
9412         [BZ #13550]
9413         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
9414         definitions.
9415         (CHECK_BOUNDS_HIGH): Likewise.
9416         * string/strcpy.c: Do not include <bp-checks.h>.
9417         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
9418
9419 2013-02-07  Roland McGrath  <roland@hack.frob.com>
9420
9421         * nscd/nscd-client.h (__nscd_drop_map_ref):
9422         Add __attribute__ ((unused)).
9423         * nis/nss-nisplus.h (niserr2nss): Likewise.
9424
9425         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
9426         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
9427
9428         * csu/libc-tls.c (init_static_tls, init_slotinfo):
9429         Remove inline keyword.
9430         * include/rounding-mode.h (round_away): Likewise.
9431         * libio/wfileops.c (adjust_wide_data): Likewise.
9432         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
9433         (__m128i_strloadu_tolower): Likewise.
9434         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
9435         (__m128i_strloadu_tolower): Likewise.
9436         * time/mktime.c (ydhms_diff): Likewise.
9437         * locale/elem-hash.h (elem_hash): Likewise.
9438         * locale/setlocale.c (setdata): Likewise.
9439         * posix/regex_internal.h (re_string_char_size_at): Likewise.
9440         (re_string_wchar_at): Likewise.
9441         (bitset_not, bitset_merge, bitset_mask): Likewise.
9442         [!(__GNUC__ > 3)] (inline): Remove macro.
9443         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
9444         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
9445         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
9446         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9447         * string/memcmp.c (memcmp_bytes): Likewise.
9448         * locale/programs/locarchive.c (compute_hashval): Likewise.
9449         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
9450         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9451         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
9452         * nss/getent.c (print_rpc, print_protocols): Likewise.
9453         (print_passwd, print_group, print_aliases): Likewise.
9454         * nis/nss-nisplus.h (niserr2nss): Likewise.
9455         * nscd/connections.c (restart_p): Likewise.
9456         Change return type to bool.
9457
9458 2013-02-05  Roland McGrath  <roland@hack.frob.com>
9459
9460         * Makeconfig (all-Depend-files): Add existing
9461         $(sorted-subdirs:=/Depend) files.
9462         (all-subdirs): Remove nss.
9463         * sysdeps/unix/inet/Subdirs: Add it here instead.
9464         * hesiod/Depend: New file.
9465
9466         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
9467         instead of calling alloca.
9468
9469         * io/lseek.c (__lseek): Rename to __libc_lseek.
9470         Define __lseek as an alias.
9471
9472         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
9473
9474 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
9475
9476         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
9477         else clause and remove check for non-standard endianness.
9478
9479 2013-02-04  David S. Miller  <davem@davemloft.net>
9480
9481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9482
9483 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
9484
9485         [BZ #13550]
9486         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
9487         (__ubp_memchr): Remove prototype.
9488         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
9489         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9490         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
9491         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9492         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
9493         Remove alias.
9494         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
9495         (__ubp_memchr): Likewise.
9496         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
9497         (__ubp_memchr): Likewise.
9498         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
9499         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
9500         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
9501         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
9502         CHECK_STRING.
9503         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9504         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
9505         (__getcwd): Do not use CHECK_STRING.
9506         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
9507         <bp-checks.h>.
9508         (__real_chown): Do not use CHECK_STRING.
9509         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
9510         <bp-checks.h>.
9511         (fchownat): Do not use CHECK_STRING.
9512         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
9513         CHECK_STRING.
9514         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
9515         <bp-checks.h>.
9516         (__lchown): Do not use CHECK_STRING.
9517         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9518         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9519         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9520         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
9522         include <bp-checks.h>.
9523         (truncate64): Do not use CHECK_STRING.
9524         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
9525         <bp-checks.h>.
9526         (__real_chown): Do not use CHECK_STRING.
9527         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
9528         <bp-checks.h>.
9529         (__lchown): Do not use CHECK_STRING.
9530         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
9531         <bp-checks.h>.
9532         (__chown): Do not use CHECK_STRING.
9533         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
9534         <bp-checks.h>.
9535         (truncate64): Do not use CHECK_STRING.
9536         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
9537         Likewise.
9538         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
9539         (__xmknod): Do not use CHECK_STRING.
9540         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
9541         <bp-checks.h>.
9542         (__xmknodat): Do not use CHECK_STRING.
9543         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9544         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
9545
9546 2013-02-04  Andreas Schwab  <schwab@suse.de>
9547
9548         [BZ #14142]
9549         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
9550         * include/netdb.h: Likewise for h_errno.
9551         * elf/tst-stackguard1.c: Include <tls.h>.
9552
9553 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9554
9555         * elf/link.h (struct link_map): Extend the l_addr comment.
9556         * include/link.h (struct link_map): Likewise.
9557
9558 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
9559
9560         [BZ #13550]
9561         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
9562         (BOUNDED_1): Remove macro.
9563         * debug/backtrace.c: Don't include <bp-checks.h>.
9564         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
9565         (__backtrace): Likewise.
9566         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
9567         <bp-checks.h>.
9568         (__backtrace): Don't use BOUNDED_1.
9569         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
9570         <bp-checks.h>.
9571         (__backtrace): Don't use BOUNDED_1.
9572         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
9573         (__backtrace): Don't use BOUNDED_1.
9574         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
9575         (shmat): Don't use BOUNDED_N.
9576
9577 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
9578
9579         [BZ #13550]
9580         * sysdeps/generic/bp-start.h: Remove file.
9581         * csu/libc-start.c: Don't include <bp-start.h>.
9582         (LIBC_START_MAIN): Set up __environ directly instead of using
9583         INIT_ARGV_and_ENVIRON.
9584         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
9585         <bp-start.h>.
9586
9587         [BZ #13550]
9588         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
9589         definitions.
9590         (CHECK_FCNTL): Likewise.
9591         (CHECK_N_PAGES): Likewise.
9592
9593         [BZ #13550]
9594         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
9595         definitions.
9596         (CHECK_SIGSET_NULL_OK): Likewise.
9597         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
9598         <bp-checks.h>.
9599         (sigpending): Don't use CHECK_SIGSET.
9600         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
9601         <bp-checks.h>.
9602         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9603         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
9604         <bp-checks.h>.
9605         (do_sigsuspend): Don't use CHECK_SIGSET.
9606         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
9607         use CHECK_SIGSET.
9608         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
9609         (do_sigwait): Don't use CHECK_SIGSET.
9610         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
9611         use CHECK_SIGSET.
9612         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
9613         include <bp-checks.h>.
9614         (sigpending): Don't use CHECK_SIGSET.
9615         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
9616         include <bp-checks.h>.
9617         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9618         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
9619         <bp-checks.h>.
9620         (sigpending): Don't use CHECK_SIGSET.
9621         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
9622         <bp-checks.h>.
9623         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9624
9625         [BZ #13550]
9626         * sysdeps/generic/bp-semctl.h: Remove file.
9627         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
9628         <bp-checks.h> and <bp-semctl.h>.
9629         (__old_semctl): Don't use CHECK_SEMCTL.
9630         (__new_semctl): Likewise.
9631         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
9632         and <bp-semctl.h>.
9633         (__old_semctl): Don't use CHECK_SEMCTL.
9634         (__new_semctl): Likewise.
9635         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
9636         <bp-checks.h> and <bp-semctl.h>.
9637         (__old_semctl): Don't use CHECK_SEMCTL.
9638         (__new_semctl): Likewise.
9639         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
9640         <bp-checks.h> and <bp-semctl.h>.
9641         (semctl): Don't use CHECK_SEMCTL.
9642
9643         [BZ #13550]
9644         * Makerules (elide-bp-thunks): Remove variable.
9645         (elide-routines.oS): Don't use $(elide-bp-thunks).
9646         (elide-routines.os): Likewise.
9647         (elide-routines.o): Likewise.
9648         (elide-routines.op): Likewise.
9649         (elide-routines.og): Likewise.
9650         (objects): Don't use $(bp-thunks).
9651         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
9652         include.
9653         (common-generated): Do not add s-proto-bp.d.
9654         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
9655         (int): Likewise.
9656         (typ): Likewise.
9657         Do not generate makefile rules for bounded-pointer thunks.
9658         * sysdeps/generic/bp-thunks.h: Remove file.
9659         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
9660         * sysdeps/unix/s-proto-bp.S: Likewise.
9661
9662         [BZ #15062]
9663         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
9664         parts of result separately when argument is not close to line from
9665         -i to i and one part of argument is small.
9666         * math/k_casinhf.c (__kernel_casinhf): Likewise.
9667         * math/k_casinhl.c (__kernel_casinhl): Likewise.
9668         * math/libm-test.inc (cacos_test): Add more tests.
9669         (casin_test): Likewise.
9670         (casinh_test): Likewise.
9671         * sysdeps/i386/fpu/libm-test-ulps: Update.
9672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9673
9674 2013-01-31  David S. Miller  <davem@davemloft.net>
9675
9676         * po/de.po: Update from translation team.
9677
9678 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9679
9680         * time/tzfile.c: Include stdint.h for SIZE_MAX.
9681
9682 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
9683
9684         * configure.in (_AC_PROG_CC_C89): New definition.
9685         * configure: Regenerate.
9686
9687         * configure.in (AC_PROG_CPP): New definition.
9688         * configure: Regenerate.
9689
9690 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
9691
9692         * debug/tst-backtrace.h: New file.
9693         * debug/tst-backtrace2.c: Include tst-backtrace.h.
9694         (ret): Remove variable.
9695         (x): Likewise.
9696         (FAIL): Remove macro.
9697         (NO_INLINE): Likewise.
9698         (fn1): Use match function instead of strstr.
9699         * debug/tst-backtrace3.c: Include tst-backtrace.h.
9700         (ret): Remove variable.
9701         (x): Likewise.
9702         (FAIL): Remove macro.
9703         (NO_INLINE): Likewise.
9704         (fn): Use match function instead of strstr.
9705         * debug/tst-backtrace4.c: Include tst-backtrace.h.
9706         (ret): Remove variable.
9707         (x): Likewise.
9708         (FAIL): Remove macro.
9709         (NO_INLINE): Likewise.
9710         (handle_signal): Use match function instead of strstr.
9711         * debug/tst-backtrace5.c: Include tst-backtrace.h.
9712         (ret): Remove variable.
9713         (x): Likewise.
9714         (FAIL): Remove macro.
9715         (NO_INLINE): Likewise.
9716         (handle_signal): Use match function instead of strstr.
9717
9718 2013-01-23  Roland McGrath  <roland@hack.frob.com>
9719
9720         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
9721
9722 2013-01-23  David S. Miller  <davem@davemloft.net>
9723
9724         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
9725         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
9726         argument of CAS if possible.
9727         * sysdeps/sparc/sparc64/bits/atomic.h
9728         (__arch_compare_and_exchange_val_32_acq): Likewise.
9729         (__arch_compare_and_exchange_val_64_acq): Likewise.
9730
9731 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
9732
9733         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
9734         * sysdeps/posix/ulimit.c: ... this.
9735         Include <limits.h>.
9736         * sysdeps/unix/bsd/ulimit.c: Remove file.
9737
9738 2013-01-23  Adam Conrad  <adconrad@0c3.net>
9739
9740         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
9741         (LDFLAGS-tst-array5): Likewise.
9742
9743 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
9744
9745         [BZ #15036]
9746         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
9747         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
9748         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
9749         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
9750
9751 2013-01-21  David S. Miller  <davem@davemloft.net>
9752
9753         * sysdeps/sparc/backtrace.c: New file.
9754         * sysdeps/sparc/sparc32/backtrace.h: New file.
9755         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
9756         * sysdeps/sparc/sparc64/backtrace.h: New file.
9757         * sysdeps/sparc/sparc64/backtrace.c: Delete.
9758         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
9759         -funwind-tables.
9760
9761 2013-01-21  Andreas Schwab  <schwab@suse.de>
9762
9763         [BZ #15020]
9764         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
9765         closed its stdout.
9766
9767 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
9768
9769         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
9770         "mpa2.h".
9771         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9772
9773 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
9774             Mark Mitchell  <mark@codesourcery.com>
9775             Tom de Vries  <tom@codesourcery.com>
9776             Paul Pluzhnikov  <ppluzhnikov@google.com>
9777
9778         * debug/tst-backtrace2.c: New file.
9779         * debug/tst-backtrace3.c: Likewise.
9780         * debug/tst-backtrace4.c: Likewise.
9781         * debug/tst-backtrace5.c: Likewise.
9782         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
9783         (CFLAGS-tst-backtrace3.c): Likewise.
9784         (CFLAGS-tst-backtrace4.c): Likewise.
9785         (CFLAGS-tst-backtrace5.c): Likewise.
9786         (LDFLAGS-tst-backtrace2): Likewise.
9787         (LDFLAGS-tst-backtrace3): Likewise.
9788         (LDFLAGS-tst-backtrace4): Likewise.
9789         (LDFLAGS-tst-backtrace5): Likewise.
9790         (tests): Add new tests tst-backtrace2, tst-backtrace3,
9791         tst-backtrace4 and tst-backtrace5.
9792
9793 2013-01-18  Anton Blanchard  <anton@samba.org>
9794             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9795
9796         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
9797         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
9798         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
9799         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
9800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9801         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
9802         "+r" and remove output regs list as redundant.  Add explicit inline
9803         asm to specify register of return val to work around compiler codegen
9804         bug.  Remove (int) cast on return value.  Add return type parameter to
9805         use in macro so that this macro does not truncate return value for
9806         64-bit values.
9807         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
9808         pass to INTERNAL_VSYSCALL_NCS.
9809         (INLINE_VSYSCALL): Add 'long int' as return type to
9810         INTERNAL_VSYSCALL_NCS macro invocation.
9811         (INTERNAL_VSYSCALL): Add 'long int' as return type to
9812         INTERNAL_VSYSCALL_NCS macro invocation.
9813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9814
9815 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9816
9817         [BZ #14496]
9818         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
9819         Fix application of SIMD FP exception mask.
9820
9821         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
9822         mp_no from a power of two.
9823         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
9824         __mpexp_twomm1.  Use __pow_mp.
9825
9826         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
9827         multiplication.
9828
9829 2013-01-17  David S. Miller  <davem@davemloft.net>
9830
9831         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9832
9833 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
9834
9835         [BZ #15023]
9836         * include/complex.h: Condition contents on [!_COMPLEX_H].
9837         (__kernel_casinhf): New prototype.
9838         (__kernel_casinh): Likewise.
9839         (__kernel_casinhl): Likewise.
9840         * math/Makefile (libm_calls): Add k_casinh.
9841         * math/k_casinh.c: New file.
9842         * math/k_casinhf.c: Likewise.
9843         * math/k_casinhl.c: Likewise.
9844         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
9845         finite nonzero arguments.
9846         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
9847         finite nonzero arguments.
9848         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
9849         finite nonzero arguments.
9850         * math/s_casinh.c: Do not include <float.h>.
9851         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
9852         * math/s_casinhf.c: Do not include <float.h>.
9853         (__casinhf): Move code for finite nonzero arguments to
9854         k_casinhf.c.
9855         * math/s_casinhl.c: Do not include <float.h>.
9856         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
9857         redefine.
9858         (__casinhl): Move code for finite nonzero arguments to
9859         k_casinhl.c.
9860         * math/libm-test.inc (cacos_test): Add more tests.
9861         * sysdeps/i386/fpu/libm-test-ulps: Update.
9862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9863
9864 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
9865
9866         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
9867         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
9868         [!HAVE_MREMAP]: Remove [defined linux] case.
9869         * malloc/arena.c: Do not include <malloc-sysdep.h>.
9870
9871 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9872
9873         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
9874
9875 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9876
9877         * elf/elf.h (R_386_SIZE32): New relocation.
9878         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
9879         R_386_SIZE32.
9880         (elf_machine_rela): Likewise.
9881         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
9882         R_X86_64_SIZE64 and R_X86_64_SIZE32.
9883
9884 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
9885
9886         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
9887         (FP_FAST_FMA): Do not define.
9888         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
9889         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
9890         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
9891         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
9892         !_SOFT_FLOAT]: Likewise.
9893         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
9894         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
9895         value.
9896         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
9897         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
9898         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
9899         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
9900         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
9901         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
9902         file.
9903
9904 2013-01-16  Andreas Schwab  <schwab@suse.de>
9905
9906         [BZ #14327]
9907         * include/stdlib.h (__mktemp): Add declaration.
9908         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
9909         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
9910
9911 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9912
9913         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
9914         definitions.
9915         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
9916         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
9917         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
9918         definitions here.
9919         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
9920         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
9921         definitions.
9922         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
9923         and ONE.
9924         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
9925         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
9926         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
9927         definitions.
9928         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
9929         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
9930         definitions.
9931         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
9932
9933         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
9934
9935 2013-01-15  David S. Miller  <davem@davemloft.net>
9936
9937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9938         trunc{,f} to libm-sysdep_routes.
9939         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
9941         file.
9942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
9943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
9944         file.
9945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
9946         file.
9947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
9948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
9949         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
9950         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
9951         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
9952         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
9953         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
9954         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
9955
9956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9957         nearbyint{,f} to libm-sysdep_routes.
9958         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
9960         New file.
9961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
9962         file.
9963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
9964         New file.
9965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
9966         file.
9967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
9968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
9969         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
9970         file.
9971         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
9972         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
9973         file.
9974         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
9975         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
9976         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
9977
9978         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
9979         libc_feholdexcept and libc_fesetenv.
9980
9981 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
9982
9983         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
9984
9985 2013-01-14  David S. Miller  <davem@davemloft.net>
9986
9987         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
9988         (SPARC_ASM_VIS2_IFUNC): Likewise.
9989         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
9990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
9991         use of 'siam' instruction.
9992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
9993         Likewise.
9994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
9995         Likewise.
9996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
9997         Likewise.
9998         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
9999         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
10000         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
10001         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
10002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
10003         file.
10004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
10005         file.
10006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
10007         file.
10008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
10009         file.
10010         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
10011         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
10012         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
10013         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
10014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
10015         new VIS2 routines.
10016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10019         Likewise.
10020         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10021         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10022         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10023         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
10025         routines to libm-sysdep_routines.
10026         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10027
10028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10029         fdim/fdimf to libm-sysdep_routines.
10030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
10031         file.
10032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
10033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
10034         file.
10035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
10036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
10037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
10038         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
10039         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
10040         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
10041         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
10042
10043 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
10044
10045         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
10046         to optimize copies.
10047
10048         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
10049         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10050         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10051
10052         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
10053         local variable MPTWO.
10054         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
10055         Likewise.
10056
10057 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10058
10059         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
10060         GLOB_NOESCAPE.
10061
10062 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10063
10064         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
10065
10066 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10067
10068         * manual/pattern.texi (glob_t): Document gl_flags.
10069         (glob64_t): Likewise.
10070
10071 2013-01-11  David S. Miller  <davem@davemloft.net>
10072
10073         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
10074         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
10075         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
10076         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
10077         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
10078         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
10079         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
10080         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
10081         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
10082         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
10083         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
10084         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
10085         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
10086
10087         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10088         sparc V9 rather than using V8 code.
10089         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10090         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10091
10092         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10093         Move to...
10094         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
10095         Here.
10096
10097 2013-01-11  Roland McGrath  <roland@hack.frob.com>
10098
10099         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
10100         not in the main loop.
10101         * configure: Regenerated.
10102
10103 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
10104
10105         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
10106         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
10107         to just #else.
10108         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
10109         [!__GLIBC_HAVE_LONG_LONG] case.
10110         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
10111         condition to just #else.
10112         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
10113         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
10114         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
10115         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
10116         unconditional.
10117         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
10118         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10119         #elif condition to just #else.
10120         * sysdeps/unix/sysv/linux/sys/sysmacros.h
10121         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
10122         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10123         #elif condition to just #else.
10124
10125 2013-01-11  Steve Ellcey  <sellcey@mips.com>
10126
10127         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
10128         (EF_MIPS_ARCH_64): Fix value.
10129         (EF_MIPS_ARCH_32R2): New.
10130         (EF_MIPS_ARCH_64R2): New.
10131
10132 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
10133
10134         * Makeconfig (+link-pie-before-libc): New.
10135         (+link-pie-after-libc): Likewise.
10136         (+link-pie-tests): Likewise.
10137         (+link-pie): Rewritten.
10138         (link-before-libc): Remove $(config-LDFLAGS).
10139         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
10140         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
10141         (config-LDFLAGS): Renamed to ...
10142         (rtld-LDFLAGS): This.
10143         (rtld-tests-LDFLAGS): New macro.
10144         (link-libc-rpath-link): Likewise.
10145         (link-libc-tests-rpath-link): Likewise.
10146         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
10147         (link-libc): Prepand $(link-libc-rpath-link).
10148         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
10149         (test-program-prefix): New macro.
10150         (test-via-rtld-prefix): Likewise.
10151         (test-program-cmd): Likewise.
10152         (host-test-program-cmd): Likewise.
10153         * Makefile ($(common-objpfx)testrun.sh): Replace
10154         $(run-program-prefix) with $(test-program-prefix).
10155         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
10156         $(rtld-LDFLAGS).
10157         ($(common-objpfx)shlib.lds): Likewise.
10158         (build-module-helper): Likewise.
10159         ($(common-objpfx)format.lds): Likewise.
10160         * Rules (binaries-pie-tests): New.
10161         (binaries-pie-notests): Likewise.
10162         (binaries-pie): Rewritten.
10163         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
10164         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
10165         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
10166         (make-test-out): Replace $(host-built-program-cmd) with
10167         $(host-test-program-cmd).
10168         * config.make.in (build-hardcoded-path-in-tests): New variable.
10169         * configure.in (--enable-hardcoded-path-in-tests): New configure
10170         option.
10171         (hardcoded_path_in_tests): New AC_SUBST.
10172         * configure: Regenerated.
10173         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
10174         $(built-program-cmd) with $(test-program-cmd).
10175         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
10176         (test_program_cmd): This.
10177         * elf/Makefile ($(objpfx)order.out): Run test with
10178         $(test-program-prefix).
10179         ($(objpfx)order2.out): Likewise.
10180         ($(objpfx)tst-initorder.out): Likewise.
10181         ($(objpfx)tst-initorder2.out): Likewise.
10182         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
10183         $(test-program-cmd).
10184         ($(objpfx)tst-array1-static.out): Likewise.
10185         ($(objpfx)tst-array2.out): Likewise.
10186         ($(objpfx)tst-array3.out): Likewise.
10187         ($(objpfx)tst-array4.out): Likewise.
10188         ($(objpfx)tst-array5.out): Likewise.
10189         ($(objpfx)tst-array5-static.out): Likewise.
10190         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
10191         $(test-program-cmd).
10192         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
10193         $(run-program-prefix) with $(test-program-prefix).
10194         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
10195         (test_program_prefix): This.
10196         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
10197         $(run-program-prefix) with $(test-program-prefix).
10198         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
10199         (test_program_prefix): This.
10200         * iconvdata/tst-tables.sh: Likewise.
10201         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
10202         $(run-program-prefix) with $(test-program-prefix).
10203         ($(objpfx)tst-translit.out): Likewise.
10204         ($(objpfx)tst-gettext2.out): Likewise.
10205         ($(objpfx)tst-gettext4.out): Likewise.
10206         ($(objpfx)tst-gettext6.out): Likewise.
10207         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
10208         (test_program_prefix): This.
10209         * intl/tst-gettext2.sh: Likewise.
10210         * intl/tst-gettext4.sh  Likewise.
10211         * intl/tst-gettext6.sh: Likewise.
10212         * intl/tst-translit.sh: Likewise.
10213         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
10214         with $(test-program-cmd).
10215         * libio/Makefile ($(objpfx)test-freopen.out): Replace
10216         $(run-program-prefix) with $(test-program-prefix).
10217         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
10218         (test_program_prefix): This.
10219         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
10220         $(run-program-prefix) with $(test-program-prefix).
10221         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
10222         (test_program_prefix): This.
10223         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
10224         * posix/Makefile ($(objpfx)globtest.out): Replace
10225         $(run-via-rtld-prefix) and $(test-wrapper) with
10226         $(test-program-prefix) and $(test-via-rtld-prefix).
10227         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
10228         $(test-program-prefix).
10229         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
10230         $(host-test-program-cmd).
10231         (tst-spawn-ARGS): Likewise.
10232         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
10233         $(test-program-prefix).
10234         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
10235         (test_via_rtld_prefix): This.
10236         (test_wrapper): Renamed to ...
10237         (test_program_prefix): This.
10238         (run_program_prefix): Replaced by test_program_prefix.
10239         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
10240         (test_program_prefix): This.
10241         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
10242         with $(host-test-program-cmd).
10243         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
10244         $(run-program-prefix) with $(test-program-prefix).
10245         ($(objpfx)tst-printf.out): Likewise.
10246         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
10247         $(test-program-cmd).
10248         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
10249         (test_program_prefix): This.
10250         * stdio-common/tst-unbputc.sh: Likewise.
10251         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
10252         $(run-program-prefix) with $(test-program-prefix).
10253         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
10254         (test_program_prefix): This.
10255         * string/Makefile ($(objpfx)tst-svc.out):  Replace
10256         $(built-program-cmd) with $(test-program-cmd).
10257
10258 2013-01-11  Andreas Jaeger  <aj@suse.de>
10259
10260         [BZ #15003]
10261         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
10262         value. Sync with Linux 3.7.
10263
10264 2013-01-10  David S. Miller  <davem@davemloft.net>
10265
10266         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
10267         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10268         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10269
10270 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10271
10272         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
10273         never set.
10274         * configure: Regenerated.
10275
10276 2013-01-10  David S. Miller  <davem@davemloft.net>
10277
10278         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10279         sparc V9 rather than using V8 code.
10280         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10281         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10282
10283 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10284
10285         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
10286         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
10287         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
10288         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
10289         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
10290         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
10291         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
10292         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
10293         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
10294         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
10295         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
10296         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
10297         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
10298         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
10299         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
10300         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
10301         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
10302         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
10303         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
10304         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
10305         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
10306         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
10307         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
10308         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
10309         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
10310         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
10311         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
10312
10313 2013-01-10  David S. Miller  <davem@davemloft.net>
10314
10315         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10316
10317 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10318
10319         * posix/Makefile (tests-static): New variable.
10320         (tests): Add $(tests-static).
10321         (tst-exec-static-ARGS): New variable.
10322         (tst-spawn-static-ARGS): Likewise.
10323         * posix/tst-exec-static.c: New file.
10324         * posix/tst-spawn-static.c: Likewise.
10325         * posix/tst-exec.c: Support run directly.
10326         * posix/tst-spawn.c: Likewise.
10327
10328 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
10329
10330         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
10331         long.
10332         * math/bits/mathcalls.h (llrint): Likewise.
10333         (llround): Likewise.
10334         * stdlib/stdlib.h (struct drand48_data): Likewise.
10335         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
10336         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
10337         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
10338         Likewise.
10339         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
10340         Likewise.
10341         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
10342         (elf_greg_t): Likewise.
10343         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
10344         (__jmp_buf): Likewise.
10345         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
10346         definitions.
10347         (llrint): Likewise, for all definitions.
10348         (llrintl): Likewise.
10349
10350         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
10351         Remove [__GNUC__] condition.
10352         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
10353         condition to just [__USE_ISOC99].
10354         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
10355
10356 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10357
10358         [BZ #14200]
10359         * sysdeps/unix/sysv/linux/x86/bits/environments.h
10360         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
10361         defined.
10362         (_POSIX_V6_ILP32_OFF32): Likewise.
10363         (_XBS5_ILP32_OFF32): Likewise.
10364         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
10365         (__ILP32_OFFBIG_LDFLAGS): Likewise.
10366
10367 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10368
10369         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
10370
10371         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
10372         doubles __mpexp_twomm1.  Adjust usage.
10373         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
10374         Remove.
10375
10376 2013-01-10  Andreas Schwab  <schwab@suse.de>
10377
10378         [BZ #14964]
10379         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
10380         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
10381
10382 2013-01-09  David S. Miller  <davem@davemloft.net>
10383
10384         [BZ #15003]
10385         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
10386         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
10387         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
10388         TCP_FASTOPEN): Define.
10389         (tcp_repair_opt): New structure.
10390         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
10391         enum values.
10392         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
10393         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
10394         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
10395         (tcp_cookie_transactions): New structure.
10396
10397 2013-01-09  Anton Blanchard  <anton@samba.org>
10398
10399         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
10400         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
10401         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
10402         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
10403
10404 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
10405
10406         * include/features.h (__USE_ANSI): Remove.
10407
10408 2013-01-09  Roland McGrath  <roland@hack.frob.com>
10409
10410         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
10411
10412         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
10413
10414 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
10415
10416         * sysdeps/s390/fpu/libm-test-ulps: Update.
10417
10418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10419
10420         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
10421         (__acr): Likewise.
10422         (__cpy): Likewise.
10423         (norm): Likewise.
10424         (denorm): Likewise.
10425         (__mp_dbl): Likewise.
10426         (__dbl_mp): Likewise.
10427         (add_magnitudes): Likewise.
10428         (sub_magnitudes): Likewise.
10429         (__add): Likewise.
10430         (__sub): Likewise.
10431         (__mul): Likewise.
10432         (__inv): Likewise.
10433         (__dvd): Likewise.
10434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
10435         (__acr): Likewise.
10436         (__cpy): Likewise.
10437         (norm): Likewise.
10438         (denorm): Likewise.
10439         (__mp_dbl): Likewise.
10440         (__dbl_mp): Likewise.
10441         (add_magnitudes): Likewise.
10442         (sub_magnitudes): Likewise.
10443         (__add): Likewise.
10444         (__sub): Likewise.
10445         (__mul): Likewise.
10446         (__inv): Likewise.
10447         (__dvd): Likewise.
10448         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
10449         (__acr): Likewise.
10450         (__cpy): Likewise.
10451         (norm): Likewise.
10452         (denorm): Likewise.
10453         (__mp_dbl): Likewise.
10454         (__dbl_mp): Likewise.
10455         (add_magnitudes): Likewise.
10456         (sub_magnitudes): Likewise.
10457         (__add): Likewise.
10458         (__sub): Likewise.
10459         (__mul): Likewise.
10460         (__inv): Likewise.
10461         (__dvd): Likewise.
10462
10463 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
10464
10465         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
10466         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
10467         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
10468         2 && __USE_EXTERN_INLINES]: Likewise.
10469
10470 2013-01-08  Andreas Jaeger  <aj@suse.de>
10471
10472         [BZ# 14985]
10473         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
10474         Remove.
10475         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10476         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10477
10478 2013-01-07  Anton Blanchard  <anton@samba.org>
10479
10480         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
10481         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
10482         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
10483         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
10484         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
10485         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10486         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
10487         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10488         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10489         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10490         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10491         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10492         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10493         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
10494         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
10495         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10496         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10497         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10498         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
10499         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
10500         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
10501         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
10502         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10503         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
10504         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
10505         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
10506         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10507         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
10508         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
10509         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10510         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
10511         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10512         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10513         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10514         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10515         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10516         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
10517         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10518         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
10519         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
10520         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
10521         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10522         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
10523
10524 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
10525
10526         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
10527         (__MALLOC_PMT): Likewise.
10528         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
10529         [__GNUC__], only on [_LIBC].
10530         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10531         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
10532         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10533         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
10534         forward declaration.
10535         (realloc_hook_ini): Likewise.
10536         (memalign_hook_ini): Likewise.
10537         (__libc_memalign): Do not use __MALLOC_PMT in variable
10538         declaration.
10539         (__libc_valloc): Likewise.
10540         (__libc_pvalloc): Likewise.
10541         (__libc_calloc): Likewise.
10542         (__posix_memalign): Likewise.
10543
10544         [BZ #14996]
10545         * math/s_casinh.c: Include <float.h>.
10546         (__casinh): Do not do computation with squaring and square root
10547         for large arguments.
10548         * math/s_casinhf.c: Include <float.h>.
10549         (__casinhf): Do not do computation with squaring and square root
10550         for large arguments.
10551         * math/s_casinhl.c: Include <float.h>.
10552         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
10553         (__casinhl): Do not do computation with squaring and square root
10554         for large arguments.
10555         * math/libm-test.inc (casin_test): Add more tests.
10556         (casinh_test): Likewise.
10557         * sysdeps/i386/fpu/libm-test-ulps: Update.
10558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10559
10560 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10561
10562         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
10563         (__x86_64_raw_data_cache_size): Likewise.
10564         (__x86_64_data_cache_size_half): Likewise.
10565         (__x86_64_raw_data_cache_size_half): Likewise.
10566         (__x86_64_shared_cache_size): Likewise.
10567         (__x86_64_raw_shared_cache_size): Likewise.
10568         (__x86_64_shared_cache_size_half): Likewise.
10569         (__x86_64_raw_shared_cache_size_half): Likewise.
10570         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
10571         to ...
10572         (__x86_data_cache_size): This.
10573         (__x86_64_raw_data_cache_size): Renamed to ...
10574         (__x86_raw_data_cache_size): This.
10575         (__x86_64_data_cache_size_half): Renamed to ...
10576         (__x86_data_cache_size_half): This.
10577         (__x86_64_raw_data_cache_size_half): Renamed to ...
10578         (__x86_raw_data_cache_size_half): This.
10579         (__x86_64_shared_cache_size): Renamed to ...
10580         (__x86_shared_cache_size): This.
10581         (__x86_64_raw_shared_cache_size): Renamed to ...
10582         (__x86_raw_shared_cache_size): This.
10583         (__x86_64_shared_cache_size_half): Renamed to ...
10584         (__x86_shared_cache_size_half): This.
10585         (__x86_64_raw_shared_cache_size_half): Renamed to ...
10586         (__x86_raw_shared_cache_size_half): This.
10587         * sysdeps/x86_64/memcpy.S: Updated.
10588         * sysdeps/x86_64/memset.S: Likewise.
10589         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
10590         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10591         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10592
10593 2013-01-04  David S. Miller  <davem@davemloft.net>
10594
10595         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10596
10597 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
10598
10599         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
10600         1 to avoid redefinition warning.
10601         (__USE_GNU): Don't define.
10602         (init_signaling_nan): Protoize.
10603
10604         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10605
10606 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10607
10608         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
10609         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
10610         (__cpymn): Likewise.
10611         (norm): Remove commented code.
10612         (denorm): Likewise.
10613         (__mp_dbl): Likewise.
10614         (__inv): Likewise.
10615         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
10616         (__cpymn): Likewise.
10617         (norm): Remove commented code.
10618         (denorm): Likewise.
10619         (__mp_dbl): Likewise.
10620         (__inv): Likewise.
10621
10622         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
10623         mp_no value for 1.0 and 2.0.
10624         (norm): Use RADIXI instead of radixi.d.
10625         (denorm): Likewise.
10626         (__mul): Use 0.0 instead of zero.d.
10627         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
10628         mp_no value for 1.0 and 2.0.
10629         (norm): Use RADIXI instead of radixi.d.
10630         (denorm): Likewise.
10631         (__mul): Use 0.0 instead of zero.d.
10632
10633 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
10634
10635         [BZ #14994]
10636         * math/s_casinh.c (__casinh): Reduce finite argument to first
10637         quadrant then set signs of results at the end.
10638         * math/s_casinhf.c (__casinhf): Likewise.
10639         * math/s_casinhl.c (__casinhl): Likewise.
10640         * math/libm-test.inc (casin_test): Add more tests.
10641         (casinh_test): Likewise.
10642         * sysdeps/i386/fpu/libm-test-ulps: Update.
10643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10644
10645 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10646
10647         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
10648
10649         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
10650
10651         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
10652         declarations.
10653         (denorm): Likewise.
10654         (__mp_dbl): Likewise.
10655         (__inv): Likewise.
10656
10657         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
10658         and adjust the header comment.
10659
10660         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
10661         variable name from declaration.
10662
10663 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10664
10665         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10666         Initialize COMMON_CPUID_INDEX_7 element.
10667         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
10668         (CPUID_RTM): Likewise.
10669         (HAS_RTM): Likewise.
10670         (COMMON_CPUID_INDEX_7): New enum.
10671
10672 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
10673
10674         [BZ #14981]
10675         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
10676         size is zero, record memory as freed.
10677
10678 2013-01-03  Andreas Jaeger  <aj@suse.de>
10679
10680         * po/ia.po: Add new Interlingua translation.
10681
10682 2012-01-03  Allan McRae  <allan@archlinux.org>
10683
10684         * locale/programs/localedef.c: Fix description of '--posix' flag.
10685
10686 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
10687
10688         * NEWS: Update dates in second copyright notice.
10689         * README: Update copyright dates in example.
10690         * manual/libc.texinfo: Update copyright dates.
10691         * scripts/test-installation.pl: Update copyright date in --version
10692         output.
10693
10694         * hurd/ctty-input.c: Fix copyright notice formatting.
10695         * hurd/ctty-output.c: Likewise.
10696         * hurd/dtable.c: Likewise.
10697         * hurd/hurd-raise.c: Likewise.
10698         * hurd/hurdprio.c: Likewise.
10699         * hurd/msgportdemux.c: Likewise.
10700         * misc/sys/file.h: Likewise.
10701         * misc/sys/ioctl.h: Likewise.
10702         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
10703         * sysdeps/mach/hurd/chdir.c: Likewise.
10704         * sysdeps/mach/hurd/fchdir.c: Likewise.
10705         * sysdeps/mach/hurd/rename.c: Likewise.
10706         * sysdeps/mach/hurd/rmdir.c: Likewise.
10707         * sysdeps/mach/hurd/seekdir.c: Likewise.
10708         * sysdeps/mach/hurd/setsid.c: Likewise.
10709         * sysdeps/posix/wait3.c: Likewise.
10710
10711         * All files with FSF copyright notices: Update copyright dates
10712         using scripts/update-copyrights.
10713         * intl/plural.c: Regenerated.
10714         * locale/programs/charmap-kw.h: Likewise.
10715         * locale/programs/locfile-kw.h: Likewise.
10716
10717 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10718
10719         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
10720         four values.
10721
10722         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
10723         calculation loop and add branch prediction.
10724
10725         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
10726         check access beyond bounds of m1np.
10727
10728         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
10729         MPTWO.
10730         (__inv): Remove local variable MPTWO to use the global
10731         constant.
10732         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
10733         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
10734         variable MPTWO.
10735         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
10736         MP3HALFS static const.
10737
10738 2013-01-01  David S. Miller  <davem@davemloft.net>
10739
10740         * po/ca.po: Update from translation team.
10741
10742 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
10743
10744         * scripts/update-copyrights: New file.
10745         * Makeconfig: Reformat copyright notice.
10746         * ctype/ctype.h: Likewise.
10747         * debug/swprintf_chk.c: Likewise.
10748         * elf/dl-cache.c: Likewise.
10749         * elf/dl-debug.c: Likewise.
10750         * elf/dl-object.c: Likewise.
10751         * grp/initgroups.c: Likewise.
10752         * hurd/Makefile: Likewise.
10753         * hurd/hurd/signal.h: Likewise.
10754         * hurd/hurdfault.c: Likewise.
10755         * hurd/hurdioctl.c: Likewise.
10756         * hurd/hurdlookup.c: Likewise.
10757         * hurd/intr-msg.c: Likewise.
10758         * iconv/gconv_open.c: Likewise.
10759         * libio/swprintf.c: Likewise.
10760         * locale/lc-ctype.c: Likewise.
10761         * locale/nl_langinfo.c: Likewise.
10762         * mach/Machrules: Likewise.
10763         * mach/Makefile: Likewise.
10764         * malloc/obstack.h: Likewise.
10765         * manual/Makefile: Likewise.
10766         * manual/tsort.awk: Likewise.
10767         * misc/bits/stab.def: Likewise.
10768         * nis/nis_print_group_entry.c: Likewise.
10769         * nis/nis_table.c: Likewise.
10770         * nis/nss_compat/compat-pwd.c: Likewise.
10771         * nis/nss_compat/compat-spwd.c: Likewise.
10772         * po/Makefile: Likewise.
10773         * posix/fnmatch.c: Likewise.
10774         * posix/regex.h: Likewise.
10775         * resolv/Makefile: Likewise.
10776         * resolv/nss_dns/dns-network.c: Likewise.
10777         * resolv/res_hconf.c: Likewise.
10778         * scripts/gen-sorted.awk: Likewise.
10779         * soft-fp/soft-fp.h: Likewise.
10780         * stdio-common/printf.h: Likewise.
10781         * stdlib/monetary.h: Likewise.
10782         * stdlib/random.c: Likewise.
10783         * stdlib/random_r.c: Likewise.
10784         * sysdeps/generic/Makefile: Likewise.
10785         * sysdeps/gnu/Makefile: Likewise.
10786         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10787         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10788         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10789         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10790         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10791         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10792         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10793         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10794         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10795         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10796         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10797         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10798         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
10799         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
10800         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
10801         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
10802         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10803         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10804         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10805         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10806         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10807         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10808         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10809         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
10810         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
10811         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10812         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
10813         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
10814         * sysdeps/mach/hurd/errnos.awk: Likewise.
10815         * sysdeps/mach/hurd/fork.c: Likewise.
10816         * sysdeps/mach/hurd/getcwd.c: Likewise.
10817         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
10818         * sysdeps/mach/hurd/mmap.c: Likewise.
10819         * sysdeps/mach/hurd/utimes.c: Likewise.
10820         * sysdeps/mach/hurd/xmknod.c: Likewise.
10821         * sysdeps/posix/profil.c: Likewise.
10822         * sysdeps/posix/readdir_r.c: Likewise.
10823         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10824         * sysdeps/powerpc/bits/setjmp.h: Likewise.
10825         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
10826         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10827         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10828         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10829         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10830         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10831         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10832         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10833         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10834         * sysdeps/pthread/lio_listio.c: Likewise.
10835         * sysdeps/sparc/dl-procinfo.h: Likewise.
10836         * sysdeps/unix/i386/sysdep.S: Likewise.
10837         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
10838         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
10839         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
10840         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
10841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10842         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10843         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10844         * sysdeps/unix/sysv/linux/speed.c: Likewise.
10845         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
10846         * sysdeps/wordsize-32/divdi3.c: Likewise.
10847         * time/sys/time.h: Likewise.
10848         * wcsmbs/Makefile: Likewise.
10849
10850 2013-01-01  David S. Miller  <davem@davemloft.net>
10851
10852         * po/fr.po: Update from translation team.
10853
10854         * catgets/gencat.c: Update copyright year.
10855         * csu/version.c: Likewise.
10856         * debug/catchsegv.sh: Likewise.
10857         * debug/pcprofiledump.c: Likewise.
10858         * debug/xtrace.sh: Likewise.
10859         * elf/ldconfig.c: Likewise.
10860         * elf/ldd.bash.in: Likewise.
10861         * elf/pldd.c: Likewise.
10862         * elf/sotruss.ksh: Likewise.
10863         * elf/sprof.c: Likewise.
10864         * iconv/iconv_prog.c: Likewise.
10865         * iconv/iconvconfig.c: Likewise.
10866         * locale/programs/locale.c: Likewise.
10867         * locale/programs/localedef.c: Likewise.
10868         * login/programs/pt_chown.c: Likewise.
10869         * malloc/memusage.sh: Likewise.
10870         * malloc/memusagestat.c: Likewise.
10871         * malloc/mtrace.pl: Likewise.
10872         * nscd/nscd.c: Likewise.
10873         * nss/getent.c: Likewise.
10874         * nss/makedb.c: Likewise.
10875         * posix/getconf.c: Likewise.
10876
10877 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10878
10879         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
10880         numbers.
10881
10882 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
10883
10884         * math/bits/mathcalls.h (modf): Use __nonnull.
10885
10886 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10887
10888         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
10889         (split): Use macro CN instead of the bare value.
10890         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
10891         could be used.
10892         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
10893         instead of the bare value.
10894         (power1): Likewise.
10895
10896 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10897
10898         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
10899         __ATAN_TWOM.
10900         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10901
10902         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
10903         their values.
10904         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
10905         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10906         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
10907         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
10908
10909 2012-12-28  Andreas Jaeger  <aj@suse.de>
10910
10911         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
10912         values are from Linux 3.7.
10913
10914         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
10915         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
10916
10917 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10918
10919         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
10920         TRUE case.
10921
10922         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
10923         (norm): Likewise.
10924         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
10925         variables with preprocessor constants.
10926         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10927         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
10928         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
10929
10930 2012-12-27  Bruno Haible  <bruno@clisp.org>
10931
10932         [BZ #14317]
10933         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
10934         only if needed.
10935
10936 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
10937
10938         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
10939         and use variable directly.
10940         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
10941
10942         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
10943         MPONE.
10944         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
10945         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
10946         variable MPONE.
10947         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10948         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
10949         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
10950         include directive.  Remove local variable MPONE.
10951         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
10952         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
10953         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10954
10955 2012-12-25  David S. Miller  <davem@davemloft.net>
10956
10957         * version.h (RELEASE): Set to "development".
10958         (VERSION): Set to "2.17.90".
10959         * NEWS: Add 2.18 section.
10960
10961 2012-12-21  David S. Miller  <davem@davemloft.net>
10962
10963         * po/hr.po: Update from translation team.
10964
10965 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10966
10967         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
10968
10969 2012-12-19  Steve Ellcey  <sellcey@mips.com>
10970
10971         * NEWS:  Mention new memcpy for MIPS.
10972
10973 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10974
10975         * manual/contrib.texi (Contributors): Spelling correction.
10976
10977 2012-12-15  David S. Miller  <davem@davemloft.net>
10978
10979         * po/ru.po: Update from translation team.
10980
10981 2012-12-13  David S. Miller  <davem@davemloft.net>
10982
10983         * NEWS: Mention IFUNC testsuite enhancements.
10984
10985         * po/pl.po: Update from translation team.
10986         * po/bg.po: Likewise.
10987
10988         * manual/contrib.texi (Contributors): Update entries for Hongjiu
10989         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
10990
10991 2012-12-11  David S. Miller  <davem@davemloft.net>
10992
10993         * po/sv.po: Update from translation team.
10994
10995         * po/vi.po: Update from translation team.
10996
10997         * po/cs.po: Update from translation team.
10998
10999         * po/de.po: Update from translation team.
11000         * po/eo.po: Likewise.
11001         * po/nl.po: Likewise.
11002
11003 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11004
11005         [BZ #14246]
11006         * manual/argp.texi (Argp Helper Functions): Move node to follow
11007         Argp Parsing State.
11008
11009         [BZ #14872]
11010         * manual/conf.texi (Limits on File System Capacity): Mention if
11011         terminating null is included in the max size.
11012
11013 2012-12-10  Andreas Jaeger  <aj@suse.de>
11014
11015         * po/cs.po: Update from translation team.
11016
11017 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11018
11019         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
11020         void pointer and cast to uintptr_t.
11021         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
11022         path.
11023         * sysdeps/s390/s390-64/memcpy.S: Likewise.
11024         * sysdeps/s390/s390-64/memset.S: Likewise.
11025
11026 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
11027
11028         [BZ #14833]
11029         * menual/message.texi (Message Translation): Fix typos.
11030         (Helper programs for gettext): Likewise.
11031
11032 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
11033
11034         [BZ #14898]
11035         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
11036         Change to -1.
11037
11038 2012-12-07  David S. Miller  <davem@davemloft.net>
11039
11040         * po/libc.pot: Update.
11041
11042 2012-12-07  Richard Henderson  <rth@redhat.com>
11043
11044         [BZ #10114]
11045         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
11046         normal/normal case to before the switch.
11047         (_FP_DIV): Likewise.
11048
11049 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
11050             Mike Frysinger  <vapier@gentoo.org>
11051
11052         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
11053         check for __NR_fadvise64_64.
11054
11055 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
11056
11057         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
11058         0, not just to plain "0" as a statement.
11059         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
11060         with cw.
11061
11062 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * NEWS: Use sourceware.org in Bugzilla URL.
11065
11066 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11067
11068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11069         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11070
11071         * stdio-common/tst-put-error.c (do_test): Add newline to the
11072         padded test to ensure flush.
11073
11074 2012-12-05  Jeff Law  <law@redhat.com>
11075
11076         * sunrpc/etc.rpc (fedfs_admin): Add entry.
11077
11078 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
11079
11080         * README: Don't refer to ports add-on as distributed separately.
11081         Mention AArch64 in list of systems supported in the ports add-on.
11082
11083         * LICENSES: Add more non-FSF copyright and license notices.
11084
11085         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
11086         ((unused)).
11087
11088         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
11089
11090         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
11091         10000 as width of padded output.
11092
11093 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11094
11095         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
11096
11097         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
11098         variable LX with __attribute__ ((unused)).
11099         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11100         Likewise.
11101         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
11102         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11103         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
11104         with __attribute__ ((unused)).
11105
11106 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
11107
11108         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
11109
11110 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11111
11112         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
11113         (CFLAGS-nldbl-acos.c): New variable.
11114         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
11115         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
11116         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
11117         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
11118         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
11119         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
11120         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
11121         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
11122         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
11123         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
11124         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
11125         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
11126         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
11127         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
11128         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
11129         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
11130         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
11131         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
11132         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
11133         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
11134         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
11135         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
11136         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
11137         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
11138         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
11139         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
11140         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
11141         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
11142         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
11143         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
11144         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
11145         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
11146         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
11147         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
11148         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
11149         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
11150         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
11151         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
11152         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
11153         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
11154         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
11155         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
11156         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
11157         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
11158         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
11159         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
11160         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
11161         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
11162         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
11163         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
11164         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
11165         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
11166         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
11167         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
11168         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
11169         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
11170         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
11171         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
11172         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
11173         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
11174         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
11175         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
11176         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
11177         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
11178         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
11179         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
11180         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
11181         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
11182         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
11183         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
11184         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
11185         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
11186         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
11187         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
11188         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
11189         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
11190         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
11191         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
11192         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
11193         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
11194         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
11195         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
11196         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
11197         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
11198         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
11199         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
11200         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
11201         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
11202         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
11203         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
11204         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
11205         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
11206         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
11207         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
11208         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
11209         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
11210         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
11211
11212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11213         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11214
11215         [BZ #14914]
11216         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
11217         whole low double instead of just low 47 bits when splitting values
11218         into two parts.
11219
11220 2012-12-03  Allan McRae  <allan@archlinux.org>
11221
11222         * manual/stdio.texi (Predefined Printf Handlers): Remove
11223         @hsep and @vsep usage.
11224
11225 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
11226
11227         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
11228         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
11229
11230 2012-12-03  Jeff Law  <law@redhat.com>
11231
11232         * time/sys/time.h (settimeofday): Do not mark TV argument
11233         as __nonnull.
11234
11235 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
11236
11237         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
11238         when currently writing and seek to current position when not.
11239         * libio/Makefile (tests): Remove bug-fclose1.
11240         * libio/bug-fclose1.c: Delete.
11241
11242 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
11243
11244         * manual/arith.texi (feenableexcept): Fix typo.
11245         (fedisableexcept): Likewise.
11246
11247 2012-11-30  Roland McGrath  <roland@hack.frob.com>
11248
11249         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
11250         second, differently-typed declaration, rather than a cast.
11251
11252 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11253
11254         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
11255         * include/rpc/svc.h: ... here.
11256
11257 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
11258
11259         [BZ #13013]
11260         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
11261         depending n and resplen2 to catch cases where answer
11262         equals answerp2.
11263
11264 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
11265
11266         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
11267         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
11268
11269 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
11270
11271         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
11272
11273 2012-11-29  Roland McGrath  <roland@hack.frob.com>
11274
11275         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
11276
11277 2012-11-28  Jeff Law  <law@redhat.com>
11278
11279         [BZ #13761]
11280         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
11281         dataset_temporary.  Track alloca usage into alloca_used.
11282         If dataset is large allocate and release it via malloc/free.
11283
11284 2012-06-04  Florian Weimer  <fweimer@redhat.com>
11285
11286         [BZ #14197]
11287         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
11288
11289 2012-11-28  David S. Miller  <davem@davemloft.net>
11290
11291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11292
11293 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11294
11295         [BZ #14803]
11296         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
11297         of pi/2 rounded to nearest to 64 bits.
11298         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
11299         nearest to 64 bits.
11300         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
11301         bits.
11302
11303 2012-11-28  Jeff Law <law@redhat.com>
11304             Martin Osvald <mosvald@redhat.com>
11305
11306         [BZ #14889]
11307         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
11308         * sunrpc/svc.c: Include time.h.
11309         (__svc_accept_failed): New function.
11310         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
11311         any reason other than EINTR, call __svc_accept_failed.
11312         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
11313         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
11314
11315 2012-11-28  Andreas Schwab  <schwab@suse.de>
11316
11317         * scripts/abilist.awk: Also handle indirect functions in .opd
11318         section.
11319
11320 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11321
11322         [BZ #13881]
11323         * sysdeps/x86/fpu/powl_helper.c: New file.
11324         * sysdeps/x86/fpu/Makefile: Likewise.
11325         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
11326         (p3): New object.
11327         (__ieee754_powl): Use __powl_helper for finite arguments except
11328         integer exponents below 8.
11329         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
11330         (p3): New object.
11331         (__ieee754_powl): Use __powl_helper for finite arguments except
11332         integer exponents below 8.
11333         * math/libm-test.inc (pow_test): Add more tests and enable some
11334         previously disabled tests.
11335         * sysdeps/i386/fpu/libm-test-ulps: Update.
11336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11337
11338 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11339             Carlos O'Donell  <carlos_odonell@mentor.com>
11340
11341         * nss/makedb.c (is_prime): Assert that input is odd and greater
11342         than 4.  Note that fact in a comment too.
11343         (next_prime): Add 4 to input.
11344
11345 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11346
11347         [BZ #11741]
11348         * libio/Makefile (tests): Add test case tst-fwrite-error.
11349         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
11350         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11351         * libio/tst-fwrite-error.c: New test case.
11352
11353 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
11354
11355         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
11356         before casting to void *.
11357         * include/libc-internal.h (__pointer_type): New macro.
11358         (__integer_if_pointer_type_sub): Likewise.
11359         (__integer_if_pointer_type): Likewise.
11360         (cast_to_integer): Likewise.
11361         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
11362         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
11363         before casting to atomic64_t.
11364         (atomic_exchange_acq): Likewise.
11365         (__arch_exchange_and_add_body): Likewise.
11366         (__arch_add_body): Likewise.
11367         (atomic_add_negative): Likewise.
11368         (atomic_add_zero): Likewise.
11369
11370 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
11371
11372         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
11373         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
11374         (add_fdes): Likewise.
11375         (linear_search_fdes): Likewise.
11376         (binary_search_unencoded_fdes): Likewise.
11377
11378 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
11379
11380         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
11381
11382 2012-11-24  Adam Conrad  <adconrad@0c3.net>
11383
11384         * configure.in: Autodetect C++ header directories.
11385         * configure: Regenerated.
11386
11387 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
11388
11389         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
11390
11391 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
11392
11393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11394
11395 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
11396
11397         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
11398         LDBL_MANT_DIG == 106]: Disable some tests.
11399         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11400         Likewise.
11401         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11402         Likewise.
11403
11404         [BZ #14871]
11405         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
11406         input for small inputs.  Return +/- pi/2 for large inputs.
11407         * math/libm-test.inc (atan_test): Add more tests.
11408
11409         * sysdeps/generic/unwind-dw2-fde-glibc.c
11410         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
11411         __attribute__ ((unused)).
11412
11413         [BZ #14645]
11414         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
11415         x * y if x and y are nonzero and z is zero.
11416
11417         [BZ #14811]
11418         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
11419         nonzero exponents with absolute value below 0x1p-117 to +/-
11420         0x1p-117.
11421
11422         [BZ #14869]
11423         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
11424         up arguments below 2**-450, not just those below 2**-500.
11425         * math/libm-test.inc (hypot_test): Add another test.
11426
11427         [BZ #14868]
11428         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11429         Return a+b for ratio over 2**120, not 2**60.
11430         * math/libm-test.inc (hypot_test): Add another test.
11431
11432         * math/libm-test.inc (clog_test): Use
11433         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
11434         (clog10_test): Likewise.
11435
11436         [BZ #6778]
11437         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
11438
11439 2012-11-22  Andreas Schwab  <schwab@suse.de>
11440
11441         * sysdeps/i386/fpu/libm-test-ulps: Update.
11442
11443 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
11444
11445         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
11446         printf output with newline.
11447
11448 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11449
11450         [BZ #14865]
11451         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
11452         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
11453         -z nodlopen, -z initfirst and -z execstack support.
11454         * configure: Regenerated.
11455
11456         * elf/elf.h (DF_1_NODIRECT): New macro.
11457         (DF_1_IGNMULDEF): Likewise.
11458         (DF_1_NOKSYMS): Likewise.
11459         (DF_1_NOHDR): Likewise.
11460         (DF_1_EDITED): Likewise.
11461         (DF_1_NORELOC): Likewise.
11462         (DF_1_SYMINTPOSE): Likewise.
11463         (DF_1_GLOBAUDIT): Likewise.
11464         (DF_1_SINGLETON): Likewise.
11465         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
11466         DT_1_SUPPORTED_MASK bits.
11467         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
11468
11469 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
11470
11471         * sysdeps/unix/make-syscalls.sh: Document prefixes.
11472
11473 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
11474
11475         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
11476         macro.
11477
11478         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
11479         (sendmmsg): Move declarations...
11480         * socket/sys/socket.h: ... here.
11481         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
11482         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
11483         include it from...
11484         * socket/recvmmsg.c: ... this new file.
11485         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
11486         (sendmmsg): Rename to __sendmmsg, create weak alias and make
11487         definition of __sendmmsg hidden.
11488         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
11489         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
11490         Move ENOSYS stub into and include it from...
11491         * socket/sendmmsg.c: ... this new file.
11492         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
11493         (sysdep_routines): Move recvmmsg and sendmmsg...
11494         * socket/Makefile (routines): ... here.
11495         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
11496         (GLIBC_PRIVATE): Add __sendmmsg.
11497         * include/sys/socket.h (__sendmmsg): Add declarations.
11498         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
11499         sendmmsg.
11500
11501 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
11502
11503         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
11504         variable I1 with __attribute__ ((unused)).
11505         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11506
11507 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11508
11509         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
11510         DUMMY variables with __attribute__ ((unused)).
11511
11512         * bits/byteswap.h: Include <bits/types.h>.
11513         (__bswap_64): Use __uint64_t instead of unsigned long long int.
11514
11515 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11516
11517         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
11518         string_t.  Do not manually set errno.
11519         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
11520         length with __strnlen.  Make sure to both set errno and return it on
11521         failure.
11522
11523 2012-11-19  David S. Miller  <davem@davemloft.net>
11524
11525         With help from Joseph Myers.
11526         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
11527         very large arguments properly.
11528         * math/libm-test.inc (atan_test): New tests.
11529         (atan2_test): New tests.
11530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11531         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11532
11533 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11534
11535         [BZ #14856]
11536         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
11537         Define to 3.
11538
11539         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
11540         [POSIX] (EADDRNOTAVAIL): Likewise.
11541         [POSIX] (EAFNOSUPPORT): Likewise.
11542         [POSIX] (EALREADY): Likewise.
11543         [POSIX] (ECONNABORTED): Likewise.
11544         [POSIX] (ECONNREFUSED): Likewise.
11545         [POSIX] (ECONNRESET): Likewise.
11546         [POSIX] (EDESTADDRREQ): Likewise.
11547         [POSIX] (EDQUOT): Likewise.
11548         [POSIX] (EHOSTUNREACH): Likewise.
11549         [POSIX] (EIDRM): Likewise.
11550         [POSIX] (EISCONN): Likewise.
11551         [POSIX] (ELOOP): Likewise.
11552         [POSIX] (EMULTIHOP): Likewise.
11553         [POSIX] (ENETDOWN): Likewise.
11554         [POSIX] (ENETUNREACH): Likewise.
11555         [POSIX] (ENOBUFS): Likewise.
11556         [POSIX] (ENODATA): Likewise.
11557         [POSIX] (ENOLINK): Likewise.
11558         [POSIX] (ENOMSG): Likewise.
11559         [POSIX] (ENOPROTOOPT): Likewise.
11560         [POSIX] (ENOSR): Likewise.
11561         [POSIX] (ENOSTR): Likewise.
11562         [POSIX] (ENOTCONN): Likewise.
11563         [POSIX] (ENOTSOCK): Likewise.
11564         [POSIX] (EOPNOTSUPP): Likewise.
11565         [POSIX] (EOVERFLOW): Likewise.
11566         [POSIX] (EPROTO): Likewise.
11567         [POSIX] (EPROTONOSUPPORT): Likewise.
11568         [POSIX] (EPROTOTYPE): Likewise.
11569         [POSIX] (ESTALE): Likewise.
11570         [POSIX] (ETIME): Likewise.
11571         [POSIX] (ETXTBSY): Likewise.
11572         [POSIX] (EWOULDBLOCK): Likewise.
11573         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
11574         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
11575         [POSIX] (SEEK_CUR): Likewise.
11576         [POSIX] (SEEK_END): Likewise.
11577         [POSIX || UNIX98] (mode_t): Do not require.
11578         [POSIX] (off_t): Likewise.
11579         [POSIX] (pid_t): Likewise.
11580         [POSIX] (sys/stat.h): Do not allow header.
11581         [POSIX] (unistd.h): Likewise.
11582         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
11583         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
11584         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
11585         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
11586         require.
11587         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
11588         sigevent): Specify elements.
11589         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
11590         entry.
11591         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
11592         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
11593
11594         * conform/data/cpio.h-data [POSIX]: Disable whole file.
11595         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
11596         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
11597         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
11598         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
11599         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
11600         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
11601         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
11602         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
11603         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
11604         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
11605         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
11606         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
11607         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
11608         Likewise.
11609         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
11610         Likewise.
11611         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
11612         Likewise.
11613         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
11614         Likewise.
11615         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
11616         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
11617         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
11618         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
11619         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
11620         Specify lower bound on value.
11621         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
11622         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
11623         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
11624         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
11625         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
11626         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
11627         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
11628         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
11629         value.
11630         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
11631         as optional.
11632         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
11633         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
11634         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
11635         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
11636         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
11637         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
11638         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
11639         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
11640         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
11641         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
11642         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
11643         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
11644         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
11645         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
11646         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
11647         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
11648         entry.
11649         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
11650         optional.
11651         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
11652         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
11653         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
11654         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
11655         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
11656         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
11657         Likewise.
11658         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
11659         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
11660         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
11661         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
11662         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
11663         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
11664         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
11665         as optional.
11666         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
11667         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
11668         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
11669         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
11670         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
11671         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
11672         specify as optional.
11673         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
11674         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
11675         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
11676         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
11677         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
11678         [XPG3] (NL_LANGMAX): Likewise.
11679         [POSIX || XPG3] (NL_MSGMAX): Likewise.
11680         [POSIX || XPG3] (NL_NMAX): Likewise.
11681         [POSIX || XPG3] (NL_SETMAX): Likewise.
11682         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
11683         [XPG3] (NZERO): Likewise.
11684         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
11685         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
11686         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
11687         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
11688         (REG_ERANGE): Expect.
11689         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
11690         optional-constant.
11691         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
11692         Use (void) in prototype.
11693         [POSIX] (*_t): Allow.
11694         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
11695         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
11696         (WRDE_BADVAL): Expect.
11697
11698         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
11699         expect.
11700         [XPG3 || XPG4] (O_RSYNC): Likewise.
11701         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
11702         Likewise.
11703         [XPG3 || XPG4] (pthread_sigmask): Likewise.
11704         [XPG3 || XPG4] (sigqueue): Likewise.
11705         [XPG3 || XPG4] (sigtimedwait): Likewise.
11706         [XPG3 || XPG4] (sigwaitinfo): Likewise.
11707         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
11708         [XPG3 || XPG4] (vsnprintf): Likewise.
11709         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
11710         Likewise.
11711         [XPG3 || XPG4] (blksize_t): Likewise.
11712         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
11713         Likewise.
11714         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
11715         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
11716         [XPG3 || XPG4] (struct itimerspec): Likewise.
11717         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
11718         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
11719         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
11720         [XPG3 || XPG4] (clockid_t): Likewise.
11721         [XPG3 || XPG4] (timer_t): Likewise.
11722         [XPG3 || XPG4] (clock_getres): Likewise.
11723         [XPG3 || XPG4] (clock_gettime): Likewise.
11724         [XPG3 || XPG4] (clock_settime): Likewise.
11725         [XPG3 || XPG4] (nanosleep): Likewise.
11726         [XPG3 || XPG4] (timer_create): Likewise.
11727         [XPG3 || XPG4] (timer_delete): Likewise.
11728         [XPG3 || XPG4] (timer_gettime): Likewise.
11729         [XPG3 || XPG4] (timer_getoverrun): Likewise.
11730         [XPG3 || XPG4] (timer_settime): Likewise.
11731         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
11732         [XPG3 || XPG4] (getlogin_r): Likewise.
11733         [XPG3 || XPG4] (pread): Likewise.
11734         [XPG3 || XPG4] (pthread_atfork): Likewise.
11735         [XPG3 || XPG4] (pwrite): Likewise.
11736
11737         [BZ #14835]
11738         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
11739         <bits/siginfo.h>.
11740
11741 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11742
11743         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
11744         finalizing MALLSTREAM.
11745
11746         * sysdeps/mach/hurd/syncfs.c: New file.
11747
11748 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11749
11750         [BZ #14719]
11751         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
11752         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
11753         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
11754         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
11755         (_nss_dns_gethostbyname4_r): Likewise.
11756         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
11757         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
11758
11759 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
11760
11761         [BZ #13763]
11762         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
11763
11764 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
11765
11766         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
11767         * elf/cache.c (print_entry): Print ",AArch64" for
11768         FLAG_AARCH64_LIB64
11769
11770         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
11771         * elf/cache.c (print_entry): Print ",hard-float" for
11772         FLAG_ARM_LIBHF.
11773
11774 2012-11-18  David S. Miller  <davem@davemloft.net>
11775
11776         With help from Joseph Myers.
11777         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
11778         cutoff to 2**-13.
11779         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
11780         cutoff to 2**-25.
11781         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
11782         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
11783         small.
11784         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
11785         * math/libm-test.inc (y0_test): New tests.
11786         (y1_test): New tests.
11787         * sysdeps/i386/fpu/libm-test-ulps: Update.
11788         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11789         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11790
11791 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
11792
11793         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
11794         64-bit targets.
11795         * configure: Regenerated.
11796
11797 2012-11-17  David S. Miller  <davem@davemloft.net>
11798
11799         [BZ #14811]
11800         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
11801         nonzero exponents with absolute value below 0x1p-128 to +/-
11802         0x1p-128.
11803
11804 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
11805
11806         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
11807
11808         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
11809
11810         * posix/getconf-speclist.c: New file.
11811         * posix/posix-envs.def: Likewise.
11812         * posix/confstr.c (START_ENV_GROUP): New macro.
11813         (END_ENV_GROUP): Likewise.
11814         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
11815         (KNOWN_PRESENT_ENV_STRING): Likewise.
11816         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
11817         (UNKNOWN_ENVIRONMENT): Likewise.
11818         (confstr): Include posix-envs.def instead of handling
11819         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
11820         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
11821         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
11822         (END_ENV_GROUP): Likewise.
11823         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
11824         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
11825         (UNKNOWN_ENVIRONMENT): Likewise.
11826         (__sysconf): Include posix-envs.def instead of handling associated
11827         cases directly here.
11828         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
11829         preprocessing getconf-speclist.c rather than running getconf or
11830         generating empty file.
11831
11832 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
11833
11834         * scripts/check-local-headers.sh: Ignore 'mach' headers.
11835
11836 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
11837
11838         [BZ #14672]
11839         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
11840
11841 2012-11-16  David S. Miller  <davem@davemloft.net>
11842
11843         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
11844         smaller than LDBL_EPSILON/2.0L, just return xm1.
11845
11846 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
11847
11848         * elf/tst-array1.c (init): Set constructor priority to 1000.
11849         (fini): Set destructor priority to 1000.
11850         * elf/tst-array2dep.c: Likewise.
11851
11852 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11853
11854         [BZ #11741]
11855         * libio/fileops.c (_IO_new_file_write): Correctly return error.
11856         (_IO_new_file_xsputn): Also return EOF if none of the input
11857         data was written when overflow failed.
11858         * libio/iopadn.c (_IO_padn): Likewise.
11859         * libio/iowpadn.c (_IO_wpadn): Likewise.
11860         * stdio-common/tst-put-error.c: Add copyright notice.
11861         (do_test): Add case for printing padded string.
11862         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
11863         _IO_padn returned error.
11864         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
11865         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
11866         return EOF.
11867
11868 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11869
11870         * libio/libioP.h: Add comment note that the references to C++
11871         bits are now obsolete.
11872
11873 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11874
11875         * math/libm-test.inc (check_complex): Use asprintf.
11876
11877 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
11878
11879         * debug/pcprofiledump.c (print_version): Update copyright year.
11880         * malloc/memusagestat.c (print_version): Likewise.
11881
11882 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
11883
11884         [BZ #14831]
11885         * elf/Makefile (tests): Add tst-audit8.
11886         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
11887         ($(objpfx)tst-audit8.out): New target.
11888         (tst-audit8-ENV): New variable.
11889         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
11890         audit if l_reloc_result is NULL.
11891         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
11892         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
11893         * elf/tst-audit8.c: New file.
11894
11895 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11896
11897         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
11898         * misc/Makefile (CFLAGS-select.c): Define.
11899         * posix/Makefile (CFLAGS-pause.c): Define.
11900
11901 2012-11-13  David S. Miller  <davem@davemloft.net>
11902
11903         * crypt/Makefile: Move test targets after toplevel Rules
11904         inclusion.  Grab any necessary sysdep routines when linking.
11905         * crypt/md5.c (md5_process_block): Remove define, we will always
11906         name it __md5_process_block.
11907         (md5_finish_ctx): Update md5_process_block call.
11908         (md5_stream): Likewise.
11909         (md5_process_bytes): Likewise.
11910         (md5_process_block): Rename to __md5_process_block and move to ...
11911         * crypt/md5-block.c: ... here.
11912         * crypt/sha256.c (sha256_process_block): Move to ...
11913         * crypt/sha256-block.c: ... here.
11914         * crypt/sha512.c (sha512_process_block): Move to ...
11915         * crypt/sha512-block.c: ... here.
11916         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
11917         path.
11918         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
11919         * sysdeps/sparc/sparc64/multiarch/Makefile
11920         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
11921         crypt subdir.
11922         (localedef-aux): Add md5 crypto assembler when in locale subdir.
11923         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
11924         multiarch changes.
11925         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
11926         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
11927         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
11928         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
11929         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
11930         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
11931         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
11932         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
11933         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
11934         file.
11935         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
11936         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
11937         file.
11938         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
11939
11940 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
11941
11942         * timezone/tzselect.ksh: Update from tzcode git revision
11943         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
11944         * timezone/zdump.c: Likewise.
11945         * timezone/zic.c: Likewise.
11946         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
11947         in TZVERSION setting, not $(PKGVERSION).
11948         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
11949         REPORT_BUGS_TO settings.
11950
11951         [BZ #14838]
11952         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
11953         macro.
11954
11955 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11956
11957         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
11958         detection to immediately after _FP_ROUND().
11959         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
11960         bits are 0.
11961
11962 2012-11-11  David S. Miller  <davem@davemloft.net>
11963
11964         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
11965         inttypes.h
11966         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
11967         __close rather than their public counterparts.
11968
11969 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
11970
11971         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
11972         file.
11973         [UNIX98] (sem_timedwait): Do not expect.
11974         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
11975         [XPG4 || UNIX98] (sockatmark): Do not expect.
11976         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
11977         (clock_getcpuclockid): Do not expect.
11978         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
11979         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
11980         Do not expect.
11981         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
11982         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
11983         [UNIX98] (vwscanf): Likewise.
11984         [UNIX98] (vswscanf): Likewise.
11985
11986 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
11987
11988         * timezone/version.h: Remove file.
11989         * timezone/README: Do not refer to version.h.
11990         * timezone/Makefile ($(objpfx)zic.o): New dependency on
11991         $(objpfx)version.h.
11992         ($(objpfx)zdump.o): Likewise.
11993         ($(objpfx)version.h): New target.
11994
11995         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
11996         2012i.
11997         * timezone/README: Don't mention modification to tzselect.ksh.
11998         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
11999         work on unmodified tzselect.ksh.  Substitute version numbers in
12000         tzselect.ksh.
12001
12002         * Makefile (format-me): Remove.
12003         (INSTALL): Adjust indentation.  Use commands directly instead of
12004         using $(format-me).
12005
12006         * aclocal.m4 (ACX_PKGVERSION): New macro.
12007         (ACX_BUGURL): Likewise.
12008         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
12009         (PKGVERSION): New AC_DEFINE_UNQUOTED.
12010         (REPORT_BUGS_TO): Likewise.
12011         * configure: Regenerated.
12012         * config.h.in (PKGVERSION): New macro.
12013         (REPORT_BUGS_TO): Likewise.
12014         * config.make.in (PKGVERSION): New variable.
12015         (PKGVERSION_TEXI): Likewise.
12016         (REPORT_BUGS_TO): Likewise.
12017         (REPORT_BUGS_TEXI): Likewise.
12018         * Makefile (format-me): Use -I$(common-objpfx)manual.
12019         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
12020         ($(common-objpfx)manual/%): New target.
12021         (manual/%): Remove target.
12022         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
12023         (print_version): Use PKGVERSION.
12024         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
12025         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
12026         and REPORT_BUGS_TO.
12027         ($(objpfx)xtrace): Likewise.
12028         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
12029         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
12030         (print_version): Use PKGVERSION.
12031         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
12032         (do_version): Use PKGVERSION.
12033         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
12034         REPORT_BUGS_TO.
12035         (common-ldd-rewrite): Likewise.
12036         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
12037         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
12038         (print_version): Use PKGVERSION.
12039         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
12040         * elf/pldd.c (argp_program_bug_address): Remove variable.
12041         (more_help): New function.
12042         (argp): Use more_help.
12043         (print_version): Use PKGVERSION.
12044         * elf/sln.c (main): Use PKGVERSION.
12045         (usage): Use REPORT_BUGS_TO.
12046         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
12047         (top level): Use PKGVERSION.
12048         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
12049         (print_version): Use PKGVERSION.
12050         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
12051         (print_version): Use PKGVERSION.
12052         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
12053         (print_version): Use PKGVERSION.
12054         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
12055         (print_version): Use PKGVERSION.
12056         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
12057         (print_version): Use PKGVERSION.
12058         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
12059         (print_version): Use PKGVERSION.
12060         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
12061         and BUGURL.
12062         ($(objpfx)memusage): Likewise.
12063         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
12064         (do_version): Use PKGVERSION.
12065         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
12066         (print_version): Use PKGVERSION.
12067         * malloc/mtrace.pl ($PACKAGE): Remove variable.
12068         ($PKGVERSION): New variable.
12069         ($REPORT_BUGS_TO): Likewise.
12070         (usage): Use $REPORT_BUGS_TO.
12071         (top level): Use $PKGVERSION.
12072         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
12073         ($(objpfx)pkgvers.texi): New rule.
12074         ($(objpfx)stamp-pkgvers): Likewise.
12075         * manual/install.texi: Include pkgvers.texi.
12076         (--with-pkgversion): Document new configure option.
12077         (--with-bugurl): Likewise.
12078         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
12079         than necessarily for this particular distribution.  Use
12080         REPORT_BUGS_TO for where to report bugs.
12081         * INSTALL: Regenerated.
12082         * manual/libc.texinfo: Include pkgvers.texi.
12083         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
12084         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
12085         (print_version): Use PKGVERSION.
12086         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
12087         (print_version): Use PKGVERSION.
12088         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
12089         (print_version): Use PKGVERSION.
12090         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
12091         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
12092         macro.
12093         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
12094         (print_version): Use PKGVERSION.
12095         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
12096         (print_version): Use PKGVERSION.
12097         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
12098         and PKGVERSION.
12099
12100         * timezone/checktab.awk: Update from tzcode 2012i.
12101         * timezone/ialloc.c: Likewise.
12102         * timezone/private.h: Likewise.
12103         * timezone/scheck.c: Likewise.
12104         * timezone/tzfile.h: Likewise.
12105         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
12106         (TZVERSION): Hardcode tzcode version number.
12107         * timezone/zdump.c: Update from tzcode 2012i.
12108         * timezone/zic.c: Likewise.
12109         * timezone/version.h: New file.
12110         * timezone/README: Describe version.h.  Update upstream location.
12111
12112         [BZ #14824]
12113         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
12114         (mktemp): Enable declaration.
12115         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
12116         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
12117         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
12118         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
12119         Likewise.
12120         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
12121         Likewise.
12122         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
12123         Likewise.
12124         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
12125         Likewise.
12126         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
12127         Likewise.
12128         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
12129         Likewise.
12130
12131         [BZ #14821]
12132         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
12133         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
12134         for copies of such integer values.
12135         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12136         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12137
12138 2012-11-09  Andreas Jaeger  <aj@suse.de>
12139
12140         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
12141         definitions and declarations that are provided by
12142         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
12143
12144 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12145
12146         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
12147         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
12148         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
12149         definition.
12150
12151 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12152
12153         * elf/elf.h: Update comment before AArch64 relocations.
12154
12155 2012-11-07  David S. Miller  <davem@davemloft.net>
12156
12157         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
12158         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12159         (__start_context): Declare.
12160         (__makecontext_ret): Delete.
12161         (__makecontext): Hook up __start_context instead of
12162         __makecontext_ret.
12163         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
12164         (sysdep_routines): Add __start_context when in stdlib.
12165
12166 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12167
12168         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
12169         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
12170         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
12171         hardcoded "nm".
12172         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
12173         (READELF): New variable.  Use it instead of hardcoded "readelf".
12174
12175 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
12176
12177         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
12178         * sysdeps/x86/Makefile: Here.
12179         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
12180         * sysdeps/x86/tst-xmmymm.sh: This.
12181
12182 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12183
12184         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
12185         expectations.
12186         [UNIX98] (pthread_barrier_t): Do not expect.
12187         [UNIX98] (pthread_barrierattr_t): Likewise.
12188         [UNIX98] (pthread_spinlock_t): Likewise.
12189         [UNIX98] (pthread_barrier_destroy): Likewise.
12190         [UNIX98] (pthread_barrier_init): Likewise.
12191         [UNIX98] (pthread_barrier_wait): Likewise.
12192         [UNIX98] (pthread_barrierattr_destroy): Likewise.
12193         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
12194         [UNIX98] (pthread_barrierattr_init): Likewise.
12195         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
12196         [UNIX98] (pthread_getcpuclockid): Likewise.
12197         [UNIX98] (pthread_mutex_timedlock): Likewise.
12198         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
12199         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
12200         [UNIX98] (pthread_sigmask): Likewise.
12201         [UNIX98] (pthread_spin_destroy): Likewise.
12202         [UNIX98] (pthread_spin_init): Likewise.
12203         [UNIX98] (pthread_spin_lock): Likewise.
12204         [UNIX98] (pthread_spin_trylock): Likewise.
12205         [UNIX98] (pthread_spin_unlock): Likewise.
12206         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
12207         Do not expect.
12208         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
12209         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
12210         [XPG3 || XPG4] (pthread_cond_t): Likewise.
12211         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
12212         [XPG3 || XPG4] (pthread_key_t): Likewise.
12213         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
12214         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
12215         [XPG3 || XPG4] (pthread_once_t): Likewise.
12216         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
12217         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
12218         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
12219         [XPG3 || XPG4] (pthread_t): Likewise.
12220
12221         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
12222         not expect.
12223         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
12224
12225         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
12226         Change function return type to int.
12227
12228         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
12229         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
12230         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
12231         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
12232         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
12233         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
12234         [!POSIX] (posix_madvise): Likewise.
12235         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
12236         && !UNIX98].
12237         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
12238         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
12239         (mode_t): Likewise.
12240         (posix_mem_offset): Likewise.
12241         (posix_typed_mem_get_info): Likewise.
12242         (posix_typed_mem_open): Likewise.
12243
12244         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
12245         Change condition to [XOPEN2K8].
12246
12247         * conform/conformtest.pl: Preprocess allow-header data with -x c
12248         instead of from stdin.
12249         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
12250         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
12251         [C99-based standards] (cerfc): Likewise.
12252         [C99-based standards] (cexp2): Likewise.
12253         [C99-based standards] (cexpm1): Likewise.
12254         [C99-based standards] (clog10): Likewise.
12255         [C99-based standards] (clog1p): Likewise.
12256         [C99-based standards] (clog2): Likewise.
12257         [C99-based standards] (clgamma): Likewise.
12258         [C99-based standards] (ctgamma): Likewise.
12259         [C99-based standards] (cerff): Likewise.
12260         [C99-based standards] (cerfcf): Likewise.
12261         [C99-based standards] (cexp2f): Likewise.
12262         [C99-based standards] (cexpm1f): Likewise.
12263         [C99-based standards] (clog10f): Likewise.
12264         [C99-based standards] (clog1pf): Likewise.
12265         [C99-based standards] (clog2f): Likewise.
12266         [C99-based standards] (clgammaf): Likewise.
12267         [C99-based standards] (ctgammaf): Likewise.
12268         [C99-based standards] (cerfl): Likewise.
12269         [C99-based standards] (cerfcl): Likewise.
12270         [C99-based standards] (cexp2l): Likewise.
12271         [C99-based standards] (cexpm1l): Likewise.
12272         [C99-based standards] (clog10l): Likewise.
12273         [C99-based standards] (clog1pl): Likewise.
12274         [C99-based standards] (clog2l): Likewise.
12275         [C99-based standards] (clgammal): Likewise.
12276         [C99-based standards] (ctgammal): Likewise.
12277         * conform/data/inttypes.h-data [C99-based standards]: Include
12278         stdint.h-data.  Remove all expectations for stdint.h contents.
12279         [C99-based standards] (PRI*): Do not allow.
12280         [C99-based standards] (SCN*): Likewise.
12281         [C99-based standards] (*_t): Likewise.
12282         [C99-based-standards] (PRId8): Expect macro.
12283         [C99-based-standards] (PRIi8): Likewise.
12284         [C99-based-standards] (PRIo8): Likewise.
12285         [C99-based-standards] (PRIu8): Likewise.
12286         [C99-based-standards] (PRIx8): Likewise.
12287         [C99-based-standards] (PRIX8): Likewise.
12288         [C99-based-standards] (SCNd8): Likewise.
12289         [C99-based-standards] (SCNi8): Likewise.
12290         [C99-based-standards] (SCNo8): Likewise.
12291         [C99-based-standards] (SCNu8): Likewise.
12292         [C99-based-standards] (SCNx8): Likewise.
12293         [C99-based-standards] (PRIdLEAST8): Likewise.
12294         [C99-based-standards] (PRIiLEAST8): Likewise.
12295         [C99-based-standards] (PRIoLEAST8): Likewise.
12296         [C99-based-standards] (PRIuLEAST8): Likewise.
12297         [C99-based-standards] (PRIxLEAST8): Likewise.
12298         [C99-based-standards] (PRIXLEAST8): Likewise.
12299         [C99-based-standards] (SCNdLEAST8): Likewise.
12300         [C99-based-standards] (SCNiLEAST8): Likewise.
12301         [C99-based-standards] (SCNoLEAST8): Likewise.
12302         [C99-based-standards] (SCNuLEAST8): Likewise.
12303         [C99-based-standards] (SCNxLEAST8): Likewise.
12304         [C99-based-standards] (PRIdFAST8): Likewise.
12305         [C99-based-standards] (PRIiFAST8): Likewise.
12306         [C99-based-standards] (PRIoFAST8): Likewise.
12307         [C99-based-standards] (PRIuFAST8): Likewise.
12308         [C99-based-standards] (PRIxFAST8): Likewise.
12309         [C99-based-standards] (PRIXFAST8): Likewise.
12310         [C99-based-standards] (SCNdFAST8): Likewise.
12311         [C99-based-standards] (SCNiFAST8): Likewise.
12312         [C99-based-standards] (SCNoFAST8): Likewise.
12313         [C99-based-standards] (SCNuFAST8): Likewise.
12314         [C99-based-standards] (SCNxFAST8): Likewise.
12315         [C99-based-standards] (PRId16): Likewise.
12316         [C99-based-standards] (PRIi16): Likewise.
12317         [C99-based-standards] (PRIo16): Likewise.
12318         [C99-based-standards] (PRIu16): Likewise.
12319         [C99-based-standards] (PRIx16): Likewise.
12320         [C99-based-standards] (PRIX16): Likewise.
12321         [C99-based-standards] (SCNd16): Likewise.
12322         [C99-based-standards] (SCNi16): Likewise.
12323         [C99-based-standards] (SCNo16): Likewise.
12324         [C99-based-standards] (SCNu16): Likewise.
12325         [C99-based-standards] (SCNx16): Likewise.
12326         [C99-based-standards] (PRIdLEAST16): Likewise.
12327         [C99-based-standards] (PRIiLEAST16): Likewise.
12328         [C99-based-standards] (PRIoLEAST16): Likewise.
12329         [C99-based-standards] (PRIuLEAST16): Likewise.
12330         [C99-based-standards] (PRIxLEAST16): Likewise.
12331         [C99-based-standards] (PRIXLEAST16): Likewise.
12332         [C99-based-standards] (SCNdLEAST16): Likewise.
12333         [C99-based-standards] (SCNiLEAST16): Likewise.
12334         [C99-based-standards] (SCNoLEAST16): Likewise.
12335         [C99-based-standards] (SCNuLEAST16): Likewise.
12336         [C99-based-standards] (SCNxLEAST16): Likewise.
12337         [C99-based-standards] (PRIdFAST16): Likewise.
12338         [C99-based-standards] (PRIiFAST16): Likewise.
12339         [C99-based-standards] (PRIoFAST16): Likewise.
12340         [C99-based-standards] (PRIuFAST16): Likewise.
12341         [C99-based-standards] (PRIxFAST16): Likewise.
12342         [C99-based-standards] (PRIXFAST16): Likewise.
12343         [C99-based-standards] (SCNdFAST16): Likewise.
12344         [C99-based-standards] (SCNiFAST16): Likewise.
12345         [C99-based-standards] (SCNoFAST16): Likewise.
12346         [C99-based-standards] (SCNuFAST16): Likewise.
12347         [C99-based-standards] (SCNxFAST16): Likewise.
12348         [C99-based-standards] (PRId32): Likewise.
12349         [C99-based-standards] (PRIi32): Likewise.
12350         [C99-based-standards] (PRIo32): Likewise.
12351         [C99-based-standards] (PRIu32): Likewise.
12352         [C99-based-standards] (PRIx32): Likewise.
12353         [C99-based-standards] (PRIX32): Likewise.
12354         [C99-based-standards] (SCNd32): Likewise.
12355         [C99-based-standards] (SCNi32): Likewise.
12356         [C99-based-standards] (SCNo32): Likewise.
12357         [C99-based-standards] (SCNu32): Likewise.
12358         [C99-based-standards] (SCNx32): Likewise.
12359         [C99-based-standards] (PRIdLEAST32): Likewise.
12360         [C99-based-standards] (PRIiLEAST32): Likewise.
12361         [C99-based-standards] (PRIoLEAST32): Likewise.
12362         [C99-based-standards] (PRIuLEAST32): Likewise.
12363         [C99-based-standards] (PRIxLEAST32): Likewise.
12364         [C99-based-standards] (PRIXLEAST32): Likewise.
12365         [C99-based-standards] (SCNdLEAST32): Likewise.
12366         [C99-based-standards] (SCNiLEAST32): Likewise.
12367         [C99-based-standards] (SCNoLEAST32): Likewise.
12368         [C99-based-standards] (SCNuLEAST32): Likewise.
12369         [C99-based-standards] (SCNxLEAST32): Likewise.
12370         [C99-based-standards] (PRIdFAST32): Likewise.
12371         [C99-based-standards] (PRIiFAST32): Likewise.
12372         [C99-based-standards] (PRIoFAST32): Likewise.
12373         [C99-based-standards] (PRIuFAST32): Likewise.
12374         [C99-based-standards] (PRIxFAST32): Likewise.
12375         [C99-based-standards] (PRIXFAST32): Likewise.
12376         [C99-based-standards] (SCNdFAST32): Likewise.
12377         [C99-based-standards] (SCNiFAST32): Likewise.
12378         [C99-based-standards] (SCNoFAST32): Likewise.
12379         [C99-based-standards] (SCNuFAST32): Likewise.
12380         [C99-based-standards] (SCNxFAST32): Likewise.
12381         [C99-based-standards] (PRId64): Likewise.
12382         [C99-based-standards] (PRIi64): Likewise.
12383         [C99-based-standards] (PRIo64): Likewise.
12384         [C99-based-standards] (PRIu64): Likewise.
12385         [C99-based-standards] (PRIx64): Likewise.
12386         [C99-based-standards] (PRIX64): Likewise.
12387         [C99-based-standards] (SCNd64): Likewise.
12388         [C99-based-standards] (SCNi64): Likewise.
12389         [C99-based-standards] (SCNo64): Likewise.
12390         [C99-based-standards] (SCNu64): Likewise.
12391         [C99-based-standards] (SCNx64): Likewise.
12392         [C99-based-standards] (PRIdLEAST64): Likewise.
12393         [C99-based-standards] (PRIiLEAST64): Likewise.
12394         [C99-based-standards] (PRIoLEAST64): Likewise.
12395         [C99-based-standards] (PRIuLEAST64): Likewise.
12396         [C99-based-standards] (PRIxLEAST64): Likewise.
12397         [C99-based-standards] (PRIXLEAST64): Likewise.
12398         [C99-based-standards] (SCNdLEAST64): Likewise.
12399         [C99-based-standards] (SCNiLEAST64): Likewise.
12400         [C99-based-standards] (SCNoLEAST64): Likewise.
12401         [C99-based-standards] (SCNuLEAST64): Likewise.
12402         [C99-based-standards] (SCNxLEAST64): Likewise.
12403         [C99-based-standards] (PRIdFAST64): Likewise.
12404         [C99-based-standards] (PRIiFAST64): Likewise.
12405         [C99-based-standards] (PRIoFAST64): Likewise.
12406         [C99-based-standards] (PRIuFAST64): Likewise.
12407         [C99-based-standards] (PRIxFAST64): Likewise.
12408         [C99-based-standards] (PRIXFAST64): Likewise.
12409         [C99-based-standards] (SCNdFAST64): Likewise.
12410         [C99-based-standards] (SCNiFAST64): Likewise.
12411         [C99-based-standards] (SCNoFAST64): Likewise.
12412         [C99-based-standards] (SCNuFAST64): Likewise.
12413         [C99-based-standards] (SCNxFAST64): Likewise.
12414         [C99-based-standards] (PRIdMAX): Likewise.
12415         [C99-based-standards] (PRIiMAX): Likewise.
12416         [C99-based-standards] (PRIoMAX): Likewise.
12417         [C99-based-standards] (PRIuMAX): Likewise.
12418         [C99-based-standards] (PRIxMAX): Likewise.
12419         [C99-based-standards] (PRIXMAX): Likewise.
12420         [C99-based-standards] (SCNdMAX): Likewise.
12421         [C99-based-standards] (SCNiMAX): Likewise.
12422         [C99-based-standards] (SCNoMAX): Likewise.
12423         [C99-based-standards] (SCNuMAX): Likewise.
12424         [C99-based-standards] (SCNxMAX): Likewise.
12425         [C99-based-standards] (PRIdPTR): Likewise.
12426         [C99-based-standards] (PRIiPTR): Likewise.
12427         [C99-based-standards] (PRIoPTR): Likewise.
12428         [C99-based-standards] (PRIuPTR): Likewise.
12429         [C99-based-standards] (PRIxPTR): Likewise.
12430         [C99-based-standards] (PRIXPTR): Likewise.
12431         [C99-based-standards] (SCNdPTR): Likewise.
12432         [C99-based-standards] (SCNiPTR): Likewise.
12433         [C99-based-standards] (SCNoPTR): Likewise.
12434         [C99-based-standards] (SCNuPTR): Likewise.
12435         [C99-based-standards] (SCNxPTR): Likewise.
12436         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
12437         allow.
12438         * conform/data/stdint.h-data: Update comments to clarify
12439         requirements.
12440         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
12441         type.
12442         [C99-based standards] (INT8_MAX): Likewise.
12443         [C99-based standards] (INT16_MIN): Likewise.
12444         [C99-based standards] (INT16_MAX): Likewise.
12445         [C99-based standards] (INT32_MIN): Likewise.
12446         [C99-based standards] (INT32_MAX): Likewise.
12447         [C99-based standards] (INT64_MIN): Likewise.
12448         [C99-based standards] (INT64_MAX): Likewise.
12449         [C99-based standards] (UINT8_MAX): Likewise.
12450         [C99-based standards] (UINT16_MAX): Likewise.
12451         [C99-based standards] (UINT32_MAX): Likewise.
12452         [C99-based standards] (UINT64_MAX): Likewise.
12453         [C99-based standards] (INT_LEAST8_MIN): Likewise.
12454         [C99-based standards] (INT_LEAST8_MAX): Likewise.
12455         [C99-based standards] (INT_LEAST16_MIN): Likewise.
12456         [C99-based standards] (INT_LEAST16_MAX): Likewise.
12457         [C99-based standards] (INT_LEAST32_MIN): Likewise.
12458         [C99-based standards] (INT_LEAST32_MAX): Likewise.
12459         [C99-based standards] (INT_LEAST64_MIN): Likewise.
12460         [C99-based standards] (INT_LEAST64_MAX): Likewise.
12461         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
12462         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
12463         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
12464         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
12465         [C99-based standards] (INT_FAST8_MIN): Likewise.
12466         [C99-based standards] (INT_FAST8_MAX): Likewise.
12467         [C99-based standards] (INT_FAST16_MIN): Likewise.
12468         [C99-based standards] (INT_FAST16_MAX): Likewise.
12469         [C99-based standards] (INT_FAST32_MIN): Likewise.
12470         [C99-based standards] (INT_FAST32_MAX): Likewise.
12471         [C99-based standards] (INT_FAST64_MIN): Likewise.
12472         [C99-based standards] (INT_FAST64_MAX): Likewise.
12473         [C99-based standards] (UINT_FAST8_MAX): Likewise.
12474         [C99-based standards] (UINT_FAST16_MAX): Likewise.
12475         [C99-based standards] (UINT_FAST32_MAX): Likewise.
12476         [C99-based standards] (UINT_FAST64_MAX): Likewise.
12477         [C99-based standards] (INTPTR_MIN): Likewise.
12478         [C99-based standards] (INTPTR_MAX): Likewise.
12479         [C99-based standards] (UINTPTR_MAX): Likewise.
12480         [C99-based standards] (INTMAX_MIN): Likewise.
12481         [C99-based standards] (INTMAX_MAX): Likewise.
12482         [C99-based standards] (UINTMAX_MAX): Likewise.
12483         [C99-based standards] (PTRDIFF_MIN): Likewise.
12484         [C99-based standards] (PTRDIFF_MAX): Likewise.
12485         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
12486         [C99-based standards] (SIZE_MAX): Likewise.
12487         [C99-based standards] (WCHAR_MAX): Likewise.
12488         [C99-based standards] (WINT_MAX): Likewise.
12489         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
12490         constraint on value.
12491         [C99-based standards] (WCHAR_MIN): Likewise.
12492         [C99-based standards] (WINT_MIN): Likewise.
12493         [C99-based standards] (*_t): Allow.
12494         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
12495         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
12496         Include math.h-data and complex.h-data.  Remove all expectations
12497         of math.h and complex.h contents.
12498         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
12499         at end of line.
12500         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
12501         (struct tm): Expect tag.
12502         [C99-based-standards] (wcstof): Expect function.
12503         [C99-based-standards] (wcstold): Likewise.
12504         [C99-based-standards] (wcstoll): Likewise.
12505         [C99-based-standards] (wcstoull): Likewise.
12506         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
12507         macro-int-constant.  Specify type.
12508         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
12509         constraint on value.
12510         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12511         Specify type.
12512         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
12513         Specify value.
12514         [ISO C standards]: Do not allow headers.
12515         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
12516         wcs[abcdefghijklmnopqrstuvwxyz]*.
12517         [ISO C standards] (*_t): Do not allow.
12518         * conform/data/wctype.h-data [C99-based standards] (iswblank):
12519         Expect function.
12520         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
12521         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12522         Specify type.
12523         [ISO C standards]: Do not allow headers.
12524         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
12525         is[abcdefghijklmnopqrstuvwxyz]*.
12526         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
12527         to[abcdefghijklmnopqrstuvwxyz]*.
12528         [ISO C standards] (*_t): Do not allow.
12529         * conform/data/stdalign.h-data: New file.
12530         * conform/data/stdbool.h-data: Likewise.
12531         * conform/data/stdnoreturn.h-data: Likewise.
12532
12533 2012-11-07  Roland McGrath  <roland@hack.frob.com>
12534
12535         [BZ #14815]
12536         * manual/filesys.texi (Directory Entries): Typo fix.
12537         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
12538
12539 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12540
12541         * elf/elf.h (EM_AARCH64): New macro.
12542         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
12543         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
12544         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
12545         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
12546         (R_AARCH64_TLSDESC): Likewise.
12547         (NT_ARM_TLS): Likewise.
12548         (NT_ARM_HW_BREAK): Likewise.
12549         (NT_ARM_HW_WATCH): Likewise.
12550
12551 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12552
12553         [BZ #14811]
12554         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
12555         (__ieee754_powl): Saturate nonzero exponents with absolute value
12556         below 0x1p-79 to +/- 0x1p-79.
12557         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
12558         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
12559         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
12560         nonzero exponents with absolute value below 0x1p-32 to +/-
12561         0x1p-32.
12562         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
12563         (__ieee754_powl): Saturate nonzero exponents with absolute value
12564         below 0x1p-79 to +/- 0x1p-79.
12565         * math/libm-test.inc (pow_test): Add more tests.
12566
12567 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12568
12569         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
12570         _dl_s390_cap_flags with kernel. Increase string length.
12571         (_dl_s390_platforms): Add z196 and zEC12.
12572
12573 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12574
12575         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
12576         Change XOPEN21K to XOPEN2K.
12577
12578 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12579
12580         * string/memmove.c: Use memcpy when possible.
12581
12582 2012-11-06  Andreas Jaeger  <aj@suse.de>
12583
12584         * po/eo.po: Update from translation team.
12585
12586 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
12587
12588         [BZ #14793]
12589         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
12590         exponent and small x and y exponents, scale x or y up.  Increase
12591         by 2 the exponent used in scaling up.
12592         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12593         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12594         * math/libm-test.inc (fma_test): Add more tests.
12595         (fma_test_towardzero): Likewise.
12596         (fma_test_downward): Likewise.
12597         (fma_test_upward): Likewise.
12598
12599 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
12600
12601         [BZ #14805]
12602         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
12603         fenv_t *.
12604
12605         [BZ #14801]
12606         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
12607         namespace for names of struct fields.
12608         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
12609         fenv_t fields.
12610         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
12611         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
12612
12613 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12614
12615         [BZ #3665]
12616         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
12617
12618 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
12619
12620         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
12621         PTR_DEMANGLE.
12622
12623         [BZ #5246]
12624         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
12625         PTR_DEMANGLE.
12626
12627 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
12628
12629         [BZ #14797]
12630         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
12631         definitely overflow as x * y not x * y + z.
12632         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12633         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12634         * math/libm-test.inc (fma_test): Add more tests.
12635         (fma_test_towardzero): Likewise.
12636         (fma_test_downward): Likewise.
12637         (fma_test_upward): Likewise.
12638
12639 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
12640
12641         [BZ #157]
12642
12643         * include/stub-tag.h: Remove file.
12644         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
12645         '#include' of it.
12646         * manual/maint.texi (Porting): Don't reference it.
12647         * Makerules ($(objpfx)stubs): Likewise.
12648         * dirent/closedir.c: Don't include <stub-tag.h>.
12649         * dirent/dirfd.c: Likewise.
12650         * dirent/fdopendir.c: Likewise.
12651         * dirent/getdents.c: Likewise.
12652         * dirent/getdents64.c: Likewise.
12653         * dirent/opendir.c: Likewise.
12654         * dirent/readdir.c: Likewise.
12655         * dirent/readdir64.c: Likewise.
12656         * dirent/readdir64_r.c: Likewise.
12657         * dirent/readdir_r.c: Likewise.
12658         * dirent/rewinddir.c: Likewise.
12659         * dirent/seekdir.c: Likewise.
12660         * dirent/telldir.c: Likewise.
12661         * gmon/profil.c: Likewise.
12662         * grp/setgroups.c: Likewise.
12663         * inet/if_index.c: Likewise.
12664         * io/access.c: Likewise.
12665         * io/chdir.c: Likewise.
12666         * io/chmod.c: Likewise.
12667         * io/chown.c: Likewise.
12668         * io/close.c: Likewise.
12669         * io/dup.c: Likewise.
12670         * io/dup2.c: Likewise.
12671         * io/dup3.c: Likewise.
12672         * io/euidaccess.c: Likewise.
12673         * io/faccessat.c: Likewise.
12674         * io/fchdir.c: Likewise.
12675         * io/fchmod.c: Likewise.
12676         * io/fchmodat.c: Likewise.
12677         * io/fchown.c: Likewise.
12678         * io/fchownat.c: Likewise.
12679         * io/fcntl.c: Likewise.
12680         * io/flock.c: Likewise.
12681         * io/fstatfs.c: Likewise.
12682         * io/fstatfs64.c: Likewise.
12683         * io/fstatvfs.c: Likewise.
12684         * io/fstatvfs64.c: Likewise.
12685         * io/futimens.c: Likewise.
12686         * io/fxstat.c: Likewise.
12687         * io/fxstat64.c: Likewise.
12688         * io/fxstatat.c: Likewise.
12689         * io/fxstatat64.c: Likewise.
12690         * io/getcwd.c: Likewise.
12691         * io/isatty.c: Likewise.
12692         * io/lchmod.c: Likewise.
12693         * io/lchown.c: Likewise.
12694         * io/link.c: Likewise.
12695         * io/linkat.c: Likewise.
12696         * io/lseek.c: Likewise.
12697         * io/lseek64.c: Likewise.
12698         * io/lxstat64.c: Likewise.
12699         * io/mkdir.c: Likewise.
12700         * io/mkdirat.c: Likewise.
12701         * io/mkfifo.c: Likewise.
12702         * io/mkfifoat.c: Likewise.
12703         * io/open.c: Likewise.
12704         * io/open64.c: Likewise.
12705         * io/openat.c: Likewise.
12706         * io/openat64.c: Likewise.
12707         * io/pipe.c: Likewise.
12708         * io/pipe2.c: Likewise.
12709         * io/poll.c: Likewise.
12710         * io/posix_fadvise.c: Likewise.
12711         * io/posix_fadvise64.c: Likewise.
12712         * io/posix_fallocate.c: Likewise.
12713         * io/posix_fallocate64.c: Likewise.
12714         * io/read.c: Likewise.
12715         * io/readlink.c: Likewise.
12716         * io/readlinkat.c: Likewise.
12717         * io/rmdir.c: Likewise.
12718         * io/sendfile.c: Likewise.
12719         * io/sendfile64.c: Likewise.
12720         * io/statfs.c: Likewise.
12721         * io/statfs64.c: Likewise.
12722         * io/statvfs.c: Likewise.
12723         * io/statvfs64.c: Likewise.
12724         * io/symlink.c: Likewise.
12725         * io/symlinkat.c: Likewise.
12726         * io/ttyname.c: Likewise.
12727         * io/ttyname_r.c: Likewise.
12728         * io/umask.c: Likewise.
12729         * io/unlink.c: Likewise.
12730         * io/unlinkat.c: Likewise.
12731         * io/utime.c: Likewise.
12732         * io/utimensat.c: Likewise.
12733         * io/write.c: Likewise.
12734         * io/xmknod.c: Likewise.
12735         * io/xmknodat.c: Likewise.
12736         * io/xstat.c: Likewise.
12737         * io/xstat64.c: Likewise.
12738         * login/getpt.c: Likewise.
12739         * login/grantpt.c: Likewise.
12740         * login/unlockpt.c: Likewise.
12741         * math/e_acoshl.c: Likewise.
12742         * math/e_acosl.c: Likewise.
12743         * math/e_asinl.c: Likewise.
12744         * math/e_atan2l.c: Likewise.
12745         * math/e_atanhl.c: Likewise.
12746         * math/e_coshl.c: Likewise.
12747         * math/e_expl.c: Likewise.
12748         * math/e_fmodl.c: Likewise.
12749         * math/e_gammal_r.c: Likewise.
12750         * math/e_hypotl.c: Likewise.
12751         * math/e_j0l.c: Likewise.
12752         * math/e_j1l.c: Likewise.
12753         * math/e_jnl.c: Likewise.
12754         * math/e_lgammal_r.c: Likewise.
12755         * math/e_log10l.c: Likewise.
12756         * math/e_log2l.c: Likewise.
12757         * math/e_logl.c: Likewise.
12758         * math/e_powl.c: Likewise.
12759         * math/e_rem_pio2l.c: Likewise.
12760         * math/e_sinhl.c: Likewise.
12761         * math/e_sqrtl.c: Likewise.
12762         * math/fclrexcpt.c: Likewise.
12763         * math/fedisblxcpt.c: Likewise.
12764         * math/feenablxcpt.c: Likewise.
12765         * math/fegetenv.c: Likewise.
12766         * math/fegetexcept.c: Likewise.
12767         * math/fegetround.c: Likewise.
12768         * math/feholdexcpt.c: Likewise.
12769         * math/fesetenv.c: Likewise.
12770         * math/fesetround.c: Likewise.
12771         * math/feupdateenv.c: Likewise.
12772         * math/fgetexcptflg.c: Likewise.
12773         * math/fraiseexcpt.c: Likewise.
12774         * math/fsetexcptflg.c: Likewise.
12775         * math/ftestexcept.c: Likewise.
12776         * math/k_cosl.c: Likewise.
12777         * math/k_rem_pio2l.c: Likewise.
12778         * math/k_sinl.c: Likewise.
12779         * math/k_tanl.c: Likewise.
12780         * math/s_asinhl.c: Likewise.
12781         * math/s_atanl.c: Likewise.
12782         * math/s_cbrtl.c: Likewise.
12783         * math/s_erfl.c: Likewise.
12784         * math/s_expm1l.c: Likewise.
12785         * math/s_log1pl.c: Likewise.
12786         * math/s_tanhl.c: Likewise.
12787         * misc/acct.c: Likewise.
12788         * misc/brk.c: Likewise.
12789         * misc/chflags.c: Likewise.
12790         * misc/chroot.c: Likewise.
12791         * misc/fchflags.c: Likewise.
12792         * misc/fgetxattr.c: Likewise.
12793         * misc/flistxattr.c: Likewise.
12794         * misc/fremovexattr.c: Likewise.
12795         * misc/fsetxattr.c: Likewise.
12796         * misc/fsync.c: Likewise.
12797         * misc/ftruncate.c: Likewise.
12798         * misc/futimes.c: Likewise.
12799         * misc/futimesat.c: Likewise.
12800         * misc/getdomain.c: Likewise.
12801         * misc/getdtsz.c: Likewise.
12802         * misc/gethostid.c: Likewise.
12803         * misc/gethostname.c: Likewise.
12804         * misc/getloadavg.c: Likewise.
12805         * misc/getpagesize.c: Likewise.
12806         * misc/getsysstats.c: Likewise.
12807         * misc/getxattr.c: Likewise.
12808         * misc/gtty.c: Likewise.
12809         * misc/ioctl.c: Likewise.
12810         * misc/lgetxattr.c: Likewise.
12811         * misc/listxattr.c: Likewise.
12812         * misc/llistxattr.c: Likewise.
12813         * misc/lremovexattr.c: Likewise.
12814         * misc/lsetxattr.c: Likewise.
12815         * misc/lutimes.c: Likewise.
12816         * misc/madvise.c: Likewise.
12817         * misc/mincore.c: Likewise.
12818         * misc/mlock.c: Likewise.
12819         * misc/mlockall.c: Likewise.
12820         * misc/mmap.c: Likewise.
12821         * misc/mprotect.c: Likewise.
12822         * misc/msync.c: Likewise.
12823         * misc/munlock.c: Likewise.
12824         * misc/munlockall.c: Likewise.
12825         * misc/munmap.c: Likewise.
12826         * misc/preadv.c: Likewise.
12827         * misc/preadv64.c: Likewise.
12828         * misc/ptrace.c: Likewise.
12829         * misc/pwritev.c: Likewise.
12830         * misc/pwritev64.c: Likewise.
12831         * misc/readv.c: Likewise.
12832         * misc/reboot.c: Likewise.
12833         * misc/remap_file_pages.c: Likewise.
12834         * misc/removexattr.c: Likewise.
12835         * misc/revoke.c: Likewise.
12836         * misc/select.c: Likewise.
12837         * misc/setdomain.c: Likewise.
12838         * misc/setegid.c: Likewise.
12839         * misc/seteuid.c: Likewise.
12840         * misc/sethostid.c: Likewise.
12841         * misc/sethostname.c: Likewise.
12842         * misc/setregid.c: Likewise.
12843         * misc/setreuid.c: Likewise.
12844         * misc/setxattr.c: Likewise.
12845         * misc/sstk.c: Likewise.
12846         * misc/stty.c: Likewise.
12847         * misc/swapoff.c: Likewise.
12848         * misc/swapon.c: Likewise.
12849         * misc/sync.c: Likewise.
12850         * misc/syncfs.c: Likewise.
12851         * misc/syscall.c: Likewise.
12852         * misc/truncate.c: Likewise.
12853         * misc/ualarm.c: Likewise.
12854         * misc/usleep.c: Likewise.
12855         * misc/ustat.c: Likewise.
12856         * misc/utimes.c: Likewise.
12857         * misc/vhangup.c: Likewise.
12858         * misc/writev.c: Likewise.
12859         * posix/_exit.c: Likewise.
12860         * posix/alarm.c: Likewise.
12861         * posix/execve.c: Likewise.
12862         * posix/fexecve.c: Likewise.
12863         * posix/fork.c: Likewise.
12864         * posix/fpathconf.c: Likewise.
12865         * posix/getaddrinfo.c: Likewise.
12866         * posix/getegid.c: Likewise.
12867         * posix/geteuid.c: Likewise.
12868         * posix/getgid.c: Likewise.
12869         * posix/getgroups.c: Likewise.
12870         * posix/getlogin.c: Likewise.
12871         * posix/getlogin_r.c: Likewise.
12872         * posix/getpgid.c: Likewise.
12873         * posix/getpid.c: Likewise.
12874         * posix/getppid.c: Likewise.
12875         * posix/getresgid.c: Likewise.
12876         * posix/getresuid.c: Likewise.
12877         * posix/getsid.c: Likewise.
12878         * posix/getuid.c: Likewise.
12879         * posix/glob64.c: Likewise.
12880         * posix/nanosleep.c: Likewise.
12881         * posix/pathconf.c: Likewise.
12882         * posix/pause.c: Likewise.
12883         * posix/posix_madvise.c: Likewise.
12884         * posix/pread.c: Likewise.
12885         * posix/pread64.c: Likewise.
12886         * posix/pwrite.c: Likewise.
12887         * posix/pwrite64.c: Likewise.
12888         * posix/sched_getaffinity.c: Likewise.
12889         * posix/sched_getp.c: Likewise.
12890         * posix/sched_gets.c: Likewise.
12891         * posix/sched_primax.c: Likewise.
12892         * posix/sched_primin.c: Likewise.
12893         * posix/sched_rr_gi.c: Likewise.
12894         * posix/sched_setaffinity.c: Likewise.
12895         * posix/sched_setp.c: Likewise.
12896         * posix/sched_sets.c: Likewise.
12897         * posix/sched_yield.c: Likewise.
12898         * posix/setgid.c: Likewise.
12899         * posix/setlogin.c: Likewise.
12900         * posix/setpgid.c: Likewise.
12901         * posix/setresgid.c: Likewise.
12902         * posix/setresuid.c: Likewise.
12903         * posix/setsid.c: Likewise.
12904         * posix/setuid.c: Likewise.
12905         * posix/sleep.c: Likewise.
12906         * posix/spawni.c: Likewise.
12907         * posix/sysconf.c: Likewise.
12908         * posix/times.c: Likewise.
12909         * posix/wait.c: Likewise.
12910         * posix/wait3.c: Likewise.
12911         * posix/wait4.c: Likewise.
12912         * posix/waitpid.c: Likewise.
12913         * resolv/gai_sigqueue.c: Likewise.
12914         * resource/getpriority.c: Likewise.
12915         * resource/getrlimit.c: Likewise.
12916         * resource/getrusage.c: Likewise.
12917         * resource/nice.c: Likewise.
12918         * resource/setpriority.c: Likewise.
12919         * resource/setrlimit.c: Likewise.
12920         * resource/ulimit.c: Likewise.
12921         * rt/aio_cancel.c: Likewise.
12922         * rt/aio_fsync.c: Likewise.
12923         * rt/aio_read.c: Likewise.
12924         * rt/aio_sigqueue.c: Likewise.
12925         * rt/aio_suspend.c: Likewise.
12926         * rt/aio_write.c: Likewise.
12927         * rt/clock_getres.c: Likewise.
12928         * rt/clock_gettime.c: Likewise.
12929         * rt/clock_nanosleep.c: Likewise.
12930         * rt/clock_settime.c: Likewise.
12931         * rt/lio_listio.c: Likewise.
12932         * rt/mq_close.c: Likewise.
12933         * rt/mq_getattr.c: Likewise.
12934         * rt/mq_notify.c: Likewise.
12935         * rt/mq_open.c: Likewise.
12936         * rt/mq_receive.c: Likewise.
12937         * rt/mq_send.c: Likewise.
12938         * rt/mq_setattr.c: Likewise.
12939         * rt/mq_timedreceive.c: Likewise.
12940         * rt/mq_timedsend.c: Likewise.
12941         * rt/mq_unlink.c: Likewise.
12942         * rt/shm_open.c: Likewise.
12943         * rt/shm_unlink.c: Likewise.
12944         * rt/timer_create.c: Likewise.
12945         * rt/timer_delete.c: Likewise.
12946         * rt/timer_getoverr.c: Likewise.
12947         * rt/timer_gettime.c: Likewise.
12948         * rt/timer_settime.c: Likewise.
12949         * setjmp/__longjmp.c: Likewise.
12950         * setjmp/setjmp.c: Likewise.
12951         * signal/kill.c: Likewise.
12952         * signal/killpg.c: Likewise.
12953         * signal/raise.c: Likewise.
12954         * signal/sigaction.c: Likewise.
12955         * signal/sigaltstack.c: Likewise.
12956         * signal/sigblock.c: Likewise.
12957         * signal/sigignore.c: Likewise.
12958         * signal/sigintr.c: Likewise.
12959         * signal/signal.c: Likewise.
12960         * signal/sigpause.c: Likewise.
12961         * signal/sigpending.c: Likewise.
12962         * signal/sigqueue.c: Likewise.
12963         * signal/sigreturn.c: Likewise.
12964         * signal/sigset.c: Likewise.
12965         * signal/sigsetmask.c: Likewise.
12966         * signal/sigstack.c: Likewise.
12967         * signal/sigsuspend.c: Likewise.
12968         * signal/sigtimedwait.c: Likewise.
12969         * signal/sigvec.c: Likewise.
12970         * signal/sigwait.c: Likewise.
12971         * signal/sigwaitinfo.c: Likewise.
12972         * signal/sysv_signal.c: Likewise.
12973         * socket/accept.c: Likewise.
12974         * socket/accept4.c: Likewise.
12975         * socket/bind.c: Likewise.
12976         * socket/connect.c: Likewise.
12977         * socket/getpeername.c: Likewise.
12978         * socket/getsockname.c: Likewise.
12979         * socket/getsockopt.c: Likewise.
12980         * socket/isfdtype.c: Likewise.
12981         * socket/listen.c: Likewise.
12982         * socket/recv.c: Likewise.
12983         * socket/recvfrom.c: Likewise.
12984         * socket/recvmsg.c: Likewise.
12985         * socket/send.c: Likewise.
12986         * socket/sendmsg.c: Likewise.
12987         * socket/sendto.c: Likewise.
12988         * socket/setsockopt.c: Likewise.
12989         * socket/shutdown.c: Likewise.
12990         * socket/sockatmark.c: Likewise.
12991         * socket/socket.c: Likewise.
12992         * socket/socketpair.c: Likewise.
12993         * stdio-common/ctermid.c: Likewise.
12994         * stdio-common/cuserid.c: Likewise.
12995         * stdio-common/remove.c: Likewise.
12996         * stdio-common/rename.c: Likewise.
12997         * stdio-common/renameat.c: Likewise.
12998         * stdio-common/tempname.c: Likewise.
12999         * stdlib/getcontext.c: Likewise.
13000         * stdlib/makecontext.c: Likewise.
13001         * stdlib/setcontext.c: Likewise.
13002         * stdlib/swapcontext.c: Likewise.
13003         * stdlib/system.c: Likewise.
13004         * streams/fattach.c: Likewise.
13005         * streams/fdetach.c: Likewise.
13006         * streams/getmsg.c: Likewise.
13007         * streams/getpmsg.c: Likewise.
13008         * streams/putmsg.c: Likewise.
13009         * streams/putpmsg.c: Likewise.
13010         * sysdeps/unix/bsd/getpt.c: Likewise.
13011         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
13012         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
13013         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
13014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13015         Likewise.
13016         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
13017         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13018         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
13019         * sysvipc/msgctl.c: Likewise.
13020         * sysvipc/msgget.c: Likewise.
13021         * sysvipc/msgrcv.c: Likewise.
13022         * sysvipc/msgsnd.c: Likewise.
13023         * sysvipc/semctl.c: Likewise.
13024         * sysvipc/semget.c: Likewise.
13025         * sysvipc/semop.c: Likewise.
13026         * sysvipc/semtimedop.c: Likewise.
13027         * sysvipc/shmat.c: Likewise.
13028         * sysvipc/shmctl.c: Likewise.
13029         * sysvipc/shmdt.c: Likewise.
13030         * sysvipc/shmget.c: Likewise.
13031         * termios/tcdrain.c: Likewise.
13032         * termios/tcflow.c: Likewise.
13033         * termios/tcflush.c: Likewise.
13034         * termios/tcgetattr.c: Likewise.
13035         * termios/tcgetpgrp.c: Likewise.
13036         * termios/tcsendbrk.c: Likewise.
13037         * termios/tcsetattr.c: Likewise.
13038         * termios/tcsetpgrp.c: Likewise.
13039         * time/adjtime.c: Likewise.
13040         * time/clock.c: Likewise.
13041         * time/getitimer.c: Likewise.
13042         * time/gettimeofday.c: Likewise.
13043         * time/setitimer.c: Likewise.
13044         * time/settimeofday.c: Likewise.
13045         * time/stime.c: Likewise.
13046         * time/time.c: Likewise.
13047
13048 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
13049
13050         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
13051         /usr/old/bin.
13052
13053         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
13054         instead of spaces.
13055         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
13056
13057 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
13058
13059         [BZ #14796]
13060         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
13061         FE_TONEAREST before applying Dekker multiplication and Knuth
13062         addition.  Clear inexact exceptions and check for exact zero
13063         results afterwards.
13064         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13065         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
13066         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13067         * math/libm-test.inc (fma_test): Add more tests.
13068         (fma_test_towardzero): Likewise.
13069         (fma_test_downward): Likewise.
13070         (fma_test_upward): Likewise.
13071         * sysdeps/generic/math_private.h (default_libc_fesetround): New
13072         function.
13073         (libc_fesetround): New macro.
13074         (libc_fesetroundf): Likewise.
13075         (libc_fesetroundl): Likewise.
13076         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
13077         function.
13078         (libc_fesetround_387): Likewise.
13079         (libc_fesetroundf): New macro.
13080         (libc_fesetround): Likewise.
13081         (libc_fesetroundl): Likewise.
13082         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
13083         function.
13084         (libc_fesetroundf): New macro.
13085         (libc_fesetround): Likewise.
13086         (libc_fesetroundl): Likewise.
13087         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
13088         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
13089         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
13090         libm_hidden_ver.
13091         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
13092         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
13093         libm_hidden_def.
13094         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
13095         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
13096         libm_hidden_ver.
13097         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
13098         libm_hidden_def.
13099
13100         [BZ #3439]
13101         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
13102         integer constant usable in #if and use that to give value to enum
13103         constant.
13104         (FE_DIVBYZERO): Likewise.
13105         (FE_UNDERFLOW): Likewise.
13106         (FE_OVERFLOW): Likewise.
13107         (FE_INVALID): Likewise.
13108         (FE_INVALID_SNAN): Likewise.
13109         (FE_INVALID_ISI): Likewise.
13110         (FE_INVALID_IDI): Likewise.
13111         (FE_INVALID_ZDZ): Likewise.
13112         (FE_INVALID_IMZ): Likewise.
13113         (FE_INVALID_COMPARE): Likewise.
13114         (FE_INVALID_SOFTWARE): Likewise.
13115         (FE_INVALID_SQRT): Likewise.
13116         (FE_INVALID_INTEGER_CONVERSION): Likewise.
13117         (FE_TONEAREST): Likewise.
13118         (FE_TOWARDZERO): Likewise.
13119         (FE_UPWARD): Likewise.
13120         (FE_DOWNWARD): Likewise.
13121         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
13122         (FE_DIVBYZERO): Likewise.
13123         (FE_OVERFLOW): Likewise.
13124         (FE_UNDERFLOW): Likewise.
13125         (FE_INEXACT): Likewise.
13126         (FE_TONEAREST): Likewise.
13127         (FE_DOWNWARD): Likewise.
13128         (FE_UPWARD): Likewise.
13129         (FE_TOWARDZERO): Likewise.
13130         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
13131         (FE_UNDERFLOW): Likewise.
13132         (FE_OVERFLOW): Likewise.
13133         (FE_DIVBYZERO): Likewise.
13134         (FE_INVALID): Likewise.
13135         (FE_TONEAREST): Likewise.
13136         (FE_TOWARDZERO): Likewise.
13137         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
13138         (FE_OVERFLOW): Likewise.
13139         (FE_UNDERFLOW): Likewise.
13140         (FE_DIVBYZERO): Likewise.
13141         (FE_INEXACT): Likewise.
13142         (FE_TONEAREST): Likewise.
13143         (FE_TOWARDZERO): Likewise.
13144         (FE_UPWARD): Likewise.
13145         (FE_DOWNWARD): Likewise.
13146         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
13147         (FE_DIVBYZERO): Likewise.
13148         (FE_OVERFLOW): Likewise.
13149         (FE_UNDERFLOW): Likewise.
13150         (FE_INEXACT): Likewise.
13151         (FE_TONEAREST): Likewise.
13152         (FE_DOWNWARD): Likewise.
13153         (FE_UPWARD): Likewise.
13154         (FE_TOWARDZERO): Likewise.
13155
13156 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
13157
13158         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
13159
13160 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
13161
13162         * scripts/cross-test-ssh.sh (command): Use newlines to separate
13163         commands.  Quote $PWD.
13164         (blacklist_exports): Don't use remove_newlines.  Replace "declare
13165         -x" by "export".
13166         (remove_newlines): Remove.
13167
13168 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
13169
13170         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
13171         * stdlib/stdlib.h (atof): Moved to ...
13172         * include/bits/stdlib-float.h: Here.  New file.
13173         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
13174         * stdlib/bits/stdlib-float.h: New file.
13175         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
13176         -mno-sse -mno-mmx.
13177         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
13178         <xmmintrin.h>.
13179
13180 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13181
13182         * conform/conformtest.pl (@headers): Add fenv.h.
13183         * conform/data/fenv.h-data: New file.
13184         * include/fenv.h [_ISOMAC]: Disable all contents of file except
13185         include of <math/fenv.h>.
13186
13187         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
13188         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
13189         && !UNIX98].  Enables tests for XOPEN2K8.
13190         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
13191         POSIX2008]: Likewise.
13192
13193         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
13194         (struct rusage): Do not expect type or its members.
13195
13196         [BZ #3439]
13197         * math/math.h (FP_NAN): Define macro to integer constant usable in
13198         #if and use that to give value to enum constant.
13199         (FP_INFINITE): Likewise.
13200         (FP_ZERO): Likewise.
13201         (FP_SUBNORMAL): Likewise.
13202         (FP_NORMAL): Likewise.
13203
13204 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
13205
13206         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
13207         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
13208         arguments.
13209
13210 2012-11-02  Roland McGrath  <roland@hack.frob.com>
13211
13212         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
13213         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
13214         autoconf-time if not.
13215         * configure.in: Remove AC_PREREQ.
13216
13217 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13218
13219         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
13220         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
13221         of the internal implementation.
13222
13223 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13224
13225         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
13226         except include of <misc/sys/syslog.h>.
13227
13228 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13229
13230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
13231         function returns with a NULL context exit with zero.
13232
13233 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13234
13235         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
13236
13237 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
13238
13239         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
13240         (run_program_cmd): This.
13241         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
13242         (tst_langinfo): New variable.  Use it.
13243
13244 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
13245
13246         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
13247         floating point opcodes.
13248
13249 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13250
13251         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
13252         variable.
13253
13254         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
13255
13256         * sysdeps/mach/hurd/powerpc: Remove directory.
13257         * sysdeps/mach/powerpc: Likewise.
13258
13259 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13260
13261         * scripts/check-local-headers.sh: Ignore c++ headers.
13262
13263 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13264
13265         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
13266         __libc_cleanup_region_start argument.
13267
13268 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
13269
13270         [BZ #14784]
13271         [BZ #14785]
13272         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
13273         x * y using scaling, not as x * y + z.
13274         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13275         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13276         * math/libm-test.inc (fma_test): Add more tests.
13277         (fma_test_towardzero): Likewise.
13278         (fma_test_downward): Likewise.
13279         (fma_test_upward): Likewise.
13280
13281 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13282
13283         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
13284
13285 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13286
13287         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
13288         New variable.
13289
13290 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
13291
13292         * rt/tst-shm.c (worker): Correct checking for mmap failure.
13293
13294 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13295
13296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13297         Fix sort order.
13298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13299         Likewise.
13300
13301 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13302
13303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13304         Fix the order of the list for glibc 2.17.
13305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13306         Likewise.
13307
13308 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13309
13310         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13311
13312 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13313
13314         [BZ #14610]
13315         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
13316         for low part of x being zero before using __atanl (y).
13317         * math/libm-test.inc (atan2_test): Add another test.
13318
13319         * manual/install.texi (Configuring and compiling): Document
13320         general use of test-wrapper and test-wrapper-env.
13321         * INSTALL: Regenerated.
13322
13323         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
13324         (__fma): Do not extract and scale down low bits on after-rounding
13325         systems when result rounded to normal precision would have normal
13326         exponent.
13327         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
13328         (__fmal): Do not extract and scale down low bits on after-rounding
13329         systems when result rounded to normal precision would have normal
13330         exponent.
13331         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
13332         (__fmal): Do not extract and scale down low bits on after-rounding
13333         systems when result rounded to normal precision would have normal
13334         exponent.
13335         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
13336         macro.
13337         (fma_test): Add more tests.
13338         (fma_test_towardzero): Likewise.
13339         (fma_test_downward): Likewise.
13340         (fma_test_upward): Likewise.
13341
13342 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
13343
13344         * sysdeps/i386/tininess.h: Renamed to ...
13345         * sysdeps/x86/tininess.h: This.
13346         * sysdeps/x86_64/tininess.h: Removed.
13347
13348 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13349
13350         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
13351         input.  Use $(build-program-cmd).
13352         ($(objpfx)tst-array1-static.out): Likewise.
13353         ($(objpfx)tst-array2.out): Likewise.
13354         ($(objpfx)tst-array3.out): Likewise.
13355         ($(objpfx)tst-array4.out): Likewise.
13356         ($(objpfx)tst-array5.out): Likewise.
13357         ($(objpfx)tst-array5-static.out): Likewise.
13358
13359 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
13360
13361         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
13362         if defined.
13363
13364         * nss/nsswitch.h (nss_interface_function): Provide new
13365         macro for use with NSS functions.
13366         * grp/initgroups.c: Use new macro.
13367         * nss/getXXbyYY.c: Likewise.
13368         * nss/getXXbyYY_r.c: Likewise.
13369         * nss/getXXent.c: Likewise.
13370         * nss/getXXent_r.c: Likewise.
13371         * sysdeps/posix/getaddrinfo.c: Likewise.
13372
13373 2012-10-30  Andreas Jaeger  <aj@suse.de>
13374
13375         * po/ru.po: Update Russion translation from translation project.
13376
13377 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13378
13379         [BZ #14152]
13380         [BZ #14783]
13381         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
13382         result and shift together with sticky bit instead of replicating
13383         round-to-nearest rounding.
13384         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13385         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13386         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
13387         missing underflow exceptions.
13388         (fma_test_towardzero): Add more tests.
13389         (fma_test_downward): Likewise.
13390         (fma_test_upward): Likewise.
13391
13392         [BZ #14047]
13393         * sysdeps/generic/tininess.h: New file.
13394         * sysdeps/i386/tininess.h: Likewise.
13395         * sysdeps/sh/tininess.h: Likewise.
13396         * sysdeps/x86_64/tininess.h: Likewise.
13397         * stdlib/tst-strtod-underflow.c: Likewise.
13398         * stdlib/tst-tininess.c: Likewise.
13399         * stdlib/strtod_l.c: Include <tininess.h>.
13400         (round_and_return): Do not set errno for exact underflow cases.
13401         Force an underflow exception when setting errno for underflow.
13402         Determine underflow based on rounding to normal precision if
13403         TININESS_AFTER_ROUNDING.
13404         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
13405         ERANGE for exact underflow cases.
13406         * stdlib/Makefile (tests): Add tst-tininess and
13407         tst-strtod-underflow.
13408         ($(objpfx)tst-tininess): Use $(link-libm).
13409         ($(objpfx)tst-strtod-underflow): Likewise.
13410
13411 2012-10-30  Andreas Jaeger  <aj@suse.de>
13412
13413         [BZ#14767]
13414         * elf/Makefile (tests): Remove conditional for have-initfini-array
13415         since this is now always required and the variable does not exist
13416         anymore.
13417         (tests-static): Likewise.
13418         (modules-names): Likewise.
13419
13420         * po/eo.po: Add Esperanto translation from translation project.
13421
13422         * elf/tst-array1.c (fini_array): Make writeable so that it can be
13423         merged with constructor/destructor.
13424         (init_array): Likewise.
13425         * elf/tst-array2dep.c (fini_array): Likewise.
13426         (init_array): Likewise.
13427
13428 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
13429
13430         * manual/message.texi: Delete @cartouche tags.
13431
13432 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
13433
13434         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
13435         EOPNOTSUPP.
13436         * sysdeps/mach/hurd/fsync.c: Likewise.
13437
13438         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
13439         [_POSIX_REALTIME_SIGNALS]: Change condition to
13440         [_POSIX_REALTIME_SIGNALS > 0].
13441
13442 2012-10-27  Andreas Jaeger  <aj@suse.de>
13443
13444         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
13445         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
13446         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
13447         [__WORDSIZE != 64]: Likewise.
13448
13449 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
13450
13451         *  iconvdata/tst-table.sh: Remove ${SHELL}.
13452         *  iconvdata/tst-tables.sh: Likewise.
13453
13454 2012-10-25  David S. Miller  <davem@davemloft.net>
13455
13456         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13457         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
13458         of strtoull.
13459
13460         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
13461         ifunc-impl-list.c
13462         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13463         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
13464         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
13465         file.
13466
13467 2012-10-25  Roland McGrath  <roland@hack.frob.com>
13468
13469         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13470         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
13471         __getdirentries.
13472
13473 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13474             Jim Blandy  <jimb@codesourcery.com>
13475
13476         * scripts/cross-test-ssh.sh: New file.
13477         * manual/install.texi (Configuring and compiling): Document use of
13478         cross-test-ssh.sh.
13479         * INSTALL: Regenerated.
13480
13481 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
13482
13483         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
13484         EOPNOTSUPP.
13485
13486 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13487
13488         * Makeconfig (run-program-prefix): Fix comment.
13489
13490 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13491             Jim Blandy  <jimb@codesourcery.com>
13492
13493         * Makeconfig (test-wrapper): New variable,
13494         (test-wrapper-env): Likewise.
13495         [$(cross-compiling) = yes && $(test-wrapper) != ""]
13496         (run-built-tests): Define to yes.
13497         (run-program-prefix): Use $(test-wrapper).
13498         (built-program-cmd): Likewise.
13499         * Rules (make-test-out): Use $(test-wrapper-env) and
13500         $(host-built-program-cmd).
13501         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
13502         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
13503         tst-pathopt.sh.
13504         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
13505         $(test-wrapper-env) to tst-rtld-load-self.sh.
13506         ($(objpfx)order2.out): Use $(test-wrapper).
13507         ($(objpfx)tst-initorder.out): Likewise.
13508         ($(objpfx)tst-initorder2.out): Likewise.
13509         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
13510         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
13511         (test_wrapper_env): New variable.  Use it to run ld.so.
13512         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
13513         Use it to run ld.so.
13514         (test_wrapper_env): Likewise.
13515         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
13516         $(test-wrapper) to run-iconv-test.sh.
13517         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
13518         (ICONV): Use $test_wrapper.
13519         * posix/Makefile ($(objpfx)globtest.out): Pass
13520         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
13521         globtest.sh, not $(run-program-prefix).
13522         * posix/globtest.sh (run_via_rtld_prefix): New variable.
13523         (test_wrapper): Likewise.
13524         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
13525         set together with run_via_rtld_prefix.
13526         (run_program_prefix): Define in terms of test_wrapper and
13527         run_via_rtld_prefix.
13528
13529 2012-10-24  Roland McGrath  <roland@hack.frob.com>
13530
13531         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
13532         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
13533         Targets removed.
13534
13535         [BZ #14743]
13536         * include/time.h: Remove librt_hidden_proto (clock_gettime).
13537         Declare __clock_getres, __clock_gettime, __clock_settime,
13538         __clock_nanosleep, and __clock_getcpuclockid.
13539         * rt/clock_gettime.c: Define __clock_gettime as an alias.
13540         Remove librt_hidden_def (clock_gettime).
13541         * sysdeps/unix/clock_gettime.c: Likewise.
13542         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
13543         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
13544         * rt/clock_getres.c: Define __clock_getres as an alias.
13545         * sysdeps/posix/clock_getres.c: Likewise.
13546         * rt/clock_settime.c: Define __clock_settime as an alias.
13547         * sysdeps/unix/clock_settime.c: Likewise.
13548         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
13549         * sysdeps/unix/clock_nanosleep.c: Likewise.
13550         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
13551         * rt/clock-compat.c: New file.
13552         * rt/Makefile (librt-routines): Add clock-compat and move
13553         $(clock-routines) to ...
13554         (routines): ... here, new variable.
13555         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
13556         Don't add get_clockfreq here.
13557         * rt/Versions (libc: GLIBC_2.17): New version set.
13558         Add clock_* symbols here.
13559         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
13560         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
13561         (GLIBC_2.17): Add clock_* symbols.
13562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
13563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
13564         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13566         Likewise.
13567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13568         Likewise.
13569         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13570         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
13571         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
13572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
13573         * NEWS: Mention the move.
13574
13575         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
13576         Use __open, __read, __close rather than their public counterparts.
13577         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13578         (__get_clockfreq_via_cpuinfo): Likewise.
13579         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
13580         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
13581
13582         * config.h.in (HAVE_IFUNC): New #undef.
13583         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
13584         was successful.
13585         * configure: Regenerated.
13586
13587 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13588
13589         * configure.in: Move READELF check to start of file.
13590         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
13591         libc_cv_asm_gnu_indirect_function in the process.
13592         * configure: Regenerated.
13593
13594 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13595
13596         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
13597         send the output to /dev/null.
13598         (libc_cv_cc_with_libunwind): Likewise.
13599         (libc_cv_as_noexecstack): Likewise.
13600         * configure: Regenerate.
13601
13602 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13603
13604         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
13605
13606         * posix/globtest.sh (TMPDIR): Do not set.
13607         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
13608         (testout): Likewise.
13609
13610 2012-10-24  Andreas Jaeger  <aj@suse.de>
13611
13612         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
13613         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
13614         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
13615         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
13616         posix_fadvise64, posix_fallocate64.
13617
13618         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
13619         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
13620         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
13621         Likewise.
13622         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
13623         Likewise.
13624         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
13625
13626         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
13627         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
13628         <bits/fcntl-linux.h>.
13629         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
13630
13631         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
13632         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
13633         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
13634         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
13635         [__WORDSIZE != 64]: Likewise.
13636
13637 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
13638
13639         * Makeconfig (run-built-tests): New variable.
13640         * Rules [$(cross-compiling) = yes]: Change condition to
13641         [$(run-built-tests) = no].
13642         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
13643         to [$(run-built-tests) = yes].
13644         * elf/Makefile [$(cross-compiling) = no]: Likewise
13645         * grp/Makefile [$(cross-compiling) = no]: Likewise.
13646         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
13647         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
13648         * intl/Makefile [$(cross-compiling) = no]: Likewise.
13649         * io/Makefile [$(cross-compiling) = no]: Likewise.
13650         * libio/Makefile [$(cross-compiling) = no]: Likewise.
13651         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
13652         * misc/Makefile [$(cross-compiling) = no]: Likewise.
13653         * posix/Makefile [$(cross-compiling) = no]: Likewise.
13654         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
13655         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
13656         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
13657         * string/Makefile [$(cross-compiling) = no]: Likewise.
13658
13659         * posix/Makefile ($(objpfx)globtest.out): Pass
13660         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
13661         $(rtld-installed-name).
13662         * posix/globtest.sh (elf_objpfx): Remove variable.
13663         (rtld_installed_name): Likewise.
13664         (library_path): Likewise.
13665         (run_program_prefix): New variable.  Use for running globtest
13666         binary.
13667
13668 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
13669             Joseph Myers  <joseph@codesourcery.com>
13670
13671         * Makeconfig (host-built-program-cmd): New variable.
13672         * elf/Makefile (tst-stackguard1-ARGS): Use
13673         $(host-built-program-cmd).
13674         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
13675         (tst-spawn-ARGS): Likewise.
13676         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
13677
13678 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
13679             Jim Blandy  <jimb@codesourcery.com>
13680
13681         * Makeconfig (run-via-rtld-prefix): New variable.
13682         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
13683         (built-program-cmd): Likewise.
13684
13685 2012-10-22  Andreas Jaeger  <aj@suse.de>
13686
13687         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
13688         __O_RSYNC if it exists, otherwise to O_SYNC.
13689
13690 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
13691             Joseph Myers  <joseph@codesourcery.com>
13692
13693         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
13694         /dev/null.
13695         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
13696         from /dev/null
13697         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
13698         /dev/null.
13699
13700 2012-10-22  Andreas Jaeger  <aj@suse.de>
13701
13702         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
13703         Define always.
13704         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
13705
13706         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13707         bits/fcntl-linux.h.
13708
13709         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
13710         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
13711
13712         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
13713         to __O_LARGEFILE.
13714         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
13715         to __O_LARGEFILE.
13716
13717 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
13718             Joseph Myers  <joseph@codesourcery.com>
13719
13720         * config.make.in (NM): New variable.
13721
13722 2012-10-21  Andreas Jaeger  <aj@suse.de>
13723
13724         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
13725         definitions and declarations that are provided by
13726         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
13727
13728 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13729
13730         [BZ #14683]
13731         * elf/Makefile (tests-static): Add tst-leaks1-static.
13732         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
13733         ($(objpfx)tst-leaks1-static): New rule.
13734         ($(objpfx)tst-leaks1-static-mem): Likewise.
13735         (tst-leaks1-static-ENV): New macro.
13736         * elf/dl-open.c (dl_open_worker): Check the main application
13737         only if SHARED is defined.
13738         * elf/tst-leaks1-static.c: New file.
13739
13740 2012-10-20  Andreas Jaeger  <aj@suse.de>
13741
13742         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
13743         generic values for Linux.
13744         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
13745         and declarations that are provided by <bits/fcntl-linux.h> and
13746         include <bits/fcntl-linux.h>.
13747         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13748         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13749
13750 2012-10-20  Roland McGrath  <roland@hack.frob.com>
13751
13752         * io/fcntl.h: Move include of <bits/types.h> to the top and
13753         include it unconditionally.
13754
13755 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13756
13757         * wcsmbs/Makefile (tests-ifunc): New variable.
13758         (tests): Add $(tests-ifunc).
13759         * wcsmbs/test-wcschr-ifunc.c: New file.
13760         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
13761         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
13762         * wcsmbs/test-wcslen-ifunc.c: Likewise.
13763         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
13764         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
13765
13766         * string/Makefile (tests-ifunc): New variable.
13767         (tests): Add $(tests-ifunc).
13768         * string/test-memccpy.c (TEST_NAME): New macro.
13769         * string/test-memchr.c (TEST_NAME): Likewise.
13770         * string/test-memcmp.c (TEST_NAME): Likewise.
13771         * string/test-memcpy.c (TEST_NAME): Likewise.
13772         * string/test-memmem.c (TEST_NAME): Likewise.
13773         * string/test-memmove.c (TEST_NAME): Likewise.
13774         * string/test-memset.c (TEST_NAME): Likewise.
13775         * string/test-rawmemchr.c (TEST_NAME): Likewise.
13776         * string/test-stpcpy.c (TEST_NAME): Likewise.
13777         * string/test-stpncpy.c (TEST_NAME): Likewise.
13778         * string/test-strcasecmp.c (TEST_NAME): Likewise.
13779         * string/test-strcasestr.c (TEST_NAME): Likewise.
13780         * string/test-strcat.c (TEST_NAME): Likewise.
13781         * string/test-strchr.c (TEST_NAME): Likewise.
13782         * string/test-strcmp.c(TEST_NAME): Likewise.
13783         * string/test-strcpy.c (TEST_NAME): Likewise.
13784         * string/test-strcspn.c (TEST_NAME): Likewise.
13785         * string/test-strlen.c (TEST_NAME): Likewise.
13786         * string/test-strncasecmp.c (TEST_NAME): Likewise.
13787         * string/test-strncmp.c (TEST_NAME): Likewise.
13788         * string/test-strncpy.c (TEST_NAME): Likewise.
13789         * string/test-strnlen.c (TEST_NAME): Likewise.
13790         * string/test-strpbrk.c (TEST_NAME): Likewise.
13791         * string/test-strrchr.c (TEST_NAME): Likewise.
13792         * string/test-strspn.c (TEST_NAME): Likewise.
13793         * string/test-strstr.c (TEST_NAME): Likewise.
13794         * string/test-bcopy-ifunc.c: New file.
13795         * string/test-bzero-ifunc.c: Likewise.
13796         * string/test-memccpy-ifunc.c: Likewise.
13797         * string/test-memchr-ifunc.c: Likewise.
13798         * string/test-memcmp-ifunc.c: Likewise.
13799         * string/test-memcpy-ifunc.c: Likewise.
13800         * string/test-memmem-ifunc.c: Likewise.
13801         * string/test-memmove-ifunc.c: Likewise.
13802         * string/test-mempcpy-ifunc.c: Likewise.
13803         * string/test-memset-ifunc.c: Likewise.
13804         * string/test-rawmemchr-ifunc.c: Likewise.
13805         * string/test-stpcpy-ifunc.c: Likewise.
13806         * string/test-stpncpy-ifunc.c: Likewise.
13807         * string/test-strcasecmp-ifunc.c: Likewise.
13808         * string/test-strcasestr-ifunc.c: Likewise.
13809         * string/test-strcat-ifunc.c: Likewise.
13810         * string/test-strchr-ifunc.c: Likewise.
13811         * string/test-strchrnul-ifunc.c: Likewise.
13812         * string/test-strcmp-ifunc.c: Likewise.
13813         * string/test-strcpy-ifunc.c: Likewise.
13814         * string/test-strcspn-ifunc.c: Likewise.
13815         * string/test-strlen-ifunc.c: Likewise.
13816         * string/test-strncasecmp-ifunc.c: Likewise.
13817         * string/test-strncat-ifunc.c: Likewise.
13818         * string/test-strncmp-ifunc.c: Likewise.
13819         * string/test-strncpy-ifunc.c: Likewise.
13820         * string/test-strnlen-ifunc.c: Likewise.
13821         * string/test-strpbrk-ifunc.c: Likewise.
13822         * string/test-strrchr-ifunc.c: Likewise.
13823         * string/test-strspn-ifunc.c: Likewise.
13824         * string/test-strstr-ifunc.c: Likewise.
13825
13826         * debug/Makefile (tests-ifunc): New variable.
13827         (tests): Add $(tests-ifunc).
13828         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
13829         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
13830         * debug/test-stpcpy_chk-ifunc.c: New file.
13831         * debug/test-strcpy_chk-ifunc.c: Likewise.
13832
13833 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13834
13835         [BZ #13601]
13836         * elf/dl-load.c (open_verify): Retry read if the entire ELF
13837         header is not read in.
13838
13839 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
13840
13841         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
13842         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
13843         directly.  Pass built executable to script as
13844         $(built-program-cmd).
13845         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
13846         $testprogram without using LD_LIBRARY_PATH and $ldso.
13847
13848         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
13849         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
13850         $(rtld-installed-name).
13851         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
13852         (rtld_installed_name): Likewise.
13853         (library_path): Likewise.
13854         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
13855         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
13856         $(run-program-prefix) to tst-tables.sh.
13857         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
13858         it to run tst-table-from and tst-table-to.
13859         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
13860         Pass it to tst-table.sh.
13861         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
13862         $(run-program-prefix) to tst-gettext.sh.
13863         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
13864         tst-translit.sh.
13865         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
13866         tst-gettext2.sh.
13867         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
13868         to run tst-gettext.
13869         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
13870         to run tst-gettext2.
13871         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
13872         to run tst-translit.
13873         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
13874         $(run-program-prefix) to tst-mtrace.sh.
13875         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
13876         to run tst-mtrace.
13877         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
13878         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
13879         $(rtld-installed-name).
13880         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
13881         (rtld_installed_name): Likewise.
13882         (run_program_prefix): New variable.  Use it to run wordexp-test.
13883
13884         * Makeconfig (ARCH): Remove all definitions.
13885         (machine): Likewise.
13886         [ARCH]: Remove conditional code.
13887         [!objdir]: Give error.
13888         [!objdir] (objpfx): Remove.
13889         [!objdir] (common-objpfx): Likewise.
13890         [!objdir] (common-objdir): Likewise.
13891         * configure.in (config_makefile): Remove.  Hardcode Makefile in
13892         AC_CONFIG_FILES call.
13893         * configure: Regenerated.
13894
13895         [BZ #13888]
13896         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
13897         or TMPDIR.
13898         (testout): Likewise.
13899
13900         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
13901         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
13902         $(rtld-installed-name).
13903         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
13904         (rtld_installed_name): Likwise.
13905         (runit): Remove function.
13906         (run_getconf): New variable,  Use it for running getconf binary.
13907
13908 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
13909
13910         [BZ #14716]
13911         * string/test-memmem.c (check_result): New function.
13912         (do_one_test): Use it.
13913         (check1): New function.
13914         (test_main): Use it.
13915
13916 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13917
13918         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
13919
13920 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
13921
13922         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
13923         (_G_LSEEK64): Likewise.
13924         (_G_MMAP64): Likewise.
13925         (_G_FSTAT64): Likewise.
13926         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
13927         (_G_LSEEK64): Likewise.
13928         (_G_MMAP64): Likewise.
13929         (_G_FSTAT64): Likewise.
13930         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
13931         unconditional.  Call __mmap64 directly.
13932         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
13933         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
13934         __lseek64 directly.
13935         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
13936         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
13937         __mmap64 directly.
13938         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
13939         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
13940         __lseek64 directly.
13941         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
13942         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
13943         __lseek64 directly.
13944         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
13945         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
13946         __lseek64 directly.
13947         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
13948         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
13949         __fxstat64 directly.
13950         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
13951         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
13952         unconditional.
13953         (freopen64) [!_G_OPEN64]: Remove conditional code.
13954         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
13955         unconditional.
13956         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
13957         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
13958         unconditional.
13959         (ftello64) [!_G_LSEEK64]: Remove conditional code.
13960         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
13961         unconditional.
13962         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
13963         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
13964         unconditional.
13965         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
13966         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
13967         unconditional.
13968         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
13969         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
13970         unconditional.
13971         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
13972         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
13973         unconditional.
13974         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
13975
13976 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13977
13978         [BZ #12140]
13979         * manual/memory.texi (Malloc Tunable Parameters): Add note
13980         about free list pointers overwriting some perturb bytes.
13981         Wording suggested by Roland McGrath.
13982
13983 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
13984
13985         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
13986         (lgamma_test): Likewise.
13987         (tgamma_test): Likewise.
13988
13989 2012-10-16  Florian Weimer  <fweimer@redhat.com>
13990
13991         [BZ #14700]
13992         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
13993         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
13994
13995 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
13996
13997         * NEWS: Mention BZ #14716.
13998         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
13999         when removing AVAILABLE1_USES_J macro.
14000
14001 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
14002
14003         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
14004         (__bswap_64): __uint64_t for unsigned 64-bit int.
14005
14006 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
14007
14008         * include/string.h (memmem): Declare libc hidden alias.
14009         * string/memmem.c (memmem): Define libc hidden alias.
14010         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
14011         __read, __close instead of open, read, close.
14012
14013 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
14014
14015         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
14016         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
14017         global and hidden.
14018         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
14019         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
14020         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
14021         Likewise.
14022         (__rawmemchr_sse2): Likewise.
14023         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
14024         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
14025         (__strchr_sse2): Likewise.
14026         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
14027         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
14028         (__strcasecmp_sse2): Likewise.
14029         (__strncasecmp_sse2): Likewise.
14030         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
14031         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
14032         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
14033         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
14034         (__strrchr_sse2): Likewise.
14035         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
14036         ifunc-impl-list.c.
14037         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14038         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14039         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14040         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14041         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14042         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14043         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14044         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14045         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
14046         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
14047         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
14048         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
14049         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
14050         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14051         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14052         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14053         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14054         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14055         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
14056         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
14057         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
14058         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
14059         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
14060         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
14061         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
14062         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14063         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14064         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
14065         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14066         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14067
14068         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
14069         global and hidden.
14070         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
14071         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
14072         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
14073         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
14074         Likewise.
14075         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
14076         Likewise.
14077         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
14078         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
14079         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
14080         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
14081         ifunc-impl-list.c.
14082         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14083         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14084         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14085         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14086         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14087         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14088         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14089         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14090         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14091         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14092         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14093         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14094         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14095         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
14096         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
14097         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14098         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
14099         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
14100         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14101         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14102         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14103         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14104         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14105         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14106         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14107         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
14108         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
14109         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
14110         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
14111         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14112         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
14113         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14114         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14115         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
14116         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14117         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14118         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14119         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14120         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14121         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14122         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
14123
14124         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
14125         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
14126         * include/ifunc-impl-list.h: New file.
14127         * misc/ifunc-impl-list.c: Likewise.
14128         * misc/Makefile (routines): Add ifunc-impl-list.
14129         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
14130         * string/test-string.h: Include <ifunc-impl-list.h>.
14131         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
14132         impl_array): New variables.
14133         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
14134         are defined.
14135         (test_init): Call __libc_ifunc_impl_list to initialize
14136         func_list if TEST_IFUNC and TEST_NAME are defined.
14137
14138         * string/Makefile (strop-tests): Add bcopy and bzero.
14139         * string/test-bcopy.c: New file.
14140         * string/test-bzero.c: Likewise.
14141         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
14142         defined.
14143         * string/test-memset.c: Support bzero test if TEST_BZERO is
14144         defined.
14145         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
14146         __libc_memmove.
14147         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
14148         __libc_memset.
14149         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
14150         of memset.
14151
14152 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
14153
14154         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
14155         * configure: Regenerated.
14156
14157         * Makeconfig (+link-static-before-libc): Don't include
14158         $(link-static-libc).
14159
14160         * libio/libio.h (_IO_pos_t): Remove.
14161
14162 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14163
14164         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
14165         McGrath.
14166
14167 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14168
14169         * crypt/crypt-entry.c: Include fips-private.h.
14170         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
14171         * crypt/md5c-test.c (main): Tolerate disabled MD5.
14172         * sysdeps/unix/sysv/linux/fips-private.h: New file.
14173         * sysdeps/generic/fips-private.h: New file, dummy fallback.
14174
14175 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14176
14177         * crypt/crypt-private.h: Include stdbool.h.
14178         (_ufc_setup_salt_r): Return bool.
14179         * crypt/crypt-entry.c: Include errno.h.
14180         (__crypt_r): Return NULL with EINVAL for bad salt.
14181         * crypt/crypt_util.c (bad_for_salt): New.
14182         (_ufc_setup_salt_r): Check that salt is long enough and within
14183         the specified alphabet.
14184         * crypt/badsalttest.c: New file.
14185         * crypt/Makefile (tests): Add it.
14186         ($(objpfx)badsalttest): New.
14187
14188 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
14189
14190         * NEWS: Add entry for BZ #14602.
14191
14192 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14193
14194         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
14195         type-generic.
14196         * math/libm-test.inc: Update comment listing what functions and
14197         macros are tested.
14198         (isgreater_test): New function.
14199         (isgreaterequal_test): Likewise.
14200         (isless_test): Likewise.
14201         (islessequal_test): Likewise.
14202         (islessgreater_test): Likewise.
14203         (isunordered_test): Likewise.
14204         (main): Call the new functions.
14205
14206 2012-10-09  Roland McGrath  <roland@hack.frob.com>
14207
14208         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
14209         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
14210         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
14211         * sysdeps/i386/configure: Regenerated.
14212         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
14213         * sysdeps/mach/configure: Regenerated.
14214         * sysdeps/mach/hurd/configure: Regenerated.
14215         * sysdeps/powerpc/configure: Regenerated.
14216         * sysdeps/powerpc/powerpc32/configure: Regenerated.
14217         * sysdeps/powerpc/powerpc64/configure: Regenerated.
14218         * sysdeps/s390/s390-32/configure: Regenerated.
14219         * sysdeps/s390/s390-64/configure: Regenerated.
14220         * sysdeps/sh/configure: Regenerated.
14221         * sysdeps/sparc/configure: Regenerated.
14222         * sysdeps/unix/sysv/linux/configure: Regenerated.
14223         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
14224         * sysdeps/x86_64/configure: Regenerated.
14225
14226         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
14227         defined.  Don't check if MAP is NULL.
14228
14229 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14230
14231         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
14232         (_G_stat64): Likewise.
14233         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
14234         (_G_stat64): Likewise.
14235         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
14236         instead of struct _G_stat64.
14237         * libio/fileops.c (mmap_remap_check): Likewise.
14238         (decide_maybe_mmap): Likewise.
14239         (_IO_new_file_seekoff): Likewise.
14240         (_IO_file_stat): Likewise.
14241         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
14242         _G_off64_t.
14243         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
14244         instead of struct _G_stat64.
14245         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14246
14247 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14248
14249         [BZ #14602]
14250         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14251         Replace with ...
14252         (CHECK_EOL): New macro.
14253         (two_way_short_needle): Check beginning of haystack for EOL.  Use
14254         CHECK_EOL.
14255         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14256         Replace with CHECK_EOL.
14257         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14258         Replace with CHECK_EOL.
14259
14260 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
14261
14262         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
14263         type-generic.
14264         * math/libm-test.inc: Update comment listing what functions and
14265         macros are tested.
14266         (finite_test): New function.
14267         (isinf_test): Likewise.
14268         (isnan_test): Likewise.
14269         (fpclassify_test): Test subnormal input.
14270         (isfinite_test): Likewise.
14271         (isnormal_test): Likewise.
14272         (main): Call the new functions.
14273
14274 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
14275
14276         [BZ #14660]
14277         * Makerules (%.dynsym): Force C locale when running
14278         $(OBJDUMP) --dynamic-syms.
14279
14280 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
14281
14282         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
14283         <stdint.h>.
14284
14285 2012-10-06  David S. Miller  <davem@davemloft.net>
14286
14287         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
14288         upper 32-bits of the length value in %o2 since we use branch-on-register
14289         tests which consider the entire 64-bit register.
14290
14291 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
14292
14293         * string/test-strstr.c (check2): Add a test for page boundary.
14294
14295 2012-10-05  David S. Miller  <davem@davemloft.net>
14296
14297         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
14298         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
14299         file.
14300         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14301         sysdep_routines.
14302         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14303         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
14304         and bzero when HWCAP_SPARC_CRYPTO is present.
14305
14306 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
14307
14308         [BZ #14602]
14309         * string/test-strstr.c (check2): New function.
14310         (test_main): Call check2.
14311
14312         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
14313         and bug-strchr1.
14314         * string/bug-strcasestr1.c (do_test): Moved to ...
14315         * string/test-strcasestr.c (check1): Here.  New function.
14316         (do_one_test): Break out result checking code into ...
14317         (check_result): This.  New function.
14318         (do_one_test): Call check_result.
14319         (test_main): Call check1.
14320         * string/bug-strchr1.c (do_test): Moved to ...
14321         * string/test-strchr.c (check1): Here.  New function.
14322         (do_one_test): Break out result checking code into ...
14323         (check_result): This.  New function.
14324         (do_one_test): Call check_result.
14325         (test_main): Call check1.
14326         * string/bug-strstr1.c (main): Moved to ...
14327         * string/test-strstr.c (check1): Here.  New function.
14328         (do_one_test): Break out result checking code into ...
14329         (check_result): This.  New function.
14330         (do_one_test): Call check_result.
14331         (test_main): Call check1.
14332         * string/bug-strcasestr1.c: Removed.
14333         * string/bug-strchr1.c: Likewise.
14334         * string/bug-strstr1.c: Likewise.
14335
14336         * elf/Makefile (dl-routines): Add hwcaps.
14337         * elf/dl-support.c (_dl_important_hwcaps): Removed.
14338         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
14339         (_dl_important_hwcaps): Moved to ...
14340         * elf/dl-hwcaps.c: Here.  New file.
14341         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
14342
14343         [BZ #14557]
14344         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
14345         if IS_IN_rtld isn't defined.
14346
14347         * elf/dl-support.c (_dl_sysinfo_map): New.
14348         Include "get-dynamic-info.h" and "setup-vdso.h".
14349         (_dl_non_dynamic_init): Call setup_vdso.
14350         * elf/dynamic-link.h: Don't include <assert.h>.
14351         (elf_get_dynamic_info): Moved to ...
14352         * elf/get-dynamic-info.h: Here.  New file.
14353         * elf/dynamic-link.h: Include "get-dynamic-info.h".
14354         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
14355         * elf/setup-vdso.h: Here.  New file.
14356         * elf/rtld.c: Include "setup-vdso.h".
14357         (dl_main): Call setup_vdso.
14358
14359 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
14360
14361         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
14362         creal in comment listing functions tested.  List finite, isinf,
14363         isnan, isless, islessequal, isgreater, isgreaterequal,
14364         islessgreater, isunordered, lgamma_r and pow10 as functions and
14365         macros not tested.  Mention which functions not tested are aliases
14366         for other functions.  Fix typo.  Note that signs of NaNs are not
14367         tested.
14368
14369         * scripts/config.guess: Update from config.git.
14370         * scripts/config.sub: Likewise.
14371
14372 2012-10-04  Roland McGrath  <roland@hack.frob.com>
14373
14374         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
14375         * misc/madvise.c (madvise): Renamed to __madvise.
14376         Make madvise a weak alias.
14377         * include/sys/mman.h: Declare __madvise.
14378         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
14379         * sysdeps/unix/syscalls.list
14380         (madvise): Make __madvise the strong name, and madvise a weak alias.
14381         * sysdeps/unix/sysv/linux/syscalls.list
14382         (madvise, mmap): Remove redundant entries.
14383         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
14384         * malloc/malloc.c (mtrim): Likewise.
14385         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
14386
14387 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14388
14389         * sysdeps/mach/hurd/dl-cache.c: File removed.
14390         * config.h.in (USE_LDCONFIG): New #undef.
14391         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
14392         * configure: Regenerated.
14393         * elf/Makefile (dl-routines): Add dl-cache only under
14394         [$(use-ldconfig) = yes].
14395         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
14396         cache on [USE_LDCONFIG].
14397         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
14398         [USE_LDCONFIG].
14399         * elf/rtld.c (dl_main): Likewise.
14400
14401 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
14402
14403         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
14404         _SC_LEVEL4_CACHE_LINESIZE.
14405
14406 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14407
14408         * sysdeps/unix/bsd/confstr.h: File removed.
14409
14410 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
14411
14412         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
14413         sys/sdt-config.h.
14414
14415 2012-10-02  Roland McGrath  <roland@hack.frob.com>
14416
14417         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
14418         Make 'mapoff' field ElfW(Off) rather than off_t.
14419
14420 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
14421
14422         * nscd/Makefile: Remove nscd-cflags and all its users.
14423         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
14424         (CFLAGS-nonlib): Add compiler flags for nscd modules.
14425
14426         [BZ #10631]
14427         * malloc.c (malloc_printerr): Clarify error message.
14428
14429 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
14430
14431         [BZ #14648]
14432         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14433         Set bit_FMA_Usable if FMA is supported.
14434         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
14435         macro.
14436         (bit_FMA4_Usable): Updated.
14437         (index_FMA_Usable): New macro.
14438         (CPUID_FMA): Likewise
14439         (HAS_FMA): Defined with bit_FMA_Usable.
14440
14441 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14442
14443         * bits/types.h (__swblk_t): Type removed.
14444         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
14445         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
14446         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14447         (__SWBLK_T_TYPE): Likewise.
14448         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14449         (__SWBLK_T_TYPE): Likewise.
14450         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14451         (__SWBLK_T_TYPE): Likewise.
14452         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14453         (__SWBLK_T_TYPE): Likewise.
14454
14455 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
14456             Honza Horak <hhorak@redhat.com>
14457
14458         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
14459         (xdr_mapname): Use YPMAXMAP as maxsize.
14460         (xdr_peername): Use YPMAXPEER as maxsize.
14461         (xdr_keydat): Use YPAXRECORD as maxsize.
14462         (xdr_valdat): Use YPMAXRECORD as maxsize.
14463
14464 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14465
14466         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
14467
14468         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
14469         * csu/init-first.c: ... here.
14470         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
14471         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
14472         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
14473         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
14474         * sysdeps/i386/init-first.c: File removed.
14475         * sysdeps/sh/init-first.c: File removed.
14476
14477 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
14478
14479         [BZ #14645]
14480         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
14481         if x * y might underflow to zero and z is zero.
14482         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14483         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14484         * math/libm-test.inc (min_subnorm_value): New variable.
14485         (fma_test): Add more tests.
14486         (fma_test_towardzero): Likewise.
14487         (fma_test_downward): Likewise
14488         (fma_test_upward): Likewise.
14489         (initialize): Set min_subnorm_value.
14490
14491 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
14492
14493         [BZ #14638]
14494         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
14495         0 + 0.
14496         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
14497         mode for addition resulting in exact zero.
14498         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
14499         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
14500         exact 0 + 0.
14501         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
14502         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14503         * math/libm-test.inc (fma_test): Add more tests.
14504         (fma_test_towardzero): New function.
14505         (fma_test_downward): Likewise.
14506         (fma_test_upward): Likewise.
14507         (main): Call the new functions.
14508
14509 2012-09-28  David S. Miller  <davem@davemloft.net>
14510
14511         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
14512
14513 2012-09-28  Roland McGrath  <roland@hack.frob.com>
14514
14515         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
14516         instead of SIGALRM.
14517
14518         * sysdeps/gnu/_G_config.h: Moved to ...
14519         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
14520         * sysdeps/mach/hurd/_G_config.h: Moved to ...
14521         * sysdeps/generic/_G_config.h: ... here.
14522
14523         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
14524
14525         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
14526
14527         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
14528         Conditionalize target on [libnss_test1.so-version].
14529
14530         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
14531
14532         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
14533         (elfobjdir): Move out of conditionals.
14534
14535         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
14536         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
14537         (__nss_lookup_function): Conditionalize label remove_from_tree on
14538         [!DO_STATIC_NSS || SHARED], matching its only use.
14539
14540 2012-09-28  David S. Miller  <davem@davemloft.net>
14541
14542         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
14543         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
14544         file.
14545         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14546         sysdep_routines.
14547         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14548         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
14549         when HWCAP_SPARC_CRYPTO is present.
14550
14551 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14552
14553         * io/tst-mknodat.c: Create a FIFO instead of a socket.
14554
14555 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
14556
14557         [BZ #6530]
14558         * stdio-common/vfprintf.c (process_string_arg): Revert
14559         2000-07-22 change.
14560
14561 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
14562
14563         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
14564         for testcase.
14565         * stdio-common/tst-sprintf.c: Include <locale.h>
14566         (main): Test sprintf's handling of incomplete multibyte
14567         characters.
14568
14569 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
14570
14571         * elf/dl-runtime.c (VERSYMIDX): Removed.
14572         * elf/dl-version.c (VERSYMIDX): Likewise.
14573         * elf/do-rel.h (VERSYMIDX): Likewise.
14574         (VALIDX): Likewise.
14575         * elf/dynamic-link.h (VERSYMIDX): Likewise.
14576         * elf/rtld.c (VALIDX): Likewise.
14577         (ADDRIDX): Likewise.
14578         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
14579         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
14580         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
14581         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
14582         (VALIDX): Likewise.
14583         (ADDRIDX): Likewise.
14584
14585 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14586
14587         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
14588
14589 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
14590
14591         [BZ #11438]
14592         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
14593         to global scope.
14594         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
14595         addresses are in the same scope as 192.0.2/24.
14596         * posix/gai.conf: Document new scope table defaults.
14597
14598 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14599
14600         [BZ #5298]
14601         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
14602         for ftell.  Compute offsets from write pointers instead.
14603         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14604
14605 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14606
14607         [BZ #14543]
14608         * libio/Makefile (tests): New test case tst-fseek.
14609         * libio/tst-fseek.c: New test case to verify that fseek/ftell
14610         combination works in wide mode.
14611         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
14612         state when the external buffer state changes.
14613
14614 2012-09-27  David S. Miller  <davem@davemloft.net>
14615
14616         [BZ #14376]
14617         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
14618         pass reloc->r_addend in as the 'high' argument to
14619         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
14620
14621         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14622
14623 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14624
14625         * rt/tst-aio2.c: Include <pthread.h>.
14626         * rt/tst-aio3.c: Likewise.
14627
14628 2012-09-27  Steve Ellcey  <sellcey@mips.com>
14629
14630         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
14631
14632 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
14633
14634         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
14635         contents on [SHARED].
14636
14637 2012-09-26  Marek Polacek  <polacek@redhat.com>
14638
14639         [BZ #14530]
14640         [BZ #13741]
14641         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
14642         for C++ and GCC <4.3 as well as for non GCC compilers.
14643
14644 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14645
14646         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14647
14648 2012-09-25  Roland McGrath  <roland@hack.frob.com>
14649
14650         * Makefile.in (all, install): Declare with .PHONY.
14651         Reported by Michael Hope <michael.hope@linaro.org>.
14652
14653 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14654
14655         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
14656         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
14657         system header.
14658         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
14659         Likewise.
14660         (sydep_routines): Add the new and the internal functions.
14661         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
14662         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
14663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
14664         (GLIBC_2.17): Add the new function.
14665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
14666         (GLIBC_2.17): Likewise.
14667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14668         (GLIBC_2.17): Likewise.
14669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
14670         (GLIBC_2.17): Likewise.
14671         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
14672
14673 2012-09-25  Alan Modra  <amodra@gmail.com>
14674
14675         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
14676         Add release barrier before setting once_control to say
14677         initialisation is done.  Add hints on lwarx.  Use macro in
14678         place of isync.
14679         (clear_once_control): Add release barrier.
14680
14681 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
14682
14683         [BZ #13629]
14684         * math/s_clog.c (__clog): Handle more values close to |z| = 1
14685         specially.
14686         * math/s_clog10.c (__clog10): Likewise.
14687         * math/s_clog10f.c (__clog10f): Likewise.
14688         * math/s_clog10l.c (__clog10l): Likewise.
14689         * math/s_clogf.c (__clogf): Likewise.
14690         * math/s_clogl.c (__clogl): Likewise.
14691         * math/Makefile (libm-calls): Add x2y2m1.
14692         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
14693         (__x2y2m1): Likewise.
14694         (__x2y2m1l): Likewise.
14695         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
14696         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
14697         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
14698         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
14699         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
14700         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
14701         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
14702         * sysdeps/i386/fpu/libm-test-ulps: Update.
14703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14704
14705         [BZ #14621]
14706         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
14707         int as type of variable DEPTH.
14708         (glob): Use size_t instead of int as type of variables NEWCOUNT
14709         and OLD_PATHC.
14710
14711 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14712
14713         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
14714         Add s_sincosf-sse2.
14715         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
14716         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
14717         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
14718         macros for using routine as __sincosf_ia32.
14719         Use macro for function declaration and weak_alias.
14720         * sysdeps/i386/fpu/libm-test-ulps: Update.
14721
14722         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
14723         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14724
14725         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
14726         subnormal argument.
14727         * math/s_cexpf.c (__cexpf): Likewise.
14728         * math/s_csinf.c (__csinf): Likewise.
14729         * math/s_csinhf.c (__csinhf): Likewise.
14730         * math/s_ctanf.c (__ctanf): Likewise.
14731         * math/s_ctanhf.c (__ctanhf): Likewise.
14732         * math/s_ccosh.c (__ccoshf): Likewise.
14733         * math/s_cexp.c (__cexpl): Likewise.
14734         * math/s_csin.c (__csin): Likewise.
14735         * math/s_csinh.c (__csinh): Likewise.
14736         * math/s_ctan.c (__ctan): Likewise.
14737         * math/s_ctanh.c (ctanh): Likewise.
14738         * math/s_ccoshl.c (__ccoshl): Likewise.
14739         * math/s_cexpl.c (__cexpl): Likewise.
14740         * math/s_csinl.c (__csinl): Likewise.
14741         * math/s_csinhl.c (__csinhl): Likewise.
14742         * math/s_ctanl.c (__ctanl): Likewise.
14743         * math/s_ctanhl.c (__ctanhl): Likewise.
14744
14745 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
14746
14747         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
14748         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
14749         (_IO_off_t): Define to __off_t, not _G_off_t.
14750         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
14751         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
14752         (_IO_wint_t): Define to wint_t, not _G_wint_t.
14753         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
14754         type of __dummy and __dummy2 fields.
14755         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
14756         (_G_ssize_t): Likewise.
14757         (_G_off_t): Likewise.
14758         (_G_pid_t): Likewise.
14759         (_G_uid_t): Likewise.
14760         (_G_wchar_t): Likewise.
14761         (_G_wint_t): Likewise.
14762         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
14763         (_G_ssize_t): Likewise.
14764         (_G_off_t): Likewise.
14765         (_G_pid_t): Likewise.
14766         (_G_uid_t): Likewise.
14767         (_G_wchar_t): Likewise.
14768         (_G_wint_t): Likewise.
14769         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
14770         (_G_ssize_t): Likewise.
14771         (_G_off_t): Likewise.
14772         (_G_pid_t): Likewise.
14773         (_G_uid_t): Likewise.
14774         (_G_wchar_t): Likewise.
14775         (_G_wint_t): Likewise.
14776
14777 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14778
14779         * malloc/arena.c: Include malloc-sysdep.h.
14780         (shrink_heap): Use check_may_shrink_heap to decide if madvise
14781         is sufficient to shrink the heap or an unmap is needed.
14782         * sysdeps/generic/malloc-sysdep.h: New file.  Define
14783         new function check_may_shrink_heap.
14784         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
14785         new function check_may_shrink_heap.
14786
14787 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14788
14789         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
14790         comments.
14791
14792 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
14793
14794         * catgets/test-gencat.sh: Add "set -e".
14795         * elf/tst-pathopt.sh: Likewise.
14796         * grp/tst_fgetgrent.sh: Likewise.
14797         * iconvdata/run-iconv-test.sh: Likewise.
14798         * intl/tst-gettext.sh: Likewise.
14799         * intl/tst-gettext2.sh: Likewise.
14800         * intl/tst-gettext4.sh: Likewise.
14801         * intl/tst-gettext6.sh: Likewise.
14802         * intl/tst-translit.sh: Likewise.
14803         * io/ftwtest-sh: Likewise.
14804         * libio/test-freopen.sh: Likewise.
14805         * malloc/tst-mtrace.sh: Likewise.
14806         * posix/globtest.sh: Likewise.
14807         * posix/tst-getconf.sh: Likewise.
14808         * posix/wordexp-tst.sh: Likewise.
14809         * stdio-common/tst-printf.sh: Likewise.
14810         * stdio-common/tst-unbputc.sh: Likewise.
14811         * stdlib/tst-fmtmsg.sh: Likewise.
14812         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
14813         * catgets/Makefile: Do not specify -e option when running
14814         testsuite shell scripts.
14815         * elf/Makefile: Likewise.
14816         * grp/Makefile: Likewise.
14817         * iconvdata/Makefile: Likewise.
14818         * intl/Makefile: Likewise.
14819         * io/Makefile: Likewise.
14820         * libio/Makefile: Likewise.
14821         * malloc/Makefile: Likewise.
14822         * posix/Makefile: Likewise.
14823         * stdio-common/Makefile: Likewise.
14824         * stdlib/Makefile: Likewise.
14825         * sysdeps/x86_64/Makefile: Likewise.
14826
14827         * io/ftwtest-sh: Add copyright header.
14828         * posix/globtest.sh: Likewise.
14829         * posix/tst-getconf.sh: Likewise.
14830         * posix/wordexp-tst.sh: Likewise.
14831         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
14832
14833 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
14834
14835         [BZ #13679]
14836         * Makeconfig (+link): Defined as $(+link-static) if
14837         $(build-shared) isn't yes.
14838         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
14839         isn't yes.
14840         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
14841
14842         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
14843
14844         [BZ #14562]
14845         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
14846         new chunk size with MALLOC_ALIGN_MASK.
14847
14848 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
14849
14850         [BZ #5044]
14851         * stdio-common/printf_fphex.c: Include <stdbool.h> and
14852         <rounding-mode.h>.
14853         (__printf_fphex): Determine rounding using get_rounding_mode and
14854         round_away.
14855         * stdio-common/tst-printf-round.c (struct hex_test): New
14856         structure.
14857         (hex_tests): New variable.
14858         (test_hex_in_one_mode): New function.
14859         (do_test): Also run tests for hex float output.
14860
14861 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
14862
14863         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
14864         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
14865         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
14866         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
14867         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
14868         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
14869         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
14870         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
14871
14872 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
14873
14874         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
14875         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
14876         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
14877         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
14878
14879 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
14880
14881         [BZ #14579]
14882         * elf/rtld.c (dl_main): Limit the check for self loading to normal
14883         mode only.
14884         * elf/tst-rtld-load-self.sh: New test.
14885         * elf/Makefile: Run it.
14886
14887 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
14888
14889         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
14890         (tst-writev-ENV): Remove.
14891         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
14892
14893 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
14894
14895         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
14896
14897 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
14898
14899         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
14900         unconditional.
14901         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
14902         Likewise.
14903         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
14904         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
14905         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
14906         Likewise.
14907
14908 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14909
14910         [BZ #14587]
14911         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
14912         * config.make.in (have-cpp-asm-debuginfo): Removed.
14913         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
14914         * configure: Regenerated.
14915
14916 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
14917
14918         [BZ #5044]
14919         * stdio-common/printf_fp.c: Include <stdbool.h> and
14920         <rounding-mode.h>.
14921         (___printf_fp): Determine rounding using get_rounding_mode and
14922         round_away.
14923         * stdio-common/tst-printf-round.c: New file.
14924         * stdio-common/Makefile (tests): Add tst-printf-round.
14925         (link-libm): New variable.
14926         ($(objpfx)tst-printf-round): Depend in $(link-libm).
14927
14928 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
14929
14930         [BZ #14576]
14931         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
14932         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
14933         Likewise.
14934         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
14935         Likewise.
14936
14937 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
14938
14939         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
14940         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14941         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14942         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14943
14944 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
14945
14946         [BZ #14518]
14947         * include/rounding-mode.h: New file.
14948         * sysdeps/generic/get-rounding-mode.h: Likewise.
14949         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
14950         * stdlib/strtod_l.c: Include <rounding-mode.h>.
14951         (MAX_VALUE): New macro.
14952         (MIN_VALUE): Likewise.
14953         (overflow_value): New function.
14954         (underflow_value): Likewise.
14955         (round_and_return): Use overflow_value and underflow_value to
14956         determine return values in overflow and underflow cases.  Use
14957         round_away to determine rounding depending on rounding mode.
14958         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
14959         determine return values in overflow and underflow cases.
14960         * stdlib/tst-strtod-round.c: Include <fenv.h>.
14961         (struct test_results): New structure.
14962         (struct test): Use struct test_results to store expected results
14963         for all rounding modes.
14964         (TEST): Include expected results for all rounding modes.
14965         (test_in_one_mode): New function.
14966         (do_test): Use test_in_one_mode to compute and check results.
14967         Check results for all rounding modes.
14968         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
14969         $(link-libm).
14970
14971 2012-12-09  Allan McRae  <allan@archlinux.org>
14972
14973         * sysdeps/i386/fpu/libm-test-ulps: Update
14974
14975 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
14976
14977         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
14978         (_G_int32_t): Likewise.
14979         (_G_uint16_t): Likewise.
14980         (_G_uint32_t): Likewise.
14981         (_G_HAVE_BOOL): Likewise.
14982         (_G_HAVE_ATEXIT): Likewise.
14983         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14984         (_G_HAVE_IO_FILE_OPEN): Likewise.
14985         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
14986         (_G_int32_t): Likewise.
14987         (_G_uint16_t): Likewise.
14988         (_G_uint32_t): Likewise.
14989         (_G_HAVE_BOOL): Likewise.
14990         (_G_HAVE_ATEXIT): Likewise.
14991         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14992         (_G_HAVE_IO_FILE_OPEN): Likewise.
14993         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
14994         (_G_int32_t): Likewise.
14995         (_G_uint16_t): Likewise.
14996         (_G_uint32_t): Likewise.
14997         (_G_HAVE_BOOL): Likewise.
14998         (_G_HAVE_ATEXIT): Likewise.
14999         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15000         (_G_HAVE_IO_FILE_OPEN): Likewise.
15001
15002 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
15003
15004         * csu/libc-tls.c: Update copyright years.
15005
15006 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
15007
15008         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
15009         [!_G_USING_THUNKS]: Remove conditional code.
15010         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
15011         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
15012
15013         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
15014         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
15015         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15016         (_G_VTABLE_LABEL_PREFIX): Likewise.
15017         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15018         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15019         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15020         (_G_VTABLE_LABEL_PREFIX): Likewise.
15021         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
15022         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15023         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15024         (_G_VTABLE_LABEL_PREFIX): Likewise.
15025         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
15026
15027 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
15028
15029         * libio/Makefile: Include ../Makeconfig before tests.
15030         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
15031         only if $(build-shared) is yes.
15032
15033         * iconv/gconv_db.c: Update copyright years.
15034
15035 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15036
15037         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
15038         unwind info if defined PIC. Fix special cases description.
15039         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
15040
15041         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
15042         DP_HI_MASK entry.
15043         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
15044
15045 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
15046
15047         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
15048
15049         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
15050         is NULL.
15051
15052         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
15053         (LDLIBS-tst-chk4): This.
15054         (LDFLAGS-tst-chk5): Renamed to ...
15055         (LDLIBS-tst-chk5): This.
15056         (LDFLAGS-tst-chk6): Renamed to ...
15057         (LDLIBS-tst-chk6): This.
15058         (LDFLAGS-tst-lfschk4): Renamed to ...
15059         (LDLIBS-tst-lfschk4): This.
15060         (LDFLAGS-tst-lfschk5): Renamed to ...
15061         (LDLIBS-tst-lfschk5): This.
15062         (LDFLAGS-tst-lfschk6): Renamed to ...
15063         (LDLIBS-tst-lfschk6): This.
15064
15065         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
15066         on $(common-objpfx)soversions.mk.
15067
15068 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
15069
15070         [BZ #10014]
15071         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
15072         example host name.
15073
15074 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
15075
15076         * malloc/arena.c (arena_get_retry): New function that gets
15077         another arena for the caller to try its request on.
15078         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
15079         current arena cannot fulfill the request.
15080         (__libc_memalign): Likewise.
15081         (__libc_memalign): Likewise.
15082         (__libc_pvalloc): Likewise.
15083         (__libc_calloc): Likewise.
15084
15085 2012-09-05  John Tobey  <john.tobey@gmail.com>
15086
15087         [BZ #13542]
15088         * manual/arith.texi (Operations on Complex): Fix description
15089         of carg branch cut.
15090
15091 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15092
15093         [BZ #10014]
15094         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
15095         host name.
15096
15097         [BZ #10038]
15098         * manual/memory.texi (Memory): Make order of menu items match
15099         order of sections.
15100
15101 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15102
15103         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
15104         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
15105         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
15106
15107 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15108
15109         * csu/libc-tls.c (static_dtv): Renamed to ...
15110         (_dl_static_dtv): This.  Make it global.
15111         (_dl_initial_dtv): Removed.
15112         (__libc_setup_tls): Updated.
15113         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
15114         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
15115         DL_INITIAL_DTV.
15116
15117 2012-09-06  Petr Machata  <pmachata@redhat.com>
15118
15119         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
15120         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
15121         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
15122         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
15123
15124 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15125
15126         [BZ #14545]
15127         * csu/libc-tls.c (_dl_initial_dtv): New variable.
15128         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
15129         freeing dtv[-1].
15130
15131 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15132
15133         [BZ #14544]
15134         * Makeconfig (link-static-before-libc): Replace $(+prector)
15135         with $(+prectorT).
15136         (link-static-after-libc): Replace $(+postctor) with
15137         $(+postctorT).
15138         (link-bounded): Replace $(+prector)/$(+postctor) with
15139         $(+prectorT)/$(+postctorT).
15140         (+prectorT): New macro.
15141         (+postctorT): Likewise.
15142
15143 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15144
15145         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
15146         (round_str): Handle values above the maximum for IBM long double
15147         as inexact.
15148         * stdlib/tst-strtod-round.c (tests): Regenerated.
15149
15150 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15151
15152         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
15153         assembler flag.
15154         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
15155         zarch_nohighgprs around the zarch optimized routines.
15156         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
15157         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
15158         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
15159         for zarch.
15160
15161 2012-09-05  David S. Miller  <davem@davemloft.net>
15162
15163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15164
15165         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
15166         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
15167         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
15168         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15169         entries.
15170
15171 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15172
15173         * malloc/arena.c: Fold copyright years.
15174         * malloc/mcheck.c, malloc/memusage.c: Likewise.
15175
15176 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15177
15178         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
15179
15180 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15181
15182         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
15183
15184 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15185
15186         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
15187         change internal state upon failure.
15188
15189 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15190
15191         * malloc/mcheck.c (mcheck_check_all): Fix typo.
15192         * malloc/memusage.c (mmap): Likewise.
15193         (mmap64, mremap): Likewise.  Adjust name in comment.
15194
15195 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15196
15197         * libio/fileops.c: Fix typos in comments.
15198         * libio/oldfileops.c: Likewise.
15199         * libio/wfileops.c: Likewise.
15200
15201 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15202
15203         [BZ #1349]
15204         * malloc/Makefile (tests): Add tst-malloc-usable test case.
15205         (tst-malloc-usable-ENV): Set environment for test case.
15206         * malloc/hooks.c (malloc_check_get_size): New function to get
15207         requested size.
15208         * malloc/malloc.c (musable): Use malloc_check_get_size.
15209         * malloc/tst-malloc-usable.c: New test case.
15210
15211 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15212
15213         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
15214
15215 2012-09-05  Allan McRae  <allan@archlinux.org>
15216
15217         [BZ #13966]
15218         * configure.in (CXX_SYSINCLUDES): Use compiler output to
15219         determine header location.
15220         * configure: Regenerated.
15221
15222 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15223
15224         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
15225         float format.
15226         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
15227         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
15228         format.
15229         (test): Regenerate.
15230
15231 2012-09-04  David S. Miller  <davem@davemloft.net>
15232
15233         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
15234         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
15235         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
15236
15237 2012-09-04  Florian Weimer  <fweimer@redhat.com>
15238
15239         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
15240         failures.
15241
15242         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
15243
15244 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
15245
15246         [BZ #9914]
15247         * libio/iogetdelim.c: Include <limits.h>.
15248         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
15249         + len + 1 would overflow.
15250
15251 2012-09-03  Andreas Jaeger  <aj@suse.de>
15252
15253         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15254         * sysdeps/i386/fpu/libm-test-ulps: Update.
15255
15256 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15257
15258         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15259         Add s_sinf-sse2, s_conf-sse2.
15260
15261         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
15262         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
15263         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
15264         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
15265
15266         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
15267         for using routine as __sinf_ia32.
15268         Use macro for function declaration and weak_alias.
15269         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
15270         for using routine as __cosf_ia32.
15271         Use macro for function declaration and weak_alias.
15272
15273         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
15274         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
15275
15276         * sysdeps/x86_64/fpu/s_sinf.S: New file.
15277         * sysdeps/x86_64/fpu/s_cosf.S: New file.
15278         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15279
15280         * math/libm-test.inc (cos_test): Add more test cases.
15281         (sin_test): Likewise.
15282         (sincos_test): Likewise.
15283
15284 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15285
15286         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
15287         (IFUNC_RESOLVE): Make pointers to the specialized implementations
15288         hidden.
15289         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
15290
15291 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
15292
15293         [BZ #14538]
15294         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
15295         first element of the GOT.
15296         (elf_machine_load_address): Return the difference between
15297         the runtime address of _DYNAMIC and elf_machine_dynamic ().
15298
15299 2012-09-01  Allan McRae  <allan@archlinux.org>
15300
15301         [BZ #13412]
15302         * configure.in (AWK): Require gawk version 3.0 or later.
15303         * configure: Regenerated.
15304
15305 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
15306
15307         * sysdeps/unix/sysv/linux/kernel-features.h
15308         (__ASSUME_POSIX_CPU_TIMERS): Remove.
15309         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15310         [__NR_clock_getres]: Make code unconditional.
15311         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
15312         (clock_getcpuclockid): Remove code left unreachable by removal of
15313         conditionals.
15314         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
15315         code unconditional.
15316         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15317         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15318         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
15319         Make code unconditional.
15320         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15321         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15322         * sysdeps/unix/sysv/linux/clock_settime.c
15323         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
15324         conditional code.
15325         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
15326         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15327
15328 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
15329
15330         [BZ #14476]
15331         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
15332         scripts/test-installation.pl.
15333
15334         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
15335         and $ld_so_version if it is set.
15336
15337 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15338
15339         [BZ #14516]
15340         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
15341         failure if reading from procfs failed.
15342         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
15343
15344 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15345
15346         * sysdeps/unix/sysv/linux/kernel-features.h
15347         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
15348         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15349         Remove conditional code.
15350         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15351         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
15352         Remove conditional code.
15353         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15354         * sysdeps/unix/sysv/linux/i386/fxstat.c
15355         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15356         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15357         * sysdeps/unix/sysv/linux/i386/fxstatat.c
15358         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15359         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15360         * sysdeps/unix/sysv/linux/i386/lxstat.c
15361         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15362         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15363         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
15364         Remove conditional code.
15365         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15366         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15367         Remove conditional code.
15368         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15369         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
15370         <kernel-features.h>.
15371         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
15372         Remove.
15373         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
15374         Remove conditional code.
15375         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15376         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
15377         Remove conditional.
15378
15379 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
15380
15381         [BZ #5400]
15382         * NEWS: Add fixed bug number.
15383
15384 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15385
15386         [BZ #14519]
15387         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
15388         underflowing exponent in case of negative sign.
15389         * stdlib/tst-strtod-round-data: Add more tests.
15390         * stdlib/tst-strtod-round.c (tests): Regenerated.
15391
15392         [BZ #3479]
15393         * stdlib/strtod_l.c (NDIG): Remove.
15394         (HEXNDIG): Likewise.
15395         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
15396         smallest representable value.
15397         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
15398         lie within an exact representation of 1/2 ulp of the result.
15399         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
15400         unconditionally.
15401         (TENS_P9_IDX): Define unconditionally.
15402         (TENS_P9_SIZE): Likewise.
15403         (TENS_P10_IDX): Likewise.
15404         (TENS_P10_SIZE): Likewise.
15405         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
15406         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
15407         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
15408         entries for 10^2^13 and 10^2^14.
15409         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
15410         (TENS_P13_IDX): Define.
15411         (TENS_P13_SIZE): Likewise.
15412         (TENS_P14_IDX): Likewise.
15413         (TENS_P14_SIZE): Likewise.
15414         (_fpioconst_pow10): Change array size to
15415         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
15416         unconditional.
15417         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
15418         1024]: Add entries for 10^2^13 and 10^2^14.
15419         [LAST_POW10 > _LAST_POW10]: Remove #error.
15420         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
15421         (_fpioconst_pow10): Change array size to
15422         FPIOCONST_POW10_ARRAY_SIZE.
15423         * stdlib/gen-fpioconst.c: New file.
15424         * stdlib/gen-tst-strtod-round.c: Likewise.
15425         * stdlib/tst-strtod-round-data: Likewise.
15426         * stdlib/tst-strtod-round.c: Likewise.
15427         * stdlib/Makefile (tests): Add tst-strtod-round.
15428
15429         [BZ #14459]
15430         * stdlib/strtod_l.c: Include <stdint.h>.
15431         (NDEBUG): Do not define.
15432         (round_and_return): Change EXPONENT parameter to type intmax_t.
15433         Rearrange calculations to avoid internal overflow possibilities.
15434         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
15435         Rearrange calculations to avoid internal overflow possibilities.
15436         Assert that number fits inside MPNSIZE limbs.
15437         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
15438         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
15439         calculations and add assertions to avoid internal overflow
15440         possibilities.  Add casts to avoid signed/unsigned operations.
15441         * stdlib/tst-strtod-overflow.c: New file.
15442         * stdlib/Makefile (tests): Add tst-strtod-overflow.
15443
15444 2012-08-25  Marek Polacek  <polacek@redhat.com>
15445
15446         * time/time.h: Fix some typos in comments.
15447
15448 2012-08-23  Roland McGrath  <roland@hack.frob.com>
15449
15450         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
15451         * posix/tst-rfc3484-2.c: Likewise.
15452         * posix/tst-rfc3484-3.c: Likewise.
15453
15454 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
15455
15456         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
15457         (EF_ARM_ABI_FLOAT_HARD): Likewise.
15458
15459 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
15460
15461         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
15462         #include of fxstatat64.c.
15463
15464 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15465
15466         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
15467         * shadow/getspent_r.c: Likewise.
15468         * shadow/getspnam.c: Likewise.
15469         * shadow/getspnam_r.c: Likewise.
15470         * gshadow/getsgent.c: Likewise.
15471         * gshadow/getsgent_r.c: Likewise.
15472         * gshadow/getsgnam.c: Likewise.
15473         * gshadow/getsgnam_r.c: Likewise.
15474         * inet/getnetbyad.c: Likewise.
15475         * inet/getnetbyad_r.c: Likewise.
15476         * inet/getnetbynm.c: Likewise.
15477         * inet/getnetbynm_r.c: Likewise.
15478         * inet/getnetent.c: Likewise.
15479         * inet/getnetent_r.c: Likewise.
15480         * inet/getproto.c: Likewise.
15481         * inet/getproto_r.c: Likewise.
15482         * inet/getprtent.c: Likewise.
15483         * inet/getprtent_r.c: Likewise.
15484         * inet/getprtname.c: Likewise.
15485         * inet/getprtname_r.c: Likewise.
15486         * inet/getrpcbyname.c: Likewise.
15487         * inet/getrpcbyname_r.c: Likewise.
15488         * inet/getrpcbynumber.c: Likewise.
15489         * inet/getrpcbynumber_r.c: Likewise.
15490         * inet/getrpcent.c: Likewise.
15491         * inet/getrpcent_r.c: Likewise.
15492         * inet/getaliasent.c: Likewise.
15493         * inet/getaliasent_r.c: Likewise.
15494         * inet/getaliasname.c: Likewise.
15495         * inet/getaliasname_r.c: Likewise.
15496         * nscd/getgrgid_r.c: Likewise.
15497         * nscd/getgrnam_r.c: Likewise.
15498         * nscd/gethstbyad_r.c: Likewise.
15499         * nscd/gethstbynm3_r.c: Likewise.
15500         * nscd/getpwnam_r.c: Likewise.
15501         * nscd/getpwuid_r.c: Likewise.
15502         * nscd/getsrvbynm_r.c: Likewise.
15503         * nscd/getsrvbypt_r.c: Likewise.
15504         * nscd/gai.c: Likewise.
15505
15506         * configure.in (build_nscd): New substituted variable, set
15507         by --disable-build-nscd and defaults to $use_nscd.
15508         * configure: Regenerated.
15509         * config.make.in (build-nscd): New substituted variable.
15510         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
15511         Change conditional to require [$(build-nscd) = yes] as well.
15512         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
15513
15514         [BZ# 13696]
15515         * configure.in (use_nscd): New substituted variable, set by
15516         --disable-nscd.  If enabled, define USE_NSCD.
15517         * configure: Regenerated.
15518         * config.h.in: Add USE_NSCD.
15519         * config.make.in (use-nscd): New substituted variable.
15520         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15521         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
15522         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
15523         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
15524         (CFLAGS-getgrnam_r.c): Likewise.
15525         (CFLAGS-initgroups.c): Likewise.
15526         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
15527         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
15528         Variables removed.
15529         * inet/getnetgrent_r.c
15530         (nscd_setnetgrent): New function, broken out of ...
15531         (setnetgrent): ... here.  Call it.
15532         (innetgr): Conditionalize nscd bits on [USE_NSCD].
15533         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
15534         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
15535         * nscd/Makefile (routines, aux): Move definitions after include of
15536         Makeconfig.  Conditionalize on [$(use-nscd) != no].
15537         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
15538         Conditionalize on [USE_NSCD].
15539         (is_nscd, nscd_init_cb): Likewise.
15540         (nss_load_library): Conditionalize init callback on [USE_NSCD].
15541         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
15542         * nss/nss_db/db-init.c: Likewise.
15543         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
15544         [USE_NSCD].
15545         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
15546         (make_request): Use it.
15547         (cache_valid_p): New function.
15548         (__check_pf): Use it.
15549         * NEWS: Add item for --disable-nscd.
15550
15551 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
15552
15553         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
15554         to support sed >= 4.2.1-20-ga9bf076.
15555         * configure: Regenerated.
15556
15557 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15558
15559         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
15560         Conditionalize whole body on [IREL].
15561
15562 2012-08-22  Jeff Law <law@redhat.com>
15563
15564         [BZ #14505]
15565         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
15566         if the family is PF_UNSPEC.
15567
15568 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
15569
15570         * Makerules (lib-version): Rename from V.
15571         (install-lib-nosubdir): Change V to lib-version.
15572
15573 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
15574
15575         [BZ #14252]
15576         * powerpc32/power6/wcschr.c: New file.
15577         * powerpc32/power6/wcscpy.c: New file.
15578         * powerpc32/power6/wcsrchr.c: New file.
15579         * powerpc64/power6/wcschr.c: New file.
15580         * powerpc64/power6/wcscpy.c: New file.
15581         * powerpc64/power6/wcsrchr.c: New file.
15582
15583 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15584
15585         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
15586         (two_way_short_needle): Use it.
15587         * string/strstr.c (AVAILABLE1_USES_J): Define.
15588         * string/strcasestr.c: Likewise.
15589
15590         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
15591         array references.
15592         * string/strcasestr.c (TOLOWER): Make side-effect safe.
15593
15594         [BZ #11607]
15595         * NEWS: Add an entry.
15596         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
15597         define their defaults.
15598         (two_way_short_needle): Detect end-of-string on-the-fly.
15599         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
15600         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
15601         * string/bug-strcasestr1.c: New test.
15602         * string/Makefile: Run it.
15603
15604 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15605
15606         [BZ #11607]
15607         * string/str-two-way.h (two_way_short_needle): Optimize matching of
15608         the first character.
15609
15610 2012-08-21  Roland McGrath  <roland@hack.frob.com>
15611
15612         * csu/elf-init.c (__libc_csu_irel): Function removed.
15613         * csu/libc-start.c (apply_irel): New function.
15614         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
15615
15616 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
15617
15618         * sysdeps/unix/sysv/linux/kernel-features.h
15619         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
15620         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
15621         <kernel-features.h>.
15622         [__NR_fadvise64_64]: Make code unconditional.
15623         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
15624         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
15625         !__NR_fadvise64_64)]: Likewise.
15626         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
15627         !__NR_fadvise64_64))]: Likewise.
15628         [__NR_fadvise64]: Make code unconditional.
15629         [!__NR_fadvise64]: Remove conditional code.
15630         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
15631         <kernel-features.h>.
15632         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15633         unconditional.
15634         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15635         conditional code.
15636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
15637         not include <kernel-features.h>.
15638         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15639         unconditional.
15640         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15641         conditional code.
15642         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
15643         include <kernel-features.h>.
15644         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15645         unconditional.
15646         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15647         conditional code.
15648
15649 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15650
15651         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
15652         slight instruction rearrangements per scrollpipe analysis.
15653         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
15654
15655 2012-08-20  Roland McGrath  <roland@hack.frob.com>
15656
15657         * manual/syslog.texi (syslog; vsyslog, closelog):
15658         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
15659         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
15660
15661         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
15662         DSOCAPS to match condition on defining it.
15663
15664 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
15665
15666         * sysdeps/unix/sysv/linux/kernel-features.h
15667         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
15668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
15669         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15670         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
15672         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15673         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
15675         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15676         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15677
15678         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
15679         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
15680
15681         * sysdeps/unix/sysv/linux/kernel-features.h
15682         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
15683         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
15684         unconditional.
15685         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15686         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
15687         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
15688         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15689         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
15690         Make code unconditional.
15691         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15692         (__mmap64) [!__NR_mmap2]: Likewise.
15693         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
15694         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
15695         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15696         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
15697         [__NR_mmap2]: Make code unconditional.
15698         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15699         (__mmap64) [!__NR_mmap2]: Likewise.
15700
15701 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15702
15703         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
15704
15705 2012-08-18  Andreas Jaeger  <aj@suse.de>
15706
15707         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
15708
15709 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
15710
15711         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
15712         * include/unistd.h (__have_sock_cloexec): Likewise.
15713         (__have_pipe2): Likewise.
15714         (__have_dup3): Likewise.
15715
15716 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
15717
15718         [BZ #9685]
15719         * include/unistd.h (__have_pipe2): Change define into an extern int.
15720         (__have_dup3): Likewise.
15721         * socket/have_sock_cloexec.c: Include fcntl.h.
15722         (__have_pipe2): New variable.
15723         (__have_dup3): Likewise.
15724
15725 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
15726
15727         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
15728
15729 2012-08-17  Marek Polacek  <polacek@redhat.com>
15730
15731         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
15732         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
15733
15734 2012-08-17  Roland McGrath  <roland@hack.frob.com>
15735
15736         * configure.in: Add AC_SUBST for sysheaders.
15737         * configure: Regenerated.
15738         * config.make.in (sysheaders): New substituted variable.
15739
15740         * sysdeps/unix/mkfifo.c: Moved ...
15741         * sysdeps/posix/mkfifo.c: ... here.
15742         * sysdeps/unix/mkfifoat.c: Moved ...
15743         * sysdeps/posix/mkfifoat.c: ... here.
15744
15745         * sysdeps/unix/utime.c: Moved ...
15746         * sysdeps/posix/utime.c: ... here.
15747
15748         * sysdeps/unix/time.c: Moved ...
15749         * sysdeps/posix/time.c: ... here.
15750         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
15751         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
15752
15753         * sysdeps/unix/nice.c: Moved ...
15754         * sysdeps/posix/nice.c: ... here.
15755
15756         * sysdeps/unix/alarm.c: Moved ...
15757         * sysdeps/posix/alarm.c: ... here.
15758
15759         * intl/Makefile ($(codeset_mo)): Depend on the input file.
15760
15761 2012-08-17  Jeff Law <law@redhat.com>
15762
15763         * intl/Makefile (codeset_mo): New variable.
15764         ($(codeset_mo)): New target.
15765         (tst-codeset.out): Depend on that.  Remove explicit rule.
15766         (tst-gettext3.out, tst-gettext5.out): Likewise.
15767         (LOCPATH-ENV, tst-codeset-ENV): New variables.
15768         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
15769         * intl/tst-codeset.sh: Remove.
15770         * intl/tst-gettext3.sh: Likewise.
15771         * intl/tst-gettext5.sh: Likewise.
15772
15773 2012-08-17  Roland McGrath  <roland@hack.frob.com>
15774
15775         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
15776         * sysdeps/unix/syscalls.list: ... here.
15777
15778         * sysdeps/posix/getaddrinfo.c
15779         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
15780         (gaiconf_init, gaiconf_reload): Use them.
15781         [!_STATBUF_ST_NSEC]
15782         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
15783         Define using time_t rather than struct timespec.
15784
15785         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
15786         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
15787         Macros removed.
15788         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
15789         [!NO_THREADS].
15790         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
15791         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
15792         Likewise.
15793
15794         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
15795         __libc_cleanup_push argument.
15796
15797         * bits/param.h: New file.
15798         * misc/sys/param.h: New file.
15799         * include/sys/param.h: New file.
15800         * misc/Makefile (headers): Add bits/param.h.
15801         * sysdeps/generic/sys/param.h: File removed.
15802         * sysdeps/unix/sysv/linux/bits/param.h: New file.
15803         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
15804         * sysdeps/mach/hurd/bits/param.h: New file.
15805         * sysdeps/mach/hurd/sys/param.h: File removed.
15806
15807         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
15808         last change.
15809
15810         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
15811         [_IO_MTSAFE_IO].
15812         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
15813         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
15814         New macros.
15815
15816         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
15817         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
15818         rather than -D_IO_MTSAFE_IO conditionally.
15819         * stdio-common/Makefile (CPPFLAGS): Likewise.
15820         * wcsmbs/Makefile (CPPFLAGS): Likewise.
15821         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
15822         Use $(libio-mtsafe).
15823         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
15824         of -D_IO_MTSAFE_IO.
15825         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
15826         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
15827         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
15828         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
15829         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
15830         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
15831         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
15832         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
15833         (CFLAGS-fread_u_chk.c): Likewise.
15834         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
15835         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
15836         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
15837         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
15838         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
15839         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
15840         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
15841         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
15842         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
15843
15844         * libio/Makefile: Test [$(libc-reentrant) = yes]
15845         instead of [$(filter %REENTRANT, $(defines)) nonempty].
15846
15847         * Makeconfig
15848         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
15849         * sysdeps/pthread/configure: File removed.
15850         * sysdeps/pthread/Makeconfig: New file.
15851         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
15852         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
15853
15854 2012-08-16  Gary Benson  <gbenson@redhat.com>
15855
15856         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
15857         unmapping the first object in a namespace.
15858
15859 2012-08-16  Roland McGrath  <roland@hack.frob.com>
15860
15861         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
15862         (__internal_setnetgrent): ... this.  Add internal_function to
15863         definition.  Add libc_hidden_def.
15864         (setnetgrent): Update caller.
15865         (internal_endnetgrent): Renamed to ...
15866         (__internal_endnetgrent): ... this.  Add internal_function to
15867         definition.  Add libc_hidden_def.
15868         (endnetgrent): Update caller.
15869         (internal_getnetgrent_r): Renamed to ...
15870         (__internal_getnetgrent_r): ... this.  Add internal_function to
15871         definition.  Add libc_hidden_def.
15872         (__getnetgrent_r): Update caller.
15873         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
15874
15875 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
15876
15877         * stdlib/longlong.h: Update from GCC.
15878
15879 2012-08-16  Roland McGrath  <roland@hack.frob.com>
15880
15881         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
15882         on _QL, which is set by umul_ppmm but never used.
15883         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
15884         variables, which are set by GMP macros but never used.
15885         * stdio-common/_itowa.c (_itowa): Likewise.
15886         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
15887         * stdlib/mod_1.c (mpn_mod_1): Likewise.
15888
15889 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
15890
15891         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
15892         struct La_sh_regs is not constant.
15893         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
15894         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
15895         and struct La_sparc64_regs are not constant.
15896
15897 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
15898
15899         * sysdeps/unix/sysv/linux/kernel-features.h
15900         (__ASSUME_POSIX_TIMERS): Remove.
15901         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15902         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15903         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
15904         Make code unconditional.
15905         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15906         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
15907         Make code unconditional.
15908         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15909         * sysdeps/unix/sysv/linux/clock_nanosleep.c
15910         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
15911         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15912         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
15913         Make code unconditional.
15914         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15915         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
15916         (__libc_missing_posix_timers): Remove.
15917
15918 2012-08-15  Roland McGrath  <roland@hack.frob.com>
15919
15920         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
15921         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
15922
15923         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
15924
15925         * elf/dl-sym.c: Include <stdlib.h>.
15926
15927         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
15928         constants, which avoids warnings in 32-bit builds.
15929
15930         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
15931         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
15932
15933         * misc/lseek.c: File moved to ...
15934         * io/lseek.c: ... here.
15935
15936         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
15937
15938         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
15939         shifting LEN more than 31 bits at once.
15940
15941 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15942
15943         [BZ #14195]
15944         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
15945         segmentation fault for a case of two empty input strings.
15946         * string/test-strncasecmp.c (check1): Renamed to...
15947         (bz12205): ...this.
15948         (bz14195): Add new testcase for two empty input strings and N > 0.
15949         (test_main): Call new testcase, adapt for renamed function.
15950
15951 2012-08-15  Andreas Jaeger  <aj@suse.de>
15952
15953         [BZ #14090]
15954         * crypt/md5test2.c: New test, based on test supplied by Serge
15955         Belyshev <belyshev@depni.sinp.msu.ru>.
15956         * crypt/Makefile (xtests): Add md5test-giant..
15957         * crypt/Makefile ($(objpfx)md5test-giant): Add.
15958
15959 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         [BZ #14090]
15962         * crypt/md5.c (md5_process_block): Don't assume the buffer
15963         length is less than 2**32.
15964         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
15965         length is less than 2**64.
15966
15967 2012-08-15  Roland McGrath  <roland@hack.frob.com>
15968
15969         * string/str-two-way.h: Include <sys/param.h>.
15970         (MAX): Macro removed.
15971
15972         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
15973         Move #define and #undef of memmove to just before and after
15974         including <string.h>.
15975
15976         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
15977         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
15978         and after including <string.h>.  Move declarations of
15979         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
15980         to before #include "string/memmove.c".
15981
15982         * include/dirent.h: Declare __getdirentries.
15983
15984         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
15985         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
15986
15987 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
15988
15989         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
15990         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
15991         * sysdeps/i386/configure: Regenerated.
15992         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
15993         STABS_CURRENT_FILE, and STABS_FUN.
15994         (END): Remove call to STABS_FUN_END.
15995         (STABS_CURRENT_FILE1): Delete.
15996         (STABS_CURRENT_FILE): Likewise.
15997         (STABS_FUN): Likewise.
15998         (STABS_FUN_END): Likewise.
15999         (STABS_FUN2): Likewise.
16000         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
16001         * sysdeps/x86_64/configure: Regenerated.
16002
16003 2012-08-14  Roland McGrath  <roland@hack.frob.com>
16004
16005         * elf/dl-open.c: Include <atomic.h>.
16006         * elf/dl-lookup.c: Likewise.
16007
16008 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
16009
16010         * sysdeps/unix/sysv/linux/kernel-features.h
16011         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
16012         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
16013         unconditionally.
16014         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
16015         unconditionally.
16016         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
16017         condition on __ASSUME_CLONE_THREAD_FLAGS.
16018
16019 2012-08-14  Andreas Jaeger  <aj@suse.de>
16020
16021         * sysdeps/i386/fpu/libm-test-ulps: Update.
16022
16023 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
16024
16025         * include/atomic.h (atomic_exchange_and_add): Split into ...
16026         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
16027         New atomic macros.
16028
16029 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
16030
16031         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16032
16033 2012-08-13  Jeff Law <law@redhat.com>
16034
16035         * manual/stdio.texi (snprintf): Clarify handling of the trailing
16036         null byte in the output string.
16037
16038 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
16039
16040         * sysdeps/unix/sysv/linux/kernel-features.h
16041         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
16042         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
16043         (__ASSUME_ARG_MAX_STACK_BASED): Define.
16044         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
16045         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
16046         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
16047         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
16048
16049 2012-08-09  Jeff Law <law@redhat.com>
16050
16051         [BZ #13939]
16052         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
16053         When avoid_arena is set, don't retry in the that arena.  Pick the
16054         next one, whatever it might be.
16055         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
16056         (arena_lock): Pass in new parameter to arena_get2.
16057         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
16058         arena_get2.
16059         (__libc_malloc): Unify retrying after main arena failure with
16060         __libc_memalign version.
16061         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
16062
16063 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16064
16065         [BZ #14166]
16066         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
16067         to __redirect_strstr.
16068         (__strstr_sse42): Use typeof __redirect_strstr.
16069         (__strstr_ia32): Likewise.
16070         (__libc_strstr): New prototype.
16071         (strstr): Renamed to ...
16072         (__libc_strstr): This.
16073         (strstr): New strong alias of __libc_strstr.
16074         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
16075         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
16076         __redirect_time.
16077         Include <time.h>.
16078         (__libc_time): New prototype.
16079         (time_ifunc): Replace time with __libc_time.
16080         (time): New strong alias and hidden definition of __libc_time.
16081         (__GI_time): Remove strong alias.
16082         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
16083         Include <stddef.h>.
16084         (memmove): Redefined to __redirect_memmove.
16085         (__memmove_sse2): Use typeof __redirect_memmove.
16086         (__memmove_ssse3): Likewise.
16087         (__memmove_ssse3_back): Likewise.
16088         (__libc_memmove): New prototype.
16089         (memmove): Renamed to ...
16090         (__libc_memmove): This.
16091         (memmove): New strong alias of __libc_memmove.
16092
16093 2012-08-08  Mark Salter  <msalter@redhat.com>
16094
16095         * elf/elf.h
16096         (R_MN10300_TLS_GD): Define.
16097         (R_MN10300_TLS_LD): Likewise.
16098         (R_MN10300_TLS_LDO): Likewise.
16099         (R_MN10300_TLS_GOTIE): Likewise.
16100         (R_MN10300_TLS_IE): Likewise.
16101         (R_MN10300_TLS_LE): Likewise.
16102         (R_MN10300_TLS_DTPMOD): Likewise.
16103         (R_MN10300_TLS_DTPOFF): Likewise.
16104         (R_MN10300_TLS_TPOFF): Likewise.
16105         (R_MN10300_SYM_DIFF): Likewise.
16106         (R_MN10300_ALIGN): Likewise.
16107         (R_MN10300_NUM): Update.
16108
16109 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
16110
16111         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
16112         Remove.
16113
16114 2012-08-08  Roland McGrath  <roland@hack.frob.com>
16115
16116         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
16117
16118         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
16119         sysdeps/unix -> sysdeps/posix move.
16120         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16121
16122 2012-08-07      Allan McRae     <allan@archlinux.org>
16123
16124         [BZ #14303]
16125         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
16126         (SUNOS_CPP): Likewise.
16127         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
16128         not found.
16129         (open_input): Call CPP using execvp.
16130
16131 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16132
16133         * sysdeps/unix/sysv/linux/kernel-features.h
16134         (__ASSUME_PROT_GROWSUPDOWN): Remove.
16135         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16136         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16137         (__ASSUME_WAITID_SYSCALL): Likewise.
16138         * sysdeps/unix/sysv/linux/dl-execstack.c
16139         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
16140         code unconditional.
16141         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
16142         conditional code.
16143         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
16144         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
16145         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
16146         code.
16147         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
16148         unconditional.
16149         [__ASSUME_WAITID_SYSCALL]: Likewise.
16150         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
16151
16152 2012-08-07  Roland McGrath  <roland@hack.frob.com>
16153
16154         * sysdeps/unix/closedir.c: Renamed to ...
16155         * sysdeps/posix/closedir.c: ... here.
16156         * sysdeps/unix/dirfd.c: Renamed to ...
16157         * sysdeps/posix/dirfd.c: ... here.
16158         * sysdeps/unix/dirstream.h: Renamed to ...
16159         * sysdeps/posix/dirstream.h: ... here.
16160         * sysdeps/unix/fdopendir.c: Renamed to ...
16161         * sysdeps/posix/fdopendir.c: ... here.
16162         * sysdeps/unix/opendir.c: Renamed to ...
16163         * sysdeps/posix/opendir.c: ... here.
16164         * sysdeps/unix/readdir.c: Renamed to ...
16165         * sysdeps/posix/readdir.c: ... here.
16166         * sysdeps/unix/readdir_r.c: Renamed to ...
16167         * sysdeps/posix/readdir_r.c: ... here.
16168         * sysdeps/unix/rewinddir.c: Renamed to ...
16169         * sysdeps/posix/rewinddir.c: ... here.
16170         * sysdeps/unix/seekdir.c: Renamed to ...
16171         * sysdeps/posix/seekdir.c: ... here.
16172         * sysdeps/unix/telldir.c: Renamed to ...
16173         * sysdeps/posix/telldir.c: ... here.
16174         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
16175         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
16176         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16177         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16178
16179         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
16180         * bits/fcntl.h: ... here.
16181
16182         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
16183         not 0.
16184         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
16185         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
16186         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
16187         (struct flock): Move l_start, l_len to the beginning.
16188         Use __pid_t for l_pid.
16189         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
16190         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
16191         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
16192         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
16193         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
16194         [__USE_LARGEFILE64] (struct flock64): New type.
16195         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
16196
16197         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
16198         * bits/dirent.h: ... here.
16199
16200         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
16201         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
16202
16203 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16204
16205         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16206         Change from 2.6.0 to 2.6.16.
16207         * sysdeps/unix/sysv/linux/configure: Regenerated.
16208         * sysdeps/unix/sysv/linux/kernel-features.h
16209         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
16210         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
16211         version.
16212         (__ASSUME_UTIMES): Likewise.
16213         (__ASSUME_CLONE_STOPPED): Remove.
16214         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
16215         architectures, not kernel version.
16216         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
16217         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16218         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16219         (__ASSUME_WAITID_SYSCALL): Likewise.
16220         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
16221         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
16222         * README: State 2.6.16 as minimum Linux kernel version.  Do not
16223         refer to older versions.
16224
16225 2012-08-06  Roland McGrath  <roland@hack.frob.com>
16226
16227         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
16228         Define alphasort64 as an alias.
16229         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
16230         Define versionsort64 as an alias.
16231         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
16232         Define scandir64 as an alias.
16233         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
16234         Define scandirat64 as an alias.
16235         * dirent/alphasort64.c (alphasort64):
16236         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
16237         * dirent/versionsort64.c: Likewise.
16238         * dirent/scandir64.c: Likewise.
16239         * dirent/scandirat64.c: Likewise.
16240         * sysdeps/wordsize-64/alphasort.c: File removed.
16241         * sysdeps/wordsize-64/alphasort64.c: File removed.
16242         * sysdeps/wordsize-64/scandir.c: File removed.
16243         * sysdeps/wordsize-64/scandir64.c: File removed.
16244         * sysdeps/wordsize-64/scandirat.c: File removed.
16245         * sysdeps/wordsize-64/scandirat64.c: File removed.
16246         * sysdeps/wordsize-64/versionsort.c: File removed.
16247         * sysdeps/wordsize-64/versionsort64.c: File removed.
16248         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
16249         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
16250         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
16251         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
16252         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
16253         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
16254         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
16255         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
16256
16257         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
16258         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16259         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
16260         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16261         [defined __arch64__ || defined __sparcv9]
16262         (__INO_T_MATCHES_INO64_T): New macro.
16263         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16264         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
16265         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
16266         * sysdeps/unix/sysv/linux/bits/dirent.h
16267         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
16268         (_DIRENT_MATCHES_DIRENT64): New macro.
16269
16270         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
16271         Define lockf64 as an alias.
16272         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
16273         Define fseeko64 as an alias.
16274         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
16275         Define ftello64 as an alias.
16276         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
16277         Define _IO_fgetpos64 and fgetpos64 as aliases.
16278         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
16279         Define _IO_fsetpos64 and fsetpos64 as aliases.
16280         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
16281         Conditionalize body on this.
16282         * libio/fseeko64.c: Likewise.
16283         * libio/ftello64.c: Likewise.
16284         * libio/iofgetpos64.c: Likewise.
16285         * libio/iofsetpos64.c: Likewise.
16286         * sysdeps/wordsize-64/lockf.c: File removed.
16287         * sysdeps/wordsize-64/lockf64.c: File removed.
16288         * sysdeps/wordsize-64/fseeko.c: File removed.
16289         * sysdeps/wordsize-64/fseeko64.c: File removed.
16290         * sysdeps/wordsize-64/ftello.c: File removed.
16291         * sysdeps/wordsize-64/ftello64.c: File removed.
16292         * sysdeps/wordsize-64/iofgetpos.c: File removed.
16293         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
16294         * sysdeps/wordsize-64/iofsetpos.c: File removed.
16295         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
16296         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
16297         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
16298         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
16299         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
16300         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
16301         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
16302         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
16303         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
16304         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
16305         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
16306
16307         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16308         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16309         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
16310         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16311         [defined __arch64__ || defined __sparcv9]
16312         (__OFF_T_MATCHES_OFF64_T): New macro.
16313         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16314         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16315         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16316         (__OFF_T_MATCHES_OFF64_T): New macro.
16317
16318 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16319
16320         * stdlib/secure-getenv.c (__secure_getenv): Replace
16321         GLIBC_2_16 with GLIBC_2_17.
16322
16323 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16324
16325         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
16326         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
16327
16328 2012-08-03  David S. Miller  <davem@davemloft.net>
16329
16330         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16331
16332 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16333
16334         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
16335         Remove.
16336         (__ASSUME_CORRECT_SI_PID): Likewise.
16337         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
16338         (__ASSUME_TMPFS_NAME): Likewise.
16339         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
16340         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
16341         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
16342         (HAVE_AUX_SECURE): Make definition unconditional.
16343         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
16344         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
16345
16346 2012-08-03  Roland McGrath  <roland@hack.frob.com>
16347
16348         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
16349         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
16350         * sysdeps/mach/hurd/eloop-threshold.h: New file.
16351         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16352         __eloop_threshold instead of SYMLOOP_MAX.
16353
16354         * sysdeps/generic/eloop-threshold.h: New file.
16355         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
16356         of MAXSYMLINKS.
16357         * elf/chroot_canon.c (chroot_canon): Likewise.
16358
16359 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16360
16361         [BZ #13717]
16362         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16363         Change to 2.6.0 everywhere.
16364         * sysdeps/unix/sysv/linux/configure: Regenerated.
16365         * sysdeps/unix/sysv/linux/kernel-features.h
16366         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
16367         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
16368         kernel versions.
16369         (__ASSUME_POSIX_TIMERS): Define unconditionally.
16370         (__ASSUME_FUTEX_REQUEUE): Remove.
16371         (__ASSUME_STATFS64): Define unconditionally.
16372         (__ASSUME_AT_SECURE): Likewise.
16373         (__ASSUME_CORRECT_SI_PID): Likewise.
16374         (__ASSUME_TGKILL): Define without depending on kernel version for
16375         i386.
16376         (__ASSUME_UTIMES): Likewise.
16377         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
16378         kernel version.
16379         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
16380         (__ASSUME_TMPFS_NAME): Likewise.
16381         * README: Update reference to Linux kernel versions.
16382
16383 2012-08-02  Marek Polacek  <polacek@redhat.com>
16384
16385         [BZ# 14150]
16386         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
16387         libc_cv_asm_type_prefix with %.
16388         * configure: Regenerated.
16389         * include/libc-symbols.h: Remove comment about
16390         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16391         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
16392         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
16393         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
16394         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
16395         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16396         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
16397         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
16398         * elf/tst-unique2mod1.c: Likewise.
16399         * elf/tst-unique1mod2.c: Likewise.
16400         * elf/tst-unique1mod1.c: Likewise.
16401         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
16402         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
16403         Replace ASM_TYPE_DIRECTIVE with .type.
16404         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16405         * sysdeps/i386/sysdep.h: Likewise.
16406         * sysdeps/x86_64/sysdep.h: Likewise.
16407         * sysdeps/sh/sysdep.h: Likewise.
16408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16409         Do not define ASM_TYPE_DIRECTIVE.
16410         * sysdeps/powerpc/sysdep.h: Likewise.
16411         * sysdeps/powerpc/powerpc32/sysdep.h:
16412         Replace ASM_TYPE_DIRECTIVE with .type.
16413         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
16414         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16415         * sysdeps/i386/fpu/e_powf.S: Likewise.
16416         * sysdeps/i386/fpu/e_expl.S: Likewise.
16417         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16418         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16419         * sysdeps/i386/fpu/e_pow.S: Likewise.
16420         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
16421         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16422         * sysdeps/i386/fpu/s_expm1.S: Likewise.
16423         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
16424         * sysdeps/i386/fpu/e_log2.S: Likewise.
16425         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16426         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16427         * sysdeps/i386/fpu/e_powl.S: Likewise.
16428         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16429         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
16430         * sysdeps/i386/fpu/e_logl.S: Likewise.
16431         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
16432         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
16433         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
16434         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16435         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16436         * sysdeps/i386/fpu/e_log.S: Likewise.
16437         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16438         * sysdeps/i386/fpu/e_logf.S: Likewise.
16439         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16440         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16441         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
16442         * sysdeps/i386/fpu/e_log10.S: Likewise.
16443         * sysdeps/i386/fpu/s_frexp.S: Likewise.
16444         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16445         * sysdeps/i386/fpu/s_asinh.S: Likewise.
16446         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
16447         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16448         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
16449         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
16450         * sysdeps/i386/i686/strtok.S: Likewise.
16451         * sysdeps/i386/i386-mcount.S: Likewise.
16452         * sysdeps/i386/strtok.S: Likewise.
16453         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
16454         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16455         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16456         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16457         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16458         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16459         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
16460         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
16461         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16462         * sysdeps/x86_64/_mcount.S: Likewise.
16463         * sysdeps/x86_64/strtok.S: Likewise.
16464         * sysdeps/sh/_mcount.S: Likewise.
16465
16466 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16467
16468         * libio/iofopen.c: Include <fcntl.h>.
16469         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
16470         (_IO_fopen64, fopen64): Define as aliases.
16471         * libio/iofopen64.c: Include <fcntl.h>.
16472         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
16473         Conditionalize body on this.
16474         * sysdeps/wordsize-64/iofopen.c: File removed.
16475         * sysdeps/wordsize-64/iofopen64.c: File removed.
16476
16477 2012-08-01  Marek Polacek  <polacek@redhat.com>
16478
16479         * libc/Makeconfig: Use elf in place of binfmt-subdir.
16480         Use dlfcn directly instead of a variable.
16481         (binfmt-subdir): Do not define.
16482         (dlfcn): Likewise.
16483
16484 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
16485
16486         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
16487         Remove all definitions.
16488         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
16489         <kernel-features.h>.
16490         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16491         (miss_F_GETOWN_EX): Remove all definitions.
16492         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
16493         macro definition.
16494         [!__ASSUME_FCNTL64]: Remove conditional code.
16495         [__ASSUME_FCNTL64]: Make code unconditional.
16496         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
16497         <kernel-features.h>.
16498         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16499         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
16500         (lockf64) [__NR_fcntl64]: Make code unconditional.
16501         (lockf64) [__ASSUME_FCNTL64]: Likewise.
16502
16503         * sysdeps/unix/sysv/linux/kernel-features.h
16504         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
16505         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
16506         Make code unconditional.
16507         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16508         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
16510         [__NR_vfork]: Make code unconditional.
16511         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16512         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
16514         [__NR_vfork]: Make code unconditional.
16515         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16516         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16517
16518 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16519
16520         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
16521         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
16522
16523         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16524         Define mkstemp64 as an alias.
16525         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16526         Define mkstemps64 as an alias.
16527         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16528         Define mkostemp64 as an alias.
16529         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16530         Define mkostemps64 as an alias.
16531         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
16532         Conditionalize body on this.
16533         * misc/mkostemp64.c: Likewise.
16534         * misc/mkostemps64.c: Likewise.
16535         * misc/mkstemps64.c: Likewise.
16536         * sysdeps/wordsize-64/mkstemp64.c: File removed.
16537         * sysdeps/wordsize-64/mkostemp64.c: File removed.
16538         * sysdeps/wordsize-64/mkostemp.c: File removed.
16539         * sysdeps/wordsize-64/mkstemp.c: File removed.
16540         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
16541         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
16542         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
16543         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
16544
16545         [BZ #14138]
16546         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
16547         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
16548         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
16549         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
16550
16551         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
16552         compat_symbol macros from <shlib-compat.h> rather than the underlying
16553         default_symbol_version and symbol_version macros, so that DEFAULT
16554         lines in shlib-versions are respected.
16555         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
16556
16557 2012-08-01  Florian Weimer  <fweimer@redhat.com>
16558
16559         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
16560         Declare with warn_unused_result.
16561         (setgid, setregid, setegid, setresgid): Likewise.
16562         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
16563         Likewise.
16564         * WUR-REPORT: Remove set*id functions.
16565
16566 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
16567
16568         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
16569
16570 2012-07-31  Roland McGrath  <roland@hack.frob.com>
16571
16572         [BZ #10191]
16573         * include/sys/socket.h (__libc_accept, __libc_accept4):
16574         Add attribute_hidden.
16575         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
16576
16577         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
16578         use of PTR_MANGLE.
16579         * inet/getnetgrent_r.c (setup): Likewise.
16580
16581         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
16582
16583 2012-07-31  David S. Miller  <davem@davemloft.net>
16584
16585         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16586
16587 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
16588
16589         [BZ #13629]
16590         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
16591         value between 1.0 and 2.0 and smaller part has absolute value less
16592         than 1.0.
16593         * math/s_clog10.c (__clog10): Likewise.
16594         * math/s_clog10f.c (__clog10f): Likewise.
16595         * math/s_clog10l.c (__clog10l): Likewise.
16596         * math/s_clogf.c (__clogf): Likewise.
16597         * math/s_clogl.c (__clogl): Likewise.
16598         * math/libm-test.inc (clog_test): Add more tests.
16599         (clog10_test): Likewise.
16600         * sysdeps/i386/fpu/libm-test-ulps: Update.
16601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16602
16603 2012-07-31  Florian Weimer  <fweimer@redhat.com>
16604
16605         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
16606         Exit with zero in case no suitable GID is found, and write a
16607         message to standard error.
16608
16609 2012-07-30  Roland McGrath  <roland@hack.frob.com>
16610
16611         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
16612         rather than to 1.
16613         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
16614         (MAXPATHLEN): Removed.
16615         (NOGROUP, NODEV): New macros.
16616         (setbit, clrbit, isset, isclr): New macros.
16617         (howmany, roundup, powerof2): New macros.
16618         (DEV_BSIZE): New macro.
16619
16620         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
16621         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
16622
16623         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
16624         definition on [!__NO_LONG_DOUBLE_MATH].
16625
16626         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
16627         PTR_MANGLE and PTR_DEMANGLE.
16628
16629         * socket/accept4.c (accept4): Rename to __libc_accept4.
16630         Define accept4 as a weak alias.
16631
16632         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
16633         on [_DIRENT_HAVE_D_TYPE].
16634         * io/ftw.c (ftw_dir): Likewise.
16635
16636         * io/xmknod.c (__xmknod): Don't check PATH for being null.
16637
16638         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
16639
16640         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
16641         Use the BSD numbers rather than the arbitrary ones we had.
16642         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
16643         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
16644         (SIGXCPU, SIGXFSZ): New macros.
16645         (_NSIG): Now 32.
16646
16647         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
16648         initializer on [_LIBC_REENTRANT].
16649
16650         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
16651         definitions inside [_POSIX_MAPPED_FILES].
16652
16653         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
16654
16655         * dirent/opendir.c: Include <fcntl.h>.
16656
16657         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
16658         (__libc_getspecific): Likewise.
16659         (__libc_key_create): Likewise.
16660
16661         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
16662         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
16663         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
16664         (tmpfile64): Define as alias.
16665         * sysdeps/wordsize-64/tmpfile.c: File removed.
16666         * sysdeps/wordsize-64/tmpfile64.c: File removed.
16667         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
16668         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
16669
16670         * stdio-common/vfscanf.c: Include <stdbool.h>.
16671         * nss/makedb.c: Likewise.
16672         * stdio-common/_i18n_number.h: Likewise.
16673         * argp/argp-help.c: Likewise.
16674         * posix/wordexp.c: Likewise.
16675         * sysdeps/posix/spawni.c: Likewise.
16676         * nss/nss_files/files-initgroups.c: Likewise.
16677         * stdio-common/reg-modifier.c: Include <stdlib.h>.
16678         * nss/nss_files/files-initgroups.c: Likewise.
16679         * nss/nss_db/db-netgrp.c: Likewise.
16680         * nss/nss_db/db-initgroups.c: Likewise.
16681         * io/fchmodat.c: Include <sys/stat.h>.
16682
16683         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
16684         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
16685
16686         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
16687         [HAVE_MMAP].
16688
16689         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
16690         Add multiple inclusion protection.
16691
16692 2012-07-27  David S. Miller  <davem@davemloft.net>
16693
16694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16695
16696 2012-07-27  Gary Benson  <gbenson@redhat.com>
16697
16698         [BZ #14298]
16699         * elf/rtld.c: Include <stap-probe.h>.
16700         (dl_main): Added static probes "init_start" and "init_complete".
16701         * elf/dl-load.c: Include <stap-probe.h>.
16702         (lose): Take new parameter "nsid".
16703         Added static probe "map_failed".
16704         (_dl_map_object_from_fd): Pass namespace id to lose.
16705         Added static probe "map_start".
16706         (open_verify): Pass namespace id to lose.
16707         * elf/dl-open.c: Include <stap-probe.h>.
16708         (dl_open_worker) Added static probes "map_complete", "reloc_start"
16709         and "reloc_complete".
16710         * elf/dl-close.c: Include <stap-probe.h>.
16711         (_dl_close_worker): Added static probes "unmap_start" and
16712         "unmap_complete".
16713         * elf/rtld-debugger-interface.txt: New file documenting the above.
16714
16715 2012-07-26  Roland McGrath  <roland@hack.frob.com>
16716
16717         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
16718         rather than a string variable.
16719         * sunrpc/rpc_main.c (h_output): Likewise.
16720         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
16721
16722 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
16723
16724         * inet/check_native.c: New file.
16725
16726 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
16727
16728         [BZ #13629]
16729         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
16730         if larger part has absolute value 1.0.
16731         * math/s_clog10.c (__clog10): Likewise.
16732         * math/s_clog10f.c (__clog10f): Likewise.
16733         * math/s_clog10l.c (__clog10l): Likewise.
16734         * math/s_clogf.c (__clogf): Likewise.
16735         * math/s_clogl.c (__clogl): Likewise.
16736         * math/libm-test.inc (clog_test): Add more tests.
16737         (clog10_test): Likewise.
16738         * sysdeps/i386/fpu/libm-test-ulps: Update.
16739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16740
16741         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
16742         (pltexit): Likewise.
16743         (La_regs): Likewise.
16744         (La_retval): Likewise.
16745         (int_retval): Likewise.
16746         Update #error for removed macros to refer only to definitions in
16747         tst-audit.h.
16748         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
16749         macro.
16750         (pltexit): Likewise.
16751         (La_regs): Likewise.
16752         (La_retval): Likewise.
16753         (int_retval): Likewise.
16754         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
16755         macro.
16756         (pltexit): Likewise.
16757         (La_regs): Likewise.
16758         (La_retval): Likewise.
16759         (int_retval): Likewise.
16760         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
16761         macro.
16762         (pltexit): Likewise.
16763         (La_regs): Likewise.
16764         (La_retval): Likewise.
16765         (int_retval): Likewise.
16766         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
16767         macro.
16768         (pltexit): Likewise.
16769         (La_regs): Likewise.
16770         (La_retval): Likewise.
16771         (int_retval): Likewise.
16772         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
16773         macro.
16774         (pltexit): Likewise.
16775         (La_regs): Likewise.
16776         (La_retval): Likewise.
16777         (int_retval): Likewise.
16778         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
16779         macro.
16780         (pltexit): Likewise.
16781         (La_regs): Likewise.
16782         (La_retval): Likewise.
16783         (int_retval): Likewise.
16784         * sysdeps/generic/tst-audit.h: Update comment to refer only to
16785         macro definitions in tst-audit.h.
16786         * sysdeps/i386/tst-audit.h: New file.
16787         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
16788         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
16789         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
16790         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
16791         * sysdeps/sh/tst-audit.h: Likewise.
16792         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
16793         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
16794         * sysdeps/x86_64/tst-audit.h: Likewise.
16795
16796 2012-07-26  Andreas Jaeger  <aj@suse.de>
16797
16798         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
16799         ptrace.
16800
16801         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
16802         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
16803         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
16804         PTRACE_O_MASK.
16805         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
16806         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
16807         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
16808
16809         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
16810         value.
16811
16812         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
16813         _sigsys.
16814         (si_call_addr, si_syscall, si_arch): Define new macro.
16815         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
16816         _sigsys.
16817         (si_call_addr, si_syscall, si_arch): Define new marcro.
16818         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
16819         _sigsys.
16820         (si_call_addr, si_syscall, si_arch): Define new macro.
16821         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
16822         _sigsys.
16823         (si_call_addr, si_syscall, si_arch): Define new macro.
16824
16825 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
16826
16827         [BZ #13717]
16828         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16829         Change to 2.4.21 where previously 2.4.1.
16830         * sysdeps/unix/sysv/linux/configure: Regenerated.
16831         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
16832         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
16833         Linux kernel version.
16834         (__ASSUME_STD_AUXV): Remove.
16835         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
16836         kernel version.
16837         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
16838         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
16839         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
16840         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
16841         (__ASSUME_NETLINK_SUPPORT): Likewise.
16842         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
16843         (__no_netlink_support): Remove conditional definition.
16844         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
16845         Remove.
16846         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
16847         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
16848         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
16849         (if_nameindex_ioctl): Remove.
16850         (if_nameindex_netlink): Do not handle __no_netlink_support.
16851         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
16852         code.
16853         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
16854         Remove conditional code.
16855         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
16856         code.
16857         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
16858         unconditional.
16859         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
16860         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
16861         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
16862         Remove.
16863         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
16864         [!__ASSUME_STD_AUXV]: Remove conditional code.
16865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
16866         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
16867         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
16868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
16869         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
16870         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
16871         code.
16872         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
16873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
16874         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
16875         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
16876         conditional code.
16877         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
16878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
16879         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
16880         code.
16881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
16882         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
16883         conditional code.
16884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
16885         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16886         code unconditional.
16887         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16888         conditional code.
16889         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16890         unconditional.
16891         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16892         conditional code.
16893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16894         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16895         unconditional.
16896         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16897         conditional code.
16898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
16899         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16900         code unconditional.
16901         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16902         conditional code.
16903         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16904         unconditional.
16905         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16906         conditional code.
16907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
16908         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16909         code unconditional.
16910         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16911         conditional code.
16912         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16913         unconditional.
16914         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16915         conditional code.
16916
16917 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
16918
16919         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
16920         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
16921         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
16922         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
16923         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
16924         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
16925         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16926         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16927         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
16928         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
16929         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
16930         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
16931         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
16932         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
16933         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
16934         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
16935         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
16936         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
16937         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
16938         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
16939         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
16940         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
16941         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16942
16943 2012-07-25  Florian Weimer  <fweimer@redhat.com>
16944
16945         * Versions.def: Add GLIBC_2.17.
16946         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
16947         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
16948         Introduce __libc_secure_getenv.
16949         * stdlib/Versions (2.17): Add secure_getenv
16950         (GLIBC_PRIVATE): Add __libc_secure_getenv.
16951         * stdlib/secure-getenv.c: Rename __secure_getenv to
16952         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
16953         symbol __secure_getenv for GLIBC_2.0.
16954         * stdlib/tst-secure-getenv.c: New.
16955         * stdlib/Makefile (tests): Add testcase.
16956         * manual/startup.texi (Environment Access): Document
16957         secure_getenv.
16958         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
16959         __libc_secure_getenv.
16960         * inet/ruserpass.c (ruserpass): Likewise.
16961         * malloc/mtrace.c (mtrace): Likewise.
16962         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
16963         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
16964         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
16965         * sysdeps/posix/tempname.c: Likewise.  Evaluate
16966         HAVE_SECURE_GETENV.
16967         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
16968         __secure_getenv to __libc_secure_getenv.
16969         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
16970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16971         Likewise.
16972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16973         Likewise.
16974         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
16975         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
16976         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
16977         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
16978         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
16979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
16980         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
16981
16982 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
16983
16984         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
16985         (struct La_i86_retval): Likewise.
16986         (struct La_x86_64_regs): Likewise.
16987         (struct La_x86_64_retval): Likewise.
16988         (struct La_x32_regs): Likewise.
16989         (struct La_x32_retval): Likewise.
16990         (struct La_ppc32_regs): Likewise.
16991         (struct La_ppc32_retval): Likewise.
16992         (struct La_ppc64_regs): Likewise.
16993         (struct La_ppc64_retval): Likewise.
16994         (struct La_sh_regs): Likewise.
16995         (struct La_sh_retval): Likewise.
16996         (struct La_s390_32_regs): Likewise.
16997         (struct La_s390_32_retval): Likewise.
16998         (struct La_s390_64_regs): Likewise.
16999         (struct La_s390_64_retval): Likewise.
17000         (struct La_sparc32_regs): Likewise.
17001         (struct La_sparc32_retval): Likewise.
17002         (struct La_sparc64_regs): Likewise.
17003         (struct La_sparc64_retval): Likewise.
17004         (struct audit_ifaces): Remove architecture-specific pltenter and
17005         pltexit members.
17006         * sysdeps/i386/ldsodefs.h: New file.
17007         * sysdeps/powerpc/ldsodefs.h: Likewise.
17008         * sysdeps/s390/ldsodefs.h: Likewise.
17009         * sysdeps/sh/ldsodefs.h: Likewise.
17010         * sysdeps/sparc/ldsodefs.h: Likewise.
17011         * sysdeps/x86_64/ldsodefs.h: Likewise.
17012
17013 2012-07-25  Marek Polacek  <polacek@redhat.com>
17014
17015         [BZ #6808]
17016         * math/libm-test.inc (yn_test): Add another test.
17017         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
17018         to ERANGE when the result is +-Inf.
17019         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
17020         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
17021         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
17022         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
17023
17024 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
17025
17026         * conform/data/time.h-data (NULL): Use macro-constant.  Require
17027         equal to 0.
17028         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
17029         clock_t.
17030         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
17031
17032 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
17033
17034         * configure.in <sysdeps resolving>: Correct printing
17035         Implies_before.
17036         * configure: Regenerate.
17037
17038 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
17039
17040         * math/w_ilogb.c: Include <limits.h>.
17041         * math/w_ilogbl.c: Likewise.
17042
17043 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
17044
17045         * manual/lang.texi (__va_copy): Document primarily as ISO C99
17046         va_copy.  Document allowing for unavailable va_copy only as
17047         pre-C99 compatibility.
17048         * manual/string.texi (Copying and Concatenation): Use va_copy
17049         instead of __va_copy in concat example.
17050
17051 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
17052
17053         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
17054         (__sendto): Use create_address_port.  Initialize APORT and deallocate
17055         it if not null.
17056
17057         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
17058         with O_NOLINK passed to __file_name_lookup.
17059
17060         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
17061         with O_NOLINK passed to __file_name_lookup.
17062
17063         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
17064         negative N or less than NGIDS.
17065
17066         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
17067         type to string_t.  Set ERANGE as errno and return it if NAME is not big
17068         enough.  Use memcpy instead of strncpy.
17069
17070 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
17071
17072         * elf/Makefile (check-data): Remove.
17073         (localplt.data): New vpath directive.
17074         ($(objpfx)check-localplt.out): Use localplt.data from vpath
17075         instead of $(check-data).
17076         * scripts/data/localplt-generic.data: Move to ...
17077         * sysdeps/generic/localplt.data: ... here.
17078         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
17079         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
17080         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
17081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
17082         ... here.
17083         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
17084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
17085         ... here.
17086         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
17087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
17088         ... here.
17089         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
17090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
17091         ... here.
17092         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
17093         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
17094         ... here.
17095         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
17096         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
17097         ... here.
17098
17099 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17100
17101         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
17102         PPC32 and PPC64 files.
17103         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
17104         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
17105
17106 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17107
17108         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
17109         __makecontext_ret to ...
17110         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
17111         ... here and call exit if uc_link is NULL.  New file.
17112         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
17113         __makecontext_ret.S.
17114         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
17115         __makecontext_ret to ...
17116         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
17117         ... here and call exit if uc_link is NULL.  New file.
17118         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
17119         __makecontext_ret.S.
17120
17121 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17122
17123         * elf/elf.h (R_390_IRELATIVE): New definition.
17124         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
17125         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
17126         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
17127         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17128         (elf_machine_lazy_rel): Likewise.
17129         * sysdeps/s390/dl-irel.h: New file.
17130         * sysdeps/s390/s390-64/memcpy.S: New asm code.
17131         * sysdeps/s390/s390-64/memset.S: New asm code.
17132         * sysdeps/s390/s390-64/memcmp.S: New asm code.
17133         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
17134         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
17135         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
17136         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
17137         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
17138         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
17139         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
17140         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
17141         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
17142         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
17143         * sysdeps/s390/s390-32/memcpy.S: New asm code.
17144         * sysdeps/s390/s390-32/memset.S: New asm code.
17145         * sysdeps/s390/s390-32/memcmp.S: New asm code.
17146
17147 2012-07-17  Marek Polacek  <polacek@redhat.com>
17148
17149         [BZ #14349]
17150         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
17151         * sysdeps/s390/s390-64/configure.in: Likewise.
17152         * sysdeps/sparc/configure.in: Likewise.
17153         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
17154         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
17155         * sysdeps/i386/configure.in: Likewise.
17156         * sysdeps/x86_64/configure.in: Likewise.
17157         * sysdeps/sh/configure.in: Likewise.
17158         * sysdeps/s390/s390-32/configure: Regenerated.
17159         * sysdeps/s390/s390-64/configure: Likewise.
17160         * sysdeps/x86_64/configure: Likewise.
17161         * sysdeps/sh/configure: Likewise.
17162         * sysdeps/powerpc/powerpc64/configure: Likewise.
17163         * sysdeps/powerpc/powerpc32/configure: Likewise.
17164         * sysdeps/sparc/configure: Likwise.
17165         * sysdeps/i386/configure: Likewise.
17166
17167         * elf/dl-open.c: Comment fixes.
17168
17169 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
17170
17171         * Makefile [CXX] (check-data): Remove.
17172         [CXX] (c++-types.data): New vpath directive.
17173         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
17174         vpath.  Do not allow for C++ type data being missing.
17175         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
17176         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
17177         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
17178         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
17179         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
17180         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
17181         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
17182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
17183         ... here.
17184         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
17185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
17186         ... here.
17187         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
17188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
17189         ... here.
17190         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
17191         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
17192         ... here.
17193         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
17194         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
17195         ... here.
17196         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
17197         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
17198         ... here.
17199         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
17200         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
17201         ... here.
17202         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
17203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
17204
17205         * elf/tls-macros.h (TLS_LE): Move architecture-specific
17206         definitions to architecture-specific files.
17207         (TLS_IE): Likewise.
17208         (TLS_LD): Likewise.
17209         (TLS_GD): Likewise.
17210         * sysdeps/i386/tls-macros.h: New file.
17211         * sysdeps/powerpc/tls-macros.h: Likewise.
17212         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
17213         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
17214         * sysdeps/sh/tls-macros.h: Likewise.
17215         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
17216         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
17217         * sysdeps/x86_64/tls-macros.h: Likewise.
17218
17219 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17220
17221         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
17222         zero value for regular exit case.
17223
17224         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
17225         (__start_context): Preserve zero value for regular exit case.
17226
17227 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17228             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17229
17230         * manual/setjmp.texi (setcontext): Clarify normal process
17231         termination when uc_link is the null pointer.
17232         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
17233         exit call.
17234
17235 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
17236
17237         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
17238         preprocessor.  Test for each exception mask separately.
17239
17240 2012-07-16  Andreas Jaeger  <aj@suse.de>
17241
17242         * po/ru.po: Update from translation team.
17243
17244 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
17245
17246         * conform/data/string.h-data (NULL): Use macro-constant.  Require
17247         equal to 0.
17248         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
17249         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
17250         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
17251         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
17252         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17253
17254 2012-07-13  Andreas Jaeger  <aj@suse.de>
17255
17256         * po/fr.po: Update from translation team.
17257
17258 2012-07-12  Marek Polacek  <polacek@redhat.com>
17259
17260         [BZ #14173]
17261         * math/libm-test.inc (yn_test): Add test for BZ #14173.
17262         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
17263         loop condition.
17264
17265 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
17266
17267         [BZ #13717]
17268         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17269         Change to 2.4.1 where previously 2.4.0.
17270         * sysdeps/unix/sysv/linux/configure: Regenerated.
17271         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
17272         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
17273         version.
17274         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
17275         (__ASSUME_AT_CLKTCK): Remove.
17276         (__ASSUME_AT_PAGESIZE): Likewise.
17277         (__ASSUME_AT_XID): Likewise.
17278         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
17279         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
17280         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
17281         unconditionally.
17282         (HAVE_AUX_PAGESIZE): Likewise.
17283         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
17284         [__ASSUME_AT_CLKTCK]: Make code unconditional.
17285         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
17286
17287 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
17288
17289         [BZ #14307]
17290         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
17291         the temporary buffer used to invoke __gethostbyname2_r,
17292         __gethostbyaddr_r and gethostbyname4_r to make room for struct
17293         host_data / struct gaih_addrtuple.
17294         * resolv/nss_dns/dns-host.c (global scope): Move definition of
17295         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
17296         header file nss/nsswitch.h.
17297         * nss/nsswitch.h (global scope): Add definition of implementation
17298         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
17299         resolv/nss_dns/dns-host.c).
17300
17301 2012-07-11  Andreas Jaeger  <aj@suse.de>
17302
17303         * po/fr.po: Update from translation team.
17304
17305         * po/sv.po: Update from translation team
17306         * po/fr.po: Another update from translation team.
17307
17308 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17309
17310         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
17311         for subnormals or multiply small sinh result by itself.
17312         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17313         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17314
17315 2012-07-11  David S. Miller  <davem@davemloft.net>
17316
17317         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17318
17319 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
17320
17321         [BZ #14347]
17322         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
17323         (INTERNAL_MARK): Shift it here.
17324
17325 2012-07-10  Marek Polacek  <polacek@redhat.com>
17326
17327         [BZ #14151]
17328         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
17329         libc_cv_asm_global_directive with .globl.
17330         * configure: Regenerated.
17331         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
17332         with .globl.
17333         * sysdeps/i386/configure: Regenerated.
17334         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
17335         with .globl.
17336         * sysdeps/x86_64/configure: Regenerated.
17337         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
17338         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
17339         * elf/tst-unique2mod2.c: Likewise.
17340         * elf/tst-unique2mod1.c: Likewise.
17341         * elf/tst-unique1mod2.c: Likewise.
17342         * elf/tst-unique1mod1.c: Likewise.
17343         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17344         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17345         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17346         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17347         * sysdeps/mach/sysdep.h: Likewise.
17348         * sysdeps/i386/sysdep.h: Likewise.
17349         * sysdeps/i386/i386-mcount.S: Likewise.
17350         * sysdeps/x86_64/_mcount.S: Likewise.
17351         * sysdeps/x86_64/sysdep.h: Likewise.
17352         * sysdeps/sh/_mcount.S: Likewise.
17353         * sysdeps/sh/sysdep.h: Likewise.
17354         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
17355         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
17356         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
17357         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
17358         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
17359         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
17360         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
17361         * locale/localeinfo.h: Likewise.
17362         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
17363         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
17364
17365 2012-07-09  Roland McGrath  <roland@hack.frob.com>
17366
17367         [BZ #14336]
17368         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
17369         system".
17370         * manual/message.texi (The Uniforum approach): Likewise.
17371         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
17372         (glibc iconv Implementation): Likewise.
17373
17374 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
17375
17376         [BZ #14337]
17377         * math/s_clog.c (__clog): Avoid scaling a value down where that
17378         could result in underflow.
17379         * math/s_clog10.c (__clog10): Likewise.
17380         * math/s_clog10f.c (__clog10f): Likewise.
17381         * math/s_clog10l.c (__clog10l): Likewise.
17382         * math/s_clogf.c (__clogf): Likewise.
17383         * math/s_clogl.c (__clogl): Likewise.
17384         * math/libm-test.inc (clog_test): Add more tests.
17385         (clog10_test): Likewise.
17386         * sysdeps/i386/fpu/libm-test-ulps: Update.
17387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17388
17389 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
17390
17391         [BZ #14283]
17392         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
17393         by 7 not 8 to examine high bit of fractional part.
17394
17395         [BZ #14042]
17396         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
17397         for call to __mcount_internal.
17398         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
17399         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
17400         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
17401
17402 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
17403
17404         [BZ #14154]
17405         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
17406         approximation for values within 0x1p-13f of an odd multiple of
17407         pi/4.
17408         * math/libm-test.inc (tan_test): Do not allow spurious underflow
17409         exception.  Add more tests.
17410         * sysdeps/i386/fpu/libm-test-ulps: Update.
17411
17412         [BZ #6778]
17413         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
17414         inputs and return -1 for them.  Do not check for +Inf in case not
17415         reachable for +Inf.
17416         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
17417         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
17418         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17419         and return -1 for them.  Do not check for +Inf in case not
17420         reachable for +Inf.
17421         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
17422         define.
17423         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17424         and return -1 for them.  Do not check for +Inf in case not
17425         reachable for +Inf.
17426         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
17427         spurious underflow.
17428         * sysdeps/i386/fpu/libm-test-ulps: Update.
17429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17430
17431 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
17432
17433         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
17434
17435 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
17436
17437         [BZ #14157]
17438         [BZ #14331]
17439         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
17440         could result in spurious underflow.  Scale down values above
17441         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
17442         * math/s_csqrtf.c (__csqrtf): Likewise.
17443         * math/s_csqrtl.c (__csqrtl): Likewise.
17444         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
17445         spurious underflow.
17446         * sysdeps/i386/fpu/libm-test-ulps: Update.
17447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17448
17449 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
17450
17451         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
17452         xopen-msg.sed.
17453         * catgets/xopen-msg.awk: New file.
17454         * catgets/xopen-msg.sed: Removed.
17455
17456         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
17457         po2text.sed.
17458         * intl/po2test.awk: New file.
17459         * intl/po2test.sed: Removed.
17460
17461 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
17462
17463         [BZ #14328]
17464         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
17465         or multiply small sinh result by itself.
17466         * math/s_ctanf.c (__ctanf): Likewise.
17467         * math/s_ctanh.c (__ctanh): Likewise.
17468         * math/s_ctanhf.c (__ctanhf): Likewise.
17469         * math/s_ctanhl.c (__ctanhl): Likewise.
17470         * math/s_ctanl.c (__ctanl): Likewise.
17471         * math/libm-test.inc (ctan_test_tonearest): New function.
17472         (ctan_test_towardzero): Likewise.
17473         (ctan_test_downward): Likewise.
17474         (ctan_test_upward): Likewise.
17475         (ctanh_test_tonearest): Likewise.
17476         (ctanh_test_towardzero): Likewise.
17477         (ctanh_test_downward): Likewise.
17478         (ctanh_test_upward): Likewise.
17479         (main): Call these new functions.
17480         * sysdeps/i386/fpu/libm-test-ulps: Update.
17481         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17482
17483 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
17484
17485         * .gitignore: Delete /ports entry.
17486
17487 2012-07-03  Andreas Jaeger  <aj@suse.de>
17488
17489         * po/bg.po: Update from translation team.
17490         * po/cs.po: Likewise.
17491         * po/de.po: Likewise.
17492         * po/hr.po: Likewise.
17493         * po/nl.pl: Likewise.
17494         * po/pl.po: Likewise.
17495         * po/vi.po: Likewise.
17496
17497 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
17498
17499         * Makeconfig [!+link] (+link-before-libc): New variable.
17500         [!+link] (+link-after-libc): Likewise.
17501         [!+link] (+link-tests): Likewise.
17502         [!+link] (+link): Define in terms of $(+link-before-libc) and
17503         $(+link-after-libc).
17504         [!+link-static] (+link-static-before-libc): New variable.
17505         [!+link-static] (+link-static-after-libc): Likewise.
17506         [!+link-static] (+link-static-tests): Likewise.
17507         [!+link-static] (+link-static): Define in terms of
17508         $(+link-static-before-libc) and $(+link-static-after-libc).
17509         [build-shared] (link-libc-before-gnulib): New variable.
17510         [build-shared] (link-libc-tests): Likewise.
17511         [build-shared] (link-libc): Define in terms of
17512         $(link-libc-before-gnulib).
17513         [!build-shared] (link-libc-tests): New variable.
17514         (link-libc-static-tests): New variable.
17515         [!gnulib] (gnulib-arch): New variable.
17516         [!gnulib] (gnulib-tests): Likewise.
17517         [!gnulib] (static-gnulib-arch): Likewise.
17518         [!gnulib] (static-gnulib-tests): Likewise.
17519         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
17520         Define with "=" instead of ":=".
17521         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
17522         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
17523         * Rules (binaries-all-notests): New variable.
17524         (binaries-all-tests): Likewise.
17525         (binaries-static-notests): Likewise.
17526         (binaries-static-tests): Likewise.
17527         (binaries-all): Define using $(binaries-all-notests) and
17528         $(binaries-all-tests).
17529         (binaries-static): Define using $(binaries-static-notests) and
17530         $(binaries-static-tests).
17531         (binaries-shared-tests): New variable.
17532         (binaries-shared-notests): Likewise.
17533         (binaries-shared): Remove variable.
17534         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
17535         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
17536         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
17537         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
17538         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
17539         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
17540         * elf/Makefile (sln-modules): New variable.
17541         (extra-objs): Add $(sln-modules:=.o).
17542         (ldconfig-modules): Add static-stubs.
17543         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
17544         * elf/static-stubs.c: New file.
17545
17546         [BZ #14283]
17547         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
17548         by 7 not 8 to examine high bit of fractional part.  Use volatile
17549         variables when splitting into final array of floats if
17550         __FLT_EVAL_METHOD__ != 0.
17551         * math/libm-test.inc (cos_test): Add another test.
17552         (sin_test): Likewise.
17553         * sysdeps/i386/fpu/libm-test-ulps: Update.
17554
17555         [BZ #14273]
17556         * math/libm-test.inc (cosh_test): Add more tests.
17557
17558         * version.h (RELEASE): Set to "development".
17559         (VERSION): Set to "2.16.90".
17560
17561 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
17562
17563         * NEWS: Update copyright. Remove last-updated date.
17564         Mention math library bug fixes and timezone data changes.
17565         * README: Mention GNU/Hurd, x32, and HPPA support status.
17566
17567 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
17568
17569         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
17570
17571 2012-06-27  Andreas Jaeger  <aj@suse.de>
17572
17573         * manual/contrib.texi (Contributors): Add Samuel Thibault.
17574
17575 2012-06-25  Andreas Jaeger  <aj@suse.de>
17576
17577         * sysdeps/s390/fpu/libm-test-ulps: Update.
17578
17579 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
17580             Thomas Schwinge  <thomas@codesourcery.com>
17581
17582         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
17583         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
17584         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
17585         fanotify_mark.
17586
17587 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
17588
17589         * sysdeps/mach/start.c: Remove file.
17590         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
17591         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
17592         * sysdeps/sh/init-first.c: Likewise.
17593
17594         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
17595         registers for frame unwinding purposes, add CFI directives.
17596         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17597         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
17598         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
17599         Likewise.
17600
17601         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
17602         __fortify_fail returning.
17603         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17604
17605         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
17606         sysdeps/sh/____longjmp_chk.S.
17607         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
17608         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
17609         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
17610         (gen-as-const-headers): Append sigaltstack-offsets.sym.
17611
17612         * sysdeps/sh/abort-instr.h: New file.
17613         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
17614         process in case exit returns.
17615
17616         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
17617         initialize the GOT register before use.
17618
17619         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
17620         calculation of ARGC > 4.
17621
17622         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
17623         meaningful names to some local labels.
17624
17625 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17626             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17627
17628         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
17629         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
17630         (__arch_compare_and_exchange_val_16_acq): Likewise.
17631         (__arch_compare_and_exchange_val_32_acq): Likewise.
17632         (atomic_exchange_and_add): Fix gUSA sequence.
17633         (atomic_add): Likewise.
17634         (atomic_add_negative): Likewise.
17635         (atomic_add_zero): Likewise.
17636         (atomic_bit_test_set): Likewise.
17637
17638 2012-06-22  Andreas Schwab  <schwab@redhat.com>
17639
17640         [BZ #13579]
17641         * include/link.h (struct link_map): Add l_free_initfini.
17642         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
17643         l_initfini.
17644         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
17645         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
17646         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
17647         set.
17648
17649 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
17650
17651         * configure.in: Use AC_LANG_SOURCE.
17652         * configure: Regenerate.
17653
17654 2012-06-22  Roland McGrath  <roland@hack.frob.com>
17655
17656         * configure.in (libc_cv_localstatedir): New substituted variable.
17657         * configure: Regenerated.
17658         * config.make.in (localstatedir): New variable, substituted from
17659         libc_cv_localstatedir.
17660         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
17661         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
17662         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
17663         * sysdeps/gnu/configure: Regenerated.
17664
17665 2012-06-21  Jeff Law  <law@redhat.com>
17666
17667         [BZ #14277]
17668         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
17669         free.  Simplify list management for _LIBC case.
17670
17671 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
17672
17673         [BZ #14273]
17674         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
17675         Clear sign bit of 64-bit integer value before comparing against
17676         overflow value.
17677
17678         * sysdeps/mach/configure: Regenerated.
17679
17680 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
17681
17682         [BZ #14278]
17683         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
17684
17685 2012-06-21  Jeff Law  <law@redhat.com>
17686
17687         [BZ #13882]
17688         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
17689         uint16_t for elements in the "seen" array to avoid char overflows.
17690         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17691         * elf/dl-open.c (dl_open_worker): Likewise.
17692
17693 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
17694
17695         * scripts/list-sources.sh: Scan PORTS for translations.
17696         * po/libc.pot: Regenerated.
17697
17698 2012-06-21  Andreas Jaeger  <aj@suse.de>
17699
17700         [BZ #12194]
17701         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
17702         warning.
17703         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
17704         * bits/byteswap-16.h (__bswap_16): Likewise.
17705         * bits/byteswap.h (__bswap_constant_16): Likewise.
17706
17707 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17708
17709         [BZ #14117]
17710         * sysdeps/i386/fpu_control.h: Removed.
17711         * sysdeps/x86_64/fpu_control.h: Moved to ...
17712         * sysdeps/x86/fpu_control.h: Here.
17713
17714         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
17715         (_FPU_SETCW): Likewise.
17716
17717 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
17718
17719         [BZ #14117]
17720         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
17721         * sysdeps/x86/fpu/bits/mathinline.h: This.
17722         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
17723
17724         [BZ #14050]
17725         [BZ #14117]
17726         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
17727         functions if __x86_64__ is defined.
17728
17729 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
17730
17731         * string/endian.h: Add !__ASSEMBLER__ condition for including
17732         conversion interfaces.
17733
17734 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
17735
17736         [BZ #14241]
17737         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
17738         of ABS(x) in calculating zero to negative powers other than odd
17739         integers.
17740         * math/libm-test.inc (pow_test): Add more tests.
17741
17742 2012-06-15  Andreas Jaeger  <aj@suse.de>
17743
17744         * manual/contrib.texi (Contributors): Update entry of Liubov
17745         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
17746         Machado Filho.
17747
17748 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
17749
17750         * string/string.h: Add __wur to GNU version of strerror_r.
17751
17752 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
17753
17754         [BZ #14229]
17755         * string/Makefile (tests): Add tst-strtok_r.
17756         * string/tst-strtok_r.c: New file.
17757         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
17758         RAX_LP/RDX_LP on SAVE_PTR.
17759
17760 2012-06-14  Roland McGrath  <roland@hack.frob.com>
17761
17762         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
17763
17764 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
17765
17766         * libm_test.inc (csqrt_test): Allow more spurious underflow
17767         exceptions.
17768         (j0_test): Likewise.
17769         (j1_test): Likewise.
17770         (y0_test): Likewise.
17771         (y1_test): Likewise.
17772
17773 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
17774
17775         * po/Makefile (libc.pot): Use UTF-8 charset.
17776
17777 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
17778
17779         [BZ #14210]
17780         Suppress sign-conversion warning from FD_SET.
17781         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
17782         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
17783         not unsigned long int.
17784         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
17785
17786 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
17787
17788         [BZ #14050]
17789         [BZ #14117]
17790         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
17791         __extern_always_inline instead of __extern_inline.
17792         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
17793         (__signbit): Likewise.
17794         (__signbitl): Support C++ namespace.
17795         (lrintf): New inline function.
17796         (lrint): Likewise.
17797         (llrintf): Likewise.
17798         (llrint): Likewise.
17799         (fmaxf): Likewise.
17800         (fmax): Likewise.
17801         (fminf): Likewise.
17802         (fmin): Likewise.
17803         (rint): Likewise.
17804         (rintf): Likewise.
17805         (ceil): Likewise.
17806         (ceilf): Likewise.
17807         (floor): Likewise.
17808         (floorf): Likewise.
17809         (nearbyint): Likewise.
17810         (nearbyintf): Likewise.
17811
17812 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
17813
17814         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
17815         non-default versions.
17816
17817 2012-06-11  Roland McGrath  <roland@hack.frob.com>
17818
17819         [BZ #14218]
17820         * manual/argp.texi (Argp): Reword argp_parse description slightly.
17821
17822 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
17823
17824         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
17825         (FE_UPWARD, FE_DOWNWARD): Don't define.
17826         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
17827         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
17828
17829         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
17830         reading it.
17831         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
17832         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17833
17834 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17835
17836         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17837         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
17838         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
17839         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
17840
17841 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
17842
17843         [BZ #14117]
17844         * sysdeps/i386/fpu/bits/fenv.h: Removed.
17845         * sysdeps/i386/fpu/Implies: New file.
17846         * sysdeps/x86_64/fpu/Implies: Likewise.
17847         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
17848         * sysdeps/x86/fpu/bits/fenv.h: This.
17849
17850         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
17851         __SSE_MATH__.
17852
17853 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
17854
17855         [BZ #14134]
17856         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
17857         character 0xffff that matches the last element of the
17858         conversion table.
17859
17860 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17861
17862         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
17863         fmodl commit.
17864
17865 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17866
17867         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
17868         values higher than 25.6283.
17869
17870 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17871
17872         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
17873         subnormal exponent extraction and add some __builtin_expect.
17874         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
17875         Fix for subnormal mantissa calculation.
17876
17877 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
17878
17879         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
17880         cpu2 is -1 and errno is not ENOSYS.
17881
17882 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
17883
17884         [BZ #14117]
17885         * sysdeps/i386/i486/bits/string.h: Renamed to ...
17886         * sysdeps/x86/bits/string.h: This.
17887         * sysdeps/x86_64/bits/string.h: Removed.
17888
17889         * sysdeps/i386/i486/bits/string.h: Define inline functions only
17890         if not compiling for x86-64, but compiling for >= i486.
17891
17892         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
17893         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
17894
17895         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
17896         New macro from Linux kernel 3.4.0.
17897         (FP_XSTATE_MAGIC2): Likewise.
17898         (FP_XSTATE_MAGIC2_SIZE): Likewise.
17899         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
17900         (struct _fpx_sw_bytes): New struct.
17901         (struct _xsave_hdr): Likewise.
17902         (struct _ymmh_state): Likewise.
17903         (struct _xstate): Likewise.
17904
17905         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
17906         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
17907         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
17908         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
17909         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
17910         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
17911
17912         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
17913         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
17914         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
17915         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
17916         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
17917         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
17918
17919 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17920
17921         [BZ #13743]
17922         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
17923         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
17924         (sysdep_headers): Include sys/platform/ppc.h.
17925         * sysdeps/powerpc/test-gettimebase.c: Test for
17926         __ppc_get_timebase() to catch future ISA opcode/insn changes.
17927         * manual/Makefile (appendices): Include platform.texi.
17928         * manual/contrib.texi (Contributors): Update @node pointers.
17929         * manual/maint.texi (Maintenance): Likewise.
17930         (Platform): New node.
17931         * manual/platform.texi: New file.  Document the new features.
17932
17933 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
17934             Jakub Jelinek  <jakub@redhat.com>
17935
17936         [BZ #14188]
17937         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
17938         where __builtin_expect is unavailable.
17939
17940 2012-06-03  David S. Miller  <davem@davemloft.net>
17941
17942         * stdlib/longlong.h: Updated from GCC.
17943
17944 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
17945
17946         [BZ #14042]
17947         * sysdeps/powerpc/powerpc32/mcount.c: New file.
17948         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
17949         __mcount_internal.
17950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
17951         (GLIBC_2.16): Likewise.
17952
17953 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17954
17955         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
17956
17957 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
17958
17959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
17960         (default-abi): New variable.
17961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
17962         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
17963         variable.
17964         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
17965         Likewise.
17966         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
17967         Likewise.
17968         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
17969         Likewise.
17970
17971         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
17972         definition.  Document in comment.
17973
17974 2012-06-01  David S. Miller  <davem@davemloft.net>
17975
17976         * stdlib/longlong.h: Updated from GCC.
17977
17978 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17979
17980         [BZ #14117]
17981         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
17982         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
17983         sys/debugreg.h sys/io.h here.
17984         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
17985         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
17986         sys/io.h.
17987         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
17988         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
17989         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
17990         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
17991         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
17992         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
17993
17994         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
17995         Define only if __x86_64__ is defined.
17996
17997 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
17998
17999         [BZ #14048]
18000         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
18001         Use int64_t for variable i.
18002         * math/libm-test.inc (fmod_test): Add more tests.
18003
18004         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
18005         z computation is not scheduled after fetestexcept.
18006         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
18007         Use math_force_eval instead of asm to ensure calculation scheduled
18008         before exception test.
18009         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
18010         Ensure a1 + u.d computation is not scheduled after fetestexcept.
18011
18012 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
18013
18014         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
18015         computation is not scheduled after fetestexcept.
18016
18017 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18018
18019         [BZ #14117]
18020         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
18021         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
18022
18023 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18024
18025         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
18026         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
18027
18028 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18029
18030         [BZ #14117]
18031         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
18032         <bits/wordsize.h>.
18033         (__WCHAR_MIN): Support __WORDSIZE == 64.
18034         (__WCHAR_MAX): Likewise.
18035
18036         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
18037         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
18038
18039         [BZ #14183]
18040         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
18041         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
18042
18043         [BZ #14117]
18044         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
18045         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
18046
18047         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
18048         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
18049
18050         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
18051         Defined to 1 if __x86_64__ isn't defined.
18052         (_STAT_VER_LINUX_OLD): New.
18053         (st_atime): Remove duplicate.
18054         (st_mtime): Likewise.
18055         (st_ctime): Likewise.
18056
18057 2012-05-31  David S. Miller  <davem@davemloft.net>
18058
18059         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
18060         entries.
18061
18062 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
18063
18064         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
18065         gen-libm-test.pl.
18066
18067         [BZ #14132]
18068         * elf/dl-reloc.c: Include <_itoa.h>.
18069         (_dl_reloc_bad_type): Remove use of INTUSE.
18070         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
18071         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
18072         * stdio-common/psiginfo.c (psiginfo): Likewise.
18073         * stdio-common/psignal.c (psignal): Likewise.
18074         * string/strsignal.c (strsignal): Likewise.
18075         * include/signal.h (_sys_siglist): Declare hidden proto.
18076         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
18077         INTVARDEF with libc_hidden_data_def.
18078         * stdio-common/itoa-udigits.c: Likewise.
18079         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
18080         (_itoa_lower_digits_internal): Remove declaration.
18081         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
18082         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
18083         (_sys_sigabbrev_internal): Remove aliases.
18084         (_sys_siglist): Define hidden alias.
18085
18086 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
18087
18088         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18089         bits/sysctl.h.
18090
18091 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18092
18093         [BZ #14117]
18094         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
18095         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
18096
18097         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
18098         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
18099         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
18100         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
18101         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
18102         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
18103
18104         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
18105         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
18106         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
18107
18108         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
18109         with __addr.
18110         (insw): Likewise.
18111         (insl): Likewise.
18112         (outsb): Likewise.
18113         (outsw): Likewise.
18114         (outsl): Likewise.
18115
18116         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
18117         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
18118         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
18119
18120         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
18121         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
18122         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
18123         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
18124         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
18125         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
18126
18127         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
18128         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
18129
18130         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
18131         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
18132
18133         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
18134         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
18135         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
18136
18137         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
18138         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
18139         to ...
18140         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
18141
18142         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
18143         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
18144         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
18145
18146         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
18147         for x86-64.
18148         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
18149
18150 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
18151
18152         * math/math.h (M_El): Use two more decimal places.
18153         (M_LOG2El): Likewise.
18154         (M_LOG10El): Likewise.
18155         (M_LN2l): Likewise.
18156         (M_LN10l): Likewise.
18157         (M_PIl): Likewise.
18158         (M_PI_2l): Likewise.
18159         (M_PI_4l): Likewise.
18160         (M_1_PIl): Likewise.
18161         (M_2_PIl): Likewise.
18162         (M_2_SQRTPIl): Likewise.
18163         (M_SQRT2l): Likewise.
18164         (M_SQRT1_2l): Likewise.
18165
18166 2012-05-31  David S. Miller  <davem@davemloft.net>
18167
18168         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
18169         values between float registers.
18170         * sysdeps/sparc/sparc64/memset.S: Likewise.
18171         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18172
18173 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
18174
18175         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
18176         -D_FORTIFY_SOURCE=1.
18177         (CPPFLAGS-tst-longjmp_chk.c): Define.
18178         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
18179         (CPPFLAGS-tst-longjmp_chk2.c): Define.
18180         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
18181         CFLAGS-tst-wchar-h.c.
18182
18183 2012-05-31  Marek Polacek  <polacek@redhat.com>
18184
18185         [BZ #14132]
18186         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
18187         __endmntent_internal): Remove declaration.
18188         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
18189         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
18190         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
18191
18192 2012-05-30  David S. Miller  <davem@davemloft.net>
18193
18194         * sysdeps/sparc/sparc32/soft-fp/q_util.c
18195         (___Q_simulate_exceptions): Use real FP ops rather than writing
18196         into the %fsr.
18197         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
18198         Likewise.
18199
18200 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18201
18202         [BZ #14117]
18203         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
18204         * sysdeps/x86/bits/xtitypes.h: This.
18205
18206         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
18207         * sysdeps/x86/bits/wordsize.h: This.
18208
18209         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
18210         * sysdeps/x86/bits/huge_vall.h: This.
18211
18212         * sysdeps/i386/bits/select.h: Removed.
18213         * sysdeps/x86_64/bits/select.h: Renamed to ...
18214         * sysdeps/x86/bits/select.h: This.
18215
18216         * sysdeps/i386/bits/setjmp.h: Removed.
18217         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
18218         * sysdeps/x86/bits/setjmp.h: This.
18219
18220         * sysdeps/i386/bits/mathdef.h: Removed.
18221         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
18222         * sysdeps/x86/bits/mathdef.h: This.
18223
18224 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
18225
18226         [BZ #14132]
18227         * include/sys/socket.h (__connect_internal)
18228         (__libc_sa_len_internal): Remove declaration.
18229         (__connect, __libc_sa_len): Declare hidden_proto.
18230         (SA_LEN): Remove use of INTUSE.
18231         * socket/connect.c: Add libc_hidden_def.
18232         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
18233         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
18234         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
18235         alias.
18236         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
18237         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
18238         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
18239         of adding _internal alias.
18240
18241 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18242
18243         [BZ #14117]
18244         * sysdeps/i386/bits/link.h: Removed.
18245         * sysdeps/i386/bits/linkmap.h: Likewise.
18246         * sysdeps/x86_64/bits/link.h: Renamed to ...
18247         * sysdeps/x86/bits/link.h: This.
18248         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
18249         * sysdeps/x86/bits/linkmap.h: This.
18250
18251         * sysdeps/i386/bits/endian.h: Removed.
18252         * sysdeps/x86_64/bits/endian.h: Renamed to ...
18253         * sysdeps/x86/bits/endian.h: This.
18254
18255         * sysdeps/i386/bits/byteswap.h: Removed.
18256         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18257         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
18258         * sysdeps/x86/bits/byteswap.h: This.
18259         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
18260         * sysdeps/x86/bits/byteswap-16.h: This.
18261         * sysdeps/i386/Implies: Add x86.
18262         * sysdeps/x86_64/Implies: Likewise.
18263
18264 2012-05-30  David S. Miller  <davem@davemloft.net>
18265
18266         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
18267         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
18268         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
18269         (FP_TRAPPING_EXCEPTIONS): Define.
18270         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
18271         (FP_TRAPPING_EXCEPTIONS): Define.
18272         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
18273         subnormals only when inexact has been signalled or underflow
18274         exceptions are enabled.
18275         (_FP_PACK_CANONICAL): Likewise.
18276
18277 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18278
18279         [BZ #14183]
18280         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
18281         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
18282
18283 2012-05-30  Richard Henderson  <rth@twiddle.net>
18284
18285         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
18286         with #ifndef NOT_IN_libc.
18287
18288         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
18289         marked to avoid plt entry.
18290
18291 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18292
18293         [BZ #14112]
18294         * Makeconfig (default-abi): New macro.
18295         (abi-includes): Likewise.
18296         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
18297         $(abi-$(default-abi)-lib-soname) for soname if defined.
18298         ($(common-objpfx)gnu/lib-names.stmp): Generate from
18299         abi-variants.
18300         * Makefile (installed-stubs): Likewise.
18301         * include/stubs-biarch.h: Removed.
18302         * scripts/lib-names.awk: Only handle one library at a time.
18303         * scripts/soversions.awk: Remove WORDSIZE support.
18304         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
18305         entries.
18306         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
18307         Removed.
18308         (syscall-list-default-condition): Likewise.
18309         (syscall-list-default-condition): Likewise.
18310         (syscall-list-includes): Likewise.
18311         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
18312         syscall-list-* with abi-*.  Handle undefined abi-variants.
18313         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
18314         * sysdeps/unix/sysv/linux/i386/Implies: New file.
18315         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
18316         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
18317         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
18318         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
18319         Removed.
18320         (syscall-list-32-options): Likewise.
18321         (syscall-list-32-condition): Likewise.
18322         (syscall-list-64-options): Likewise.
18323         (syscall-list-64-condition): Likewise.
18324         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
18325         macro.
18326         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
18327         Renamed to ...
18328         (abi-*): This.
18329         (abi-64-ld-soname): New macro.
18330         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
18331         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
18332         Renamed to ...
18333         (abi-*): This.
18334         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
18335         * sysdeps/x86_64/x32/shlib-versions: Likewise.
18336
18337 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
18338
18339         * sysdeps/unix/sysv/linux/kernel-features.h
18340         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
18341         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
18342         include <kernel-features.h>.
18343         [!__NR_ftruncate64]: Remove conditional code.
18344         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18345         [__NR_ftruncate64]: Make code unconditional.
18346         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18347         * sysdeps/unix/sysv/linux/truncate64.c: Do not
18348         include <kernel-features.h>.
18349         [!__NR_ftruncate64]: Remove conditional code.
18350         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18351         [__NR_ftruncate64]: Make code unconditional.
18352         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
18354         include <kernel-features.h>.
18355         [!__NR_ftruncate64]: Remove conditional code.
18356         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18357         [__NR_ftruncate64]: Make code unconditional.
18358         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
18360         include <kernel-features.h>.
18361         [!__NR_ftruncate64]: Remove conditional code.
18362         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18363         [__NR_ftruncate64]: Make code unconditional.
18364         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18365
18366         * configure.in (libc_cv_fpie): Weaken to a compile test using
18367         LIBC_TRY_CC_OPTION.
18368         * configure: Regenerated.
18369
18370 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18371
18372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
18373         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
18374         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
18375         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
18376         Refreshed.
18377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
18378         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
18379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
18380         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
18381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
18382         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
18383         Refreshed.
18384
18385 2012-05-27  David S. Miller  <davem@davemloft.net>
18386
18387         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
18388         (___Q_zero): New.
18389         (__Q_simulate_exceptions): Return void.  Change to simulate
18390         exceptions by writing into the %fsr.
18391         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
18392         (__Qp_handle_exceptions): Likewise.
18393         (numbers): Delete.
18394         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
18395         __Qp_handle_exceptions.
18396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
18397         __Qp_handle_exceptions.
18398         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18399         as unused and give dummy FP_RND_NEAREST initializer.
18400         (FP_INHIBIT_RESULTS): Define.
18401         (___Q_simulate_exceptions): Update declaration.
18402         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
18403         formatting.
18404         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18405         as unused and give dummy FP_RND_NEAREST initializer.
18406         (__Qp_handle_exceptions): Update declaration.
18407         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
18408         formatting.
18409
18410 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
18411
18412         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
18413         the temporary FPU control word.
18414         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
18415         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
18416         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
18417         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18418         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
18419         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
18420         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
18421         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18422         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
18423         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
18424         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18425
18426 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18427
18428         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
18429         fields.
18430
18431 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
18432
18433         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
18434         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
18435         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
18436         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
18437         Likewise.
18438         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
18439         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
18440         Likewise.
18441
18442 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
18443
18444         * po/h.po: Update from translation team.
18445
18446 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
18447
18448         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
18449
18450         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
18451         handling of denormals.
18452         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
18453         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
18454         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
18455         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
18456         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
18457         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
18458         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
18459         Likewise.
18460
18461 2012-05-26  Marek Polacek  <polacek@redhat.com>
18462
18463         [BZ #14152]
18464         * math/libm-test.inc (fma_test): Don't always expect underflow
18465         exception.
18466
18467 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18468
18469         [BZ #12416]
18470         * elf/tst-execstack.c: Include stackinfo.h.
18471         (do_test): Adjust test case to ensure that pthread_getattr_np
18472         behaviour remains the same after marking stack executable.
18473
18474 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18475
18476         * sysdeps/unix/sysv/linux/kernel-features.h
18477         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
18478         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
18479         kernel-features.h.
18480         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18481         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18482         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
18483         kernel-features.h.
18484         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18485         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18486
18487 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
18488
18489         * configure.in: Define the default includes to being none.
18490         * configure: Regenerated.
18491
18492 2012-05-25  Roland McGrath  <roland@hack.frob.com>
18493
18494         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
18495         * sysdeps/x86_64/setjmp.S: Likewise.
18496         * sysdeps/i386/bsd-setjmp.S: Likewise.
18497         * sysdeps/i386/bsd-_setjmp.S: Likewise.
18498         * sysdeps/i386/setjmp.S: Likewise.
18499         * sysdeps/i386/__longjmp.S: Likewise.
18500         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
18501         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
18502
18503         * include/stap-probe.h: New file.
18504         * configure.in: Handle --enable-systemtap.
18505         * configure: Regenerated.
18506         * config.h.in (USE_STAP_PROBE): New #undef.
18507         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
18508         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
18509         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
18510
18511 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18512
18513         [BZ #13717]
18514         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
18515         to 2.4.0 where earlier.
18516         * sysdeps/unix/sysv/linux/configure: Regenerated.
18517         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
18518         <kernel-features.h>.
18519         [__ASSUME_32BITUIDS]: Make code unconditional.
18520         [!__ASSUME_32BITUIDS]: Remove conditional code.
18521         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
18522         <kernel-features.h>.
18523         [__ASSUME_32BITUIDS]: Make code unconditional.
18524         [!__ASSUME_32BITUIDS]: Remove conditional code.
18525         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
18526         [__ASSUME_32BITUIDS]: Make code unconditional.
18527         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
18528         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
18529         <kernel-features.h>.
18530         [__ASSUME_32BITUIDS]: Make code unconditional.
18531         [!__ASSUME_32BITUIDS]: Remove conditional code.
18532         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
18533         <kernel-features.h>.
18534         [__ASSUME_32BITUIDS]: Make code unconditional.
18535         [!__ASSUME_32BITUIDS]: Remove conditional code.
18536         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
18537         <kernel-features.h>.
18538         [__ASSUME_32BITUIDS]: Make code unconditional.
18539         [!__ASSUME_32BITUIDS]: Remove conditional code.
18540         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
18541         <kernel-features.h>.
18542         [__ASSUME_32BITUIDS]: Make code unconditional.
18543         [!__ASSUME_32BITUIDS]: Remove conditional code.
18544         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
18545         <kernel-features.h>.
18546         [__ASSUME_32BITUIDS]: Make code unconditional.
18547         [!__ASSUME_32BITUIDS]: Remove conditional code.
18548         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
18549         <kernel-features.h>.
18550         [__ASSUME_32BITUIDS]: Make code unconditional.
18551         [!__ASSUME_32BITUIDS]: Remove conditional code.
18552         * sysdeps/unix/sysv/linux/i386/getuid.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/i386/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/i386/msgctl.c: Do not include
18561         <kernel-features.h>.
18562         [__ASSUME_32BITUIDS]: Make code unconditional.
18563         [!__ASSUME_32BITUIDS]: Remove conditional code.
18564         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
18565         <kernel-features.h>.
18566         [__ASSUME_32BITUIDS]: Make code unconditional.
18567         [!__ASSUME_32BITUIDS]: Remove conditional code.
18568         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
18569         <kernel-features.h>.
18570         [__NR_setresgid] (__setresgid): Do not declare.
18571         [__ASSUME_32BITUIDS]: Make code unconditional.
18572         [!__ASSUME_32BITUIDS]: Remove conditional code.
18573         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
18574         <kernel-features.h>.
18575         [__NR_setresuid] (__setresuid): Do not declare.
18576         [__ASSUME_32BITUIDS]: Make code unconditional.
18577         [!__ASSUME_32BITUIDS]: Remove conditional code.
18578         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
18579         <kernel-features.h>.
18580         [__ASSUME_32BITUIDS]: Make code unconditional.
18581         [!__ASSUME_32BITUIDS]: Remove conditional code.
18582         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
18583         <kernel-features.h>.
18584         [__ASSUME_32BITUIDS]: Make code unconditional.
18585         [!__ASSUME_32BITUIDS]: Remove conditional code.
18586         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
18587         <kernel-features.h>.
18588         [__ASSUME_32BITUIDS]: Make code unconditional.
18589         [!__ASSUME_32BITUIDS]: Remove conditional code.
18590         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
18591         <kernel-features.h>.
18592         [__ASSUME_32BITUIDS]: Make code unconditional.
18593         [!__ASSUME_32BITUIDS]: Remove conditional code.
18594         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
18595         <kernel-features.h>.
18596         [__ASSUME_32BITUIDS]: Make code unconditional.
18597         [!__ASSUME_32BITUIDS]: Remove conditional code.
18598         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
18599         <kernel-features.h>.
18600         [__ASSUME_32BITUIDS]: Make code unconditional.
18601         [!__ASSUME_32BITUIDS]: Remove conditional code.
18602         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
18603         <kernel-features.h>.
18604         [__ASSUME_32BITUIDS]: Make code unconditional.
18605         [!__ASSUME_32BITUIDS]: Remove conditional code.
18606         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
18607         <kernel-features.h>.
18608         [__ASSUME_32BITUIDS]: Make code unconditional.
18609         [!__ASSUME_32BITUIDS]: Remove conditional code.
18610         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
18611         <kernel-features.h>.
18612         [__ASSUME_32BITUIDS]: Make code unconditional.
18613         [!__ASSUME_32BITUIDS]: Remove conditional code.
18614         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
18615         <kernel-features.h>.
18616         [__ASSUME_32BITUIDS]: Make code unconditional.
18617         [!__ASSUME_32BITUIDS]: Remove conditional code.
18618         * sysdeps/unix/sysv/linux/kernel-features.h
18619         (__ASSUME_SETRESUID_SYSCALL): Remove.
18620         (__ASSUME_SETRESGID_SYSCALL): Likewise.
18621         (__ASSUME_32BITUIDS): Likewise.
18622         (__ASSUME_LDT_WORKS): Likewise.
18623         (__ASSUME_O_DIRECTORY): Likewise.
18624         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
18625         architecture but not kernel version.
18626         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
18627         (__ASSUME_MMAP2_SYSCALL): Likewise.
18628         (__ASSUME_STAT64_SYSCALL): Likewise.
18629         (__ASSUME_IPC64): Likewise.
18630         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
18631         <kernel-features.h>.
18632         [__ASSUME_32BITUIDS]: Make code unconditional.
18633         [!__ASSUME_32BITUIDS]: Remove conditional code.
18634         * sysdeps/unix/sysv/linux/opendir.c: Do not include
18635         <kernel-features.h>.
18636         [__ASSUME_O_DIRECTORY]: Make code unconditional.
18637         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
18638         132096]: Remove conditional code.
18639         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
18640         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
18641         <kernel-features.h>.
18642         [__ASSUME_32BITUIDS]: Make code unconditional.
18643         [!__ASSUME_32BITUIDS]: Remove conditional code.
18644         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
18645         <kernel-features.h>.
18646         [__ASSUME_32BITUIDS]: Make code unconditional.
18647         [!__ASSUME_32BITUIDS]: Remove conditional code.
18648         * sysdeps/unix/sysv/linux/setegid.c: Do not include
18649         <kernel-features.h>.
18650         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
18651         unconditional.
18652         (__setresgid): Do not declare.
18653         [__ASSUME_32BITUIDS]: Make code unconditional.
18654         [!__ASSUME_32BITUIDS]: Remove conditional code.
18655         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
18656         <kernel-features.h>.
18657         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
18658         unconditional.
18659         (__setresuid): Do not declare.
18660         [__ASSUME_32BITUIDS]: Make code unconditional.
18661         [!__ASSUME_32BITUIDS]: Remove conditional code.
18662         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
18663         <kernel-features.h>.
18664         [__ASSUME_32BITUIDS]: Make code unconditional.
18665         [!__ASSUME_32BITUIDS]: Remove conditional code.
18666         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
18667         <kernel-features.h>.
18668         [__ASSUME_32BITUIDS]: Make code unconditional.
18669         [!__ASSUME_32BITUIDS]: Remove conditional code.
18670
18671 2012-05-25  Richard Henderson  <rth@twiddle.net>
18672
18673         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
18674         dl_hwcap to ifunc resolver.
18675         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
18676         elf_ifunc_invoke.
18677         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
18678         dl_hwcap to ifunc resolver.
18679         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
18680
18681 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18682
18683         [BZ #14153]
18684         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
18685         for |x| <= 2**-26, not 2**-57.
18686         * math/libm-test.inc (acos_test): Do not allow spurious underflow
18687         exception.
18688
18689 2012-05-24  Jeff Law  <law@redhat.com>
18690
18691         * stdio-common/Makefile (tests): Add bug25.
18692         * stdio-common/bug25.c: New test.
18693
18694 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18695
18696         [BZ #13576]
18697         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
18698         multiple of MALLOC_ALIGNMENT in size.
18699         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
18700
18701 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18702
18703         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
18704         Require >= 256.
18705         (FILENAME_MAX): Use macro-int-constant.
18706         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
18707         (_IOFBF): Use macro-int-constant.
18708         (_IOLBF): Likewise.
18709         (_IONBF): Likewise.
18710         (SEEK_CUR): Likewise.
18711         (SEEK_END): Likewise.
18712         (SEEK_SET): Likewise.
18713         (TMP_MAX): Likewise.
18714         (EOF): Use macro-int-constant.  Require < 0.
18715         (NULL): Use macro-constant.  Require == 0.
18716         (stdin): Require type to be FILE *.
18717         (stdout): Likewise.
18718         (stderr): Likewise.
18719         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
18720         macro-int-constant.
18721         (EXIT_SUCCESS): Likewise.
18722         (NULL): Use macro-constant.  Require == 0.
18723         (RAND_MAX): Use macro-int-constant.
18724         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
18725         [C99-based standards] (strtof): Require function.
18726         [C99-based standards] (strtold): Likewise.
18727         [C99-based standards] (strtoll): Likewise.
18728         [C99-based standards] (strtoull): Likewise.
18729         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
18730         [ISO || ISO99 || ISO11] (limits.h): Likewise.
18731         [ISO || ISO99 || ISO11] (math.h): Likewise.
18732         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
18733         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
18734         [ISO || ISO99 || ISO11] (*_t): Do not allow.
18735
18736 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
18737
18738         [BZ #14132]
18739         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
18740         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
18741         * intl/dgettext.c (DCGETTEXT): Likewise.
18742         * intl/gettext.c (DCGETTEXT): Likewise.
18743         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
18744         * posix/regex_internal.h (gettext): Likewise.
18745         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
18746         Remove declaration.
18747         * include/argz.h (__argz_count_internal)
18748         (__argz_stringify_internal): Remove declaration.
18749         (__argz_count, __argz_stringify): Declare hidden proto.
18750         * intl/dcgettext.c: Remove use of INTDEF.
18751         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
18752         * string/argz-stringify.c: Likewise.
18753         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
18754         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
18755         Declare hidden proto.
18756         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
18757         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
18758         Declare hidden proto.
18759         * include/stdio.h (__asprintf_internal): Don't declare.
18760         (__asprintf): Don't define as macro.  Declare hidden proto.
18761         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
18762         (__fsetlocking): Declare hidden proto.
18763         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
18764         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
18765         hidden proto.
18766         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
18767         (_IO_setlinebuf): Remove use of INTUSE.
18768         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
18769         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
18770         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
18771         Remove declaration.
18772         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
18773         (_IO_do_flush): Remove use of INTUSE.
18774         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
18775         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
18776         (_IO_adjust_column, _IO_least_wmarker)
18777         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
18778         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
18779         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
18780         (_IO_default_doallocate, _IO_wdefault_doallocate)
18781         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
18782         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
18783         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
18784         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
18785         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
18786         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
18787         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
18788         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
18789         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
18790         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
18791         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
18792         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
18793         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
18794         proto.
18795         (_IO_flush_all_internal, _IO_adjust_column_internal)
18796         (_IO_default_uflow_internal, _IO_default_finish_internal)
18797         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
18798         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
18799         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
18800         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
18801         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
18802         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
18803         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
18804         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
18805         (_IO_file_close_internal, _IO_file_close_it_internal)
18806         (_IO_file_underflow_internal, _IO_file_overflow_internal)
18807         (_IO_file_init_internal, _IO_file_attach_internal)
18808         (_IO_file_fopen_internal, _IO_file_read_internal)
18809         (_IO_file_sync_internal, _IO_file_seek_internal)
18810         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
18811         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
18812         (_IO_str_underflow_internal, _IO_str_overflow_internal)
18813         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
18814         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
18815         (_IO_list_all_internal, _IO_link_in_internal)
18816         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
18817         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
18818         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
18819         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
18820         (_IO_do_write_internal, _IO_padn_internal)
18821         (_IO_getline_info_internal, _IO_getline_internal)
18822         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
18823         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
18824         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
18825         (_IO_vfscanf_internal, _IO_vfprintf_internal)
18826         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
18827         (_IO_init_internal, _IO_un_link_internal): Don't declare.
18828         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
18829         with libc_hidden_ver, remove use of INTUSE.
18830         * libio/genops.c: Likewise.
18831         * libio/freopen.c: Likewise.
18832         * libio/freopen64.c: Likewise.
18833         * libio/iofclose.c: Likewise.
18834         * libio/iofdopen.c: Likewise.
18835         * libio/iofflush.c: Likewise.
18836         * libio/iofflush_u.c: Likewise.
18837         * libio/iofgets.c: Likewise.
18838         * libio/iofgets_u.c: Likewise.
18839         * libio/iofopen.c: Likewise.
18840         * libio/iofopncook.c: Likewise.
18841         * libio/iofread.c: Likewise.
18842         * libio/iofread_u.c: Likewise.
18843         * libio/ioftell.c: Likewise.
18844         * libio/iofwrite.c: Likewise.
18845         * libio/iogetline.c: Likewise.
18846         * libio/iogets.c: Likewise.
18847         * libio/iogetwline.c: Likewise.
18848         * libio/iopadn.c: Likewise.
18849         * libio/iopopen.c: Likewise.
18850         * libio/ioseekoff.c: Likewise.
18851         * libio/ioseekpos.c: Likewise.
18852         * libio/iosetbuffer.c: Likewise.
18853         * libio/iosetvbuf.c: Likewise.
18854         * libio/ioungetc.c: Likewise.
18855         * libio/ioungetwc.c: Likewise.
18856         * libio/iovdprintf.c: Likewise.
18857         * libio/iovsprintf.c: Likewise.
18858         * libio/iovsscanf.c: Likewise.
18859         * libio/memstream.c: Likewise.
18860         * libio/obprintf.c: Likewise.
18861         * libio/oldfileops.c: Likewise.
18862         * libio/oldiofclose.c: Likewise.
18863         * libio/oldiofdopen.c: Likewise.
18864         * libio/oldiofopen.c: Likewise.
18865         * libio/oldiopopen.c: Likewise.
18866         * libio/oldstdfiles.c: Likewise.
18867         * libio/putc.c: Likewise.
18868         * libio/setbuf.c: Likewise.
18869         * libio/setlinebuf.c: Likewise.
18870         * libio/stdfiles.c: Likewise.
18871         * libio/strops.c: Likewise.
18872         * libio/vasprintf.c: Likewise.
18873         * libio/vscanf.c: Likewise.
18874         * libio/vsnprintf.c: Likewise.
18875         * libio/vswprintf.c: Likewise.
18876         * libio/wfiledoalloc.c: Likewise.
18877         * libio/wfileops.c: Likewise.
18878         * libio/wgenops.c: Likewise.
18879         * libio/wmemstream.c: Likewise.
18880         * libio/wstrops.c: Likewise.
18881         * libio/__fpurge.c: Likewise.
18882         * libio/__fsetlocking.c: Likewise.
18883         * assert/assert.c: Likewise.
18884         * debug/fgets_chk.c: Likewise.
18885         * debug/fgets_u_chk.c: Likewise.
18886         * debug/fread_chk.c: Likewise.
18887         * debug/fread_u_chk.c: Likewise.
18888         * debug/gets_chk.c: Likewise.
18889         * debug/obprintf_chk.c: Likewise.
18890         * debug/vasprintf_chk.c: Likewise.
18891         * debug/vdprintf_chk.c: Likewise.
18892         * debug/vsnprintf_chk.c: Likewise.
18893         * debug/vsprintf_chk.c: Likewise.
18894         * malloc/mtrace.c: Likewise.
18895         * misc/error.c: Likewise.
18896         * misc/syslog.c: Likewise.
18897         * stdio-common/asprintf.c: Likewise.
18898         * stdio-common/fxprintf.c: Likewise.
18899         * stdio-common/getw.c: Likewise.
18900         * stdio-common/isoc99_fscanf.c: Likewise.
18901         * stdio-common/isoc99_scanf.c: Likewise.
18902         * stdio-common/isoc99_vfscanf.c: Likewise.
18903         * stdio-common/isoc99_vscanf.c: Likewise.
18904         * stdio-common/isoc99_vsscanf.c: Likewise.
18905         * stdio-common/printf-prs.c: Likewise.
18906         * stdio-common/printf_fp.c: Likewise.
18907         * stdio-common/printf_fphex.c: Likewise.
18908         * stdio-common/printf_size.c: Likewise.
18909         * stdio-common/putw.c: Likewise.
18910         * stdio-common/scanf.c: Likewise.
18911         * stdio-common/sprintf.c: Likewise.
18912         * stdio-common/tmpfile.c: Likewise.
18913         * stdio-common/vfprintf.c: Likewise.
18914         * stdio-common/vfscanf.c: Likewise.
18915         * stdlib/strfmon_l.c: Likewise.
18916         * sunrpc/openchild.c: Likewise.
18917         * sunrpc/xdr_stdio.c: Likewise.
18918         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18919         * sysdeps/mach/hurd/tmpfile.c: Likewise.
18920
18921 2012-05-24  Roland McGrath  <roland@hack.frob.com>
18922
18923         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
18924
18925         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
18926         in the third column, to generate for the shared library an IFUNC
18927         that uses _dl_vdso_vsym.
18928         * Makerules (COMPILE.c, compile-stdin.c): New variables.
18929         * Makeconfig (object-suffixes-noshared): New variable.
18930
18931         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
18932         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
18933         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
18934         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
18935
18936         [BZ #14132]
18937         * include/sys/time.h (__gettimeofday): Remove macro.
18938         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
18939         * time/gettimeofday.c (__gettimeofday): Remove #undef.
18940         Remove INTDEF.
18941         (__gettimeofday): Add libc_hidden_def.
18942         (gettimeofday): Add libc_hidden_weak.
18943         * sysdeps/mach/gettimeofday.c: Likewise.
18944         * sysdeps/posix/gettimeofday.c: Likewise.
18945         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18946         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
18947         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
18948         (__gettimeofday_internal): Remove strong_alias.
18949         (__gettimeofday): Add libc_hidden_def.
18950         (gettimeofday): Add libc_hidden_weak.
18951         * sysdeps/unix/syscalls.list (gettimeofday):
18952         Remove __gettimeofday_internal alias.
18953
18954 2012-05-24  Daniel Jacobowitz  <drow@false.org>
18955             H.J. Lu  <hongjiu.lu@intel.com>
18956
18957         [BZ #12495]
18958         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
18959         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
18960         (largebin_index_32_big): New.
18961         (largebin_index): Use it for 16-byte alignment.
18962         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
18963         correction with front_misalign.
18964
18965 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18966
18967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
18968         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
18969         Likewise.
18970         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
18971         Likewise.
18972         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
18973         Likewise.
18974         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
18975         Likewise.
18976         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
18977         Likewise.
18978         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
18979         Likewise.
18980         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
18981         Likewise.
18982         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
18983         Likewise.
18984         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
18985         Likewise.
18986         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
18987         Likewise.
18988         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
18989         Likewise.
18990         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
18991         Likewise.
18992
18993         * scripts/data/c++-types-x32-linux-gnu.data: New file.
18994         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
18995
18996 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18997
18998         [BZ #10846]
18999         [BZ #14036]
19000         * math/libm-test.inc (exp_test): Add test from bug 14036.
19001         (pow_test): Add test from bug 10846.
19002
19003         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
19004         and other flags.
19005         (special_function): Do not include flags in test name.
19006         (parse_args): Likewise.
19007         * sysdeps/i386/fpu/libm-test-ulps: Update.
19008         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19009         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
19010         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
19011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19012
19013         * math/gen-libm-test.pl (%beautify): Add entries for underflow
19014         exceptions.
19015         * math/libm-test.inc ("Philosophy"): Update comment about
19016         exception testing.
19017         (UNDERFLOW_EXCEPTION): New macro.
19018         (UNDERFLOW_EXCEPTION_OK): Likewise.
19019         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
19020         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
19021         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
19022         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
19023         (INVALID_EXCEPTION_OK): Update value.
19024         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19025         (OVERFLOW_EXCEPTION_OK): Likewise.
19026         (IGNORE_ZERO_INF_SIGN): Likewise.
19027         (test_exceptions): Handle underflow exceptions.
19028         (acos_test): Update for underflow exception expectations.
19029         (cexp_test): Likewise.
19030         (clog_test): Likewise.
19031         (clog10_test): Likewise.
19032         (csqrt_test): Likewise.
19033         (ctan_test): Likewise.
19034         (ctanh_test): Likewise.
19035         (exp_test): Likewise.
19036         (exp10_test): Likewise.
19037         (exp2_test): Likewise.
19038         (expm1_test): Likewise.
19039         (fma_test): Likewise.
19040         (j0_test): Likewise.
19041         (jn_test): Likewise.
19042         (nexttoward_test): Likewise.
19043         (pow_test): Likewise.
19044         (scalbn_test): Likewise.
19045         (scalbln_test): Likewise.
19046         (tan_test): Likewise.
19047         (y1_test): Likewise.
19048         * sysdeps/i386/fpu/libm-test-ulps: Update.
19049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19050
19051 2012-05-23  David S. Miller  <davem@davemloft.net>
19052
19053         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
19054         (__libc_sigaction): Remove unused local variables.
19055
19056 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19057
19058         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
19059
19060 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19061
19062         mktime: avoid signed integer overflow
19063         * time/mktime.c (__mktime_internal): Do not mishandle the case
19064         where diff == INT_MIN.
19065
19066         mktime: simplify computation of average
19067         * time/mktime.c (ranged_convert): Use new time_t_avg function
19068         instead of rolling our own (probably-slower) code.
19069
19070         mktime: do not assume signed right shift propagates sign bit
19071         * time/mktime.c (isdst_differ): New static function.
19072         (__mktime_internal): No need to normalize tm_isdst now.
19073         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
19074         tm_isdst values.
19075
19076         mktime: merge another wrapv change from gnulib
19077         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
19078         from some compilers.
19079
19080         mktime: remove incorrect attempt at unusual arithmetics
19081         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
19082         The code didn't really work on such machines anyway.
19083         (TYPE_MINIMUM): Assume two's complement.
19084         (twos_complement_arithmetic): Verify that long_int and time_t
19085         are two's complement (or unsigned, in the latter case).
19086
19087         mktime: check signed shifts on long_int and time_t, too
19088         * time/mktime.c (SHR): Check that shifts work as desired
19089         on the types long_int and time_t too, as SHR is used on
19090         such types.
19091
19092         mktime: do not assume 'long' is wide enough
19093         * time/mktime.c (verify): Move decl up.
19094         (long_int): New type.
19095         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
19096         to remove assumption in the code that 'long' is wide enough to
19097         store year values.  This assumption is not true on x32 and on
19098         some non-glibc platforms.
19099
19100         mktime: merge wrapv change from gnulib
19101         * time/mktime.c (WRAPV): New macro.
19102         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
19103         (guess_time_tm, __mktime_internal): Do not assume that signed
19104         integer overflow wraps around; modern compilers generate code
19105         where this assumption is no longer valid.
19106
19107 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19108
19109         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19110         Replace "jmp L(pseudo_end)" with "ret".
19111         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
19112         Likewise.
19113
19114 2012-05-23  Andreas Jaeger  <aj@suse.de>
19115
19116         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
19117         * sysdeps/unix/sysv/linux/poll.c: Remove file.
19118
19119 2012-05-23  Andreas Jaeger  <aj@suse.de>
19120             Maximilian Attems  <max@stro.at>
19121
19122         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
19123         New macros.
19124
19125 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19126
19127         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
19128         code so that pseudo_end is just ret and the stack pointer is
19129         correct also for static library in error case.
19130
19131 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
19132
19133         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
19134         move to syscalls.list.
19135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
19136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
19137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
19138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
19139
19140         * manual/install.texi (Running make install): Do not mention Linux
19141         kernel version for which pt_chown is not needed.
19142         (Linux): Do not mention problems with nscd with 2.0 kernels.
19143         * INSTALL: Regenerated.
19144
19145 2012-05-23  Andreas Jaeger  <aj@suse.de>
19146
19147         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
19148         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
19149         macro.
19150         * sysdeps/unix/sysv/linux/s390/bits/mman.h
19151         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19152         * sysdeps/unix/sysv/linux/sh/bits/mman.h
19153         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19154         * sysdeps/unix/sysv/linux/i386/bits/mman.h
19155         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19156         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
19157         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19158         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
19159         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19160         * sysdeps/unix/sysv/linux/bits/in.h
19161         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
19162
19163 2012-05-22  Roland McGrath  <roland@hack.frob.com>
19164
19165         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
19166         (PREPARE_VERSION): Just use assert instead, it will be elided
19167         under [NDEBUG] anyway.
19168
19169 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19170
19171         * sysdeps/unix/sysv/linux/Makefile: Include
19172         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
19173         (sysdep_routines): Remove sysctl.
19174         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
19175         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
19176         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
19177         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
19178         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
19179
19180 2012-05-22  Andreas Jaeger  <aj@suse.de>
19181
19182         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
19183         that pseudo_end is just ret and the stack pointer is correct also
19184         for static library in error case.
19185
19186 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19187
19188         [BZ #14122]
19189         * nss/nsswitch.c (defconfig_entries): New variable.
19190         (__nss_database_lookup): Don't leak defconfig entries.
19191         (nss_parse_service_list): Don't leak on error paths.
19192         (free_database_entries): New function.
19193         (free_defconfig): New function.
19194         (free_mem): Move common code to free_database_entries.
19195
19196 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19197
19198         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
19199         Add arch_prctl.
19200         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
19201
19202         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
19203         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
19204         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
19205         New macro.
19206         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19207         (INTERNAL_SYSCALL_TYPES): Likewise.
19208         (LOAD_ARGS_TYPES_[1-6]): Likewise.
19209         (LOAD_REGS_TYPES_[1-6]): Likewise.
19210         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
19211         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
19212
19213 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19214
19215         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
19216         copysignl for GLIBC_2_0.
19217         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
19218         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
19219         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
19220         logbl for GLIBC_2_0.
19221         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
19222         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
19223
19224 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19225
19226         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
19227         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19228
19229         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19230         Use "neg %eax".
19231
19232         * time/mktime.c: Update copyright years.
19233
19234 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19235
19236         mktime: merge comment-quoting-style change from gnulib
19237         * time/mktime.c: Quote 'like this' in comments.
19238         The GNU coding standards suggest that we no longer quote `like this',
19239         as "`" and "'" are typically rendered asymmetrically nowadays.
19240         The typical gnulib style is to quote 'like this' when quoting
19241         code, and "like this" when quoting English.
19242
19243         * time/mktime.c (compile-command): Add "-I.".
19244
19245         mktime: merge mktime-internal.h change from gnulib
19246         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
19247
19248         mktime: merge time_r change from gnulib
19249         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
19250
19251         mktime: merge DEBUG change from gnulib
19252         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
19253         case system <time.h> has a #define.
19254
19255         mktime: merge <sys/types.h> change from gnulib
19256         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
19257         since <time.t> is now guaranteed to define time_t.
19258
19259         mktime: merge HAVE_CONFIG_H change from gnulib
19260         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
19261
19262 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19263
19264         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19265         Use "neg %eax".
19266
19267         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
19268         __rlim_t cast.
19269         (struct rusage): Use anonymous union to pad each field to
19270         __syscall_slong_t.
19271
19272 2012-05-21  David S. Miller  <davem@davemloft.net>
19273
19274         * Makefules (o-iterator): Remove .s cases.
19275         (compile-command.s): Delete.
19276         (COMPILE.s): Delete.
19277         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
19278
19279 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
19280
19281         * configure.in (libc_cv_predef_stack_protector): Only consider
19282         "foobar" and "__stack_chk_fail" lines in libc_undefs.
19283         * configure: Regenerated.
19284
19285 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19286
19287         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19288         New macro.  Use R*LP on int and pointer.
19289         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
19290         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
19291         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
19292         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
19293
19294         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
19295         [__WORDSIZE_TIME64_COMPAT32] instead of
19296         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
19297         (struct utmp): Likewise.
19298         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
19299         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
19300         Renamed to ...
19301         (__WORDSIZE_TIME64_COMPAT32): This.
19302         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
19303         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
19304         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
19305         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
19306         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
19307         (__WORDSIZE_TIME64_COMPAT32): New macro.
19308
19309 2012-05-21  Andreas Jaeger  <aj@suse.de>
19310
19311         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
19312         only if [SHARED]. Add prototype for __wcschr_ia32.
19313
19314 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19315
19316         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
19317         of %rbp unmolested in the jmp_buf while mangling the low bits.
19318         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
19319         unmolested high bits of %rbp while demangling the low bits.
19320         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
19321
19322 2012-05-21  Andreas Jaeger  <aj@suse.de>
19323
19324         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
19325         * sunrpc/svc_simple.c: Use it for registerrpc.
19326         * sunrpc/xcrypt.c: Use it for passwd2des.
19327
19328         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
19329
19330 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19331
19332         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
19333         Don't define if [__SYSCALL_WORDSIZE != 32].
19334         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
19335         New macro.
19336
19337 2012-05-21  Bruno Haible  <bruno@clisp.org>
19338             Andreas Jaeger  <aj@suse.de>
19339
19340         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
19341         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
19342         inptr and inend for must_buffer_ch.
19343         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
19344         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
19345         * stdio-common/Makefile (tests): Remove bug15.
19346         (bug15-ENV): Remove macro.
19347         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
19348         anymore.
19349
19350 2012-05-19  Andreas Jaeger  <aj@suse.de>
19351             Roland McGrath  <roland@hack.frob.com>
19352
19353         * manual/contrib.texi: Completely rewritten. It contains now an
19354         alphabetical list of contributors and their contributions.
19355
19356 2012-05-21  Richard Henderson  <rth@twiddle.net>
19357
19358         * misc/getauxval.c (__getauxval): Use unsigned long int.
19359         * misc/sys/auxv.h: Include <sys/cdefs.h>.
19360         (getauxval): Use unsigned long int.
19361
19362 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19363
19364         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19365
19366 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19367
19368         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
19369         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
19370         __alignof__ (long double).
19371
19372 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19373
19374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19375
19376 2012-05-20  Richard Henderson  <rth@twiddle.net>
19377
19378         * misc/getauxval.c: New file.
19379         * misc/sys/auxv.h: New file.
19380         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
19381         (routines): Add getauxval.
19382         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
19383         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
19384         * elf/dl-sysdep.c (_dl_auxv): Remove.
19385         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
19386         * elf/dl-support.c (_dl_auxv): New variable.
19387         (_dl_aux_init): Initialize it.
19388         * manual/startup.texi (Auxiliary Vector): New node.
19389         * sysdeps/generic/bits/hwcap.h: New file.
19390         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
19391         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
19392         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
19393         * sysdeps/sparc/sysdep.h: ... here.  Include it.
19394         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
19395         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
19396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19397         Update.
19398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
19399         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
19400         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
19401         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
19402         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19403         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19404         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
19405         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
19406
19407 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19408
19409         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19410
19411 2012-05-19  David S. Miller  <davem@davemloft.net>
19412
19413         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19414
19415 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19416
19417         [BZ #14123]
19418         * math/s_ccosh.c: Include <float.h>
19419         (__ccosh): Avoid internal overflow calculating sinh and cosh
19420         values before multiplying by sin and cos values.
19421         * math/s_ccoshf.c: Likewise.
19422         * math/s_ccoshl.c: Likewise.
19423         * math/s_csin.c: Likewise.
19424         * math/s_csinf.c: Likewise.
19425         * math/s_csinl.c: Likewise.
19426         * math/s_csinh.c: Likewise.
19427         * math/s_csinhf.c: Likewise.
19428         * math/s_csinhl.c: Likewise.
19429         * math/libm-test.inc (ccos_test): Add more tests.
19430         (ccosh_test): Likewise.
19431         (csin_test): Likewise.
19432         (csinh_test): Likewise.
19433         * sysdeps/i386/fpu/libm-test-ulps: Update.
19434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19435
19436 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19437
19438         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
19439         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
19440
19441         * sysdeps/x86_64/x32/_itoa.h: Add comment.
19442
19443 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19444
19445         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
19446         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
19447         * sysdeps/powerpc/soft-fp/Versions: Likewise.
19448         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
19449         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
19450         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
19451         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
19452         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
19453         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
19454         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
19455         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
19456         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
19457         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
19458         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
19459         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
19460         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
19461         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
19462         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
19463         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
19464         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
19465         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
19466         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
19467         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
19468         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
19469         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
19470         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
19471         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
19472         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
19473         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
19474         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
19475         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
19476
19477 2012-05-18  Andreas Jaeger  <aj@suse.de>
19478
19479         * csu/.gitignore: Delete.
19480
19481 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19482
19483         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
19484         (timex): Use __syscall_slong_t.
19485
19486 2012-05-18  Andreas Jaeger  <aj@suse.de>
19487             Carlos O'Donell  <carlos_odonell@mentor.com>
19488
19489         * manual/install.texi (Configuring and compiling): Update
19490         description about files modified in the source directory.
19491         * INSTALL: Regenerated.
19492
19493 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19494
19495         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
19496         value.  Use "or" to set return value to -1.
19497         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
19498         negate return value.
19499
19500 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19501
19502         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
19503         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
19504         failure if the compiler has Graphite support disabled.
19505         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
19506         Likewise.
19507         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
19508         CFLAGS-memmove.c): Likewise.
19509         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
19510         Likewise.
19511
19512 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19513
19514         * sysdeps/x86_64/x32/_itoa.h: New file.
19515
19516         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
19517         getdents system call only if kernel and user dirents have the
19518         same d_ino and d_off.
19519
19520         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19521         LLONG_MAX != LONG_MAX.
19522         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19523         (_fitoa_word): Likewise.
19524
19525         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
19526         years.
19527         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
19528         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
19529         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
19530
19531         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
19532         include <bits/wordsize.h>.  Check __x86_64__ instead of
19533         __WORDSIZE.
19534         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
19535         if __x86_64__ is defined.  Use anonymous union on fpstate.
19536
19537         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
19538         anonymous union.
19539
19540 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
19541
19542         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
19543         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
19544         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
19545         Refer to _rtld_local_ro instead of _rtld_global_ro.
19546         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
19547         Likewise.
19548         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
19549         Likewise.
19550         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
19551         Likewise.
19552         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
19553         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
19554         of _rtld_global, and rtld_progname instead of _dl_argv[0].
19555
19556         * sysdeps/powerpc/powerpc32/dl-machine.c
19557         (__elf_machine_runtime_setup) [PROF]: Don't reference
19558         _dl_prof_resolve.
19559
19560 2012-05-18  Andreas Jaeger  <aj@suse.de>
19561
19562         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
19563         function only available for GCCs before 3.4 since GCC 3.4
19564         introduced a builtin.
19565         (lrint): Likewise.
19566         (llrintf): Likewise.
19567         (llrint): Likewise.
19568         (fmaxf): Likewise.
19569         (fmax): Likewise.
19570         (fminf): Likewise.
19571         (fmin): Likewise.
19572         (rint): Likewise.
19573         (rintf): Likewise.
19574         (nearbyint): Likewise.
19575         (nearbyintf): Likewise.
19576         (ceil): Likewise.
19577         (ceilf): Likewise.
19578         (floor): Likewise.
19579         (floorf): Likewise.
19580
19581 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19582
19583         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
19584         on both fields and cast pointer to __syscall_ulong_t.
19585
19586         * bits/types.h (__fsword_t): New type.
19587         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
19588         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
19589         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19590         (__FSWORD_T_TYPE): Likewise.
19591         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19592         (__FSWORD_T_TYPE): Likewise.
19593         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19594         (__FSWORD_T_TYPE): Likewise.
19595         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
19596         (__FSWORD_T_TYPE): Likewise.
19597         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
19598         __SWORD_TYPE with __fsword_t.
19599         (statfs64): Likewise.
19600
19601 2012-05-17  David S. Miller  <davem@davemloft.net>
19602
19603         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
19604
19605 2012-05-17  Andreas Jaeger  <aj@suse.de>
19606
19607         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
19608         warning.
19609
19610 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19611
19612         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
19613
19614 2012-05-17  Andreas Jaeger  <aj@suse.de>
19615
19616         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
19617         when it is used.
19618
19619 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
19620
19621         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
19622
19623 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19624
19625         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
19626         * sysdeps/x86_64/tst-mallocalign1.c: New file.
19627
19628 2012-05-17  Andreas Jaeger  <aj@suse.de>
19629             Carlos O'Donell  <carlos_odonell@mentor.com>
19630
19631         [BZ #14059]
19632         * sysdeps/x86_64/multiarch/init-arch.h
19633         (bit_YMM_Usable): Rename to...
19634         (bit_AVX_Usable): ... this.
19635         (bit_FMA4_Usable): New macro.
19636         (bit_XMM_state): New macro.
19637         (bit_YMM_state): New macro.
19638         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
19639         [__ASSEMBLER__] (index_AVX_Usable): ... this.
19640         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
19641         (CPUID_OSXSAVE): New macro.
19642         (CPUID_AVX): New macro.
19643         (CPUID_FMA4): New macro.
19644         (index_YMM_Usable): Rename to...
19645         (index_AVX_Usable): ... this.
19646         (HAS_AVX): Use HAS_ARCH_FEATURE.
19647         (HAS_FMA4): Likewise.
19648         (HAS_YMM_USABLE): Remove.
19649         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19650         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
19651         are present.
19652         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
19653         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
19654         * sysdeps/x86_64/multiarch/Makefile: Likewise.
19655         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
19656         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
19657
19658 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
19659
19660         * math/libm-test.c: Support platforms without multiple rounding modes.
19661         * math/bug-nextafter.c: Support platforms without FP exceptions.
19662         * math/bug-nexttoward.c: Likewise.
19663         * math/test-fenv.c: Likewise.
19664         * math/test-misc.c: Likewise.
19665         * stdlib/bug-getcontext.c: Likewise.
19666
19667 2012-05-17  Andreas Jaeger  <aj@suse.de>
19668
19669         * manual/examples/search.c (critter_cmp): Change signature to
19670         avoid warnings.
19671         * manual/string.texi (Collation Functions): Likewise.
19672
19673 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19674
19675         * bits/types.h: Fold copyright years.
19676         * bits/typesizes.h: Likewise.
19677         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
19678         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
19679         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
19680         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
19681         * time/time.h: Likewise.
19682
19683 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
19684
19685         [BZ #208]
19686         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
19687         in instead of returning them.  Return void.
19688         (__libc_mallinfo): Accumulate over all arenas.
19689         (__malloc_stats): Adjust for change in int_mallinfo interface.
19690
19691 2012-05-16  Roland McGrath  <roland@hack.frob.com>
19692
19693         [BZ #10375]
19694         * configure.in (NM): Add AC_CHECK_TOOL for it.
19695         (libc_extra_cflags): New substituted variable.
19696         Check for -fstack-protector being used implicitly.
19697         * configure: Regenerated.
19698         * config.make.in (config-extra-cflags): New variable,
19699         gets @libc_extra_cflags@.
19700         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
19701
19702         [BZ #10375]
19703         * configure.in: Check for _FORTIFY_SOURCE being predefined.
19704         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
19705         * configure: Regenerated.
19706         * config.make.in (CPPUNDEFS): New substituted variable.
19707         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
19708         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
19709         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
19710
19711 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19712
19713         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
19714         (mq_attr): Use __syscall_slong_t.
19715
19716 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19717
19718         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
19719         Check __x86_64__ instead of __WORDSIZE.
19720         (_STAT_VER_LINUX): Likewise.
19721         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
19722         __syscall_ulong_t and __syscall_slong_t.
19723         (stat64): Likewise.
19724
19725 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19726
19727         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
19728
19729 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19730
19731         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
19732
19733 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19734
19735         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
19736         __syscall_ulong_t.
19737
19738         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
19739         include <bits/wordsize.h>.  Check __x86_64__ instead of
19740         __WORDSIZE.
19741         (greg_t): Use "__extension__ long long int" if __x86_64__ is
19742         defined.
19743         (mcontext_t): Replace "unsigned long" with "unsigned long long".
19744
19745         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
19746         include <bits/wordsize.h>.  Check __x86_64__ instead of
19747         __WORDSIZE.
19748         (user_regs_struct): Use "__extension__ unsigned long long"
19749         instead of "unsigned long" if __x86_64__ is defined.
19750         (user): Likewise.  Pad after pointer field if __ILP32__ is
19751         defined.
19752
19753 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
19754
19755         * configure.in (makeinfo): Require version 4.5 or later.  Allow
19756         versions 5 to 9.
19757         * configure: Regenerated.
19758         * manual/install.texi (texinfo): Increase version requirement to
19759         4.5 or later.
19760         * INSTALL: Regenerated.
19761
19762         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
19763
19764 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19765
19766         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
19767
19768         * sysdeps/x86_64/x32/ffs.c: New file.
19769
19770         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
19771         __syscall_ulong_t.
19772         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
19773         defined.  Use __syscall_ulong_t.
19774         (shminfo): Use __syscall_ulong_t.
19775         (shm_info): Likewise.
19776
19777         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
19778         __syscall_ulong_t.
19779
19780         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
19781         <bits/wordsize.h>.
19782         (msgqnum_t): Use __syscall_ulong_t.
19783         (msglen_t): Likewise.
19784         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
19785         __syscall_ulong_t.
19786
19787         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
19788         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19789
19790         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
19791
19792         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
19793         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
19794
19795         * sysvipc/sys/msg.h (msgbuf): Replace long int with
19796         __syscall_slong_t.
19797
19798         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
19799         include <bits/wordsize.h>.  Check __x86_64__ instead of
19800         __WORDSIZE.
19801
19802         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
19803         "unsigned long long int" if __x86_64__ is defined.
19804         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
19805
19806         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
19807         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19808         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
19809
19810         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
19811         <stdint.h>.
19812         (GET_PC): Cast to uintptr_t first.
19813         (GET_FRAME): Likewise.
19814         (GET_STACK): Likewise.
19815
19816         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
19817         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
19818         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
19819         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
19820         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
19821         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
19822         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
19823         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
19824         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
19825         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
19826         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
19827         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
19828         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
19829         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
19830         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
19831         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
19832         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
19833         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
19834         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
19835         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
19836         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
19837         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
19838         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
19839         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
19840         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
19841         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
19842         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
19843         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
19844         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
19845
19846 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
19847
19848         * Makerules (+depfiles): Also collect depfiles from .oS in
19849         $(extra-objs).
19850         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
19851         .oS, $(libnldbl-routines)).
19852
19853         * Makerules (native-compile-mkdep-flags): Define.
19854         * sunrpc/Makefile (extra-objs): Add $(addprefix
19855         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
19856         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
19857         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
19858         calling $(make-target-directory).
19859
19860 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19861
19862         * bits/types.h (__snseconds_t): Removed.
19863         * time/time.h (struct timespec): Replace __snseconds_t with
19864         __syscall_slong_t.
19865         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
19866         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
19867         Likewise.
19868         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19869         (__SNSECONDS_T_TYPE): Likewise.
19870         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19871         (__SNSECONDS_T_TYPE): Likewise.
19872         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19873         (__SNSECONDS_T_TYPE): Likewise.
19874
19875 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19876
19877         * sysdeps/mach/hurd/bits/typesizes.h
19878         (__SYSCALL_SLONG_TYPE): New macro.
19879         (__SYSCALL_ULONG_TYPE): Likewise.
19880
19881 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19882
19883         * bits/types.h (__syscall_slong_t): New type.
19884         (__syscall_ulong_t): Likewise.
19885
19886         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
19887         (__SYSCALL_ULONG_TYPE): Likewise.
19888         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19889         (__SYSCALL_SLONG_TYPE): Likewise.
19890         (__SYSCALL_ULONG_TYPE): Likewise.
19891         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19892         (__SYSCALL_SLONG_TYPE): Likewise.
19893         (__SYSCALL_ULONG_TYPE): Likewise.
19894         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19895         (__SYSCALL_SLONG_TYPE): Likewise.
19896         (__SYSCALL_ULONG_TYPE): Likewise.
19897
19898 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19899
19900         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
19901         Add sigaltstack-offsets.sym.
19902         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
19903         <sigaltstack-offsets.h>.
19904         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
19905         longjmp_msg pointer.
19906         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
19907         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
19908         signal stack.
19909         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
19910
19911 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
19912
19913         * elf/stackguard-macros.h: Remove file.
19914         * sysdeps/generic/stackguard-macros.h: New file.
19915         * sysdeps/i386/stackguard-macros.h: Likewise.
19916         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
19917         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
19918         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
19919         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
19920         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
19921         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
19922         * sysdeps/x86_64/stackguard-macros.h: Likewise.
19923         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
19924         <elf/stackguard-macros.h>.
19925
19926         [BZ #14109]
19927         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
19928         __aligned__ in attribute.
19929         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
19930         (gregset_t): Likewise.
19931
19932 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19933
19934         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
19935         * sysdeps/x86_64/64/Implies-after: Here.  New file.
19936         * sysdeps/x86_64/x32/Implies-after: New file.
19937
19938 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19939
19940         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
19941         and access return value for _dl_profile_fixup.  Use R10_LP to
19942         load frame size.
19943
19944 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19945
19946         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
19947
19948 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19949
19950         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
19951         * sysdeps/x86_64/x32/sysdep.h: New file.
19952
19953 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19954
19955         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
19956         * sysdeps/x86_64/setjmp.S: Likewise.
19957
19958 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19959
19960         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
19961         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
19962         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
19963         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
19964         remove unused global constant.
19965
19966 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
19967
19968         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
19969         include of <not-cancel.h>.
19970
19971 2012-05-15  Roland McGrath  <roland@hack.frob.com>
19972
19973         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
19974
19975 2012-05-15  Jeff Law  <law@redhat.com>
19976             Andreas Jaeger  <aj@suse.de>
19977
19978         [BZ #13594]
19979         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
19980         out from...
19981         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
19982         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
19983         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
19984         code changing __hst_map_handle.map.
19985
19986 2012-05-15  Roland McGrath  <roland@hack.frob.com>
19987
19988         * configure.in (sysnames): Look for Implies-before and Implies-after
19989         files.
19990         * configure: Regenerated.
19991
19992 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19993
19994         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
19995         8-byte data alignment with LP_SIZE alignment.
19996
19997 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19998
19999         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
20000         into R10_LP.
20001
20002 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20003
20004         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
20005
20006 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20007
20008         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
20009         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
20010         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
20011         Likewise.
20012         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20013
20014 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20015
20016         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
20017         (stackinfo_sub_sp): Likewise.
20018
20019 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20020
20021         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
20022         RAX_LP.
20023
20024 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20025
20026         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
20027         into R*_LP.
20028
20029 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20030
20031         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
20032         sizes into R*_LP.
20033
20034 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20035
20036         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
20037
20038 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20039
20040         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
20041         into R11_LP and load __x86_64_shared_cache_size_half into
20042         R8_LP.
20043
20044 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20045
20046         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
20047         R8_LP.
20048
20049 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20050
20051         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
20052         logb for POWER7.
20053         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
20054         logbf for POWER7.
20055         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
20056         logbl for POWER7.
20057         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
20058         powerpc32/power7/fpu/s_logb.c via #include.
20059         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
20060         powerpc32/power7/fpu/s_logbf.c via #include.
20061         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
20062         powerpc32/power7/fpu/s_logbl.c via #include.
20063
20064 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
20065
20066         * README.libm: Remove file.
20067
20068 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20069
20070         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
20071         count for x32.  Use R*_LP and omit operand-size suffix.
20072
20073 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20074
20075         * shlib-versions: Move x86_64-.*-linux.* entries to ...
20076         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
20077         * sysdeps/x86_64/x32/shlib-versions: New file.
20078
20079 2012-05-14  Roland McGrath  <roland@hack.frob.com>
20080
20081         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
20082         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
20083         Use _dl_fatal_printf instead.
20084
20085 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20086
20087         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
20088         set if not set by the user.  Do not allow for being unset.
20089         * sysdeps/unix/sysv/linux/configure: Regenerated.
20090
20091 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20092
20093         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
20094         the `q' suffix from lea and replace .quad with ASM_ADDR.
20095
20096 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20097
20098         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
20099         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
20100         instead of $17.
20101         (PTR_DEMANGLE): Likewise.
20102
20103 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20104
20105         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
20106         (LP_OP): Likewise.
20107         (ASM_ADDR): Likewise.
20108         (RAX_LP): Likewise.
20109         (RBP_LP): Likewise.
20110         (RBX_LP): Likewise.
20111         (RCX_LP): Likewise.
20112         (RDI_LP): Likewise.
20113         (RSI_LP): Likewise.
20114         (RSP_LP): Likewise.
20115         (R8_LP): Likewise.
20116         (R9_LP): Likewise.
20117         (R10_LP): Likewise.
20118         (R10_LP): Likewise.
20119         (R11_LP): Likewise.
20120         (R12_LP): Likewise.
20121         (R13_LP): Likewise.
20122         (R14_LP): Likewise.
20123         (R15_LP): Likewise.
20124
20125 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20126
20127         * sysdeps/x86_64/x32/dl-machine.h: New file.
20128
20129 2012-05-14  Andreas Jaeger  <aj@suse.de>
20130
20131         * manual/Makefile (subdir): Remove export of subdir.
20132         (all): Remove target.
20133         (.PHONY): Remove all from list.
20134         (mkinstalldirs): Remove.
20135         (.PHONY): Remove installdirs from list.
20136         ($(inst_infodir)/libc.info): Use make-target-directory.
20137         (installdirs): Remove.
20138         (subdir_%): Remove.
20139         (glibc-targets): Remove.
20140         (lib): Remove.
20141         (stubs): Remove.
20142         ($(objpfx)stubs ../po/manual.pot): Remove.
20143         ($(objpfx)stamp%): Remove.
20144         (make-target-directory): Remove.
20145         (subdir_install): Remove.
20146         (routines): Remove.
20147         (aux): Remove.
20148         (sources): Remove.
20149         (objects): Remove.
20150         (headers): Remove.
20151
20152         [BZ #13750]
20153         * manual/.gitignore: Remove, it's not needed anymore.
20154         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
20155         all files in it.
20156         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
20157         directory.
20158         (texis): Renamed to $(objpfx)texis.
20159         (texis-path): New, contains path to generated files.
20160         (chapters.%): Use texis-path for complete path, add extra argument
20161         libc-texinfo.sh.
20162         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
20163         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
20164         (summary,texi, stamp-summary): Use complete path of
20165         files. Generate files in build dir.
20166         (dir-add.texi): Build in build dir.
20167         (libm-err.texi,stamp-libm-err): Likewise.
20168         (version.texi, stamp-version): Likewise.
20169         (.%c.texi): Likewise.
20170         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
20171         (mostlyclean): Remove target.
20172         (realclean): Remove target.
20173         (generated): Add new variable with contents from mostlyclean and
20174         realclean, remove entries duplicated in common-mostlyclean, add
20175         stamp-libm-err and stamp-version.
20176         (generated-dirs): Add libc directory.
20177         ($(inst_infodir)/libc.info): Install files from build dir.
20178
20179         * manual/install.texi (Configuring and compiling): Adjust since
20180         the info files are not part of the tar ball anymore.
20181
20182 2012-05-14  Andreas Jaeger  <aj@suse.de>
20183
20184         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
20185         variable.
20186
20187 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20188
20189         [BZ #13717]
20190         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
20191         to 2.2.0 where earlier.
20192         * sysdeps/unix/sysv/linux/configure: Regenerated.
20193         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
20194         Remove conditional code.
20195         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
20196         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
20197         Remove conditional code.
20198         [!__NR_lchown]: Likewise.
20199         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20200         [__NR_lchown]: Likewise.
20201         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
20202         comment referencing __ASSUME_LCHOWN_SYSCALL.
20203         * sysdeps/unix/sysv/linux/i386/sigaction.c
20204         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20205         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20206         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
20207         Remove conditional code.
20208         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
20209         (__protocol_available): Remove #if 0 code.
20210         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
20211         conditional code.
20212         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
20213         * sysdeps/unix/sysv/linux/kernel-features.h
20214         (__ASSUME_GETCWD_SYSCALL): Don't define.
20215         (__ASSUME_REALTIME_SIGNALS): Likewise.
20216         (__ASSUME_PREAD_SYSCALL): Likewise.
20217         (__ASSUME_PWRITE_SYSCALL): Likewise.
20218         (__ASSUME_POLL_SYSCALL): Likewise.
20219         (__ASSUME_LCHOWN_SYSCALL): Likewise.
20220         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
20221         non-SPARC.
20222         (__ASSUME_SIOCGIFNAME): Don't define.
20223         (__ASSUME_MSG_NOSIGNAL): Likewise.
20224         (__ASSUME_SENDFILE): Define unconditionally.
20225         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
20226         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
20227         conditional code.
20228         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
20229         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
20230         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20231         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20232         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
20233         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20234         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
20236         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20237         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
20239         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20240         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
20242         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20243         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
20245         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20246         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
20248         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20249         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
20251         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20252         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
20254         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20255         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
20257         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20258         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20259         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
20260         Remove conditional code.
20261         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20262         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20263         Remove conditional code.
20264         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20265         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
20266         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
20267         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20268         Remove conditional code.
20269         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20270         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
20271         Remove conditional code.
20272         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20273         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
20274         Remove conditional code.
20275         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20276         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20277         Remove conditional code.
20278         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20279         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20280         Remove conditional code.
20281         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20282         * sysdeps/unix/sysv/linux/sh/pwrite64.c
20283         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20284         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20285         * sysdeps/unix/sysv/linux/sigaction.c
20286         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20287         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20288         * sysdeps/unix/sysv/linux/sigpending.c
20289         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20290         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20291         * sysdeps/unix/sysv/linux/sigprocmask.c
20292         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20293         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20294         * sysdeps/unix/sysv/linux/sigsuspend.c
20295         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20296         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20297         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
20298         (__libc_missing_rt_sigs): Remove.
20299         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
20300         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
20301         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
20302         Remove conditional code.
20303         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
20304         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
20305         return 1.
20306         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
20307         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
20308         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
20309         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
20310
20311 2012-05-14  Andreas Jaeger  <aj@suse.de>
20312
20313         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
20314         it's not used in glibc.
20315         (__coshm1): Likewise.
20316         (__acosh1p): Likewise.
20317         (__sgn): Likewise.
20318
20319         * manual/string.texi (Copying and Concatenation): Add missing
20320         variable in concat example.
20321         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
20322
20323 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20324
20325         [BZ #14103]
20326         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
20327         __builtin_clzl with __builtin_clzll.
20328
20329 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20330
20331         [BZ #14104]
20332         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
20333         libc_freeres_ptr.
20334
20335 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20336
20337         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
20338         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
20339         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
20340         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
20341
20342 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
20343
20344         * NEWS: Update ia64 info.
20345
20346 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
20347
20348         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
20349         used as bcopy.
20350
20351 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
20352
20353         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
20354         * sysdeps/unix/syscalls.list (dup3): Likewise.
20355         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
20356         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
20357
20358 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20359
20360         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
20361         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
20362
20363 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20364
20365         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
20366         thread pointer.
20367         (TLS_IE): Use mov/add instead of movq/addq to load thread
20368         pointer.
20369         (TLS_GD_PREFIX): New.
20370         (TLS_GD): Use it.
20371
20372 2012-05-11  David S. Miller  <davem@davemloft.net>
20373
20374         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
20375         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
20376         (_FPU_SETCW): Likewise.
20377
20378 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20379
20380         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
20381         is 32-byte aligned.
20382
20383 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
20384
20385         [BZ #11837]
20386         * iconvdata/gb18030.c: Update tables.
20387         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
20388         characters specially.
20389         (BODY for TO_LOOP): Add encoding of missing ranges.
20390
20391 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
20392
20393         [BZ #13673]
20394         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
20395         * sysdeps/mach/hurd/dup3.c: Likewise.
20396         * sysdeps/mach/hurd/readlinkat.c: Likewise.
20397         * sysdeps/powerpc/memmove.c:: Likewise.
20398
20399 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20400
20401         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
20402         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
20403
20404 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20405
20406         * elf/elf.h (R_X86_64_RELATIVE64): New.
20407         (R_X86_64_NUM): Updated.
20408         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20409         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
20410         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
20411         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
20412         tst-quad1pie tst-quad2pie
20413         (modules-names): Add tst-quadmod1 tst-quadmod2.
20414         ($(objpfx)tst-quad1): New dependency.
20415         ($(objpfx)tst-quad2): Likewise.
20416         ($(objpfx)tst-quad1pie): Likewise.
20417         ($(objpfx)tst-quad2pie): Likewise.
20418         * sysdeps/x86_64/tst-quad1.c: New file.
20419         * sysdeps/x86_64/tst-quad1pie.c: New file.
20420         * sysdeps/x86_64/tst-quad2.c: Likewise.
20421         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
20422         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
20423         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
20424         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
20425         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
20426
20427 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20428
20429         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
20430         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
20431         * streams/stropts.h (t_scalar_t): Define type.
20432
20433         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
20434         (_PATH_PRESERVE): Set to "/var/lib".
20435         (_PATH_RWHODIR): Set to "/var/spool/rwho".
20436
20437         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
20438         instead of int.
20439
20440         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
20441         if __dir_mkfile succeeded.
20442
20443         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
20444         checking for _hurd_dtablesize.  Unlock it right after having
20445         finished _hurd_dtable allocation.
20446
20447 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20448
20449         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
20450         * sysdeps/mach/hurd/configure: Regenerated.
20451         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
20452         special-casing to...
20453         * sysdeps/gnu/configure.in: ... this new file.
20454         * sysdeps/unix/sysv/linux/configure: Regenerated.
20455         * sysdeps/gnu/configure: New generated file.
20456
20457         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
20458         for Linux: use nsec instead of usec, as well as:
20459         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
20460         members of type struct timespec.
20461         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
20462         New macros.
20463         (struct stat64): Likewise.
20464         (_STATBUF_ST_NSEC): New macro.
20465         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
20466
20467         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20468         __strtoul_internal rather than strtoul.
20469
20470 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20471
20472         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
20473         and reject them.
20474
20475 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20476
20477         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
20478         which preserves existing values.
20479         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
20480
20481 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20482
20483         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
20484         TIMEOUT values.  Return EINVAL for NFDS values either negative or
20485         greater than FD_SETSIZE.
20486
20487 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20488
20489         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
20490         allocated, call __vm_protect to finish enabling the existing space, and
20491         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
20492         allocate the remainder.
20493
20494 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20495
20496         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
20497         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
20498
20499 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20500
20501         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
20502         sysdeps/mach/hurd/readlink.c.
20503
20504         * posix/tst-sysconf.c (posix_options): Only use
20505         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
20506         _POSIX_SYNCHRONIZED_IO when they are defined
20507         * sysdeps/mach/hurd/bits/posix_opt.h:
20508         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
20509         (_XOPEN_REALTIME): Undefine macro.
20510         (_XOPEN_REALTIME_THREADS): Undefine macro.
20511         (_XOPEN_SHM): Undefine macro.
20512         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
20513         macro to -1.
20514         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
20515         macro to -1.
20516         (_POSIX_ASYNC_IO): Undefine macro.
20517         (_POSIX_PRIORITIZED_IO): Undefine macro.
20518         (_POSIX_SPIN_LOCKS): Define macro to -1.
20519
20520         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
20521         SA_NODEFER, SA_RESETHAND.
20522         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
20523         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
20524         F_DUPFD_CLOEXEC.
20525
20526 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20527
20528         * elf/Makefile (pldd-modules): Define unconditionally.
20529
20530 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20531
20532         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
20533
20534 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20535
20536         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
20537         Return ENOENT when name is empty.
20538         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
20539
20540 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20541
20542         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
20543
20544         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
20545
20546 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20547
20548         Fix mlock in all cases except non-readable pages.
20549         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
20550         instead of VM_PROT_ALL as parameter to __vm_wire function.
20551
20552         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
20553         (__mkdir): When path is `/', just fail with EEXIST.
20554         * sysdeps/mach/hurd/mkdirat.c: Likewise.
20555
20556 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20557
20558         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
20559         <sys/uio.h> (for writev).
20560         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
20561         and <sys/param.h> (for MIN).
20562
20563 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20564
20565         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
20566         REQUESTED_TIME.  Properly set the remaining time and return EINTR
20567         if interrupted.
20568
20569 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20570
20571         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
20572         Depend on against $(link-rpcuserlibs).
20573
20574 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20575
20576         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
20577         (__libc_stack_end): Do not use attribute_relro.
20578         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
20579         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
20580         to libthread-provided value.
20581         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
20582         attribute_relro.
20583
20584 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20585
20586         [BZ #3748]
20587         * bits/libc-lock.h (__libc_once_get): New macro.
20588         * sysdeps/mach/bits/libc-lock.h: Likewise.
20589         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
20590         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
20591         instead of using implementation details.
20592
20593         * libio/fileops.c: Unconditionally include <kernel-features.h>.
20594         * libio/freopen.c: Likewise.
20595         * libio/freopen64.c: Likewise.
20596         * misc/syslog.c: Likewise.
20597         * nscd/connections.c: Likewise.
20598         * nscd/netgroupcache.c: Likewise.
20599         * sysdeps/posix/getcwd.c: Likewise.
20600
20601 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20602
20603         * math/w_ilogbf.c: Add #include <limits.h>.
20604
20605 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20606
20607         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
20608         path instead of returning without unlocking.
20609
20610         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
20611         immediate-write ioctls.
20612         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
20613
20614 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20615
20616         * sysdeps/mach/hurd/i386/init-first.c (init): Use
20617         __builtin_frame_address instead of making assumptions about the
20618         location of the return address relative to DATA.  Force early load of
20619         the return address.
20620         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
20621         __builtin_frame_address.
20622
20623         dup3 for GNU Hurd.
20624         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
20625         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
20626         implement dup3 and do some further code clean-ups.
20627         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
20628         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
20629
20630 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20631
20632         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
20633
20634         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
20635         HURD_CRITICAL_END around holding _hurd_dtable_lock.
20636         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
20637         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
20638         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
20639         d->port.lock.
20640
20641         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
20642         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
20643         when handler == SIG_ERR, not when handler != SIG_ERR.
20644
20645 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20646
20647         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
20648         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
20649         definitions.
20650
20651         accept4 for GNU Hurd.
20652         * include/sys/socket.h (__libc_accept4): New prototype.
20653         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
20654         to implement __libc_accept4.
20655         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
20656         __libc_accept4.
20657         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
20658
20659         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
20660         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
20661         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
20662         signal-defines.sym.
20663
20664 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20665
20666         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
20667
20668 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20669
20670         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
20671         assertion on O_CLOEXEC flag.
20672         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
20673         * hurd/intern-fd.c: Likewise.
20674         * hurd/port2fd.c: Likewise.
20675
20676 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20677
20678         [BZ #3906]
20679         * bits/in.h (IPV6_PKTINFO): Define new macro.
20680         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
20681
20682 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20683
20684         [BZ #13954]
20685         [BZ #13955]
20686         [BZ #13956]
20687         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
20688         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
20689         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
20690         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
20691         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
20692         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
20693         * math/libm-test.inc (logb_test) : Additional logb tests.
20694
20695 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
20696             Andreas Jaeger  <aj@suse.de>
20697
20698         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
20699         * configure: Regenerated.
20700         * config.h.in (LINK_OBSOLETE_RPC): New macro.
20701         * config.make.in (link-obsolete-rpc): New substituted variable.
20702         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
20703         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
20704         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
20705         (shared-only-routines): Don't set it under [link-obsolete-rpc],
20706         so that libc.a contains the symbols.
20707         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
20708         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
20709         * sunrpc/auth_none.c: Likewise.
20710         * sunrpc/auth_unix.c: Likewise.
20711         * sunrpc/authdes_prot.c: Likewise.
20712         * sunrpc/authuxprot.c: Likewise.
20713         * sunrpc/clnt_gen.c: Likewise.
20714         * sunrpc/clnt_perr.c: Likewise.
20715         * sunrpc/clnt_raw.c: Likewise.
20716         * sunrpc/clnt_simp.c: Likewise.
20717         * sunrpc/clnt_tcp.c: Likewise.
20718         * sunrpc/clnt_udp.c: Likewise.
20719         * sunrpc/clnt_unix.c: Likewise.
20720         * sunrpc/des_crypt.c: Likewise.
20721         * sunrpc/des_soft.c: Likewise.
20722         * sunrpc/get_myaddr.c: Likewise.
20723         * sunrpc/key_call.c: Likewise.
20724         * sunrpc/key_prot.c: Likewise.
20725         * sunrpc/netname.c: Likewise.
20726         * sunrpc/pm_getmaps.c: Likewise.
20727         * sunrpc/pm_getport.c: Likewise.
20728         * sunrpc/pmap_clnt.c: Likewise.
20729         * sunrpc/pmap_prot.c: Likewise.
20730         * sunrpc/pmap_prot2.c: Likewise.
20731         * sunrpc/pmap_rmt.c: Likewise.
20732         * sunrpc/publickey.c: Likewise.
20733         * sunrpc/rpc_cmsg.c: Likewise.
20734         * sunrpc/rpc_common.c: Likewise.
20735         * sunrpc/rpc_dtable.c: Likewise.
20736         * sunrpc/rpc_prot.c: Likewise.
20737         * sunrpc/rpc_thread.c: Likewise.
20738         * sunrpc/rtime.c: Likewise.
20739         * sunrpc/svc.c: Likewise.
20740         * sunrpc/svc_auth.c: Likewise.
20741         * sunrpc/svc_raw.c: Likewise.
20742         * sunrpc/svc_run.c: Likewise.
20743         * sunrpc/svc_tcp.c: Likewise.
20744         * sunrpc/svc_udp.c: Likewise.
20745         * sunrpc/svc_unix.c: Likewise.
20746         * sunrpc/svcauth_des.c: Likewise.
20747         * sunrpc/xcrypt.c: Likewise.
20748         * sunrpc/xdr.c: Likewise.
20749         * sunrpc/xdr_array.c: Likewise.
20750         * sunrpc/xdr_float.c: Likewise.
20751         * sunrpc/xdr_intXX_t.c: Likewise.
20752         * sunrpc/xdr_mem.c: Likewise.
20753         * sunrpc/xdr_rec.c: Likewise.
20754         * sunrpc/xdr_ref.c: Likewise.
20755         * sunrpc/xdr_sizeof.c: Likewise.
20756         * sunrpc/xdr_stdio.c: Likewise.
20757
20758 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20759
20760         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
20761         change.  Update copyright years.
20762
20763 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
20764
20765         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
20766
20767 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
20768             Joseph Myers  <joseph@codesourcery.com>
20769             Paul Pluzhnikov  <ppluzhnikov@google.com>
20770
20771         [BZ #14012]
20772         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
20773         requiring rpcgen.
20774         [cross-compiling] (extra-libs): Likewise.
20775         [cross-compiling] (extra-libs-others): Likewise.
20776         [cross-compiling] (librpcsvc-routines): Likewise.
20777         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
20778         [cross-compiling] (omit-deps): Likewise.
20779         (sunrpc-CPPFLAGS): New variable.
20780         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
20781         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
20782         (cross-rpcgen-objs): New variable.
20783         (extra-objs): Append $(cross-rpcgen-objs).
20784         ($(cross-rpcgen-objs)): New rule.
20785         ($(objpfx)cross-rpcgen): Likewise.
20786         (rpcgen-cmd): Define to use $(built-program-file).  Expand
20787         comment.
20788         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
20789         ($(objpfx)x%.stmp): Likewise.
20790         * sunrpc/proto.h [IS_IN_build] (_): Define.
20791         [IS_IN_build] (_libc_intl_domainname): Likewise.
20792
20793 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20794
20795         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
20796         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
20797         and R_X86_64_TPOFF64.
20798
20799 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
20800
20801         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
20802         sysdeps/unix/sysv/syscalls.list.
20803         (stime): Likewise.
20804         (utime): Likewise.
20805         * sysdeps/unix/sysv/syscalls.list: Remove file.
20806
20807 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20808
20809         [BZ #3440]
20810         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
20811         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
20812         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
20813         (__LC_IDENTIFICATION): Make these macros useful in #if
20814         expressions, as required by C99.
20815
20816 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
20817
20818         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
20819         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
20820         after this.
20821
20822 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20823
20824         * stdlib/longlong.h: Updated from GCC.
20825
20826 2012-05-09  Andreas Jaeger  <aj@suse.de>
20827
20828         * nscd/nscd.c (run_modes): Make named enum, reorder so that
20829         default is first entry.
20830         (run_mode): Set type.
20831         (main): Remove informal message about syslog.
20832         (options): Fix typo.
20833
20834         [BZ #14053]
20835         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
20836         to asm.
20837         (lrint): Likewise.
20838         (llrintf): Likewise.
20839         (llrint): Likewise.
20840         (rint): Likewise.
20841         (rintf): Likewise.
20842         (nearbyint): Likewise.
20843         (nearbyintf): Likewise.
20844
20845 2012-05-09  Andreas Jaeger  <aj@suse.de>
20846             Pedro Alves  <palves@redhat.com>
20847
20848         * nscd/nscd.c (run_mode): Use enum.
20849         (main): Cleanup coding style issue.
20850
20851 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
20852             Andreas Jaeger  <aj@suse.de>
20853
20854         * nscd/nscd.c (go_background): Replaced with...
20855         (run_mode): ... this.
20856         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
20857         (options): Add -F --foreground.
20858         (main): Implement it.
20859         (parse_opt): Parse it.
20860
20861 2012-05-09  Andreas Jaeger  <aj@suse.de>
20862
20863         [BZ #14083]
20864         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
20865         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
20866         -Wconversion warning.
20867         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
20868         Likewise.
20869
20870 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
20871
20872         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
20873         == 0.
20874         (LC_ALL): Use macro-int-constant.
20875         (LC_COLLATE): Likewise.
20876         (LC_CTYPE): Likewise.
20877         (LC_MESSAGES): Likewise.
20878         (LC_MONETARY): Likewise.
20879         (LC_NUMERIC): Likewise.
20880         (LC_TIME): Likewise.
20881         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
20882         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
20883         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20884         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
20885         Specify type.
20886         [C99-based standards] (float_t): Expect type.
20887         [C99-based standards] (double_t): Expect type.
20888         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
20889         type.
20890         [C99-based standards] (HUGE_VALL): Likewise.
20891         [C99-based standards] (INFINITY): Likewise.
20892         [C99-based standards] (NAN): Likewise.
20893         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
20894         [C99-based standards] (FP_NAN): Likewise.
20895         [C99-based standards] (FP_NORMAL): Likewise.
20896         [C99-based standards] (FP_SUBNORMAL): Likewise.
20897         [C99-based standards] (FP_ZERO): Likewise.
20898         [C99-based standards] (FP_FAST_FMA): Use
20899         optional-macro-int-constant.  Specify type.  Require == 1.
20900         [C99-based standards] (FP_FAST_FMAF): Likewise.
20901         [C99-based standards] (FP_FAST_FMAL): Likewise.
20902         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
20903         [C99-based standards] (FP_ILOGBNAN): Likewise.
20904         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
20905         Specify type.
20906         [C99-based standards] (MATH_ERREXCEPT): Likewise.
20907         [C99-based standards] (math_errhandling): Specify type.
20908         [ISO99 || ISO11] (signgam): Do not allow.
20909         [non-C99-based standards] (copysignf): Do not allow.
20910         [non-C99-based standards] (exp2f): Likewise.
20911         [non-C99-based standards] (log2f): Likewise.
20912         [non-C99-based standards] (modff): Allow.
20913         [non-C99-based standards] (erff): Do not allow.
20914         [non-C99-based standards] (erfcf): Likewise.
20915         [non-C99-based standards] (gammaf): Likewise.
20916         [non-C99-based standards] (hypotf): Likewise.
20917         [non-C99-based standards] (j0f): Likewise.
20918         [non-C99-based standards] (j1f): Likewise.
20919         [non-C99-based standards] (jnf): Likewise.
20920         [non-C99-based standards] (lgammaf): Likewise.
20921         [non-C99-based standards] (tgammaf): Likewise.
20922         [non-C99-based standards] (y0f): Likewise.
20923         [non-C99-based standards] (y1f): Likewise.
20924         [non-C99-based standards] (ynf): Likewise.
20925         [non-C99-based standards] (isnanf): Likewise.
20926         [non-C99-based standards] (acoshf): Likewise.
20927         [non-C99-based standards] (asinhf): Likewise.
20928         [non-C99-based standards] (atanhf): Likewise.
20929         [non-C99-based standards] (cbrtf): Likewise.
20930         [non-C99-based standards] (expm1f): Likewise.
20931         [non-C99-based standards] (ilogbf): Likewise.
20932         [non-C99-based standards] (log1pf): Likewise.
20933         [non-C99-based standards] (logbf): Likewise.
20934         [non-C99-based standards] (nextafterf): Likewise.
20935         [non-C99-based standards] (remainderf): Likewise.
20936         [non-C99-based standards] (rintf): Likewise.
20937         [non-C99-based standards] (scalbf): Likewise.
20938         [non-C99-based standards] (copysignl): Likewise.
20939         [non-C99-based standards] (exp2l): Likewise.
20940         [non-C99-based standards] (log2l): Likewise.
20941         [non-C99-based standards] (modfl): Allow.
20942         [non-C99-based standards] (erfl): Do not allow.
20943         [non-C99-based standards] (erfcl): Likewise.
20944         [non-C99-based standards] (gammal): Likewise.
20945         [non-C99-based standards] (hypotl): Likewise.
20946         [non-C99-based standards] (j0l): Likewise.
20947         [non-C99-based standards] (j1l): Likewise.
20948         [non-C99-based standards] (jnl): Likewise.
20949         [non-C99-based standards] (lgammal): Likewise.
20950         [non-C99-based standards] (tgammal): Likewise.
20951         [non-C99-based standards] (y0l): Likewise.
20952         [non-C99-based standards] (y1l): Likewise.
20953         [non-C99-based standards] (ynl): Likewise.
20954         [non-C99-based standards] (isnanl): Likewise.
20955         [non-C99-based standards] (acoshl): Likewise.
20956         [non-C99-based standards] (asinhl): Likewise.
20957         [non-C99-based standards] (atanhl): Likewise.
20958         [non-C99-based standards] (cbrtl): Likewise.
20959         [non-C99-based standards] (expm1l): Likewise.
20960         [non-C99-based standards] (ilogbl): Likewise.
20961         [non-C99-based standards] (log1pl): Likewise.
20962         [non-C99-based standards] (logbl): Likewise.
20963         [non-C99-based standards] (nextafterl): Likewise.
20964         [non-C99-based standards] (remainderl): Likewise.
20965         [non-C99-based standards] (rintl): Likewise.
20966         [non-C99-based standards] (scalbl): Likewise.
20967         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20968         [non-C99-based standards] (FP_*): Do not allow.
20969         [C99-based standards] (FP_*): Change to
20970         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
20971         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
20972         allow.
20973         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
20974         (SIG_ERR): Likewise.
20975         [X/Open-based standards] (SIG_HOLD): Likewise.
20976         (SIG_IGN): Likewise.
20977         (SIGABRT): Use macro-int-constant.  Specify type.  Require
20978         positive value.
20979         (SIGFPE): Likewise.
20980         (SIGILL): Likewise.
20981         (SIGINT): Likewise.
20982         (SIGSEGV): Likewise.
20983         (SIGTER): Likewise.
20984         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
20985         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
20986         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
20987         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
20988         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
20989         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
20990         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
20991         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
20992         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
20993         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
20994         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
20995         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
20996         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
20997         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
20998         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
20999         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
21000         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
21001         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
21002         [X/Open-based standards] (SIGTRAP): Likewise.
21003         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
21004         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
21005         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
21006         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
21007         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21008         allow.
21009
21010 2012-05-08  Ian Wienand  <ianw@vmware.com>
21011
21012         [BZ #14080]
21013         * time/tzset.c (__tzset_parse_tz): Update default rules for
21014         daylight time changes in the Energy Policy Act of 2005.
21015
21016 2012-05-09  Andreas Jaeger  <aj@suse.de>
21017
21018         [BZ #13983]
21019         * elf/ldconfig.c (parse_conf): Change string to make clear that
21020         ldconfig only issued a warning if ld.so.conf does not exist.
21021
21022 2012-05-08  David S. Miller  <davem@davemloft.net>
21023
21024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
21025         movxtod instead of popping the value on the stack.
21026
21027         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21028
21029 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
21030
21031         * config.h.in: Add HAVE_ARM_PCS_VFP.
21032
21033 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
21034
21035         [BZ #13979]
21036         * include/features.h: Warn if user requests __FORTIFY_SOURCE
21037         checking but the checks are disabled for any reason.
21038
21039 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
21040
21041         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
21042         and ELF64_R_TYPE with ELFW(R_TYPE).
21043
21044 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
21045
21046         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
21047         (ulimit): Likewise.
21048
21049         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
21050         (settimeofday): Likewise.
21051
21052 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
21053
21054         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
21055         a struct th_u2 inside the union, and move tu_block/tu_code into
21056         a new th_u3 union of tu_block/tu_code inside of that.  Move
21057         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
21058         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
21059         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
21060         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
21061         (th_stuff): Change to th_u1.tu_stuff.
21062         (th_data): Define.
21063         (th_msg): Change to th_u1.th_u2.tu_data.
21064
21065 2012-05-07  David S. Miller  <davem@davemloft.net>
21066
21067         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21068
21069         [BZ #14074]
21070         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
21071         (SETUP_PIC_REG): Use it.
21072         (SETUP_PIC_REG_LEAF): Use it.
21073
21074 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
21075
21076         [BZ #13885]
21077         [BZ #13923]
21078         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21079         USE_AS_EXPM1L.
21080         (EXPL_FINITE): Likewise.
21081         (FLDLOG): Likewise.
21082         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21083         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21084         e_expl.S.
21085         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21086         USE_AS_EXPM1L.
21087         (EXPL_FINITE): Likewise.
21088         (FLDLOG): Likewise.
21089         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21090         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21091         e_expl.S.
21092         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
21093         test of -max_value argument for long double.
21094         * sysdeps/i386/fpu/libm-test-ulps: Update.
21095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21096
21097 2012-05-06  David S. Miller  <davem@davemloft.net>
21098
21099         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
21100         quad soft-float symbols whose references which are compiler
21101         generated.
21102         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
21103
21104 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
21105
21106         [BZ #13884]
21107         [BZ #13914]
21108         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21109         USE_AS_EXP10L.
21110         (EXPL_FINITE): Likewise.
21111         (FLDLOG): Likewise.
21112         (c0): Likewise.
21113         (c1): Likewise.
21114         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21115         Adjust comments for base varying.
21116         (__expl_finite): Change alias to EXPL_FINITE.
21117         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
21118         e_expl.S.
21119         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
21120         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
21121         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
21122         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
21123         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21124         USE_AS_EXP10L.
21125         (EXPL_FINITE): Likewise.
21126         (FLDLOG): Likewise.
21127         (c0): Likewise.
21128         (c1): Likewise.
21129         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21130         Adjust comments for base varying.
21131         (__expl_finite): Change alias to EXPL_FINITE.
21132         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
21133         tests for bugs.
21134         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21135
21136         [BZ #14064]
21137         * math/libm-test.inc (check_float_internal): Correct ulp
21138         calculation for subnormal expected results.
21139
21140 2012-05-06  Andreas Jaeger  <aj@suse.de>
21141
21142         * Makeconfig (+math-flags): New, set to -frounding-math.
21143         (+cflags): Add +math-flags so that all of glibc gets compiled with
21144         it.
21145
21146         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
21147
21148 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
21149
21150         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
21151         Disable one test.
21152
21153         [BZ #13787]
21154         [BZ #13922]
21155         [BZ #14036]
21156         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
21157         (__ieee754_expl): Allow for and saturate large arguments.
21158         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
21159         (u_threshold): Likewise.
21160         (__exp): Call __ieee754_exp before checking for overflow and
21161         underflow.
21162         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
21163         (u_threshold): Likewise.
21164         (__expf): Call __ieee754_expf before checking for overflow and
21165         underflow.
21166         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
21167         (u_threshold): Likewise.
21168         (__expl): Call __ieee754_expl before checking for overflow and
21169         underflow.
21170         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
21171         (__ieee754_expl): Allow for and saturate large arguments.
21172         * math/libm-test.inc (exp_test): Add another test.  Do not allow
21173         missing overflow exception on overflow.
21174         (expm1_test): Do not allow missing overflow exception on overflow.
21175
21176         * sysdeps/i386/fpu/e_expl.c: Move to ...
21177         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
21178         rather than using inline asm.
21179         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
21180         * sysdeps/x86_64/fpu/e_expl.S: Copy from
21181         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
21182
21183         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
21184         (nice): Likewise.
21185         (poll): Likewise.
21186         (signal): Likewise.
21187         (time): Likewise.
21188         (times): Likewise.
21189
21190 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21191
21192         * sysdeps/unix/syscalls.list (adjtime): Add entry from
21193         sysdeps/unix/common/syscalls.list.
21194         (fchmod): Likewise.
21195         (fchown): Likewise.
21196         (ftruncate): Likewise.
21197         (getrusage): Likewise.
21198         (gettimeofday): Likewise.
21199         (setpgid): Likewise.
21200         (setregid): Likewise.
21201         (setreuid): Likewise.
21202         (sigaction): Likewise.
21203         (truncate): Likewise.
21204         (vhangup): Likewise.
21205         * sysdeps/unix/common/syscalls.list: Remove file.
21206         * sysdeps/unix/bsd/Implies: Don't include unix/common.
21207         * sysdeps/unix/sysv/linux/Implies: Likewise.
21208
21209 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21210
21211         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
21212         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
21213         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
21214         Moved to ...
21215         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
21216         Here.
21217         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
21218         to ...
21219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
21220         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
21221         to ...
21222         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
21223         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
21224         to ...
21225         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
21226         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
21227         to ...
21228         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
21229         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
21230         to ...
21231         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
21232         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
21233         to ...
21234         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
21235         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
21236         to ...
21237         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
21238         Here.
21239         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
21240         to ...
21241         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
21242         Here.
21243         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
21244         to ...
21245         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
21246         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
21247         Moved to ...
21248         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
21249         Here.
21250         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
21251         to ...
21252         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
21253
21254 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21255
21256         * sysdeps/unix/common/bits/dirent.h: Remove file.
21257         * sysdeps/unix/common/bits/fcntl.h: Likewise.
21258
21259         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
21260         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
21261         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
21262         * sysdeps/unix/bsd/isatty.c: Likewise.
21263         * sysdeps/unix/bsd/tcdrain.c: Likewise.
21264         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
21265         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
21266
21267 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21268
21269         [BZ #13563]
21270         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
21271         long double comparison inaccuracies.
21272         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
21273         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21274
21275 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
21276
21277         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
21278         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
21279
21280 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21281
21282         [BZ #14049]
21283         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
21284         nonzero digits before rounding a hex value.
21285         * stdlib/tst-strtod.c (tests): Add another test.
21286
21287 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21288
21289         * sysdeps/s390/fpu/libm-test-ulps: Update.
21290
21291 2012-05-03  Andreas Jaeger  <aj@suse.de>
21292
21293         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
21294         does not get optimized out.
21295         (malloc_opt_barrier): New.
21296
21297 2012-05-03  Andreas Jaeger  <aj@suse.de>
21298             Roland McGrath  <roland@hack.frob.com>
21299
21300         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
21301         intermediate file deletion.
21302         (generated): Add .symlist files.
21303
21304 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
21305
21306         [BZ #13775]
21307         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
21308         Redirect under this condition.
21309         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21310         [__USE_GNU] (__dprintf_chk): Not under this condition.
21311         [__USE_GNU] (__vdprintf_chk): Likewise.
21312         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
21313         under this condition.
21314         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21315         [__USE_XOPEN2K8] (dprintf): Define under this condition.
21316         [__USE_XOPEN2K8] (vdprintf): Likewise.
21317         [__USE_GNU] (__dprintf_chk): Not under this condition.
21318         [__USE_GNU] (__vdprintf_chk): Likewise.
21319         [__USE_GNU] (dprintf): Likewise.
21320         [__USE_GNU] (vdprintf): Likewise.
21321
21322 2012-05-03  Roland McGrath  <roland@hack.frob.com>
21323
21324         * elf/Makefile (common-generated): Set this instead of generated for
21325         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
21326         $(all-built-dso)-derived lists.
21327
21328 2012-05-03  Andreas Jaeger  <aj@suse.de>
21329
21330         * sysdeps/i386/fpu/libm-test-ulps: Update.
21331
21332         * FAQ: Removed.
21333         * FAQ.in: Likewise.
21334         * scripts/gen-FAQ.pl: Likewise.
21335         * manual/install.texi (Installation): Point to online location of
21336         FAQ.
21337         * Makefile (files-for-dist): Remove FAQ.
21338         (FAQ): Remove.
21339
21340 2012-05-02  Allan McRae  <allan@archlinux.org>
21341
21342         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
21343         (LDFLAGS-reldepmod5.so): Likewise.
21344         (LDFLAGS-reldep6mod1.so): Likewise.
21345         (LDFLAGS-reldep6mod4.so): Likewise.
21346         (LDFLAGS-reldep8mod3.so): Likewise.
21347         (LDFLAGS-unload4mod1.so): Likewise.
21348         (LDFLAGS-unload4mod2.so): Likewise.
21349         (LDFLAGS-tst-initorder): Likewise.
21350         (LDFLAGS-tst-initordera2.so): Likewise.
21351         (LDFLAGS-tst-initordera3.so): Likewise.
21352         (LDFLAGS-tst-initordera4.so): Likewise.
21353         (LDFLAGS-tst-initorderb2.so): Likewise.
21354         (LDFLAGS-noload): Likewise.
21355         (LDFLAGS-next): Likewise.
21356         (LDFLAGS-order2mod1.so): Likewise.
21357         (LDFLAGS-order2mod2.so): Likewise.
21358         (LDFLAGS-tst-initorder2): Likewise.
21359         (LDFLAGS-tst-initorder2a.so): Likewise.
21360         (LDFLAGS-tst-initorder2b.so): Likewise.
21361         (LDFLAGS-tst-initorder2c.so): Likewise.
21362         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
21363
21364 2012-05-02  David S. Miller  <davem@davemloft.net>
21365
21366         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21367
21368 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
21369
21370         [BZ #14055]
21371         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
21372
21373 2012-05-02  Andreas Jaeger  <aj@suse.de>
21374
21375         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
21376         since we manipulate rounding mode.
21377         (CPPFLAGS-test-idouble.c): Likewise.
21378         (CPPFLAGS-test-ifloat.c): Likewise.
21379         (CFLAGS-test-ldouble.c): Likewise.
21380         (CFLAGS-test-double.c): Likewise.
21381         (CFLAGS-test-float.c): Likewise.
21382         (CFLAGS-test-misc.c): Likewise.
21383         (CFLAGS-test-test-fenv.c): Likewise.
21384
21385 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21386
21387         [BZ #2550]
21388         [BZ #2570]
21389         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
21390         comparisons to determine direction to adjust input.
21391
21392 2012-05-01  Roland McGrath  <roland@hack.frob.com>
21393
21394         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
21395         output to the target.
21396
21397         * scripts/localplt.awk: New file.
21398         * elf/Makefile ($(objpfx)check-localplt): Target removed.
21399         (check-localplt-CFLAGS): Variable removed.
21400         ($(all-built-dso:=.jmprel)): New static pattern rule.
21401         (generated): Add those targets.
21402         (localplt-built-dso): New variable.
21403         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
21404
21405         * elf/check-localplt.c: File removed.
21406
21407         * scripts/check-execstack.awk: New file.
21408         * elf/Makefile ($(objpfx)check-execstack): Target removed.
21409         (check-execstack-CFLAGS): Variable removed.
21410         ($(objpfx)check-execstack.h): Target removed.
21411         ($(objpfx)execstack-default): New target.
21412         (generated): Add that instead of check-execstack.h.
21413         ($(all-built-dso:=.phdr)): New static pattern rule.
21414         (generated): Add those targets.
21415         * elf/check-execstack.c: File removed.
21416
21417         * scripts/check-textrel.awk: New file.
21418         * elf/Makefile ($(objpfx)check-textrel): Target removed.
21419         (check-textrel-CFLAGS): Variable removed.
21420         (all-built-dso): Use := to define.o
21421         ($(all-built-dso:=.dyn)): New static pattern rule.
21422         (generated): Add those targets.
21423         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
21424         * config.make.in (READELF): New substituted variable.
21425         * elf/check-textrel.c: File removed.
21426
21427 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21428
21429         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21430         allow.
21431         * conform/data/ctype.h-data [C99-based standards] (isblank):
21432         Expect function.
21433         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
21434         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
21435         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21436         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
21437         Specify type.  Require positive value.
21438         (EILSEQ): Likewise.
21439         (ERANGE): Likewise.
21440         [ISO || POSIX] (EILSEQ): Do not expect.
21441         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
21442         Specify type.  Require positive value.
21443         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
21444         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
21445         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
21446         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
21447         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
21448         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
21449         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
21450         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
21451         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
21452         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
21453         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
21454         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
21455         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
21456         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
21457         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
21458         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
21459         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
21460         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
21461         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
21462         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
21463         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
21464         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
21465         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
21466         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
21467         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
21468         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
21469         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
21470         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
21471         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
21472         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
21473         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
21474         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
21475         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
21476         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
21477         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
21478         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
21479         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
21480         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
21481         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
21482         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
21483         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
21484         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
21485         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
21486         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
21487         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
21488         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
21489         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
21490         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
21491         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
21492         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
21493         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
21494         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
21495         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
21496         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
21497         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
21498         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
21499         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
21500         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
21501         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
21502         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
21503         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
21504         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
21505         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
21506         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
21507         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
21508         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
21509         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
21510         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
21511         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
21512         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
21513         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
21514         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
21515         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
21516         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
21517         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
21518         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
21519         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
21520         Require >= 2.
21521         (FLT_ROUNDS): Expect as macro, not constant.
21522         (FLT_MANT_DIG): Use macro-int-constant.
21523         (DBL_MANT_DIG): Likewise.
21524         (LDBL_MANT_DIG): Likewise.
21525         (FLT_DIG): Likewise.
21526         (DBL_DIG): Likewise.
21527         (LDBL_DIG): Likewise.
21528         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
21529         (DBL_MIN_EXP): Likewise.
21530         (LDBL_MIN_EXP): Likewise.
21531         (FLT_MAX_EXP): Use macro-int-constant.
21532         (DBL_MAX_EXP): Likewise.
21533         (LDBL_MAX_EXP): Likewise.
21534         (FLT_MAX_10_EXP): Likewise.
21535         (DBL_MAX_10_EXP): Likewise.
21536         (LDBL_MAX_10_EXP): Likewise.
21537         (FLT_MAX): Use macro-constant.
21538         (DBL_MAX): Likewise.
21539         (LDBL_MAX): Likewise.
21540         (FLT_EPSILON): Use macro-constant.  Give upper bound.
21541         (DBL_EPSILON): Likewise.
21542         (LDBL_EPSILON): Likewise.
21543         (FLT_MIN): Likewise.
21544         (DBL_MIN): Likewise.
21545         (LDBL_MIN): Likewise.
21546         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
21547         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
21548         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
21549         [ISO11] (FLT_HAS_SUBNORM): Likewise.
21550         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
21551         [ISO11] (DBL_DECIMAL_DIG): Likewise.
21552         [ISO11] (FLT_DECIMAL_DIG): Likewise.
21553         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
21554         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
21555         [ISO11] (FLT_TRUE_MIN): Likewise.
21556         [ISO11] (LDBL_TRUE_MIN): Likewise.
21557         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21558         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
21559         (SCHAR_MIN): Use macro-int-constant.  Specify type.
21560         (SCHAR_MAX): Likewise.
21561         (UCHAR_MAX): Likewise.
21562         (CHAR_MIN): Likewise.
21563         (CHAR_MAX): Likewise.
21564         (MB_LEN_MAX): Use macro-int-constant.
21565         (SHRT_MIN): Use macro-int-constant.  Specify type.
21566         (SHRT_MAX): Likewise.
21567         (USHRT_MAX): Likewise.
21568         (INT_MAX): Likewise.
21569         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
21570         bound negative.
21571         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21572         bound with "U".
21573         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21574         bound with "L".
21575         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
21576         bound negative.  Suffix upper bound with "L".
21577         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21578         bound with "UL".
21579         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
21580         Specify type.
21581         [C99-based standards] (LLONG_MAX): Likewise.
21582         [C99-based standards] (ULLONG_MAX): Likewise.
21583         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
21584         == 0.
21585         [ISO11] (max_align_t): Require type.
21586         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21587
21588         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
21589         from $CFLAGS, without defining away __attribute__ calls.
21590         (checknamespace): Use $CFLAGS_namespace.
21591
21592         * conform/conformtest.pl (@keywords): Only include C99 keywords
21593         for standards based on C99 or C11.
21594
21595         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
21596         Disable tests.
21597         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
21598         UNIX98]: Likewise.
21599
21600         * conform/conformtest.pl: Handle "macro-int-constant" and test for
21601         usability of symbols in #if.
21602
21603         * conform/conformtest.pl: If macro or constant types start
21604         "promoted:", expect the symbol to be of the following type
21605         promoted by the integer promotions.
21606
21607         * conform/conformtest.pl: Parse all "constant" and "macro" lines
21608         in one place.  Also handle "macro-constant".
21609
21610         * conform/conformtest.pl: Only accept expected macro values with
21611         "==".  Parse all "macro" lines in one place.
21612         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
21613
21614         * conform/conformtest.pl: Handle braced types on "constant" lines
21615         instead of handling "typed-constant".
21616         * conform/data/signal.h-data: Use "constant" instead of
21617         "typed-constant".
21618
21619         * conform/conformtest.pl: Handle "optional-" at start of lines in
21620         one place rather than duplicating several cases.  Handle each
21621         format of "macro" line with initial "optional-".
21622
21623         * conform/conformtest.pl: Only accept expected constant or
21624         optional-constant values with "==".  Parse all "constant" lines in
21625         one place.  Parse all "optional-constant" lines in one place.
21626         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
21627         * conform/data/fmtmsg.h-data: Likewise.
21628         * conform/data/netinet/in.h-data: Likewise.
21629         * conform/data/tar.h-data: Likewise.
21630         * conform/data/limits.h-data: Use "==" form on "constant" and
21631         "optional-constant" lines.
21632
21633         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
21634         Use -std=c99 for XOPEN2K.
21635         (@knownproblems): Remove.
21636         (newtoken): Don't check %isknown.
21637
21638         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
21639         Do not expect macro.
21640         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
21641         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
21642         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
21643         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
21644         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
21645         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
21646         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
21647         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
21648         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
21649         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
21650         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
21651         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
21652         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
21653         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
21654         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
21655         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
21656         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
21657         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
21658         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
21659         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
21660         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
21661         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
21662         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
21663         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
21664         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
21665         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
21666         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
21667         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
21668         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
21669         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
21670         [XPG3] (acosh): Likewise.
21671         [XPG3] (asinh): Likewise.
21672         [XPG3] (atanh): Likewise.
21673         [XPG3] (cbrt): Likewise.
21674         [XPG3] (expm1): Likewise.
21675         [XPG3] (ilogb): Likewise.
21676         [XPG3] (log1p): Likewise.
21677         [XPG3] (logb): Likewise.
21678         [XPG3] (nextafter): Likewise.
21679         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
21680         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
21681         [XPG3] (remainder): Likewise.
21682         [XPG3] (rint): Likewise.
21683         [XPG3 || XPG4 || UNIX98] (round): Likewise.
21684         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
21685         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
21686         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
21687         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
21688         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
21689         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
21690         [UNIX98 || XOPEN2K] (scalb): Expect.
21691         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
21692         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
21693         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
21694         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
21695         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
21696         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
21697         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
21698         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
21699         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
21700         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
21701         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
21702         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
21703         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
21704         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
21705         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
21706         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
21707         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
21708         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
21709         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
21710         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
21711         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
21712         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
21713         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
21714         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
21715         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
21716         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
21717         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
21718         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
21719         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
21720         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
21721         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
21722         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
21723         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
21724         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
21725         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
21726         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
21727         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
21728         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
21729         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
21730         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
21731         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
21732         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
21733         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
21734         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
21735         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
21736         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
21737         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
21738         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
21739         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
21740         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
21741         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
21742         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
21743         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
21744         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
21745         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
21746         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
21747         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
21748         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
21749         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
21750         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
21751         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
21752         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
21753         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
21754         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
21755         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
21756         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
21757         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
21758         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
21759         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
21760         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
21761         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
21762         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
21763         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
21764         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
21765         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
21766         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
21767         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
21768         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
21769         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
21770         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
21771         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
21772         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
21773         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
21774         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
21775         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
21776         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
21777         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
21778         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
21779         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
21780         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
21781         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
21782         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
21783         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
21784         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
21785         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
21786         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
21787         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
21788         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
21789         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
21790         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
21791         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
21792         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
21793         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
21794         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
21795         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
21796         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
21797         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
21798         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
21799         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
21800         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
21801         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
21802         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
21803         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
21804         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
21805         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
21806         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
21807         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
21808         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
21809         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
21810         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
21811         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
21812         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
21813         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
21814         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
21815         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
21816         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
21817         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
21818         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
21819         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
21820         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
21821         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
21822         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
21823         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
21824         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
21825         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
21826         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
21827         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
21828
21829         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
21830         _XOPEN_SOURCE_EXTENDED for XPG4.
21831
21832         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
21833
21834         * Makeconfig (localtime): Remove variable.
21835         (inst_localtime-file): Likewise.
21836
21837 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21838
21839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
21840         Update.
21841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21842         Update.
21843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
21844         Update.
21845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
21846         Update.
21847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
21848         Update.
21849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
21850         Update.
21851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21852         Update.
21853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
21854         Update.
21855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
21856         Update.
21857
21858 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21859
21860         [BZ #2550]
21861         [BZ #2570]
21862         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
21863         comparisons to determine direction to adjust input.
21864         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
21865         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
21866         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
21867         Likewise.
21868         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
21869         Likewise.
21870         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
21871         Likewise.
21872         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
21873         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
21874         Likewise.
21875         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
21876         Likewise.
21877         * math/libm-test.inc (nexttoward_test): Add more tests.
21878
21879 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21880
21881         [BZ #14040]
21882         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
21883         in version GLIBC_2.1, not GLIBC_2.0.
21884         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
21885         Likewise.
21886
21887 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
21888
21889         [BZ #13942]
21890         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
21891         (1 - x) * (1 + x).
21892         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
21893         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
21894         * math/libm-test.inc (acos_test): Add more tests.
21895         (asin_test): Likewise.
21896         * sysdeps/i386/fpu/libm-test-ulps: Update.
21897         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21898
21899         [BZ #14034]
21900         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
21901         of square root.
21902         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
21903         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
21904         * math/libm-test.inc (acos_test_tonearest): New function.
21905         (acos_test_towardzero): Likewise.
21906         (acos_test_downward): Likewise.
21907         (acos_test_upward): Likewise.
21908         (asin_test_tonearest): Likewise.
21909         (asin_test_towardzero): Likewise.
21910         (asin_test_downward): Likewise.
21911         (asin_test_upward): Likewise.
21912         (main): Call the new functions.
21913         * sysdeps/i386/fpu/libm-test-ulps: Update.
21914         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21915
21916         [BZ #13884]
21917         [BZ #13924]
21918         * math/e_exp10.c: Include <float.h>.
21919         (__ieee754_exp10): Handle underflow here rather than multiplying
21920         large negative argument by M_LN10.
21921         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
21922         of __ieee754_expf.
21923         * math/e_exp10l.c: Include <float.h>.
21924         (__ieee754_exp10l): Handle underflow here rather than multiplying
21925         large negative argument by M_LN10l.
21926         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
21927         spurious overflow exception on underflow.
21928
21929 2012-04-29  Marek Polacek  <polacek@redhat.com>
21930
21931         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
21932         (__fortify_function): New macro.
21933         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
21934         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
21935         __extern_always_inline.
21936         * libio/bits/stdio2.h: Likewise.
21937         * libio/bits/stdio.h: Likewise.
21938         * string/string.h: Likewise.
21939         * string/bits/string3.h: Likewise.
21940         * include/stdio.h: Likewise.
21941         * stdlib/bits/stdlib.h: Likewise.
21942         * stdlib/stdlib.h: Likewise.
21943         * rt/bits/mqueue2.h: Likewise.
21944         * rt/mqueue.h: Likewise.
21945         * posix/bits/unistd.h: Likewise.
21946         * posix/unistd.h: Likewise.
21947         * io/bits/poll2.h: Likewise.
21948         * io/bits/fcntl2.h: Likewise.
21949         * io/fcntl.h: Likewise.
21950         * io/sys/poll.h: Likewise.
21951         * misc/bits/syslog.h: Likewise.
21952         * misc/bits/syslog-ldbl.h: Likewise.
21953         * misc/sys/syslog.h: Likewise.
21954         * socket/bits/socket2.h: Likewise.
21955         * socket/sys/socket.h: Likewise.
21956         * debug/tst-chk1.c: Likewise.
21957         * wcsmbs/bits/wchar2.h: Likewise.
21958         * wcsmbs/bits/wchar-ldbl.h: Likewise.
21959         * wcsmbs/wchar.h: Likewise.
21960
21961 2012-04-29  Andreas Jaeger  <aj@suse.de>
21962
21963         * Makerules (tests): Remove enable-check-abi protection.
21964         (check-abi-warn): Remove.
21965         (check-abi-%): Remove check-abi-warn usage.
21966
21967         * configure.in: Remove check-abi configure option.
21968         * configure: Regenerated.
21969         * config.make.in (enable-check-abi): Remove.
21970
21971 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
21972
21973         [BZ #14033]
21974         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
21975         double functions to double *_finite functions.
21976
21977         [BZ #13941]
21978         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
21979         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
21980         LDBL_MIN_EXP.
21981         * stdio-common/Makefile (tests): Add tst-sprintf3.
21982         * stdio-common/tst-sprintf3.c: New file.
21983
21984         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
21985         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
21986
21987 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
21988
21989         * conform/conformtest.pl: Remove duplicate typed-constant
21990         handling.
21991
21992 2012-04-28  David S. Miller  <davem@davemloft.net>
21993
21994         * Makerules (%.abilist): Add vpath on sysdep_dirs.
21995         (check-abi-%): Remove AWK script prerequisite and explicit
21996         abilist directory.
21997         (check-abi): Rewrite to just diff the symlist with the abilist.
21998         (config-tls, config-abi-config): Delete, no longer used.
21999         (update-abi-%): Remove AWK script and explicit abilist directory.
22000         (update-abi): Rewrite to simply compare and conditionally copy the
22001         symlist and the sysdep abilist file.  Remove update-abi-config
22002         checks.
22003         * abilist/ld.abilist: Remove.
22004         * abilist/libBrokenLocale.abilist: Remove.
22005         * abilist/libanl.abilist: Remove.
22006         * abilist/libcrypt.abilist: Remove.
22007         * abilist/libdl.abilist: Remove.
22008         * abilist/librt.abilist: Remove.
22009         * abilist/libthread_db.abilist: Remove.
22010         * abilist/libutil.abilist: Remove.
22011         * scripts/extract-abilist.awk: Remove.
22012         * scripts/merge-abilist.awk: Remove.
22013         * sysdeps/generic/libcidn.abilist: New file.
22014         * sysdeps/generic/libnss_compat.abilist: New file.
22015         * sysdeps/generic/libnss_db.abilist: New file.
22016         * sysdeps/generic/libnss_dns.abilist: New file.
22017         * sysdeps/generic/libnss_files.abilist: New file.
22018         * sysdeps/generic/libnss_hesiod.abilist: New file.
22019         * sysdeps/generic/libnss_nis.abilist: New file.
22020         * sysdeps/generic/libnss_nisplus.abilist: New file.
22021         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
22022         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
22023         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
22024         file.
22025         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
22026         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
22027         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
22028         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
22029         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
22030         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
22031         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
22032         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
22033         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
22034         file.
22035         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
22036         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
22037         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
22038         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
22039         file.
22040         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
22041         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
22042         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
22043         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
22044         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
22045         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
22046         file.
22047         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
22048         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
22049         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
22050         file.
22051         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
22052         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
22053         New file.
22054         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
22055         New file.
22056         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
22057         New file.
22058         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
22059         New file.
22060         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
22061         New file.
22062         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
22063         New file.
22064         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
22065         New file.
22066         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
22067         New file.
22068         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
22069         New file.
22070         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
22071         New file.
22072         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
22073         New file.
22074         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
22075         New file.
22076         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
22077         New file.
22078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
22079         file.
22080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
22081         New file.
22082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
22083         New file.
22084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
22085         file.
22086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
22087         New file.
22088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
22089         New file.
22090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
22091         file.
22092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
22093         New file.
22094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22095         New file.
22096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
22097         New file.
22098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
22099         New file.
22100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
22101         New file.
22102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
22103         New file.
22104         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
22105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
22106         file.
22107         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
22108         New file.
22109         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
22110         file.
22111         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
22112         file.
22113         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
22114         file.
22115         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
22116         file.
22117         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
22118         file.
22119         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22120         New file.
22121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
22122         file.
22123         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
22124         file.
22125         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
22126         New file.
22127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
22128         file.
22129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
22130         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
22131         file.
22132         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
22133         New file.
22134         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
22135         file.
22136         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
22137         file.
22138         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
22139         file.
22140         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
22141         file.
22142         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
22143         file.
22144         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22145         New file.
22146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
22147         file.
22148         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
22149         file.
22150         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
22151         New file.
22152         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
22153         file.
22154         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22155         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
22156         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
22157         file.
22158         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
22159         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
22160         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
22161         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
22162         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
22163         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
22164         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
22165         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
22166         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
22167         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
22168         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
22169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
22170         file.
22171         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
22172         New file.
22173         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
22174         file.
22175         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
22176         file.
22177         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
22178         file.
22179         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
22180         file.
22181         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
22182         file.
22183         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
22184         New file.
22185         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
22186         New file.
22187         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
22188         file.
22189         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
22190         New file.
22191         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
22192         file.
22193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
22194         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
22195         file.
22196         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
22197         New file.
22198         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
22199         file.
22200         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
22201         file.
22202         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
22203         file.
22204         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
22205         file.
22206         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
22207         file.
22208         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
22209         New file.
22210         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
22211         New file.
22212         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
22213         file.
22214         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
22215         New file.
22216         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
22217         file.
22218
22219 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
22220
22221         * conform/conformtest.pl: Fix typo in handling typed-constant from
22222         allow-header.
22223
22224 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22225
22226         * README: Cut down references to pre-2.6 Linux kernels and
22227         Linuxthreads.  Update lists of configurations in libc and ports
22228         and sort alphabetically.  Say "or newer" with Linux kernel version
22229         requirements.
22230
22231         * config.h.in [IS_IN_build]: Allow compiling without optimization.
22232
22233 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22234
22235         [BZ #887]
22236         * math/libm-test.inc (logb_test_downward): New test to expose
22237         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
22238         rounding mode.
22239
22240 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22241
22242         [BZ #14027]
22243         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
22244         to be done.
22245         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
22246         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
22247
22248 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
22249
22250         * sysdeps/unix/i386/brk.S: Remove file.
22251         * sysdeps/unix/i386/dl-brk.S: Likewise.
22252         * sysdeps/unix/i386/pipe.S: Likewise.
22253         * sysdeps/unix/i386/sigreturn.S: Likewise.
22254         * sysdeps/unix/i386/syscall.S: Likewise.
22255         * sysdeps/unix/i386/vfork.S: Likewise.
22256         * sysdeps/unix/i386/wait.S: Likewise.
22257
22258         * sysdeps/unix/common/tcsendbrk.c: Move to ...
22259         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
22260
22261         * configure.in (arm*-none*): Do not allow without
22262         --enable-hacker-mode.
22263         (netbsd*): Remove case setting base_os.
22264         (386bsd*): Likewise.
22265         (freebsd*): Likewise.
22266         (bsdi*): Likewise.
22267         (osf*): Likewise.
22268         (sunos*): Likewise.
22269         (ultrix*): Likewise.
22270         (newsos*): Likewise.
22271         (dynix*): Likewise.
22272         (*bsd*): Likewise.
22273         (sysv*): Likewise.
22274         (isc*): Likewise.
22275         (esix*): Likewise.
22276         (sco*): Likewise.
22277         (minix*): Likewise.
22278         (irix4*): Likewise.
22279         (irix6*): Likewise.
22280         (solaris[2-9]*): Likewise.
22281         (none): Likewise.
22282         * configure: Regenerated.
22283
22284 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22285
22286         [BZ #11521]
22287         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
22288         overflow or cancellation in calculating denominator.
22289         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
22290         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
22291         down expression to avoid unexpected rounding in newer GCCs.
22292         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
22293
22294 2012-04-26  David S. Miller  <davem@davemloft.net>
22295
22296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
22297         long-double compat symbols.
22298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
22300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
22301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
22302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
22303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
22304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
22305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
22306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
22307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
22308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
22309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
22310         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
22311
22312 2012-04-25  David S. Miller  <davem@davemloft.net>
22313
22314         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
22315         HWCAP_* values only after the memory barriers have been defined.
22316         (atomic_full_barrier): Define.
22317         (atomic_read_barrier): Define.
22318         (atomic_write_barrier): Define.
22319
22320 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22321
22322         * shlib-versions: Add libgcc_s version information.
22323         * sysdeps/generic/libgcc_s.h: Remove.
22324         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
22325         libgcc_s.h.
22326         * sysdeps/gnu/unwind-resume.c: Likewise.
22327         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
22328
22329 2012-04-25  David S. Miller  <davem@davemloft.net>
22330
22331         * sysdeps/unix/sparc/brk.S: Delete.
22332         * sysdeps/unix/sparc/dl-brk.S: Delete.
22333         * sysdeps/unix/sparc/pipe.S: Delete.
22334         * sysdeps/unix/sparc/sysdep.S: Delete.
22335         * sysdeps/unix/sparc/sysdep.h: Delete.
22336         * sysdeps/unix/sparc/vfork.S: Delete.
22337         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
22338         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
22339         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
22340         ret_ERRVAL, r0, r1, MOVE): Define.
22341         (JUMPTARGET): Remove.
22342         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
22343         sysdeps/unix/sparc/sysdep.h
22344         (ENTRY, END): Remove.
22345         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22346
22347 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
22348
22349         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
22350         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
22351         -DIS_IN_build.
22352
22353         * timezone/README: Update upstream location and email address for
22354         tzcode and tzdata.
22355         * timezone/zdump.c: Update from tzcode 2012b.
22356         * timezone/zic.c: Likewise.
22357
22358         * configure.in (libc_cv_as_needed): Remove test.
22359         * configure: Regenerated.
22360         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
22361         conditional definition.
22362         [$(have-as-needed) != yes] (no-as-needed): Likewise.
22363         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
22364         * config.make.in (have-as-needed): Remove variable.
22365
22366 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
22367             Paul Pluzhnikov  <ppluzhnikov@google.com>
22368
22369         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
22370         strings correctly.
22371
22372 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
22373
22374         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
22375         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
22376         * sysdeps/sh/strlen.S: Likewise.
22377
22378 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22379
22380         * sysdeps/unix/fork.S: Remove file.
22381         * sysdeps/unix/i386/fork.S: Likewise.
22382         * sysdeps/unix/sparc/fork.S: Likewise.
22383
22384         * sysdeps/unix/system.c: Remove file.
22385         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
22386
22387         * sysdeps/unix/getegid.S: Remove file.
22388         * sysdeps/unix/geteuid.S: Likewise.
22389
22390 2012-04-24  Roland McGrath  <roland@hack.frob.com>
22391
22392         * scripts/check-localplt.awk: New file.
22393         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
22394         of diff.
22395         * scripts/data/localplt-generic.data: Add a comment.
22396
22397         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
22398         NODE when __dir_mkfile failed.
22399         * sysdeps/mach/hurd/symlinkat.c: Likewise.
22400         Reported by Ludovic Courtès <ludo@gnu.org>.
22401
22402 2012-04-24  Andreas Jaeger  <aj@suse.de>
22403
22404         * Makerules (common-clean): Also remove gen-as-const-headers
22405         files.
22406
22407 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22408
22409         * Makerules (native-compile): Do not change working directory for
22410         build.  Use $(OUTPUT_OPTION) in command.
22411         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
22412
22413 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22414
22415         [BZ #13886]
22416         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
22417         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
22418         * math/libm-test.inc (floor_test): Add more tests.
22419         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
22420
22421 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22422
22423         * sysdeps/unix/getdents.c: Remove file.
22424         * sysdeps/unix/sysv/getdents.c: Likewise.
22425         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
22426
22427         * sysdeps/unix/syscalls.list (madvise): Add syscall from
22428         sysdeps/unix/mman/syscalls.list.
22429         (mmap): Likewise.
22430         (mprotect): Likewise.
22431         (msync): Likewise.
22432         (munmap): Likewise.
22433         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
22434         * sysdeps/unix/mman/syscalls.list: Remove.
22435         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
22436
22437         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
22438         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
22439         * configure: Regenerated.
22440         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
22441         $(libgcc_s_suffix).
22442         * config.make.in (libgcc_s_suffix): Remove variable.
22443
22444 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
22445
22446         * sysdeps/unix/sysv/gethostname.c: Move to ...
22447         * sysdeps/posix/gethostname.c: ... here.
22448
22449         * sysdeps/unix/execve.S: Remove file.
22450
22451         * sysdeps/unix/_exit.S: Remove file.
22452
22453 2012-04-23  Andreas Jaeger  <aj@suse.de>
22454
22455         [BZ #13739]
22456         * manual/Makefile: Remove make dist support, there's no
22457         need for a stand-alone documentation tar ball.
22458         (TEXI2DVI): Define always, it's not in Makeconfig.
22459         (dist): Removed.
22460         (tar-it): Removed.
22461         (edition): Removed.
22462         (glibc-doc-$(edition).tar): Removed
22463         (%.Z): Removed.
22464         (%.gz): Removed.
22465         (%.uu): Removed.
22466         (ETAGS): Remove, it's in Makeconfig.
22467         (move-if-change): Remove, it's in Makeconfig.
22468
22469 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22470
22471         [BZ #13970]
22472         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
22473         (strtod, strtof, strtold, strtol, strtoul, strtoq)
22474         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
22475         (strtod_l, strtof_l, strtold_l): Remove __wur.
22476         It is not necessarily an error to ignore strtol's return value.
22477         One can reliably look at the stored endptr to decide whether
22478         the number had valid syntax.
22479
22480 2012-04-21  Andreas Jaeger  <aj@suse.de>
22481
22482         [BZ #13739]
22483         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
22484
22485 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
22486
22487         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
22488         * sysdeps/unix/sysv/Versions: Remove file.
22489
22490 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
22491
22492         [BZ #13927]
22493         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22494
22495 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
22496
22497         [BZ #7064]
22498         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
22499         version from __vm86.
22500
22501 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
22502
22503         * sysdeps/unix/common/lxstat.c: Remove file.
22504         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
22505
22506         * sysdeps/unix/sysv/Makefile: Remove file.
22507
22508         * sysdeps/unix/sysv/direct.h: Remove file.
22509
22510         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
22511         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
22512         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
22513         * sysdeps/unix/sysv/bits/signum.h: Likewise.
22514         * sysdeps/unix/sysv/bits/stat.h: Likewise.
22515         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
22516         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
22517
22518         * sysdeps/unix/sysv/setrlimit.c: Remove file.
22519
22520         * sysdeps/unix/xmknod.c: Remove file.
22521         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
22522
22523         * sysdeps/unix/sysv/settimeofday.c: Remove file.
22524
22525         * sysdeps/unix/sysv/i386/time.S: Remove file.
22526
22527         * sysdeps/unix/fxstat.c: Remove file.
22528         * sysdeps/unix/xstat.c: Likewise.
22529         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
22530
22531         * sysdeps/unix/sysv/sigaction.c: Remove file.
22532
22533         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
22534         (sysdep_headers): Remove variable.
22535         [termio.h not in sysdep_headers] (generated): Likewise.
22536         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
22537         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
22538         * sysdeps/unix/sysv/tcdrain.c: Likewise.
22539         * sysdeps/unix/sysv/tcflow.c: Likewise.
22540         * sysdeps/unix/sysv/tcflush.c: Likewise.
22541         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
22542         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
22543         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
22544         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
22545         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
22546
22547         * sysdeps/unix/siglist.c: Remove file.
22548
22549         * sysdeps/unix/getppid.S: Remove file.
22550
22551         * sysdeps/unix/mkdir.c: Remove file.
22552         * sysdeps/unix/rmdir.c: Likewise.
22553
22554 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
22555
22556         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
22557         ERR_MAX value.
22558         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
22559         errlist-compat value.
22560
22561 2012-04-18  David S. Miller  <davem@davemloft.net>
22562
22563         * sysdeps/generic/memcopy.h (reg_char): Delete.
22564         * debug/strcat_chk.c: Use char, not reg_char.
22565         * debug/strcpy_chk.c: Likewise.
22566         * debug/strncat_chk.c: Likewise.
22567         * debug/strncpy_chk.c: Likewise.
22568         * string/memchr.c: Likewise.
22569         * string/memrchr.c: Likewise.
22570         * string/rawmemchr.c: Likewise.
22571         * string/strcat.c: Likewise.
22572         * string/strchr.c: Likewise.
22573         * string/strchrnul.c: Likewise.
22574         * string/strcmp.c: Likewise.
22575         * string/strcpy.c: Likewise.
22576         * string/strncat.c: Likewise.
22577         * string/strncmp.c: Likewise.
22578         * string/strncpy.c: Likewise.
22579
22580 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22581
22582         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
22583         __builtin_memcopy is called when src and dest ranges are known to not
22584         overlap.
22585
22586 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22587
22588         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
22589         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
22590         fwd_align_merge macro call.
22591         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
22592         bwd_align_merge macro call.
22593         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22594
22595 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22596
22597         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
22598         bwd_align_merge macros.
22599         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
22600         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
22601         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22602
22603 2012-04-18  David S. Miller  <davem@davemloft.net>
22604
22605         * sysdeps/sparc/sparc64/memcopy.h: Delete.
22606
22607 2012-04-18  Andreas Jaeger  <aj@suse.de>
22608
22609         [BZ# 6794]
22610         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
22611         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
22612         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22613
22614         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
22615         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
22616         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22617
22618         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
22619         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
22620         Adjust for changed ldbl-128 files.
22621
22622         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
22623         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
22624         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22625
22626 2012-04-17  David S. Miller  <davem@davemloft.net>
22627
22628         * sysdeps/sparc/sparc32/memcopy.h: Delete.
22629
22630 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
22631
22632         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
22633         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
22634         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
22635         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
22636         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
22637         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
22638
22639 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22640
22641         [BZ #6794]
22642         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
22643         * math/libm-test.inc: Add ilogb errno and exception tests.
22644         * math/w_ilogb.c: New file: ilogb wrapper.
22645         * math/w_ilogbf.c: New file: ilogbf wrapper.
22646         * math/w_ilogbl.c: New file: ilogbl wrapper.
22647         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
22648         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
22649         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
22650         exception being thrown with 0.0 as argument.
22651         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
22652         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
22653         exception being thrown with 0.0 as argument.
22654         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
22655         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
22656         exception being thrown with 0.0 as argument.
22657         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
22658         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
22659         exception being thrown with 0.0 as argument.
22660         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
22661         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
22662         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
22663         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
22664         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
22665         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
22666         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
22667         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
22668         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
22669
22670 2012-04-17  Petr Baudis  <pasky@ucw.cz>
22671
22672         * include/sys/uio.h: Change __vector to __iovec to avoid clash
22673         with altivec.
22674
22675 2012-04-16  Marek Polacek  <polacek@redhat.com>
22676
22677         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
22678
22679 2012-04-16  Marek Polacek  <polacek@redhat.com>
22680
22681         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
22682         operands of fdivp instruction.
22683
22684 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22685
22686         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
22687         * elf/tst-auditmod3b.c: Likewise.
22688         * elf/tst-auditmod4b.c: Likewise.
22689         * elf/tst-auditmod5b.c: Likewise.
22690         * elf/tst-auditmod6b.c: Likewise.
22691         * elf/tst-auditmod6c.c: Likewise.
22692         * elf/tst-auditmod7b.c: Likewise.
22693         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
22694         * sysdeps/x86_64/preconfigure.in: Likewise.
22695         * sysdeps/x86_64/preconfigure: Regenerated.
22696
22697 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22698
22699         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
22700         __ILP32__.
22701
22702 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
22703
22704         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
22705         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
22706
22707 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
22708
22709         [BZ #13973]
22710         * locale/iso-639.def: Fix gl language name. Spotted by
22711         Yaron Shahrabani.
22712
22713 2012-04-12  Roland McGrath  <roland@hack.frob.com>
22714
22715         [BZ #2074]
22716         * libio/libio.h (__io_write_fn): Update comment.
22717
22718 2012-04-12  Petr Baudis  <pasky@ucw.cz>
22719
22720         [BZ #2074]
22721         * stdio.texi (Hook Functions): The user provided writer function
22722         is not allowed to return -1.
22723
22724 2012-04-11  David S. Miller  <davem@davemloft.net>
22725
22726         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22727
22728 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
22729
22730         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
22731         Add a leading slash to rtkaio.
22732
22733 2012-04-11  Jim Meyering  <meyering@redhat.com>
22734
22735         [BZ #11959]
22736         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
22737         It is not necessarily an error to ignore fwrite's return
22738         value.  One can reliably use ferror to test for errors after
22739         the fact.
22740
22741 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22742
22743         * bits/types.h (__snseconds_t): New type.
22744         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
22745
22746         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
22747         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22748         (__SNSECONDS_T_TYPE): Likewise.
22749         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22750         (__SNSECONDS_T_TYPE): Likewise.
22751         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22752         (__SNSECONDS_T_TYPE): Likewise.
22753
22754 2012-04-10  Andreas Jaeger  <aj@suse.de>
22755
22756         [BZ #2636]
22757         * manual/time.texi (Processor Time): Return type of times is
22758         elapsed real time since an arbitrary point in the past.
22759         (CPU Time): Move CLK_TCK from here...
22760         (Processor Time): ...to here.  Correct description.
22761         * manual/conf.texi (Constants for Sysconf): Correct description of
22762         _SC_CLK_TCK.
22763
22764 2012-04-10  David S. Miller  <davem@davemloft.net>
22765
22766         [BZ #13967]
22767         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
22768         where the is a gap between DT_REL(A) and DT_JMPREL.
22769
22770 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22771
22772         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
22773         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
22774         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
22775
22776 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22777
22778         * elf/dl-support.c (_dl_inhibit_cache): New variable.
22779         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
22780         (dl_main): Handle --inhibit-cache.
22781         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
22782         _dl_inhibit_cache.
22783         * elf/dl-load.c (_dl_map_object): Use it.
22784         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
22785
22786 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
22787
22788         [BZ #13872]
22789         * sysdeps/i386/fpu/e_powl.S (p78): New object.
22790         (__ieee754_powl): Saturate large exponents rather than testing for
22791         overflow of y*log2(x).
22792         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22793         * math/libm-test.inc (pow_test): Do not permit spurious overflow
22794         exceptions.
22795
22796         [BZ #11521]
22797         * math/s_ctan.c: Include <float.h>.
22798         (__ctan): Avoid internal overflow or cancellation in calculating
22799         denominator.
22800         * math/s_ctanf.c: Likewise.
22801         * math/s_ctanl.c: Likewise.
22802         * math/s_ctanh.c: Likewise.
22803         * math/s_ctanhf.c: Likewise.
22804         * math/s_ctanhl.c: Likewise.
22805         * math/libm-test.inc (ctan_test): Add more tests.
22806         (ctanh_test): Likewise.
22807         * sysdeps/i386/fpu/libm-test-ulps: Update.
22808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22809
22810 2012-04-09  Andreas Jaeger  <aj@suse.de>
22811
22812         [BZ #6894]
22813         * manual/filesys.texi (Directory Entries): Mention that d_namlen
22814         is an optional BSD extension.
22815
22816         [BZ #10254]
22817         * manual/stdio.texi (Opening Streams): Document additional fopen
22818         parameters.
22819
22820 2012-04-09  Roland McGrath  <roland@hack.frob.com>
22821
22822         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
22823         %eax without telling the compiler.
22824
22825 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
22826
22827         [BZ # 13963]
22828         * manual/install.texi: Use sourceware.org.
22829
22830 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
22831
22832         [BZ #13873]
22833         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
22834         (__ieee754_pow): Generate overflow and underflow using huge*huge
22835         and tiny*tiny rather than just returning constant infinity or zero
22836         for large exponents.
22837         * math/libm-test.inc (pow_test): Require overflow exceptions for
22838         applicable cases of large exponents.
22839
22840         [BZ #706]
22841         * sysdeps/i386/fpu/e_pow.S (p10): New object.
22842         (__ieee754_pow): Use iterative multiplication algorithm only for
22843         integer exponents with absolute value below 1024.  Check for odd
22844         integer exponents when using algorithm for real exponents.
22845         * math/libm-test.inc (pow_test): Add more tests.
22846         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22847
22848 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
22849
22850         [BZ #13705]
22851         * math/libm-test.inc (exp_test): Do not allow overflow exception
22852         on underflow test.
22853
22854 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
22855
22856         [BZ #13705]
22857         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
22858         instead of __kernel_standard_f.
22859
22860 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
22861
22862         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
22863         * sysdeps/x86_64/memset_chk.S: Likewise.
22864
22865 2012-04-08  Andreas Jaeger  <aj@suse.de>
22866
22867         [BZ #10153]
22868         * manual/startup.texi (Environment Access): Describe return value
22869         for putenv and setenv.
22870
22871         [BZ #6895]
22872         * manual/filesys.texi (Directory Entries): Add description for
22873         DT_LNK.
22874
22875         [BZ #6890]
22876         * manual/filesys.texi (Directory Entries): Clarify that it's file
22877         system not operating system in the description of DT_UNKNOWN.
22878
22879         [BZ #6578]
22880         * manual/syslog.texi (closelog): Fix reference, it's openlog.
22881
22882 2012-04-08  Stephen Compall  <s11@member.fsf.org>
22883
22884         [BZ #6649]
22885         * manual/llio.texi (Opening and Closing Files): Add cross
22886         reference to explain mode argument.
22887
22888 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
22889
22890         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
22891         * sysdeps/x86_64/memset_chk.S: Likewise.
22892
22893 2012-04-07  David S. Miller  <davem@davemloft.net>
22894
22895         * elf/elf.h (R_SPARC_WDISP10): Define.
22896         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
22897         R_SPARC_SIZE32.
22898         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
22899         R_SPARC_SIZE64 and R_SPARC_H34.
22900
22901 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
22902
22903         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
22904         conditions and remove no longer applicable assertion.
22905
22906 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22907
22908         * bits/byteswap.h: Include <features.h>.
22909         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
22910         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
22911
22912 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22913
22914         * bits/byteswap.h (__bswap_16): Removed.
22915         Include <bits/byteswap-16.h> to get __bswap_16.
22916         * sysdeps/i386/bits/byteswap.h: Likewise.
22917         * sysdeps/s390/bits/byteswap.h: Likewise.
22918         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22919         * bits/byteswap-16.h: New file.
22920         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22921         * sysdeps/s390/bits/byteswap-16.h: Likewise.
22922         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
22923         * string/Makefile (headers): Add bits/byteswap-16.h.
22924
22925 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
22926
22927         [BZ #13895]
22928         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
22929         extra indirection.
22930         * nss/Makefile (tests-static, tests): Add tst-nss-static.
22931         * nss/tst-nss-static.c: New.
22932
22933 2012-04-06  Robert Millan  <rmh@gnu.org>
22934
22935         [BZ #6486]
22936         * manual/llio.texi (File Position Primitive): lseek
22937         refers to WHENCE when it really means OFFSET.
22938
22939 2012-04-06  Andreas Jaeger  <aj@suse.de>
22940
22941         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
22942         strncmp declarations.
22943
22944         * abilist/libc.abilist: Add __poll and __ppoll.
22945
22946 2012-04-05  David S. Miller  <davem@davemloft.net>
22947
22948         * scripts/check-local-headers.sh: Accept a host triplet in the
22949         path matched by the exclude regexp.
22950
22951         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
22952         definition.
22953         * sysdeps/powerpc/powerpc32/dl-machine.h
22954         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
22955         * sysdeps/s390/s390-32/dl-machine.h
22956         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22957         * sysdeps/sparc/sparc32/dl-machine.h
22958         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22959         * sysdeps/sparc/sparc64/dl-machine.h
22960         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22961
22962         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
22963         lazy binding.
22964         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
22965         undefined symbol errors.
22966
22967         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
22968         DT_NEEDED entries.
22969
22970 2012-04-05  Michael Matz  <matz@suse.de>
22971
22972         [BZ #13592]
22973         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
22974
22975 2012-04-05  Andreas Jaeger  <aj@suse.de>
22976
22977         [BZ #13908]
22978         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
22979         comment.
22980
22981 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22982
22983         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
22984         which ROUND is no valid rounding mode.
22985
22986 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22987
22988         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
22989         read again.
22990         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
22991
22992 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22993
22994         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
22995         an exception using FPU order intentionally.
22996
22997 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22998
22999         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
23000         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
23001         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
23002         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
23003
23004 2012-04-05  Simon Josefsson  <simon@josefsson.org>
23005
23006         [BZ #12340]
23007         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
23008         EINVAL when BUFLEN is too smal.
23009
23010 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
23011
23012         [BZ #13553]
23013         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
23014         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
23015
23016 2012-04-03  Andreas Jaeger  <aj@suse.de>
23017
23018         [BZ #13938]
23019         * manual/setjmp.texi (System V contexts): Fix sentence.
23020
23021         [BZ #13926]
23022         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
23023         New macro for this case.
23024         [!__GNUC__] (__bswap_64): New inline function for this case.
23025         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23026         * bits/byteswap.h: Likewise.
23027         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
23028         ull, guard with __GLIBC_HAVE_LONG_LONG.
23029
23030         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
23031         __GLIBC_HAVE_LONG_LONG.
23032
23033         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
23034         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
23035
23036 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23037
23038         [BZ #13691]
23039         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
23040         inptr and inend, rather than using last_ch.
23041
23042 2012-04-02  David S. Miller  <davem@davemloft.net>
23043
23044         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
23045         * stdio-common/printf-parse.h (read_int): Change return type to
23046         'int', return -1 on INT_MAX overflow.
23047         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
23048         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
23049         overflows INT_MAX.  Check for overflow of in-format-string precision
23050         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
23051         SIZE_MAX not INT_MAX for integer overflow test.
23052         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
23053         skip the construct in the format string but do not record anything.
23054         * stdio-common/bug22.c: Adjust to test both width/prevision
23055         INT_MAX overflow as well as total length INT_MAX overflow.  Check
23056         explicitly for proper errno values.
23057
23058 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
23059
23060         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
23061         CHAR_MAX.
23062         * string/test-strcmp.c [! WIDE]: Likewise.
23063         * time/tst-mktime2.c: Likewise for INT_MAX.
23064         * string/test-string.h: #include <sys/param.h> for MIN.
23065
23066         * csu/init-first.c (__libc_init_first): Call __ctype_init.
23067         * sysdeps/i386/init-first.c (init): Likewise.
23068         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
23069         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
23070         * sysdeps/sh/init-first.c (init): Likewise.
23071
23072 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
23073
23074         * po/ru.po: Update from translation team.
23075         * po/vi.po: Likewise.
23076
23077 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23078
23079         * resolv/nss_dns/dns-host.c: Merge copyright years.
23080
23081 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23082
23083         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23084         Optimize memcpy with prefetch if
23085         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
23086         src, dst pointers have unequal 16 byte alignments.
23087
23088 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23089
23090         [BZ #13928]
23091         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
23092         from a CNAME entry and return the minimum ttl for the query.
23093         (gaih_getanswer_slice): Likewise.
23094
23095 2012-03-30  Jeff Law  <law@redhat.com>
23096
23097         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
23098         due to long keys.
23099         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
23100         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
23101
23102         * resolv/nss_dns/dns-host.c: Update copyright year.
23103
23104 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
23105
23106         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
23107         requests to save a system call.  Fix check that all bytes are sent.
23108
23109         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
23110         comments for sendmmsg.
23111
23112 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23113
23114         [BZ #13691]
23115         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
23116         with only 1 character between 0x0041 and 0x01b0.
23117         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
23118         * wcsmbs/tst-mbsnrtowcs.c: New file.
23119
23120 2012-03-29  David S. Miller  <davem@davemloft.net>
23121
23122         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
23123         small copies by hand.
23124
23125 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23126
23127         [BZ #13761]
23128         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
23129         _nss_compat_initgroups_dyn): Fall back to malloc/free
23130         for large group memberships.
23131
23132 2012-03-28  David S. Miller  <davem@davemloft.net>
23133
23134         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
23135         that branches into memcpy.
23136         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
23137         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23138         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23139         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23140         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
23141         bits.
23142         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
23143         implementation too.
23144         * sysdeps/sparc/mempcpy.S: New file.
23145
23146         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
23147         the IFUNC routine in the libc case.
23148         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23149
23150         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
23151         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
23152         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
23153         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
23154         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
23155         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
23156         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
23157         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
23158
23159         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
23160         loop to 256 bytes instead of 64 bytes and fix test signedness.
23161
23162         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
23163         * sysdeps/sparc/sparc32/Makefile: rather than here...
23164         * sysdeps/sparc/sparc64/Makefile: and here.
23165
23166 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
23167
23168         * malloc/mallocbug.c: Avoid warnings about unused variables.
23169
23170 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
23171
23172         [BZ #13760]
23173         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
23174         in the right place. Discard and retry query if response is
23175         larger than input buffer size.
23176
23177 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
23178
23179         [BZ #369]
23180         [BZ #2678]
23181         [BZ #3866]
23182         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
23183         x for large integer exponent.
23184         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
23185         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
23186         sign of result as needed afterwards.
23187         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
23188         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
23189         result for underflowing pow the same as for overflow.
23190         (__kernel_standard_l): Handle powl overflow and underflow here
23191         rather than calling __kernel_standard.
23192         * math/libm-test.inc (pow_test): Add more tests.
23193
23194         [BZ #3868]
23195         [BZ #13879]
23196         [BZ #13910]
23197         [BZ #13911]
23198         [BZ #13912]
23199         [BZ #13913]
23200         [BZ #13915]
23201         [BZ #13916]
23202         [BZ #13917]
23203         [BZ #13918]
23204         [BZ #13919]
23205         [BZ #13920]
23206         [BZ #13921]
23207         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
23208         * sysdeps/ieee754/k_standard.c: Include <float.h>.
23209         (__kernel_standard_l): New function.
23210         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
23211         __kernel_standard.
23212         * math/w_acosl.c (__acosl): Likewise.
23213         * math/w_asinl.c (__asinl): Likewise.
23214         * math/w_atan2l.c (__atan2l): Likewise.
23215         * math/w_atanhl.c (__atanhl): Likewise.
23216         * math/w_coshl.c (__coshl): Likewise.
23217         * math/w_exp10l.c (__exp10l): Likewise.
23218         * math/w_exp2l.c (__exp2l): Likewise.
23219         * math/w_fmodl.c (__fmodl): Likewise.
23220         * math/w_hypotl.c (__hypotl): Likewise.
23221         * math/w_j0l.c (__j0l, __y0l): Likewise.
23222         * math/w_j1l.c (__j1l, __y1l): Likewise.
23223         * math/w_jnl.c (__jnl, __ynl): Likewise.
23224         * math/w_lgammal.c (__lgammal): Likewise.
23225         * math/w_log10l.c (__log10l): Likewise.
23226         * math/w_log2l.c (__log2l): Likewise.
23227         * math/w_logl.c (__logl): Likewise.
23228         * math/w_powl.c (__powl): Likewise.
23229         * math/w_remainderl.c (__remainderl): Likewise.
23230         * math/w_scalbl.c (sysv_scalbl): Likewise.
23231         * math/w_sinhl.c (__sinhl): Likewise.
23232         * math/w_sqrtl.c (__sqrtl): Likewise.
23233         * math/w_tgammal.c (__tgammal): Likewise.
23234         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
23235         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
23236         * math/libm-test.inc (acos_test): Add more tests.
23237         (acosh_test): Likewise.
23238         (asin_test): Likewise.
23239         (atanh_test): Likewise.
23240         (exp_test): Likewise.
23241         (exp10_test): Likewise.
23242         (exp2_test): Likewise.
23243         (expm1_test): Likewise.
23244         (lgamma_test): Likewise.
23245         (log_test): Likewise.
23246         (log10_test): Likewise.
23247         (log1p_test): Likewise.
23248         (log2_test): Likewise.
23249         (pow_test): Do not allow some spurious overflow exceptions.
23250         (sqrt_test): Add more tests.
23251         (tgamma_test): Likewise.
23252         (y0_test): Likewise.
23253         (y1_test): Likewise.
23254         (yn_test): Likewise.
23255
23256 2012-03-27  Anton Blanchard  <anton@samba.org>
23257
23258         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
23259         MAP_HUGETLB.
23260         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
23261         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
23262         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
23263
23264 2012-03-27  David S. Miller  <davem@davemloft.net>
23265
23266         * conform/Makefile: Run run-conformtest.sh using $(BASH).
23267
23268         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
23269         have-as-vis3 check.
23270
23271 2012-03-27  Andreas Jaeger  <aj@suse.de>
23272
23273         * sysdeps/x86_64/elf/configure.in: Moved to ...
23274         * sysdeps/x86_64/configure.in: ... here.
23275         * sysdeps/x86_64/elf/start.S: Moved to ...
23276         * sysdeps/x86_64/start.S: ... here.
23277         * sysdeps/x86_64/elf/configure: Delete.
23278
23279         * sysdeps/x86_64/configure.in: Merge contents from
23280         sysdeps/i386/configure.in (without i686 check).
23281
23282         * sysdeps/i386/elf/Versions: Merge into ...
23283         * sysdeps/i386/Versions: ... this.
23284         * sysdeps/i386/elf/Versions: Delete file.
23285         * sysdeps/i386/elf/start.S: Moved to ...
23286         * sysdeps/i386/start.S: ...here.
23287         * sysdeps/i386/elf/configure.in: Merge into...
23288         * sysdeps/i386/configure.in: ...here.
23289         * sysdeps/i386/elf/configure.in: Delete file.
23290         * sysdeps/i386/elf/configure: Delete file.
23291
23292         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
23293         * debug/backtracesyms.c: ... here.
23294         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
23295         * debug/backtracesymsfd.c: ... here.
23296         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
23297         * sysdeps/generic/ifunc-sel.h: ... here.
23298
23299         * sysdeps/unix/i386/start.c: Delete file.
23300         * sysdeps/unix/sparc/start.c: Delete file.
23301         * sysdeps/unix/start.c: Delete file.
23302
23303         * sysdeps/sh/elf/configure.in: Moved to ...
23304         * sysdeps/sh/configure.in: ... here.
23305         * sysdeps/sh/elf/start.S: Moved to ...
23306         * sysdeps/sh/start.S: ... here.
23307         * sysdeps/sh/elf/configure: Delete file.
23308
23309         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
23310         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
23311         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
23312         * sysdeps/powerpc/powerpc64/entry.h: ... here.
23313         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
23314         * sysdeps/powerpc/powerpc64/start.S: here.
23315         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
23316         * sysdeps/powerpc/powerpc64/Makefile: ... this.
23317         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
23318         * sysdeps/powerpc/powerpc64/configure.in: ... this.
23319         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
23320
23321         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
23322         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
23323         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
23324         * sysdeps/powerpc/powerpc32/start.S: ... here.
23325         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
23326         * sysdeps/powerpc/powerpc32/configure.in: ... this.
23327         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
23328
23329         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
23330         * sysdeps/powerpc/ifunc-sel.h: ... here.
23331         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
23332         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
23333
23334         * sysdeps/sparc/elf/configure.in: Moved to ...
23335         * sysdeps/sparc/configure.in: ... here.
23336         * sysdeps/sparc/elf/configure: Delete file.
23337         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
23338         * sysdeps/sparc/sparc32/start.S: ... here.
23339         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
23340         * sysdeps/sparc/sparc64/start.S: ... here.
23341         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
23342         * sysdeps/sparc/sparc32/Makefile: ... this.
23343         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
23344         * sysdeps/sparc/sparc64/Makefile: ... this.
23345
23346         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
23347         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
23348         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
23349         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
23350         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
23351         * sysdeps/s390/s390-32/setjmp.S: ... here.
23352         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
23353         * sysdeps/s390/s390-32/configure.in: ... here.
23354         * sysdeps/s390/s390-32/elf/configure: Delete file.
23355         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
23356         * sysdeps/s390/s390-32/start.S: ... here.
23357
23358         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
23359         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
23360         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
23361         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
23362         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
23363         * sysdeps/s390/s390-64/setjmp.S: ... here.
23364         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
23365         * sysdeps/s390/s390-64/configure.in: ... here
23366         * sysdeps/s390/s390-64/elf/configure: Delete file.
23367         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
23368         * sysdeps/s390/s390-64/start.S: ... here.
23369         * sysdeps/s390/s390-64/elf/configure: Delete.
23370
23371         * configure.in: Remove support for elf directories in sysdeps.
23372
23373         * configure: Regenerated.
23374         * sysdeps/i386/configure: Regenerated.
23375         * sysdeps/powerpc/powerpc32/configure: Regenerated.
23376         * sysdeps/powerpc/powerpc64/configure: Regenerated.
23377         * sysdeps/s390/s390-32/configure: Regenerated.
23378         * sysdeps/s390/s390-64/configure: Regenerated.
23379         * sysdeps/sh/configure: Regenerated.
23380         * sysdeps/sparc/configure: Regenerated.
23381         * sysdeps/x86_64/configure: Regenerated.
23382
23383 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
23384
23385         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23386
23387         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
23388         denormal result into account.
23389
23390 2012-03-25  Roland McGrath  <roland@hack.frob.com>
23391
23392         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
23393         Reported by Allan McRae <allan@archlinux.org>.
23394
23395 2012-03-23  Jeff Law  <law@redhat.com>
23396
23397         * nss/getnssent.c (__nss_getent): Fix typo.
23398
23399 2012-03-23  David S. Miller  <davem@davemloft.net>
23400
23401         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23402
23403 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
23404
23405         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
23406         to pad to uint64_t for each field.
23407         (dl_tls_index): Replace unsigned long with uint64_t.
23408
23409 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
23410         Paul Pluzhnikov  <ppluzhnikov@google.com>
23411
23412         [BZ #6528]
23413         * grp/Makefile (otherlibs): Don't set it.
23414         * inet/Makefile (otherlibs): Likewise.
23415         * login/Makefile (otherlibs): Likewise.
23416         * nscd/Makefile (otherlibs): Likewise.
23417         * posix/Makefile (otherlibs): Likewise.
23418         * pwd/Makefile (otherlibs): Likewise.
23419         * rt/Makefile (otherlibs): Likewise.
23420         * sunrpc/Makefile (otherlibs): Likewise.
23421         * nss/Makefile (otherlibs): Likewise.
23422         Add libnss_files to routines and static-only-routines.
23423         ($(objpfx)getent): Remove rule.
23424         * resolv/Makefile: Add libnss_dns and libresolv to routines and
23425         static-only-routines.
23426
23427 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23428
23429         [BZ #13892]
23430         * math/s_cexp.c: Include <float.h>.
23431         (__cexp): Handle exp result overflowing not necessarily
23432         overflowing both real and imaginary parts of result.
23433         * math/s_cexpf.c: Likewise.
23434         * math/s_cexpl.c: Likewise.
23435         * math/libm-test.inc (cexp_test): Add more tests.
23436         * sysdeps/i386/fpu/libm-test-ulps: Update.
23437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23438
23439 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23440
23441         * include/link.h (ELFW): New macro.
23442         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
23443         Replace ELF64_R_TYPE with ELFW(R_TYPE).
23444
23445 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23446
23447         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
23448         with uint64_t.
23449
23450 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23451
23452         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
23453         declaration.
23454         (struct La_x32_retval): Likewise.
23455
23456 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23457
23458         * sysdeps/x86_64/preconfigure.in: New file.
23459         * sysdeps/x86_64/preconfigure: New generated file.
23460
23461 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23462
23463         [BZ #13824]
23464         * math/e_exp2l.c: Include <float.h>.
23465         (__ieee754_exp2l): Handle overflow and underflow cases
23466         separately.  Only pass fractional part of argument to
23467         __ieee754_expl.
23468         * math/libm-test.inc (exp2_test): Add more tests.
23469
23470         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
23471         negating x to take absolute value.
23472         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
23473         Likewise.
23474         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
23475         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
23476         Likewise.
23477         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
23478         computing low part if x was negated.
23479         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
23480
23481 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23482
23483         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
23484         la_x32_gnu_pltexit.
23485         (pltexit): Cast int_retval to ptrdiff_t.
23486         * elf/tst-auditmod3b.c: Likewise.
23487         * elf/tst-auditmod4b.c: Likewise.
23488         * elf/tst-auditmod5b.c: Likewise.
23489         * elf/tst-auditmod6b.c: Likewise.
23490         * elf/tst-auditmod6c.c: Likewise.
23491         * elf/tst-auditmod7b.c: Likewise.
23492
23493         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
23494         and x32_gnu_pltexit.
23495
23496         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
23497         __ELF_NATIVE_CLASS.
23498         (La_x32_regs): New macro.
23499         (La_x32_retval): Likewise.
23500         (la_x32_gnu_pltenter): New function prototype.
23501         (la_x32_gnu_pltexit): Likewise.
23502
23503 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
23504
23505         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
23506         exponent.
23507
23508         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23509
23510         * configure.in (libc_cv_cc_nofma): Check for option to disable
23511         generation of FMA instructions.
23512         * configure: Regenerate.
23513         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
23514         * sysdeps/ieee754/dbl-64/Makefile: New file.
23515         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23516         Remove brandred-fma4.
23517         (CFLAGS-brandred-fma4.c): Remove.
23518         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
23519         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
23520         define.
23521         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
23522         define.
23523
23524 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23525
23526         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23527         LLONG_MAX != LONG_MAX.
23528         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23529         (_fitoa_word): Likewise.
23530         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
23531         LLONG_MAX != LONG_MAX.
23532         * stdio-common/_itowa.h: Include <_itoa.h>.
23533         (_itowa_word): Use _ITOA_WORD_TYPE on value.
23534         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
23535         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
23536         only if not defined.
23537         (_ITOA_WORD_TYPE): Likewise.
23538         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23539         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
23540
23541 2012-03-21  David S. Miller  <davem@davemloft.net>
23542
23543         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23544
23545 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23546
23547         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
23548         of x86_64 when setting libc_cv_slibdir, libdir and
23549         libc_cv_localedir.
23550         * sysdeps/unix/sysv/linux/configure: Regenerated.
23551
23552 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23553
23554         * manual/lang.texi (Old Varargs): Remove section.
23555         (How Variadic): Update menu.
23556         (va_start): Do not mention varargs.h.
23557
23558 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23559             Joseph Myers  <joseph@codesourcery.com>
23560
23561         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
23562         link test.
23563         * configure: Regenerated.
23564
23565 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23566
23567         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
23568         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
23569         conformtest.pl
23570
23571 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23572
23573         * NOTES: Remove.
23574         * Makefile (files-for-dist): Remove NOTES.
23575         (NOTES): Remove rule.
23576         * README: Don't refer to NOTES.
23577         * manual/creature.texi: Don't include macros.texi.
23578         * manual/intro.texi (creature.texi): Remove comment referring to
23579         NOTES.
23580
23581         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
23582         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
23583         * configure: Regenerated.
23584         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
23585         LIBC_TRY_CC_OPTION.
23586         (libc_cv_as_i686): Likewise.
23587         (libc_cv_cc_avx): Likewise.
23588         (libc_cv_cc_sse2avx): Likewise.
23589         (libc_cv_cc_fma4): Likewise.
23590         (libc_cv_cc_novzeroupper): Likewise.
23591         * sysdeps/i386/configure: Regenerated.
23592
23593         [BZ #13883]
23594         * sysdeps/i386/fpu/s_cexp.S: Remove.
23595         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
23596         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
23597         * math/libm-test.inc (cexp_test): Add more tests.
23598         * sysdeps/i386/fpu/libm-test-ulps: Update.
23599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23600
23601 2012-03-21  Allan McRae  <allan@archlinux.org>
23602
23603         * timezone/Makefile: Do not install iso3166.tab and zone.tab
23604
23605 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23606
23607         [BZ #13871]
23608         * math/w_exp2.c: Do not include <float.h>.
23609         (o_threshold, u_threshold): Remove.
23610         (__exp2): Calculate result before checking finiteness and calling
23611         __kernel_standard.
23612         * math/w_exp2f.c: Likewise.
23613         * math/w_exp2l.c: Likewise.
23614         * math/libm-test.inc (exp2_test): Require overflow exception for
23615         1e6 input.
23616
23617         [BZ #3866]
23618         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
23619         range of signed 64-bit integers before using fistpll.  Remove
23620         checks for whether integers fit in mantissa bits.
23621         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
23622         the range of signed 32-bit integers before using fistpl.  Remove
23623         checks for whether integers fit in mantissa bits.
23624         * sysdeps/i386/fpu/e_powl.S (p64): New object.
23625         (__ieee754_powl): Test for y outside the range of signed 64-bit
23626         integers before using fistpll.  Reduce 64-bit values to 63-bit
23627         ones as needed.
23628         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
23629         divide-by-zero is raised for zero to large negative powers.
23630         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
23631         (__ieee754_powl): Test for y outside the range of signed 64-bit
23632         integers before using fistpll.  Reduce 64-bit values to 63-bit
23633         ones as needed.
23634         * math/libm-test.inc (pow_test): Add more tests.
23635
23636 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23637
23638         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
23639         <stdio-common/_itoa.h>.
23640         * debug/segfault.c: Likewise.
23641         * elf/dl-cache.c: Likewise.
23642         * elf/dl-minimal.c: Likewise.
23643         * elf/dl-misc.c: Likewise.
23644         * elf/dl-sysdep.c: Likewise.
23645         * elf/dl-version.c: Likewise.
23646         * elf/rtld.c: Likewise.
23647         * hurd/hurdsock.c: Likewise.
23648         * hurd/lookup-retry.c: Likewise.
23649         * malloc/malloc.c: Likewise.
23650         * malloc/mtrace.c: Likewise.
23651         * nscd/nscd_getgr_r.c: Likewise.
23652         * nscd/nscd_getpw_r.c: Likewise.
23653         * nscd/nscd_getserv_r.c: Likewise.
23654         * posix/getopt_init.c: Likewise.
23655         * posix/wordexp.c: Likewise.
23656         * stdio-common/_itoa.c: Likewise.
23657         * stdio-common/printf_fphex.c: Likewise.
23658         * stdio-common/vfprintf.c: Likewise.
23659         * string/_strerror.c: Likewise.
23660         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
23661         * sysdeps/i386/i686/hp-timing.h: Likewise.
23662         * sysdeps/mach/_strerror.c: Likewise.
23663         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
23664         * sysdeps/mach/hurd/sethostid.c: Likewise.
23665         * sysdeps/mach/hurd/xmknodat.c: Likewise.
23666         * sysdeps/mach/xpg-strerror.c: Likewise.
23667         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23668         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23669         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
23670         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
23671         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23672         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
23673         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
23674         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
23675         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
23676         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
23677         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
23678         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
23679         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
23680         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
23681         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
23682         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
23683         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
23684         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
23685         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
23686         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
23687         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
23688
23689         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
23690
23691         * stdio-common/_itoa.h: Moved to ...
23692         * sysdeps/generic/_itoa.h: Here.
23693
23694         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
23695
23696         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
23697         instead of "_itoa.h" and "_itowa.h".
23698         * stdio-common/vfprintf.: Likewise.
23699
23700 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23701
23702         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
23703         <bits/wordsize.h>.
23704         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
23705         (__signbit): Likwise.
23706         (llrintf): Likwise.
23707         (llrint): Likwise.
23708
23709 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23710
23711         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
23712         __WORDSIZE != 64.
23713
23714 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
23715
23716         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
23717         OVERFLOW_EXCEPTION_OK.
23718         * math/libm-test.inc ("Philosophy"): Update comment about
23719         exception testing.
23720         (OVERFLOW_EXCEPTION): Define.
23721         (OVERFLOW_EXCEPTION_OK): Likewise.
23722         (INVALID_EXCEPTION_OK): Renumber.
23723         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23724         (IGNORE_ZERO_INF_SIGN): Likewise.
23725         (test_exceptions): Handle FE_OVERFLOW.
23726         (exp10_test): Expect overflow exceptions.
23727         (exp2_test): Likewise.
23728         (expm1_test): Likewise.
23729         (nextafter_test): Likewise.
23730         (pow_test): Likewise.
23731         (scalbn_test): Likewise.
23732         (scalbln_test): Likewise.
23733
23734 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23735
23736         * sysdeps/x86_64/bits/atomic.h
23737         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
23738         64bit integer.
23739         (atomic_exchange_acq): Likewise.
23740         (__arch_exchange_and_add_body): Likewise.
23741         (__arch_add_body): Likewise.
23742         (atomic_add_negative): Likewise.
23743         (atomic_add_zero): Likewise.
23744
23745 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23746
23747         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
23748         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
23749
23750 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23751
23752         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
23753         Check __x86_64__ instead of __WORDSIZE.
23754
23755 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23756
23757         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
23758
23759 2012-03-19  David S. Miller  <davem@davemloft.net>
23760
23761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23762
23763         * sysdeps/sparc/fpu/fenv_private.h: New file.
23764         * sysdeps/sparc/fpu/math_private.h: Use it.
23765         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
23766         Remove.
23767         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
23768         (libc_feholdexcept_setroundl): Remove.
23769         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
23770         Remove.
23771         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
23772         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
23773
23774 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23775
23776         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
23777         int64_t instead of long int.
23778         (INSERT_WORDS64): Likwise.
23779
23780 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23781
23782         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
23783         _Unwind_GetCFA return to _Unwind_Ptr first.
23784
23785 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
23786
23787         [BZ #13629]
23788         * math/s_clog.c: Include <float.h>.
23789         (__clog): Scale large or subnormal inputs.
23790         * math/s_clogf.c: Likewise.
23791         * math/s_clogl.c: Likewise.
23792         * math/s_clog10.c: Include <float.h>.
23793         (M_LOG10_2): Define.
23794         (__clog10): Scale large or subnormal inputs.
23795         * math/s_clog10f.c: Likewise.
23796         * math/s_clog10l.c: Likewise.
23797         * math/libm-test.inc (clog_test): Add more tests.
23798         (clog10_test): Likewise.
23799         * sysdeps/i386/fpu/libm-test-ulps: Update.
23800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23801
23802         [BZ #11451]
23803         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
23804         x and y.
23805         * math/libm-test.inc (atan2_test): Add another test.
23806
23807         * Makerules (common-objdir-compile): Remove.
23808         * sysdeps/unix/Makefile (config-generated): Do not add
23809         $(unix-generated) to variable.
23810         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
23811         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
23812         Remove rule.
23813         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
23814         Likewise.
23815         [generic bits/local_lim.h] (before-compile): Do not append to
23816         variable.
23817         [generic bits/local_lim.h] (common-generated): Likewise.
23818         [generic sys/param.h] (before-compile): Do not append to variable.
23819         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
23820         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
23821         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
23822         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
23823         include.
23824         [generic sys/param.h] (sys/param.h-includes): Remove variable.
23825         [generic sys/param.h] (sys/param.h-includes): Remove rule.
23826         [generic sys/param.h] ($(addprefix
23827         $(common-objpfx),$(sys/param.h-includes))): Likewise.
23828         [generic sys/param.h] (common-generated): Do not append to
23829         variable.
23830         [generic sys/param.h] (sysdep_headers): Likewise.
23831         [generic bits/errno.h] (before-compile): Do not append to
23832         variable.
23833         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
23834         rule.
23835         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
23836         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
23837         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
23838         [generic bits/errno.h] (common-generated): Do not append to
23839         variable.
23840         [generic bits/ioctls.h] (before-compile): Do not append to
23841         variable.
23842         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
23843         rule.
23844         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
23845         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
23846         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
23847         rule.
23848         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
23849         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
23850         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
23851         [generic bits/ioctls.h] (common-generated): Do not append to
23852         variable.
23853         [generic sys/syscall.h] (syscall.h): Remove variable.
23854         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
23855         rule.
23856         [generic sys/syscall.h] (before-compile): Do not append to
23857         variable.
23858         [generic sys/syscall.h] (common-generated): Likewise.
23859         * sysdeps/unix/errnos-tmpl.c: Remove file.
23860         * sysdeps/unix/errnos.awk: Likewise.
23861         * sysdeps/unix/ioctls-tmpl.c: Likewise.
23862         * sysdeps/unix/ioctls.awk: Likewise.
23863         * sysdeps/unix/mk-local_lim.c: Likewise.
23864         * sysdeps/unix/snarf-ioctls: Likewise.
23865
23866 2012-03-19  Richard Henderson  <rth@twiddle.net>
23867
23868         * sysdeps/i386/fpu/fenv_private.h: New file.
23869         * sysdeps/i386/fpu/math_private.h: Use it.
23870         (math_opt_barrier, math_force_eval): Remove.
23871         (libc_feholdexcept_setround_53bit): Remove.
23872         (libc_feupdateenv_53bit): Remove.
23873         * sysdeps/x86_64/fpu/math_private.h: Likewise.
23874         (math_opt_barrier, math_force_eval): Remove.
23875         (libc_feholdexcept): Remove.
23876         (libc_feholdexcept_setround): Remove.
23877         (libc_fetestexcept, libc_fesetenv): Remove.
23878         (libc_feupdateenv_test): Remove.
23879         (libc_feupdateenv, libc_feholdsetround): Remove.
23880         (libc_feresetround): Remove.
23881
23882         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
23883         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
23884
23885         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
23886         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
23887         (libc_feupdateenv_testl): New.
23888         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
23889         (libc_feupdateenv_testf): New.
23890         (libc_feupdateenv): Use libc_feupdateenv_test.
23891         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
23892         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
23893
23894         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
23895         (libc_feholdsetroundf, libc_feholdsetroundl): New.
23896         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
23897         (libc_feresetround_noex): New.
23898         (libc_feresetround_noexf): New.
23899         (libc_feresetround_noexl): New.
23900         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
23901         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
23902         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
23903         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
23904         SET_RESTORE_ROUND.
23905         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
23906         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
23907         (__cos): Likewise.
23908         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
23909         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
23910         SET_RESTORE_ROUND_NOEX.
23911         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
23912         SET_RESTORE_ROUND_NOEXF.
23913         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
23914         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
23915         (libc_feholdsetroundf): New.
23916         (libc_feresetround, libc_feresetroundf): New.
23917
23918         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
23919         (libc_feholdexcept_setround_53bit): Convert from macro to function.
23920         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
23921
23922         * sysdeps/generic/math_private.h: Include <fenv.h>.
23923         (default_libc_feholdexcept): New.
23924         (default_libc_feholdexcept_setround): New.
23925         (default_libc_fesetenv, default_libc_feupdateenv): New.
23926         (libc_feholdexcept): Only define if undefined.
23927         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
23928         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
23929         (libc_feholdexcept_setroundl): Likewise.
23930         (libc_feholdexcept_setround_53bit): Likewise.
23931         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
23932         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
23933         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
23934         (libc_feupdateenv_53bit): Likewise.
23935         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
23936         (libc_feholdexcept): Convert from macro to inline function.
23937         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
23938         (libc_fesetenv, libc_feupdateenv): Likewise.
23939
23940         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
23941         not previously defined.
23942         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
23943         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
23944         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
23945         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
23946         * sysdeps/ieee754/flt-32/math_private.h: New file.
23947         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
23948         math_private.h below SET_FLOAT_WORD.
23949         (__isnan, __isinf_ns, __finite): Remove.
23950         (__isnanf, __isinf_nsf, __finitef): Remove.
23951
23952 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
23953
23954         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23955
23956 2012-03-17  David S. Miller  <davem@davemloft.net>
23957
23958         [BZ #6471]
23959         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
23960         for 2.16.
23961
23962 2012-03-16  David S. Miller  <davem@davemloft.net>
23963
23964         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
23965         warnings.
23966
23967         [BZ #6471]
23968         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
23969         properly.
23970         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
23971         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
23972         sysdep_routines when subdir is sysvipc.
23973         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
23974         __getshmlba helper.
23975
23976         * sysdeps/sparc/fpu/libm-test/ulps: Update.
23977
23978 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23979
23980         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
23981         [__LP64__].
23982
23983 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23984
23985         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
23986         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
23987         (__lround): Renamed to ...
23988         (__llround): This.  Replace long int with long long int.
23989         Define lround functions as aliases of llround functions.
23990         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
23991
23992 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23993
23994         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
23995         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
23996         adresses to uintptr_t.  Replace "long int" and "unsigned long
23997         int" with "greg_t" on va_arg.
23998
23999 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24000
24001         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
24002         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
24003
24004         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
24005         Move e_machine check before EI_CLASS check.  Handle x32
24006         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
24007         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
24008         SKIP_EM_IA_64 and include
24009         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
24010
24011         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
24012         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
24013         (add_system_dir): New macro.
24014
24015         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
24016         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
24017
24018 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24019
24020         [BZ #2551]
24021         [BZ #2552]
24022         [BZ #2553]
24023         [BZ #2554]
24024         [BZ #2562]
24025         [BZ #2563]
24026         [BZ #2565]
24027         [BZ #2566]
24028         [BZ #2576]
24029         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
24030         (y0): Likewise.
24031         * math/w_j0f.c (j0f): Likewise.
24032         (y0f): Likewise.
24033         * math/w_j0l.c (__j0l): Likewise.
24034         (__y0l): Likewise.
24035         * math/w_j1.c (j1): Likewise.
24036         (y1): Likewise.
24037         * math/w_j1f.c (j1f): Likewise.
24038         (y1f): Likewise.
24039         * math/w_j1l.c (__j1l): Likewise.
24040         (__y1l): Likewise.
24041         * math/w_jn.c (jn): Likewise.
24042         (yn): Likewise.
24043         * math/w_jnf.c (jnf): Likewise.
24044         (ynf): Likewise.
24045         * math/w_jnl.c (__jnl): Likewise.
24046         (__ynl): Likewise.
24047         * math/libm-test.inc (j0_test): Add more tests.
24048         (j1_test): Likewise.
24049         (jn_test): Likewise.  Add trailing semicolon to existing test.
24050         (y0_test): Likewise.
24051         (y1_test): Likewise.
24052         * sysdeps/i386/fpu/libm-test-ulps: Update.
24053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24054
24055         [BZ #13851]
24056         [BZ #13854]
24057         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
24058         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
24059         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
24060         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
24061         (__tanl): Set errno for infinite argument.
24062         * sysdeps/i386/fpu/mptan.c: Remove.
24063         * sysdeps/i386/fpu/s_tan.S: Likewise.
24064         * sysdeps/i386/fpu/s_tanl.S: Likewise.
24065         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
24066         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
24067         * math/libm-test.inc (tan_test): Add more tests and enable more
24068         tests for double and long double.
24069         * sysdeps/i386/fpu/libm-test-ulps: Update.
24070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24071
24072 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
24073
24074         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
24075         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
24076
24077 2012-03-16  Roland McGrath  <roland@hack.frob.com>
24078
24079         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
24080         * configure.in: Use it for both main tree and add-ons.
24081         * configure: Regenerated.
24082
24083 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24084
24085         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
24086
24087 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24088
24089         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
24090         in comment.
24091
24092         [BZ #13851]
24093         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
24094         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
24095         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
24096         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
24097         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
24098         infinite argument.
24099         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
24100         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
24101         != 0 for prec == 2.
24102         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
24103         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
24104         * sysdeps/i386/fpu/s_cosl.S: Likewise.
24105         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
24106         * sysdeps/i386/fpu/s_sinl.S: Likewise.
24107         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
24108         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
24109         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
24110         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
24111         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
24112         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
24113         * math/libm-test.inc (cos_test): Add more tests and enable more
24114         tests for long double.
24115         (sin_test): Likewise.
24116         (sincos_test): Likewise.
24117         * sysdeps/i386/fpu/libm-test-ulps: Update.
24118         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24119
24120 2012-03-16  David S. Miller  <davem@davemloft.net>
24121
24122         * sysdeps/sparc/fpu/math_private.h: New file.
24123
24124 2012-03-15  David S. Miller  <davem@davemloft.net>
24125
24126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
24127         file.
24128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
24129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
24130         file.
24131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
24132         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
24133         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
24134         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
24135         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
24136         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
24137         sysdep routines.
24138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24139
24140         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
24141         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
24142
24143         * sysdeps/sparc/sparc-ifunc.h: New file.
24144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
24145         sparc-ifunc.h
24146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
24147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
24148         Likewise.
24149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
24150         Likewise.
24151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
24152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
24153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
24154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
24155         Likewise.
24156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
24157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
24158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
24159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
24160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
24161         Likewise.
24162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
24163         Likewise.
24164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
24165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
24166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
24167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
24168         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
24169         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
24170         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
24171         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
24172         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
24173         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
24174         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
24175         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
24176         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
24177         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
24178         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
24179         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
24180         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
24181         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
24182         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
24183         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
24184         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
24185         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
24186         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
24187         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
24188
24189 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24190
24191         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
24192         scaling.
24193         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24194
24195 2012-03-15  Andreas Jaeger  <aj@suse.de>
24196
24197         [BZ #13852]
24198         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
24199         ieee754/flt-32 implementation for sin, cos and sincos.
24200         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
24201         * sysdeps/i386/fpu/s_cosf.S: Likewise.
24202         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
24203         * sysdeps/i386/fpu/s_sinf.S: Likewise.
24204         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
24205         ieee754/flt-32 implementation for tan.
24206
24207         * math/libm-test.inc (cos_test): Enable some large input tests for
24208         float as well
24209         (sin_test): Likewise.
24210         (sincos_test): Likewise.
24211         (tan_test): Add tests for large input.
24212
24213         * sysdeps/i386/fpu/libm-test-ulps: Update.
24214
24215 2012-03-15  Andreas Jaeger  <aj@suse.de>
24216
24217         [BZ #13658]
24218         * math/libm-test.inc (cos_test): Add more test cases.
24219         (sin_test): Likewise.
24220         (sincos_test): Likewise.
24221
24222 2012-03-15  Andreas Jaeger  <aj@suse.de>
24223
24224         [BZ #13837]
24225         * math/libm-test.inc (cos_test): Add a test case for large input
24226         value.
24227         (sin_test): Likewise.
24228         (sincos_test): Likewise.
24229
24230 2012-03-15  Andreas Jaeger  <aj@suse.de>,
24231         Joseph Myers  <joseph@codesourcery.com>
24232
24233         [BZ #13658]
24234         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
24235         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
24236         * sysdeps/i386/fpu/branred.c: Likewise.
24237         * sysdeps/i386/fpu/dosincos.c: Likewise.
24238         * sysdeps/i386/fpu/mpa.c: Likewise.
24239         * sysdeps/i386/fpu/s_cos.S: Likewise.
24240         * sysdeps/i386/fpu/s_sin.S: Likewise.
24241         * sysdeps/i386/fpu/s_sincos.S: Likewise.
24242         * sysdeps/i386/fpu/sincos32.c: Likewise.
24243
24244         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
24245         Define.
24246         (libc_feupdateenv_53bit): Define.
24247         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
24248         Define.
24249         (libc_feupdateenv_53bit): Define.
24250
24251         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
24252         53 bit (without extend i386 double precision).
24253
24254         * math/libm-test.inc (sincos_test): Add tests for large input.
24255         (sin): Likewise.
24256         (cos): Likewise.
24257
24258         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
24259
24260 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24261
24262         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24263
24264 2012-03-15  David S. Miller  <davem@davemloft.net>
24265
24266         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
24267         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
24268         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
24269         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
24270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
24271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
24272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
24273         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
24274         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
24275         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
24276         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
24277         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
24278         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
24279         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
24280         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
24281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
24282         file.
24283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
24284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
24285         file.
24286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
24287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
24288         file.
24289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
24290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
24291         file.
24292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
24293         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
24294         fmin/fmax sysdep routines.
24295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24296
24297 2012-03-14  David S. Miller  <davem@davemloft.net>
24298
24299         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
24300         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
24301         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
24302         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
24303         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
24304         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
24305         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
24306         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
24307         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
24308         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
24309         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
24310         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
24311         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
24312         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
24313         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
24314         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
24315         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
24316         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
24317         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
24318         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
24319         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
24320         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
24321         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
24322         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
24323         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
24324         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
24325         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
24326         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
24327         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
24328         routines.
24329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
24330         file.
24331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
24332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
24333         file.
24334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
24335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
24336         file.
24337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
24338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
24339         file.
24340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
24341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
24342         file.
24343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
24344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
24345         file.
24346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
24347         file.
24348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
24349         file.
24350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
24351         file.
24352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
24353         New file.
24354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
24355         file.
24356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
24357         file.
24358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
24359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
24360         file.
24361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
24362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
24363         file.
24364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
24365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
24366         file.
24367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
24368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
24369         VIS3 routines.
24370
24371         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
24372         New file.
24373
24374         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24375
24376         * sysdeps/sparc/configure.in: New file.
24377         * sysdeps/sparc/configure: Generate.
24378         * configure.in (libc_cv_sparc_as_vis3): Substitute.
24379         * configure: Regenerate.
24380         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
24381         * config.make.in (have-as-vis3): New.
24382         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
24383         available use -Av9d instead of -Av9a.
24384         * sysdeps/sparc/sparc64/Makefile: Likewise.
24385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
24386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
24387         New file.
24388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
24389         file.
24390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
24391         New file.
24392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
24393         file.
24394         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
24395         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
24396         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
24397         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
24398         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
24399
24400         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
24401         fzeros/fnegs to load 0x80000000 into a float register instead of
24402         using the stack.
24403         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
24404
24405 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24406
24407         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24408         bits/syscall.h.
24409         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
24410         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
24411         ($(inst_includedir)/bits/syscall.h): Remove rule.
24412         ($(objpfx)bits/syscall.d): Include instead of
24413         $(objpfx)syscall-list.d.
24414         (generated): Change syscall-list.h and syscall-list.d to
24415         bits/syscall.h and bits/syscall.d.
24416
24417 2012-03-14  Roland McGrath  <roland@hack.frob.com>
24418
24419         [BZ #13846]
24420         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
24421
24422 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24423
24424         [BZ #13841]
24425         * math/s_csqrt.c: Include <float.h>.
24426         (__csqrt): Scale large or subnormal inputs.
24427         * math/s_csqrtf.c: Likewise.
24428         * math/s_csqrtl.c: Likewise.
24429         * math/libm-test.inc (csqrt_test): Add more tests.
24430         * sysdeps/i386/fpu/libm-test-ulps: Update.
24431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24432
24433         [BZ #13840]
24434         * math/libm-test.inc (hypot_test): Add more tests.
24435
24436 2012-03-13  David S. Miller  <davem@davemloft.net>
24437
24438         [BZ #13840]
24439         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
24440         double-precision for the calculation instead of scaling.
24441
24442 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
24443
24444         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
24445         manipulate bits before adding and subtracting TWO52[sx].
24446         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
24447         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
24448         Likewise.
24449         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
24450
24451 2012-03-13  David S. Miller  <davem@davemloft.net>
24452
24453         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
24454         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
24455         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
24456         rtld-global-offsets.h
24457         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24458
24459         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
24460         large parameters.
24461
24462         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
24463
24464         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
24465         'err' in the ifdef scope in which it is actually used.
24466
24467         * nss/nss_db/db-init.c: Include string.h
24468
24469 2012-03-12  David S. Miller  <davem@davemloft.net>
24470
24471         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24472         masking out of the most significant byte of random value used.
24473         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24474         Fix coding style in previous change.
24475
24476         * sysdeps/unix/sysv/linux/kernel-features.h
24477         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
24478         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
24479         expression.
24480         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
24481         later.
24482
24483 2012-03-11  David S. Miller  <davem@davemloft.net>
24484
24485         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24486         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
24487         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
24488         for 'resultvar' otherwise things get truncated on 64-bit.
24489
24490         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24491         Fix masking out of the most significant byte of random value used.
24492
24493         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24494
24495 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
24496
24497         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24498
24499 2012-03-09  David S. Miller  <davem@davemloft.net>
24500
24501         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
24502         variables with appropriate CPP guards.
24503         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
24504         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
24505         on resulting framesize and the management of the outregs buffer for pltexit.
24506         Preserve floating point return values across _dl_call_pltexit call.
24507         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
24508         framesize and the management of the outregs buffer for pltexit.
24509         Preserve floating point return values across _dl_call_pltexit
24510         call.
24511         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
24512         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
24513         (print_exit): Fix format string for return register value.
24514
24515 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
24516
24517         * sunrpc/Makefile (others): Add rpcgen.
24518         ($(objpfx)rpcgen): Remove special build rule and dependency on
24519         libc.
24520         * sunrpc/rpcgen.c: New file.
24521
24522 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
24523
24524         [BZ #13673]
24525         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
24526         * stdio-common/bug-vfprintf-nargs.c: Likewise.
24527         * sysdeps/i386/crti.S: Likewise.
24528         * sysdeps/i386/crtn.S: Likewise.
24529         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
24530         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
24531         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
24532         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
24533         * sysdeps/sh/crti.S: Likewise.
24534         * sysdeps/sh/crtn.S: Likewise.
24535         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
24536
24537         [BZ #13673]
24538         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
24539         with URL.
24540         * locale/programs/locfile-kw.gperf: Likewise.
24541         * locale/programs/charmap-kw.h: Regenerated.
24542         * locale/programs/locfile-kw.h: Likewise.
24543
24544         [BZ #13673]
24545         * intl/plural.y: Replace FSF snail mail address with URL.
24546         * intl/plural.c: Regenerated.
24547
24548 2012-03-09  Richard Henderson  <rth@twiddle.net>
24549
24550         * include/math_private.h: Remove file.
24551         * math/math_private.h: Move file ...
24552         * sysdeps/generic/math_private.h: ... here.
24553
24554         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
24555         * sysdeps/powerpc/fpu/math_private.h: Likewise.
24556         * sysdeps/x86_64/fpu/math_private.h: Likewise.
24557
24558         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
24559         and <math_private.h>.
24560         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
24561         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
24562         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
24563         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
24564         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
24565         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
24566         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24567         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24568         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24569         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24570         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24571         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24572         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24573         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24574         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24575         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24576         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24577         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24578         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24579         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24580         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24581         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24582         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24583         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24584         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
24585         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24586         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24587         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24588         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24589         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
24590         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24591         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24592         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
24593         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
24594         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
24595         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
24596         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
24597         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
24598         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
24599         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24600         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
24601         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
24602         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
24603         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
24604         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
24605         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
24606         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
24607         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
24608         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
24609         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
24610         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
24611         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
24612         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
24613         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
24614         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
24615         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
24616         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
24617         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
24618         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
24619         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
24620         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
24621         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
24622         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24623         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
24624         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
24625         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
24626         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
24627         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
24628         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
24629         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
24630         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
24631         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24632         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
24633         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24634         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
24635         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
24636         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
24637         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
24638         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
24639         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
24640         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
24641         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
24642         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
24643         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
24644         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
24645         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
24646         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
24647         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
24648         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24649         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24650         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24651         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24652         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24653         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24654         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24655         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24656         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24657         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24658         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24659         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24660         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24661         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24662         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24663         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24664         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
24665         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24666         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24667         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24668         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
24669         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
24670         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
24671         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
24672         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24673         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
24674         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
24675         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24676         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
24677         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
24678         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
24679         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
24680         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
24681         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
24682         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24683         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
24684         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
24685         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
24686         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24687         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
24688         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
24689         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
24690         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
24691         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
24692         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
24693         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
24694         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
24695         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
24696         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
24697         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
24698         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
24699         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
24700         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
24701         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
24702         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
24703         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
24704         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
24705         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24706         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
24707         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
24708         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
24709         * sysdeps/ieee754/k_standard.c: Likewise.
24710         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24711         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24712         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24713         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24714         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24715         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24716         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24717         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24718         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24719         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24720         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24721         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24722         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24723         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24724         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24725         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24726         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
24727         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24728         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24729         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
24730         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
24731         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
24732         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
24733         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
24734         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
24735         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
24736         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
24737         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
24738         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
24739         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
24740         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
24741         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
24742         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
24743         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
24744         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
24745         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
24746         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
24747         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
24748         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
24749         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
24750         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
24751         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
24752         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
24753         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
24754         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
24755         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
24756         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
24757         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
24758         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
24759         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
24760         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
24761         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
24762         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
24763         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
24764         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
24765         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
24766         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
24767         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
24768         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
24769         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
24770         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
24771         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
24772         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
24773         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24774         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24775         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24776         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24777         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24778         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24779         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24780         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24781         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24782         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24783         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24784         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24785         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24786         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
24787         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24788         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24789         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
24790         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
24791         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
24792         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
24793         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
24794         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
24795         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24796         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
24797         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
24798         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
24799         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
24800         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
24801         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
24802         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24803         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
24804         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24805         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
24806         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
24807         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24808         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24809         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
24810         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
24811         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24812         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
24813         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
24814         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
24815         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
24816         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24817         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24818         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
24819         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
24820         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
24821         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
24822         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24823         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24824         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24825         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24826         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24827         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24828         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24829         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24830         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24831         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24832         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24833         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24834         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24835         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
24836         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
24837         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
24838         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
24839         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
24840         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
24841         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
24842         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
24843         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
24844         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
24845         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
24846         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
24847         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
24848         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
24849         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
24850         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
24851         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
24852         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
24853         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
24854         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
24855         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
24856         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
24857         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
24858         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
24859         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
24860         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
24861         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
24862         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
24863         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
24864         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
24865         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
24866         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
24867         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
24868         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
24869         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
24870         * sysdeps/ieee754/s_lib_version.c: Likewise.
24871         * sysdeps/ieee754/s_matherr.c: Likewise.
24872         * sysdeps/ieee754/s_signgam.c: Likewise.
24873         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24874         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24875         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
24876         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
24877         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
24878         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
24879         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
24880         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
24881         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
24882         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
24883         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
24884         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
24885         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
24886         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
24887         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
24888         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
24889         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24890         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
24891         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24892         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
24893         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
24894
24895 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
24896
24897         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
24898         * sunrpc/rpc_main.c: Likewise.
24899         * sunrpc/rpc_svcout.c: Likewise.
24900
24901 2012-03-09  David S. Miller  <davem@davemloft.net>
24902
24903         * include/math_private.h: New file.
24904
24905 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
24906
24907         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
24908         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
24909         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
24910         from <bits/socket_type.h>.
24911         (enum __socket_type): Don't define here.
24912         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
24913         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24914         bits/socket_type.h.
24915
24916         [BZ #13566]
24917         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
24918         checking __USE_GNU.
24919
24920         * Makerules ($(inst_includedir)/%.h): New rule.
24921         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
24922         (install-others): Remove variable setting.
24923         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
24924
24925 2012-03-08  Richard Henderson  <rth@twiddle.net>
24926
24927         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
24928         from macro to inline function; merge with the
24929         !__LIBC_INTERNAL_MATH_INLINES version.
24930         (__ieee754_sqrtf): Likewise.
24931
24932         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
24933         to inline function.
24934         (__rintf, __floor, __floorf): Likewise.
24935
24936         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
24937         macro to inline function.
24938         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
24939
24940         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
24941         not <math/math_private.h>.
24942
24943 2012-03-08  David S. Miller  <davem@davemloft.net>
24944
24945         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
24946         copyright year.
24947         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
24948
24949 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
24950
24951         * resolv/gai_misc.c (handle_requests): Fix struct timespec
24952         normalization.
24953         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
24954         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
24955
24956 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
24957
24958         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
24959         be defined individually, they must be defined as a block.  Define
24960         S for printing a string instead of hidint the different by using a
24961         macro for adding the 'l'.
24962         * stdio-common/tst-fphex-wide.c: Adjust.
24963
24964 2012-03-07  Marek Polacek  <polacek@redhat.com>
24965
24966         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
24967
24968 2012-03-08  Marek Polacek  <polacek@redhat.com>
24969
24970         [BZ #13806]
24971         * stdio-common/Makefile (tests): Add tst-fphex-wide.
24972         * stdio-common/tst-fphex.c: Define a few macros to make the
24973         test reusable.  Use them.
24974         * stdio-common/tst-fphex-wide.c: New file.
24975
24976 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
24977
24978         [BZ #6911]
24979         * manual/macros.texi (gnusystems): New macro.
24980         (nongnusystems): Likewise.
24981         (gnulinuxhurdsystems): Likewise.
24982         (gnuhurdsystems): Likewise..
24983         (gnulinuxsystems): Likewise.
24984         * manual/charset.texi: Use new macros or @theglibc{} to refer to
24985         variants of the GNU system, not "GNU system".
24986         * manual/conf.texi: Likewise.
24987         * manual/errno.texi: Likewise.  Update example of errno macro
24988         expansion.
24989         * manual/filesys.texi: Likewise.
24990         (getumask): Document as specific to GNU/Hurd.
24991         * manual/install.texi: Likewise.  Reword some references to
24992         GNU/Linux.
24993         * manual/intro.texi: Likewise.
24994         * manual/io.texi: Likewise.
24995         (File Name Portability): Detail which constraints are inapplicable
24996         to all GNU systems and which are only inapplicable to GNU/Hurd.
24997         * manual/job.texi: Likewise.
24998         * manual/llio.texi: Likewise.
24999         (O_NOCTTY): Document as present on GNU/Linux.
25000         * manual/maint.texi: Likewise.
25001         * manual/memory.texi: Likewise.
25002         * manual/pattern.texi: Likewise.
25003         * manual/pipe.texi: Likewise.
25004         * manual/process.texi: Likewise.
25005         * manual/resource.texi: Likewise.
25006         (RUSAGE_CHILDREN): Remove statement about specifying a particular
25007         child on GNU/Hurd.
25008         * manual/setjmp.texi: Likewise.
25009         * manual/signal.texi: Likewise.
25010         * manual/startup.texi: Likewise.
25011         * manual/stdio.texi: Likewise.
25012         * manual/terminal.texi: Likewise.
25013         (ONLCR): Document as POSIX.
25014         (OXTABS): Document availability on GNU/Linux as XTABS.
25015         (ONOEOT): Document availability separately from other bits.
25016         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
25017         * manual/time.texi: Likewise.
25018         * manual/users.texi: Likewise.
25019         * INSTALL: Regenerated.
25020         * sysdeps/gnu/errlist.c: Regenerated.
25021
25022         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
25023         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
25024         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
25025         puts.
25026         * configure: Regenerated.
25027
25028 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
25029
25030         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
25031         default includes instead of AC_HEADER_CHECK.
25032         * sysdeps/i386/configure: Regenerated.
25033
25034         [BZ #10716]
25035         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
25036         * math/s_cacoshf.c (__cacoshf): Likewise.
25037         * math/s_cacoshl.c (__cacoshl): Likewise.
25038         * math/s_casinh.c (__casinh): Set signs of result from argument.
25039         * math/s_casinhf.c (__casinhf): Likewise.
25040         * math/s_casinhl.c (__casinhl): Likewise.
25041         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
25042         (casinh_test): Add more tests.
25043         * sysdeps/i386/fpu/libm-test-ulps: Update.
25044         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25045
25046 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
25047
25048         * po/zh_TW.po: Update from translation team.
25049
25050         * login/Makefile (distribute): Remove variable.
25051         * catgets/Makefile: Likewise.
25052         * mach/Makefile: Likewise.
25053         * malloc/Makefile: Likewise.
25054         * misc/Makefile: Likewise.
25055         * iconv/Makefile: Likewise.
25056         * nscd/Makefile: Likewise.
25057         * hurd/Makefile: Likewise.
25058         * manual/Makefile: Likewise.
25059         * locale/Makefile: Likewise.
25060         * intl/Makefile: Likewise.
25061         * conform/Makefile: Likewise.
25062         * nss/Makefile: Likewise.
25063         * time/Makefile: Likewise.
25064         * soft-fp/Makefile: Likewise.
25065         * dirent/Makefile: Likewise.
25066         * gmon/Makefile: Likewise.
25067         * po/Makefile: Likewise.
25068         * rt/Makefile: Likewise.
25069         * socket/Makefile: Likewise.
25070         * math/Makefile: Likewise.
25071         * signal/Makefile: Likewise.
25072         * debug/Makefile: Likewise.
25073         * elf/Makefile: Likewise.
25074         * timezone/Makefile: Likewise.
25075         * stdlib/Makefile: Likewise.
25076         * iconvdata/Makefile: Likewise.
25077         * sunrpc/Makefile: Likewise.
25078         * io/Makefile: Likewise.
25079         * argp/Makefile: Likewise.
25080         * inet/Makefile: Likewise.
25081         * hesiod/Makefile: Likewise.
25082         * grp/Makefile: Likewise.
25083         * csu/Makefile: Likewise.
25084         * wctype/Makefile: Likewise.
25085         * crypt/Makefile: Likewise.
25086         * libio/Makefile: Likewise.
25087         * string/Makefile: Likewise.
25088         * nis/Makefile: Likewise.
25089         * resolv/Makefile: Likewise.
25090         * stdio-common/Makefile: Likewise.
25091         * wcsmbs/Makefile: Likewise.
25092         * dlfcn/Makefile: Likewise.
25093         * posix/Makefile: Likewise.
25094
25095         [BZ #6959]
25096         * timezone/Makefile: Don't install timezone files, just the programs
25097         and scripts.
25098
25099 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
25100
25101         * nss/databases.def: Add missing gshadow entry.
25102
25103         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
25104
25105 2012-03-06  Marek Polacek  <polacek@redhat.com>
25106
25107         [BZ #13726]
25108         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
25109         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
25110         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
25111         * stdio-common/tst-long-dbl-fphex.c: New file.
25112
25113 2012-03-06  David S. Miller  <davem@davemloft.net>
25114
25115         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25116         (set_obp_int): New function.
25117         (get_obp_int): New function.
25118         (__get_clockfreq_via_dev_openprom): Likewise.
25119         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
25120         Avoid unused variable warnings on 'val' and use builtin_expect.
25121         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
25122         __builtin_expect.
25123         (INLINE_CLONE_SYSCALL): Likewise.
25124
25125 2012-03-05  David S. Miller  <davem@davemloft.net>
25126
25127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25128
25129 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
25130
25131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25132
25133         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
25134         only for |x| >= 40.
25135         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25136
25137 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25138
25139         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
25140         Replace gettimeofday with __vdso_gettimeofday.
25141
25142         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25143         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
25144         __vdso_clock_gettime and __vdso_getcpu.
25145
25146         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
25147         time with __vdso_time.
25148
25149 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25150
25151         * manual/lang.texi (size_t): Note types to which size_t may be
25152         equivalent with the GNU C Library, but do not describe when
25153         differences between them are significant.
25154
25155 2012-03-05  Andreas Jaeger  <aj@suse.de>
25156
25157         * sysdeps/i386/fpu/libm-test-ulps: Update.
25158
25159 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25160
25161         [BZ #3976]
25162         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
25163         (__ieee754_pow): Save and restore rounding mode and use
25164         round-to-nearest for main computations.
25165         * math/libm-test.inc (pow_test_tonearest): New function.
25166         (pow_test_towardzero): Likewise.
25167         (pow_test_downward): Likewise.
25168         (pow_test_upward): Likewise.
25169         (main): Call the new functions.
25170         * sysdeps/i386/fpu/libm-test-ulps: Update.
25171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25172
25173         [BZ #3976]
25174         * math/libm-test.inc (cosh_test_tonearest): New function.
25175         (cosh_test_towardzero): Likewise.
25176         (cosh_test_downward): Likewise.
25177         (cosh_test_upward): Likewise.
25178         (sinh_test_tonearest): Likewise.
25179         (sinh_test_towardzero): Likewise.
25180         (sinh_test_downward): Likewise.
25181         (sinh_test_upward): Likewise.
25182         (main): Call the new functions.
25183         * sysdeps/i386/fpu/libm-test-ulps: Update.
25184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25185
25186 2012-03-05  Tom de Vries  <tom@codesourcery.com>
25187
25188         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
25189         default stack guard is set in last bytes.
25190         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
25191
25192 2012-03-05  Kees Cook  <keescook@chromium.org>
25193
25194         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
25195
25196         [BZ #13656]
25197         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
25198         possibly allocate from heap instead of stack.
25199         * stdio-common/bug-vfprintf-nargs.c: New file.
25200         * stdio-common/Makefile (tests): Add nargs overflow test.
25201
25202 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
25203
25204         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25205
25206 2012-03-03  Marek Polacek  <polacek@redhat.com>
25207
25208         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
25209         * math/math_private.h: Likewise.
25210         * stdlib/tst-strtod.c: Likewise.
25211         * sysdeps/i386/i486/bits/atomic.h: Likewise.
25212         * sysdeps/x86_64/bits/atomic.h: Likewise.
25213
25214 2012-03-02  David S. Miller  <davem@davemloft.net>
25215
25216         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
25217         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
25218         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
25219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
25220         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
25221         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
25222         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
25223         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
25224
25225 2012-03-02  Roland McGrath  <roland@hack.frob.com>
25226
25227         [BZ #13792]
25228         * manual/examples/README: New file, says the example source files
25229         can be used under GPL>=2.
25230         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
25231         line containing just "*/".
25232         * manual/examples/add.c: Add copyright header (GPL>=2).
25233         * manual/examples/argp-ex1.c: Likewise.
25234         * manual/examples/argp-ex2.c: Likewise.
25235         * manual/examples/argp-ex3.c: Likewise.
25236         * manual/examples/argp-ex4.c: Likewise.
25237         * manual/examples/atexit.c: Likewise.
25238         * manual/examples/db.c: Likewise.
25239         * manual/examples/dir.c: Likewise.
25240         * manual/examples/dir2.c: Likewise.
25241         * manual/examples/execinfo.c: Likewise.
25242         * manual/examples/filecli.c: Likewise.
25243         * manual/examples/filesrv.c: Likewise.
25244         * manual/examples/fmtmsgexpl.c: Likewise.
25245         * manual/examples/genpass.c: Likewise.
25246         * manual/examples/inetcli.c: Likewise.
25247         * manual/examples/inetsrv.c: Likewise.
25248         * manual/examples/isockad.c: Likewise.
25249         * manual/examples/longopt.c: Likewise.
25250         * manual/examples/memopen.c: Likewise.
25251         * manual/examples/memstrm.c: Likewise.
25252         * manual/examples/mkfsock.c: Likewise.
25253         * manual/examples/mkisock.c: Likewise.
25254         * manual/examples/mygetpass.c: Likewise.
25255         * manual/examples/pipe.c: Likewise.
25256         * manual/examples/popen.c: Likewise.
25257         * manual/examples/rprintf.c: Likewise.
25258         * manual/examples/search.c: Likewise.
25259         * manual/examples/select.c: Likewise.
25260         * manual/examples/setjmp.c: Likewise.
25261         * manual/examples/sigh1.c: Likewise.
25262         * manual/examples/sigusr.c: Likewise.
25263         * manual/examples/stpcpy.c: Likewise.
25264         * manual/examples/strdupa.c: Likewise.
25265         * manual/examples/strftim.c: Likewise.
25266         * manual/examples/strncat.c: Likewise.
25267         * manual/examples/subopt.c: Likewise.
25268         * manual/examples/swapcontext.c: Likewise.
25269         * manual/examples/termios.c: Likewise.
25270         * manual/examples/testopt.c: Likewise.
25271         * manual/examples/testpass.c: Likewise.
25272         * manual/examples/timeval_subtract.c: Likewise.
25273
25274         [BZ #13792]
25275         * manual/time.texi (Elapsed Time): Move timeval_subtract example
25276         function to ...
25277         * manual/timeval_subtract.c.texi: ... here, new file.
25278
25279 2012-03-02  David S. Miller  <davem@davemloft.net>
25280
25281         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
25282
25283 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
25284
25285         [BZ #3976]
25286         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
25287         (__sin): Save and restore rounding mode and use round-to-nearest
25288         for all computations.
25289         (__cos): Save and restore rounding mode and use round-to-nearest
25290         for all computations.
25291         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
25292         <fenv.h>.
25293         (tan): Save and restore rounding mode and use round-to-nearest for
25294         all computations.
25295         * math/libm-test.inc (cos_test_tonearest): New function.
25296         (cos_test_towardzero): Likewise.
25297         (cos_test_downward): Likewise.
25298         (cos_test_upward): Likewise.
25299         (sin_test_tonearest): Likewise.
25300         (sin_test_towardzero): Likewise.
25301         (sin_test_downward): Likewise.
25302         (sin_test_upward): Likewise.
25303         (tan_test_tonearest): Likewise.
25304         (tan_test_towardzero): Likewise.
25305         (tan_test_downward): Likewise.
25306         (tan_test_upward): Likewise.
25307         (main): Call the new functions.
25308         * sysdeps/i386/fpu/libm-test-ulps: Update.
25309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25310
25311         [BZ #10135]
25312         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
25313         small n, then large n, before computing and testing k+n.
25314         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
25315         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
25316         Likewise.
25317         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
25318         Likewise.
25319         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
25320         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
25321         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
25322         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
25323         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
25324         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
25325         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
25326         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
25327         * math/libm-test.inc (scalbn_test): Add more tests.
25328         (scalbln_test): Likewise.
25329
25330         * manual/filesys.texi (mode_t): Describe constraints on size and
25331         signedness, not exact equivalence to a particular type.
25332         (ino_t): Likewise.
25333         (ino64_t): Likewise.
25334         (dev_t): Likewise.
25335         (nlink_t): Likewise.
25336         (blkcnt_t): Likewise.
25337         (blkcnt64_t): Likewise.
25338         * manual/llio.texi (off_t): Likewise.
25339
25340         [BZ #3976]
25341         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
25342         (__ieee754_exp): Save and restore rounding mode and use
25343         round-to-nearest for all computations.
25344         * math/libm-test.inc (exp_test_tonearest): New function.
25345         (exp_test_towardzero): Likewise.
25346         (exp_test_downward): Likewise.
25347         (exp_test_upward): Likewise.
25348         (main): Call the new functions.
25349         * sysdeps/i386/fpu/libm-test-ulps: Update.
25350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25351
25352 2012-03-01  Chris Demetriou  <cgd@google.com>
25353
25354         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
25355         have predictable order.
25356
25357 2012-03-01  David S. Miller  <davem@davemloft.net>
25358
25359         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
25360
25361         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
25362         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
25363         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
25364         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
25365
25366         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
25367         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
25368         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
25369         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
25370         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
25371         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
25372         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
25373         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
25374         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
25375
25376         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25377
25378         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
25379         * sysdeps/sparc/fpu/libm-test-ulps: to here.
25380         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
25381
25382         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
25383         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25384         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25385         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
25386         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
25387         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
25388         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
25389         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25390         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25391         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
25392         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
25393         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25394         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25395         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25396         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25397         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25398         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
25399         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
25400         * sysdeps/sparc/elf/configure: Regenerated.
25401
25402 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
25403
25404         * configure.in (AS, LD): Require binutils 2.20 or later.
25405         * configure: Regenerated.
25406         * manual/install.texi (Tools for Compilation): Give binutils 2.20
25407         as required minimum version.
25408         * INSTALL: Regenerated.
25409
25410         [BZ #2541]
25411         [BZ #4108]
25412         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
25413         before squaring exponent.
25414         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
25415         bottom long double and 27 bits of top long double before squaring
25416         exponent.
25417         * math/libm-test.inc (erfc_test): Add more tests.
25418         * sysdeps/i386/fpu/libm-test-ulps: Update.
25419         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25421
25422 2012-03-01  Kai Tietz  <ktietz@redhat.com>
25423
25424         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
25425         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
25426         containing bit-fields.
25427         * soft-fp/extended.h (_FP_UNION_E): Likewise.
25428         * soft-fp/single.h (_FP_UNION_S): Likewise.
25429         * soft-fp/double.h (_FP_UNION_D): Likewise.
25430
25431 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25432
25433         [BZ #13786]
25434         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
25435         not include ../strcmp.S.
25436         [USE_AS_STRNCASECMP_L]: Likewise.
25437         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
25438         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
25439         * sysdeps/i386/i686/multiarch/strncase_l-c.c
25440         (__strncasecmp_l_ia32): Define as alias to
25441         __strncasecmp_l_nonascii.
25442
25443         [BZ #5794]
25444         * math/libm-test.inc (expm1_test): Add test for bug 5794.
25445         * sysdeps/i386/fpu/libm-test-ulps: Update.
25446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25447
25448         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
25449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25450
25451 2012-02-29  Jeff Law  <law@redhat.com>
25452
25453         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
25454         out of bounds read.
25455
25456 2012-02-29  Marek Polacek  <polacek@redhat.com>
25457
25458         [BZ #13706]
25459         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
25460         * elf/Makefile: Add rules to run tst-unused-dep.out.
25461
25462 2012-02-28  David S. Miller  <davem@davemloft.net>
25463
25464         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
25465         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
25466         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
25467         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
25468         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
25469         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
25470
25471 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25472
25473         * math/libm-test.inc (llround_test): Move one test from
25474         lround_test.  Use TEST_f_L in moved test.
25475         (lround_test): Move misplaced test to llround_test.  Add testcase
25476         from bug 2561.
25477
25478 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
25479
25480         * sysdeps/x86_64/fpu/e_expf.S: New file.
25481         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
25482
25483 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
25484
25485         [BZ #13637]
25486         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
25487         of remain_len that may cause incomplete multi-byte character and
25488         false match.
25489         * posix/bug-regex33.c: New file.
25490         * posix/Makefile (tests): Add bug-regex33.
25491
25492 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
25493
25494         * manual/macros.texi: New file.
25495         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
25496         * manual/libc.texinfo: Include macros.texi.
25497         * manual/creatute.texi: Likewise.
25498         * manual/install.texi: Likewise.
25499         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
25500         @glibcadj{} in references to the GNU C Library.
25501         * manual/charset.texi: Likewise.
25502         * manual/conf.texi: Likewise.
25503         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
25504         when not using those macros.
25505         * manual/creature.texi: Likewise.
25506         * manual/crypt.texi: Likewise.
25507         * manual/errno.texi: Likewise.
25508         * manual/filesys.texi: Likewise.
25509         * manual/header.texi: Likewise.
25510         * manual/install.texi: Likewise.
25511         * manual/intro.texi: Likewise.
25512         * manual/io.texi: Likewise.
25513         * manual/job.texi: Likewise.
25514         * manual/lang.texi: Likewise.
25515         * manual/libc.texiinfo: Likewise.
25516         * manual/llio.texi: Likewise.
25517         * manual/locale.texi: Likewise.
25518         * manual/maint.texi: Likewise.
25519         * manual/math.texi: Likewise.
25520         * manual/memory.texi: Likewise.
25521         * manual/message.texi: Likewise.
25522         * manual/nss.texi: Likewise.
25523         * manual/pattern.texi: Likewise.
25524         * manual/process.texi: Likewise.
25525         * manual/resource.texi: Likewise.
25526         * manual/search.texi: Likewise.
25527         * manual/setjmp.texi: Likewise.
25528         * manual/signal.texi: Likewise.
25529         * manual/socket.texi: Likewise.
25530         * manual/startup.texi: Likewise.
25531         * manual/stdio.texi: Likewise.
25532         * manual/string.texi: Likewise.
25533         * manual/sysinfo.texi: Likewise.
25534         * manual/syslog.texi: Likewise.
25535         * manual/terminal.texi: Likewise.
25536         * manual/time.texi: Likewise.
25537         * manual/users.texi: Likewise.
25538         * INSTALL: Regenerated.
25539         * NOTES: Regenerated.
25540         * sysdeps/gnu/errlist.c: Regenerated.
25541
25542 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
25543
25544         * include/dirent.h: Include <dirstream.h> before
25545         <dirent/dirent.h>.
25546
25547 2012-02-28  David S. Miller  <davem@davemloft.net>
25548
25549         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
25550         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
25551         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
25552         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
25553
25554 2012-02-27  David S. Miller  <davem@davemloft.net>
25555
25556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
25557         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
25558         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
25559         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
25560
25561         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
25562         frame pointer instead of stack pointer relative arg slot.
25563         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25564         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25565         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25566
25567 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
25568
25569         [BZ #3992]
25570         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
25571
25572 2012-02-27  David S. Miller  <davem@davemloft.net>
25573
25574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
25575         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
25577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
25578         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25579         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25580         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
25581         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
25582
25583 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25584
25585         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
25586         later.  Allow versions 5-9.
25587         * configure: Regenerated.
25588         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
25589         required minimum version and 4.6 as recommended version.  Do not
25590         mention bugs in GCC 2.7 and 2.8.
25591         * INSTALL: Regenerated.
25592
25593 2012-02-27  David S. Miller  <davem@davemloft.net>
25594
25595         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
25596         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
25597         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
25598         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
25599         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
25600         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
25601         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
25602         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
25603
25604         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
25605         manipulate bits before adding and subtracting TWO112[sx].
25606         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25607
25608 2012-02-27  Roland McGrath  <roland@hack.frob.com>
25609
25610         [BZ #13775]
25611         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
25612         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
25613         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
25614         being in POSIX, because they are in 1003.1-2008.
25615
25616         * rt/tst-aio.c: Include <fcntl.h>.
25617         * rt/tst-aio7.c: Likewise.
25618         * rt/tst-aio64.c: Likewise.
25619
25620         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
25621
25622 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25623
25624         * manual/install.texi (--with-headers): Describe headers as
25625         interface headers, not private headers.
25626         (Specific advice for GNU/Linux systems): Describe use of headers
25627         from "make headers_install", not private headers from older
25628         kernels.
25629         * INSTALL: Regenerated.
25630         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
25631         Change to 2.6.19.
25632         * sysdeps/unix/sysv/linux/configure: Regenerated.
25633
25634         * manual/llio.texi (fclean): Remove documentation.
25635
25636         * manual/Makefile (libc-texi-generated): New variable.  Include
25637         version.texi.
25638         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
25639         $(libc-texi-generated), not duplicated list of files.
25640         (version.texi, stamp-version): New rules.
25641         (realclean): Remove $(libc-texi-generated), not individual files
25642         from that list.  Do not remove dir-add.texinfo.
25643         * manual/libc.texinfo: Comment out uses of edition numbers and
25644         references to printed manual.  Remove last-updated dates.
25645         (EDITION): Comment out.
25646         (ISBN): Likewise.
25647         (VERSION, UPDATED): Remove.
25648         (version.texi): Include.
25649
25650 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
25651
25652         * sysdeps/posix/spawni.c: Include <signal.h>.
25653         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
25654         * sysdeps/pthread/aio_fsync.c: Likewise.
25655
25656 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
25657
25658         * conform/Makefile (tests): Run only when not cross-compiling and
25659         when fast-check is not defined.
25660
25661         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
25662         * conform/data/limits.h-data: Fixes for POSIX2008.
25663         * conform/run-conformtest.sh: Run all tests.
25664         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
25665         headers.
25666         * include/bits/dlfcn.h: Likewise.
25667         * include/langinfo.h: Likewise.
25668         * include/monetary.h: Likewise.
25669         * include/sys/poll.h: Likewise.
25670
25671         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
25672         for __USE_GNU.
25673         * posix/spawn.h: Define __need_sigset_t.
25674         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
25675         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
25676         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
25677         to get sigevent_t only.
25678         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
25679         only for __USE_GNU.
25680         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25681         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
25682         process_vm_writev only for __USE_GNU.
25683         * termios/termios.h: Declare tcgetsid also for POSIX2008.
25684
25685         * conform/Makefile: For now ignore errors from run-conformtest.
25686         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
25687         POSIX to avoid namespace pollution.  Don't prepend headers.
25688         * conform/data/aio.h-data: Fixes for POSIX testing.
25689         * conform/data/fcntl.h-data: Likewise.
25690         * conform/data/glob.h-data: Likewise.
25691         * conform/data/grp.h-data: Likewise.
25692         * conform/data/pthread.h-data: Likewise.
25693         * conform/data/pwd.h-data: Likewise.
25694         * conform/data/signal.h-data: Likewise.
25695         * conform/data/spawn.h-data: Likewise.
25696         * conform/data/stdio.h-data: Likewise.
25697         * conform/data/stdlib.h-data: Likewise.
25698         * conform/data/stropts.h-data: Likewise.
25699         * conform/data/sys/mman.h-data: Likewise.
25700         * conform/data/sys/stat.h-data: Likewise.
25701         * conform/data/sys/types.h-data: Likewise.
25702         * conform/data/sys/wait.h-data: Likewise.
25703         * conform/data/time.h-data: Likewise.
25704         * conform/data/unistd.h-data: Likewise.
25705         * conform/data/utime.h-data: Likewise.
25706
25707         * io/sys/stat.h: fchmod was always in POSIX.
25708         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
25709         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
25710         * rt/aio.h: Define __need_timespec before including <time.h>.
25711         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
25712         struct.  Add forward declaration of pthread_attr_t and use it in
25713         sigevent.
25714         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25715         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25716         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
25717         always remove CLK_TCK definition.
25718
25719 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
25720
25721         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
25722
25723 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
25724
25725         * conform/run-conformtest.sh: New file.
25726         * conform/Makefile: Run run-conformtest for tests.
25727         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
25728         support.
25729
25730         * conform/data/uchar.h-data: New file.
25731         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
25732         * conform/data/arpa/inet.h-data: Likewise.
25733         * conform/data/assert.h-data: Likewise.
25734         * conform/data/complex.h-data: Likewise.
25735         * conform/data/cpio.h-data: Likewise.
25736         * conform/data/ctype.h-data: Likewise.
25737         * conform/data/dirent.h-data: Likewise.
25738         * conform/data/dlfcn.h-data: Likewise.
25739         * conform/data/errno.h-data: Likewise.
25740         * conform/data/fcntl.h-data: Likewise.
25741         * conform/data/float.h-data: Likewise.
25742         * conform/data/fmtmsg.h-data: Likewise.
25743         * conform/data/fnmatch.h-data: Likewise.
25744         * conform/data/ftw.h-data: Likewise.
25745         * conform/data/glob.h-data: Likewise.
25746         * conform/data/grp.h-data: Likewise.
25747         * conform/data/iconv.h-data: Likewise.
25748         * conform/data/inttypes.h-data: Likewise.
25749         * conform/data/langinfo.h-data: Likewise.
25750         * conform/data/libgen.h-data: Likewise.
25751         * conform/data/limits.h-data: Likewise.
25752         * conform/data/locale.h-data: Likewise.
25753         * conform/data/math.h-data: Likewise.
25754         * conform/data/monetary.h-data: Likewise.
25755         * conform/data/mqueue.h-data: Likewise.
25756         * conform/data/ndbm.h-data: Likewise.
25757         * conform/data/net/if.h-data: Likewise.
25758         * conform/data/netdb.h-data: Likewise.
25759         * conform/data/netinet/in.h-data: Likewise.
25760         * conform/data/nl_types.h-data: Likewise.
25761         * conform/data/poll.h-data: Likewise.
25762         * conform/data/pthread.h-data: Likewise.
25763         * conform/data/pwd.h-data: Likewise.
25764         * conform/data/regex.h-data: Likewise.
25765         * conform/data/sched.h-data: Likewise.
25766         * conform/data/search.h-data: Likewise.
25767         * conform/data/semaphore.h-data: Likewise.
25768         * conform/data/setjmp.h-data: Likewise.
25769         * conform/data/signal.h-data: Likewise.
25770         * conform/data/spawn.h-data: Likewise.
25771         * conform/data/stdarg.h-data: Likewise.
25772         * conform/data/stdio.h-data: Likewise.
25773         * conform/data/stdlib.h-data: Likewise.
25774         * conform/data/string.h-data: Likewise.
25775         * conform/data/strings.h-data: Likewise.
25776         * conform/data/stropts.h-data: Likewise.
25777         * conform/data/sys/ipc.h-data: Likewise.
25778         * conform/data/sys/mman.h-data: Likewise.
25779         * conform/data/sys/msg.h-data: Likewise.
25780         * conform/data/sys/resource.h-data: Likewise.
25781         * conform/data/sys/select.h-data: Likewise.
25782         * conform/data/sys/sem.h-data: Likewise.
25783         * conform/data/sys/shm.h-data: Likewise.
25784         * conform/data/sys/socket.h-data: Likewise.
25785         * conform/data/sys/stat.h-data: Likewise.
25786         * conform/data/sys/statvfs.h-data: Likewise.
25787         * conform/data/sys/time.h-data: Likewise.
25788         * conform/data/sys/timeb.h-data: Likewise.
25789         * conform/data/sys/times.h-data: Likewise.
25790         * conform/data/sys/types.h-data: Likewise.
25791         * conform/data/sys/uio.h-data: Likewise.
25792         * conform/data/sys/un.h-data: Likewise.
25793         * conform/data/sys/utsname.h-data: Likewise.
25794         * conform/data/sys/wait.h-data: Likewise.
25795         * conform/data/syslog.h-data: Likewise.
25796         * conform/data/tar.h-data: Likewise.
25797         * conform/data/termios.h-data: Likewise.
25798         * conform/data/utime.h-data: Likewise.
25799         * conform/data/utmpx.h-data: Likewise.
25800         * conform/data/varargs.h-data: Likewise.
25801         * conform/data/wchar.h-data: Likewise.
25802         * conform/data/wctype.h-data: Likewise.
25803         * conform/data/wordexp.h-data: Likewise.
25804
25805         * include/stropts.h: New file.
25806         * include/uchar.h: New file.
25807         * include/aio.h: Changes to allow conformtest.pl to use the headers.
25808         * include/assert.h: Likewise.
25809         * include/ctype.h: Likewise.
25810         * include/dirent.h: Likewise.
25811         * include/dlfcn.h: Likewise.
25812         * include/fcntl.h: Likewise.
25813         * include/fnmatch.h: Likewise.
25814         * include/glob.h: Likewise.
25815         * include/grp.h: Likewise.
25816         * include/libio.h: Likewise.
25817         * include/locale.h: Likewise.
25818         * include/math.h: Likewise.
25819         * include/net/if.h: Likewise.
25820         * include/netdb.h: Likewise.
25821         * include/netinet/in.h: Likewise.
25822         * include/pthread.h: Likewise.
25823         * include/pwd.h: Likewise.
25824         * include/regex.h: Likewise.
25825         * include/sched.h: Likewise.
25826         * include/search.h: Likewise.
25827         * include/setjmp.h: Likewise.
25828         * include/signal.h: Likewise.
25829         * include/stdio.h: Likewise.
25830         * include/stdlib.h: Likewise.
25831         * include/string.h: Likewise.
25832         * include/sys/cdefs.h: Likewise.
25833         * include/sys/mman.h: Likewise.
25834         * include/sys/msg.h: Likewise.
25835         * include/sys/resource.h: Likewise.
25836         * include/sys/select.h: Likewise.
25837         * include/sys/socket.h: Likewise.
25838         * include/sys/stat.h: Likewise.
25839         * include/sys/statvfs.h: Likewise.
25840         * include/sys/time.h: Likewise.
25841         * include/sys/times.h: Likewise.
25842         * include/sys/uio.h: Likewise.
25843         * include/sys/utsname.h: Likewise.
25844         * include/sys/wait.h: Likewise.
25845         * include/termios.h: Likewise.
25846         * include/time.h: Likewise.
25847         * include/ulimit.h: Likewise.
25848         * include/unistd.h: Likewise.
25849         * include/utime.h: Likewise.
25850         * include/wchar.h: Likewise.
25851         * include/wctype.h: Likewise.
25852         * include/wordexp.h: Likewise.
25853
25854         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
25855
25856         * time/time.h: TIME_UTC must be a macro.
25857         Make timespec_get available for ISO C11 only as well.
25858
25859 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
25860
25861         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
25862         Reported by Peng Haitao <penght@cn.fujitsu.com>.
25863
25864 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25865
25866         * configure.in: Use -o not -a in test for unsupported multi-arch.
25867
25868 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25869
25870         * manual/texinfo.tex: Update to version 2012-01-19.16.
25871
25872 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25873
25874         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
25875
25876 2012-02-24  Roland McGrath  <roland@hack.frob.com>
25877
25878         [BZ #13738]
25879         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
25880         * manual/fdl-1.3.texi: New file.
25881         * manual/fdl-1.1.texi: File removed.
25882
25883         [BZ #13738]
25884         * manual/libc.texinfo (FDL_VERSION): New @set.
25885         Use it for mention of FDL in cover text.
25886         (Documentation License): Use it in @include file name.
25887
25888 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25889             Roland McGrath  <roland@hack.frob.com>
25890
25891         [BZ #5461]
25892         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
25893         not LONG_LONG_MAX and LONG_LONG_MIN.
25894         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
25895         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
25896         name.
25897         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
25898
25899 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25900
25901         [BZ #2547]
25902         [BZ #11365]
25903         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
25904         manipulate bits before adding and subtracting TWO23[sx].
25905         * math/libm-test.inc (nearbyint_test): Add more tests.
25906
25907 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25908
25909         [BZ #2548]
25910         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
25911         bits before adding and subtracting TWO23[sx].
25912         * math/libm-test.inc (rint_test): Add more tests.
25913         (rint_test_tonearest): Likewise.
25914         (rint_test_towardzero): Likewise.
25915         (rint_test_downward): Likewise.
25916         (rint_test_upward: Likewise.
25917
25918 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25919
25920         [BZ #10110]
25921         * include/stdc-predef.h: New file.  Extracted from features.h.
25922         * include/features.h: Include stdc-predef.h.
25923         * Makefile (headers): Add stdc-predef.h.
25924         * CONFORMANCE (Compiler limitations): Update.
25925
25926 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25927
25928         * manual/libc.texinfo (VERSION, UPDATED): Revert.
25929
25930 2012-02-21  David S. Miller  <davem@davemloft.net>
25931
25932         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
25933         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
25934
25935 2012-02-20  David S. Miller  <davem@davemloft.net>
25936
25937         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
25938         using a normal save/restore sequence, rather than allocating a
25939         dummy stack frame just to store a frame pointer and restore.
25940         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25941
25942 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25943
25944         * manual/install.texi: Fix stray word in line-wrapped comment.
25945
25946 2012-02-20  David S. Miller  <davem@davemloft.net>
25947
25948         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
25949         both binutils and gcc support GOTDATA.
25950
25951         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
25952         "rd %pc" in the PIC register setup sequences.
25953
25954         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
25955         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25956         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25957         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25958         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25959         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
25960         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25961         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25962         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
25963         (SYSCALL_ERROR_HANDLER): Likewise.
25964         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25965         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25966         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
25967         (SYSCALL_ERROR_HANDLER): Likewise.
25968
25969         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
25970         (HAVE_GCC_GOTDATA): New.
25971         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
25972         relocation support in both binutils and gcc.
25973         * sysdeps/sparc/elf/configure: Regenerate.
25974
25975         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
25976         * sysdeps/sparc/sparc32/elf/configure: Delete.
25977         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
25978         * sysdeps/sparc/sparc64/elf/configure: Delete.
25979         * sysdeps/sparc/elf/configure.in: New file.
25980         * sysdeps/sparc/elf/configure: Generate.
25981
25982         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
25983         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
25984         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
25985         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
25986         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
25987
25988 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25989
25990         * manual/install.texi: Do not mention specific glibc version
25991         numbers.
25992         * manual/libc.texinfo (VERSION, UPDATED): Update.
25993         (@copying): Use @copyright{} and range of years.
25994
25995 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25996
25997         [BZ #13695]
25998         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
25999         [crti.S not in sysdirs] (generated): Do not append.
26000         [crti.S not in sysdirs] (omit-deps): Likewise.
26001         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
26002         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
26003         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
26004         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
26005         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
26006         Likewise.
26007         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
26008         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
26009         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
26010         * csu/defs.awk: Remove file.
26011         * sysdeps/generic/initfini.c: Likewise.
26012         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
26013         variable.
26014         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
26015         Likewise.
26016
26017 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26018
26019         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
26020         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
26021         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
26022         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
26023         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
26024         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
26025         <bits/epoll.h>.
26026         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
26027         (__EPOLL_PACKED): Define to empty if not defined by
26028         <bits/epoll.h>.
26029         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
26030         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26031         bits/epoll.h.
26032
26033 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26034
26035         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
26036         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
26037         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
26038         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
26039         <bits/timerfd.h>.
26040         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
26041         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26042         bits/timerfd.h.
26043
26044 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26045
26046         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
26047         in C locale.
26048         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
26049         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
26050         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
26051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26052
26053 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
26054
26055         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26056         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
26057
26058 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
26059
26060         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
26061         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
26062         defined.
26063         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
26064         Likewise.
26065         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
26066         entry for 2.16.
26067
26068 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
26069
26070         * math/w_acos.c: Use non-signaling floating-point comparisons.
26071         * math/w_acosf.c: Likewise.
26072         * math/w_acosh.c: Likewise.
26073         * math/w_acoshf.c: Likewise.
26074         * math/w_acoshl.c: Likewise.
26075         * math/w_acosl.c: Likewise.
26076         * math/w_asin.c: Likewise.
26077         * math/w_asinf.c: Likewise.
26078         * math/w_asinl.c: Likewise.
26079         * math/w_atanh.c: Likewise.
26080         * math/w_atanhf.c: Likewise.
26081         * math/w_atanhl.c: Likewise.
26082         * math/w_exp2.c: Likewise.
26083         * math/w_exp2f.c: Likewise.
26084         * math/w_exp2l.c: Likewise.
26085         * math/w_j0.c: Likewise.
26086         * math/w_j0f.c: Likewise.
26087         * math/w_j0l.c: Likewise.
26088         * math/w_j1.c: Likewise.
26089         * math/w_j1f.c: Likewise.
26090         * math/w_j1l.c: Likewise.
26091         * math/w_jn.c: Likewise.
26092         * math/w_jnf.c: Likewise.
26093         * math/w_log.c: Likewise.
26094         * math/w_log10.c: Likewise.
26095         * math/w_log10f.c: Likewise.
26096         * math/w_log10l.c: Likewise.
26097         * math/w_log2.c: Likewise.
26098         * math/w_log2f.c: Likewise.
26099         * math/w_log2l.c: Likewise.
26100         * math/w_logf.c: Likewise.
26101         * math/w_logl.c: Likewise.
26102         * math/w_sqrt.c: Likewise.
26103         * math/w_sqrtf.c: Likewise.
26104         * math/w_sqrtl.c: Likewise.
26105         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
26106         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
26107         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
26108         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
26109         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
26110
26111 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26112
26113         [BZ #9739]
26114         * manual/string.texi (strnlen): Use correct parameter name in
26115         equivalent expression.
26116
26117 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26118
26119         [BZ #11174]
26120         * manual/users.texi (seteuid): Consistently use neweuid for
26121         argument name.
26122
26123 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26124
26125         [BZ #13704]
26126         * manual/nss.texi (Services in the NSS configuration): Correct
26127         list of services in example configuration file.
26128
26129 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
26130
26131         [BZ #11322]
26132         * manual/arith.texi: Remove statements about negative zero
26133         behaving identically to zero.
26134
26135 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26136
26137         [BZ #5993]
26138         * manual/install.texi: Do not document upgrading from libc5.
26139
26140 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26141
26142         [BZ #4596]
26143         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
26144
26145 2012-02-18  David S. Miller  <davem@davemloft.net>
26146
26147         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
26148         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
26149         %o7 across the call.
26150         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
26151         instead.
26152         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
26153         SETUP_PIC_REG_LEAF.
26154         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26155         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
26156         * sysdeps/sparc/crtn.S: Likewise.
26157
26158 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
26159
26160         * aout/Makefile: Remove.
26161
26162 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
26163
26164         [BZ #13058]
26165         * manual/examples/argp-ex1.c (main): Format definition in GNU
26166         style.
26167         * manual/examples/argp-ex2.c (main): Likewise.
26168         * manual/examples/argp-ex3.c (main): Likewise.
26169         * manual/examples/argp-ex4.c (main): Likewise.
26170         * manual/examples/longopt.c (main): Use new-style prototype
26171         definition.
26172         * manual/examples/strncat.c (main): Specify return type and use
26173         (void) for arguments.
26174         * manual/examples/subopt.c (main): Use char **argv argument.
26175
26176 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26177
26178         [BZ #5077]
26179         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
26180         rounding modes.
26181
26182 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
26183
26184         [BZ #6907]
26185         * manual/string.texi (strchr): Change when strchrnul is
26186         recommended.
26187
26188 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
26189
26190         [BZ #174]
26191         * manual/locale.texi (setlocale): Document LOCPATH.
26192
26193 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26194
26195         [BZ #10210]
26196         * manual/process.texi (execle): Move @dots{} before last argument.
26197
26198 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
26199
26200         [BZ #12047]
26201         * manual/charset.texi (Generic Charset Conversion): Fix typo
26202         (LC_TYPE -> LC_CTYPE).
26203
26204 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
26205
26206         [BZ #5805]
26207         * manual/arith.texi (scalbn): Use @var{} on parameter names.
26208         (scalbnf): Likewise.
26209         (scalbnl): Likewise.
26210         (scalbln): Likewise.
26211         (scalblnf): Likewise.
26212         (scalblnl): Likewise.
26213         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
26214         (vwarnx): Likewise.
26215         (verr): Likewise.
26216         (verrx): Likewise.
26217         * manual/filesys.texi (telldir): Use braces around return type.
26218         * manual/llio.texi (mmap): Add space after comma.
26219         (mmap64): Likewise.
26220         * manual/math.texi (jn): Use @var{} on parameter names.
26221         (jnf): Likewise.
26222         (jnl): Likewise.
26223         (yn): Likewise.
26224         (ynf): Likewise.
26225         (ynl): Likewise.
26226         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
26227         line.
26228         * manual/resource.texi (ulimit): Use @dots{} instead of literal
26229         "...".
26230         (sched_get_priority_min): Remove semicolon on @deftypefun line.
26231         (sched_get_priority_max): Likewise.
26232         * manual/signal.texi (sigvec): Add space after comma.
26233         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
26234         names.
26235         (if_indextoname): Likewise.
26236         (if_freenameindex): Likewise.
26237         (sendto): Use ',' instead of '.' in prototype.
26238         * manual/startup.texi (syscall): Use @dots{} instead of literal
26239         "...".
26240         * manual/stdio.texi (__fpending): Separate initial words of
26241         paragraph from @deftypefun line.
26242         * manual/syslog.texi (syslog): Use @dots{} instead of literal
26243         "...".
26244         (vsyslog): Use @var{} on parameter names.
26245         * manual/terminal.texi (stty): Use @var{} on parameter names.
26246         * manual/users.texi (getutmp): Use @var{} on parameter names.
26247         (getutmpx): Likewise.
26248
26249 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26250
26251         [BZ #6884]
26252         * manual/stdio.texi (fopen): Fix typos in description of
26253         ",ccs=STRING".
26254
26255 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
26256
26257         [BZ #4026]
26258         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
26259         get clock_id definition.
26260
26261 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
26262
26263         [BZ #4822]
26264         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
26265         (madvise): Cast every argument to void on its own.
26266
26267 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26268
26269         [BZ #9902]
26270         * manual/startup.texi (Exit Status): Fix typo.
26271
26272 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26273
26274         [BZ #10140]
26275         * manual/examples/argp-ex1.c: Include <stdlib.h>.
26276         * manual/examples/argp-ex2.c: Likewise.
26277         * manual/examples/argp-ex3.c: Likewise.
26278
26279 2012-02-16  Richard Henderson  <rth@redhat.com>
26280
26281         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
26282         * sysdeps/s390/s390-32/initfini.c: Remove.
26283         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
26284         * sysdeps/s390/s390-64/initfini.c: Remove.
26285
26286 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
26287
26288         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
26289         compiler output for sysdeps/generic/initfini.c.
26290         * sysdeps/sh/elf/initfini.c: Remove file.
26291
26292 2012-02-16  David S. Miller  <davem@davemloft.net>
26293
26294         [BZ #11494]
26295         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
26296
26297         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
26298         * sysdeps/sparc/crti.S: New file.
26299         * sysdeps/sparc/crtn.S: New file.
26300         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
26301         * sysdeps/sparc/sparc64/Makefile: Likewise.
26302
26303 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
26304
26305         [BZ #3335]
26306         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
26307
26308 2012-02-15  Roland McGrath  <roland@hack.frob.com>
26309
26310         [BZ #4822]
26311         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
26312
26313         * mach/devstream.c (cookie_io_functions_t): Macro removed.
26314         (write, read, close): Likewise.
26315         Patch by Aurelien Jarno <aurelien@aurel32.net>.
26316
26317 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
26318
26319         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
26320         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
26321         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
26322         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
26323         <bits/signalfd.h>.
26324         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
26325         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26326         bits/signalfd.h.
26327
26328 2012-02-14  Marek Polacek  <polacek@redhat.com>
26329
26330         * sysdeps/x86_64/crti.S: New file.
26331         * sysdeps/x86_64/crtn.S: New file.
26332         * sysdeps/x86_64/elf/initfini.c: Remove file.
26333
26334 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26335
26336         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
26337         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
26338         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
26339         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
26340         <bits/inotify.h>.
26341         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
26342         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26343         bits/inotify.h.
26344
26345 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26346
26347         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
26348         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
26349         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
26350         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
26351         <bits/eventfd.h>.
26352         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
26353         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26354         bits/eventfd.h.
26355
26356 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
26357
26358         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
26359         __feraiseexcept instead of feraiseexcept.
26360
26361         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
26362         nanosleep invocations.
26363         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
26364         strings, and add error checking for a nanosleep invocations.
26365
26366 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26367
26368         Replace FSF snail mail address with URLs, as per GNU coding standards.
26369         Most of the snail mail addresses were wrong anyway, and omitting
26370         them makes the source code easier to maintain.  Almost all of the
26371         changes are to license notices and to locale LC_IDENTIFICATION
26372         addresses, except for this one:
26373         * manual/libc.texinfo: In "Published by", give the FSF's URL,
26374         not its snail mail address.
26375
26376 2012-02-09  Richard Henderson  <rth@twiddle.net>
26377
26378         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
26379         of kernel-features.h.
26380
26381         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
26382
26383 2012-02-08  Marek Polacek  <polacek@redhat.com>
26384
26385         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
26386         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
26387         * sysdeps/gnu/_G_config.h: Likewise.
26388         * sysdeps/generic/_G_config.h: Likewise.
26389
26390 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
26391
26392         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
26393         tests.
26394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26395
26396         * sysdeps/powerpc/powerpc32/crti.S: New file.
26397         * sysdeps/powerpc/powerpc32/crtn.S: New file.
26398         * sysdeps/powerpc/powerpc64/crti.S: New file.
26399         * sysdeps/powerpc/powerpc64/crtn.S: New file.
26400
26401         * Makeconfig (have-initfini): Don't set.
26402         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
26403         * configure.in (nopic_initfini): Don't substitute.
26404         * config.h.in (HAVE_INITFINI): Don't #undef.
26405         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
26406         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
26407
26408 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
26409
26410         Support crti.S and crtn.S provided directly by architectures.
26411         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
26412         [crti.S in sysdirs] (omit-deps): Likewise.
26413         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
26414         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
26415         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
26416         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
26417         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
26418         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
26419         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
26420         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
26421         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
26422         compiler output for sysdeps/generic/initfini.c.
26423         * sysdeps/i386/elf/Makefile: Remove file.
26424         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
26425
26426 2012-02-07  Marek Polacek  <polacek@redhat.com>
26427
26428         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
26429         * sysdeps/gnu/_G_config.h: Likewise.
26430         * sysdeps/mach/hurd/_G_config.h: Likewise.
26431
26432 2012-02-07  Marek Polacek  <polacek@redhat.com>
26433
26434         * math/Makefile (tests): Add tst-CMPLX2.
26435         * math/tst-CMPLX2.c: New file.
26436
26437 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
26438
26439         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26440
26441         * math/libm-test.inc (jn_test): Add missing L suffix.
26442
26443 2012-02-06  Marek Polacek  <polacek@redhat.com>
26444
26445         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
26446         * sysdeps/i386/fpu/e_powf.S: Likewise.
26447         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
26448         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26449         * sysdeps/i386/fpu/e_acosh.S: Likewise.
26450         * sysdeps/i386/fpu/e_pow.S: Likewise.
26451         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
26452         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
26453         * sysdeps/i386/fpu/s_expm1.S: Likewise.
26454         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
26455         * sysdeps/i386/fpu/e_log2.S: Likewise.
26456         * sysdeps/i386/fpu/e_log2l.S: Likewise.
26457         * sysdeps/i386/fpu/e_scalb.S: Likewise.
26458         * sysdeps/i386/fpu/e_powl.S: Likewise.
26459         * sysdeps/i386/fpu/s_log1p.S: Likewise.
26460         * sysdeps/i386/fpu/e_log10f.S: Likewise.
26461         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
26462         * sysdeps/i386/fpu/e_logl.S: Likewise.
26463         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
26464         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
26465         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
26466         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
26467         * sysdeps/i386/fpu/e_log2f.S: Likewise.
26468         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
26469         * sysdeps/i386/fpu/e_log.S: Likewise.
26470         * sysdeps/i386/fpu/s_cexp.S: Likewise.
26471         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
26472         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
26473         * sysdeps/i386/fpu/e_logf.S: Likewise.
26474         * sysdeps/i386/fpu/e_log10l.S: Likewise.
26475         * sysdeps/i386/fpu/e_atanh.S: Likewise.
26476         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
26477         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
26478         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26479         * sysdeps/i386/fpu/e_log10.S: Likewise.
26480         * sysdeps/i386/fpu/s_frexp.S: Likewise.
26481         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
26482         * sysdeps/i386/fpu/s_asinh.S: Likewise.
26483         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
26484         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
26485         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
26486         * sysdeps/i386/asm-syntax.h: Likewise.
26487         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
26488         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26489         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
26490         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
26491         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
26492         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
26493         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
26494         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
26495         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
26496         * sysdeps/powerpc/sysdep.h: Likewise.
26497         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
26498         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
26499
26500 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26501
26502         [BZ #411]
26503         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
26504
26505 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26506
26507         * sysdeps/i386/sysdep.h: Include <features.h>.
26508         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
26509         version.
26510
26511 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
26512
26513         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
26514         Define.
26515         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
26516         LOAD_PIC_REG_STR.
26517
26518 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26519
26520         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
26521         (SETUP_PIC_REG): Use GET_PC_THUNK.
26522         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
26523         macro.
26524
26525 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26526
26527         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
26528         for non-PIC compilation.
26529         (SETUP_PIC_REG): Add .p2align directive.
26530         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
26531         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
26532         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26533         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26534         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
26535         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26536         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
26537         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26538         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26539         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26540         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26541         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26542         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26543         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26544         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26545         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
26546         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
26547         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26548         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26549         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26550         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26551         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
26552         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26553         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26554         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
26555         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
26556         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26557         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
26558         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26559         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26560         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26561         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26562         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26563         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26564         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26565         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26566         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26567         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26568         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26569         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26570         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26571
26572 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26573
26574         * math/tst-CMPLX.c: Include <stdio.h>.
26575
26576 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
26577
26578         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
26579         float.
26580         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26581         * sysdeps/sparc/bits/mathdef.h: Likewise.
26582
26583 2012-01-31  Marek Polacek  <polacek@redhat.com>
26584
26585         * libio/libio.h: Don't define _PARAMS.
26586         * locale/programs/config.h: Don't define PARAMS.
26587         * stdlib/strtol_l.c: Likewise.
26588         (__strtol_l): Remove PARAMS from the prototype.
26589
26590 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
26591
26592         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
26593         names.  Just use the correct names.  Remove unnecessary wrapper
26594         functions.
26595         * malloc/arena.c: Likewise.
26596         * malloc/hooks.c: Likewise.
26597
26598         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
26599         ARENA_TEST says not to.  Simplify test for creation of a new arena.
26600         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
26601
26602 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
26603
26604         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
26605         into tail calls.
26606         (update_get_addr): New function.
26607         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
26608         GET_ADDR_MODULE parameter.
26609
26610 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
26611
26612         * crypt/cert.c: Remove __STDC__ conditionals.
26613         * crypt/crypt-entry.c: Likewise.
26614         * crypt/crypt_util.c: Likewise.
26615         * libio/filedoalloc.c: Likewise.
26616         * libio/fileops.c: Likewise.
26617         * libio/genops.c: Likewise.
26618         * libio/iofclose.c: Likewise.
26619         * libio/iofdopen.c: Likewise.
26620         * libio/iofopen.c: Likewise.
26621         * libio/iofopen64.c: Likewise.
26622         * libio/iogetdelim.c: Likewise.
26623         * libio/iopopen.c: Likewise.
26624         * libio/obprintf.c: Likewise.
26625         * libio/oldfileops.c: Likewise.
26626         * libio/oldiofclose.c: Likewise.
26627         * libio/oldiofdopen.c: Likewise.
26628         * libio/oldiofopen.c: Likewise.
26629         * libio/oldiopopen.c: Likewise.
26630         * libio/wfiledoalloc.c: Likewise.
26631         * libio/wgenops.c: Likewise.
26632         * locale/programs/xmalloc.c: Likewise.
26633         * misc/syslog.c: Likewise.
26634         * stdio-common/xbug.c: Likewise.
26635         * string/memchr.c: Likewise.
26636         * string/memcmp.c: Likewise.
26637         * string/memrchr.c: Likewise.
26638         * string/rawmemchr.c: Likewise.
26639         * sysdeps/posix/getcwd.c: Likewise.
26640         * time/strftime_l.c: Likewise.
26641
26642 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
26643
26644         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
26645         * config.make.in (config-cflags-sse2avx): Define.
26646         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
26647         Fix typo.
26648
26649 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
26650
26651         * scripts/config.guess: Update from upstream config git repository.
26652         * scripts/config.sub: Likewise.
26653
26654 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
26655
26656         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
26657         (EM_NUM): Update.
26658         (R_TILEPRO_*, R_TILEGX_*): New macros.
26659
26660         * scripts/firstversions.awk: Fix bug in version range handling.
26661
26662         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
26663
26664         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
26665
26666         * include/sys/epoll.h: New file.
26667         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
26668         libc_hidden_def.
26669
26670 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
26671
26672         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
26673         Avoid unnecessary __WORDSIZE == 64 test.
26674         (fmaxf): Use VEX format if possible.
26675         (fmax): Likewise.
26676         (fminf): Likewise.
26677         (fmin): Likewise.
26678
26679         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
26680         * math/math_private.h: Remove libc_fegetround* and
26681         libc_fesetround*.
26682         * sysdeps/i386/configure.in: Check for -msse2avx.
26683         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
26684         also if SSE2AVX is defined.
26685         Remove libc_fegetround* and libc_fesetround*.
26686         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
26687         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
26688         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
26689         of HAS_YMM_USABLE.
26690         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26691         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26692         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26693         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26694         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26695
26696         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
26697
26698 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26699
26700         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
26701         size is not set.
26702         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
26703
26704 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
26705
26706         [BZ #13618]
26707         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
26708         relocation.
26709         * Makeconfig (libm): Define.
26710         * elf/Makefile: Add rules to build and run tst-relsort1.
26711         * elf/tst-relsort1.c: New file.
26712         * elf/tst-relsort1mod1.c: New file.
26713         * elf/tst-relsort1mod2.c: New file.
26714
26715 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
26716
26717         * math/s_ldexp.c: Remove __STDC__ conditionals.
26718         * math/s_ldexpf.c: Likewise.
26719         * math/s_ldexpl.c: Likewise.
26720         * math/s_nextafter.c: Likewise.
26721         * math/s_nexttowardf.c: Likewise.
26722         * math/s_significand.c: Likewise.
26723         * math/s_significandf.c: Likewise.
26724         * math/s_significandl.c: Likewise.
26725         * math/w_jnl.c: Likewise.
26726         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
26727         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
26728         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
26729         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
26730         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
26731         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
26732         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
26733         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
26734         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
26735         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
26736         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
26737         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
26738         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
26739         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
26740         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
26741         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
26742         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
26743         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
26744         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
26745         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
26746         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
26747         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
26748         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
26749         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
26750         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
26751         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
26752         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
26753         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
26754         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
26755         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
26756         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
26757         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
26758         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
26759         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
26760         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
26761         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
26762         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
26763         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
26764         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
26765         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
26766         * sysdeps/ieee754/k_standard.c: Likewise.
26767         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
26768         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
26769         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
26770         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
26771         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
26772         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
26773         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
26774         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
26775         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
26776         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
26777         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
26778         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
26779         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
26780         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
26781         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
26782         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
26783         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
26784         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
26785         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
26786         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
26787         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
26788         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
26789         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
26790         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
26791         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
26792         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
26793         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
26794         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
26795         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
26796         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
26797         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
26798         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
26799         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
26800         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
26801         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
26802         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
26803         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
26804         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
26805         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
26806         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
26807         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
26808         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
26809         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
26810         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
26811         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
26812         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
26813         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
26814         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
26815         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
26816         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
26817         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
26818         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
26819         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
26820         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
26821         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
26822         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
26823         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
26824         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
26825         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
26826         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
26827         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
26828         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
26829         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
26830         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
26831         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
26832         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
26833         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
26834         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
26835         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
26836         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
26837         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
26838         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
26839         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
26840         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
26841         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
26842         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
26843         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
26844         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
26845         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
26846         * sysdeps/ieee754/s_matherr.c: Likewise.
26847         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
26848         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
26849         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
26850         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
26851
26852 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
26853
26854         * crypt/md5.h: Remove __STDC__ conditionals.
26855         * libio/libioP.h: Likewise.
26856         * locale/programs/config.h: Likewise.
26857         * sysdeps/generic/sysdep.h: Likewise.
26858         * sysdeps/i386/asm-syntax.h: Likewise.
26859         * sysdeps/s390/asm-syntax.h: Likewise.
26860         * sysdeps/unix/sysdep.h: Likewise.
26861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26863
26864 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
26865
26866         * libio/libio.h: Remove __STDC__ conditionals.
26867         * malloc/obstack.h: Likewise.
26868         * math/complex.h: Likewise.
26869         * math/math.h: Likewise.
26870         * sysdeps/generic/_G_config.h: Likewise.
26871         * sysdeps/gnu/_G_config.h: Likewise.
26872         * sysdeps/mach/hurd/_G_config.h: Likewise.
26873         * sysdeps/powerpc/bits/mathdef.h: Likewise.
26874         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26875         * sysdeps/sparc/bits/mathdef.h: Likewise.
26876
26877 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
26878
26879         [BZ #13583]
26880         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
26881         Clean up HAS_* macros.
26882         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
26883         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
26884         possible.
26885         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
26886         HAS_AVX.
26887         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26888         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26889         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26890         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26891         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26892
26893 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
26894
26895         * elf/tst-unique3.cc (gets): Remove declaration.
26896         * elf/tst-unique3lib.cc (gets): Likewise.
26897         * elf/tst-unique3lib2.cc (gets): Likewise.
26898         * elf/tst-unique4.cc (gets): Likewise.
26899
26900 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
26901
26902         * include/stdio.h: Add C++ protection.  Add gets declarations and
26903         definitions.
26904         * debug/tst-chk1.c: Don't declare gets here.
26905         * stdio-common/tst-gets.c: Likewise.
26906
26907 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
26908
26909         * posix/glob: Remove directory.
26910
26911 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
26912
26913         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
26914
26915 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
26916
26917         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
26918         of the non-standard EPFNOSUPPORT.
26919
26920 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26921
26922         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
26923         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
26924         ANYWHERE set to 1 only on KERN_NO_SPACE error.
26925
26926 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
26927
26928         * wcsmbs/uchar.h: Test __STDC_VERSION__.
26929
26930 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
26931
26932         * nscd/aicache.c (addhstaiX): Do not cache negative results of
26933         transient errors.
26934         * nscd/grpcache.c (cache_addgr): Likewise.
26935         * nscd/hstcache.c (cache_addhst): Likewise.
26936         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26937         * nscd/pwdcache.c (cache_addpw): Likewise.
26938         * nscd/servicescache.c (cache_addserv): Likewise.
26939
26940 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
26941
26942         * malloc/malloc.c: Various cleanups.
26943         * malloc/hooks.c: Likewise.
26944
26945         * stdlib/Makefile (tests): Add bug-fmtmsg1.
26946         * stdlib/bug-fmtmsg1.c: New file.
26947
26948         * stdlib/fmtmsg.c (init): Add missing unlock.
26949         Patch by Peng Haitao <penght@cn.fujitsu.com>.
26950
26951 2012-01-12  Marek Polacek  <polacek@redhat.com>
26952
26953         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
26954         and _GNU_SOURCE.
26955
26956 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
26957
26958         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
26959         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
26960         macro to ensure uniqueness of label name.
26961         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
26962         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
26963
26964 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
26965
26966         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
26967
26968         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
26969         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
26970         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
26971         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
26972
26973 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
26974
26975         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
26976
26977         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
26978         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
26979         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
26980
26981         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
26982
26983         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
26984         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
26985         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
26986         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
26987
26988         * math/bits/math-finite.h: Add ldexp support.
26989
26990 2012-01-10  Marek Polacek  <polacek@redhat.com>
26991
26992         * locale/programs/localedef.h (show_archive_content): Add noreturn
26993         attribute.
26994
26995 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
26996
26997         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
26998
26999 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27000
27001         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
27002
27003         * io/Makefile (headers): Add bits/poll2.h.
27004
27005 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
27006
27007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
27008         typo #include statement.
27009
27010 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27011
27012         * include/sys/cdefs.h: Define __attribute_alloc_size.
27013         * catgets/gencat.c: Add alloc_size attribute and apply consistently
27014         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
27015         * elf/pldd.c: Likewise.
27016         * iconv/iconv_charmap.c: Likewise.
27017         * iconv/iconvconfig.c: Likewise.
27018         * iconv/strtab.c: Likewise.
27019         * locale/programs/locale.c: Likewise.
27020         * locale/programs/localedef.h: Likewise.
27021         * locale/programs/simple-hash.c: Likewise.
27022         * nscd/nscd.h: Likewise.
27023         * nss/makedb.c: Likewise.
27024         * sysdeps/generic/ldconfig.h: Likewise.
27025         * locale/programs/localedef.c: Remove xmalloc prototype.
27026         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
27027
27028 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27029
27030         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
27031         appropriate.
27032
27033 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27034
27035         * math/Makefile (tests): Add tst-CMPLX.
27036         * math/tst-CMPLX.c: New file.
27037
27038         * math/complex.h (CMPLXL): Fix typo.
27039
27040         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
27041         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
27042         GLIBC_2.16.
27043         * debug/tst-chk1.c: Add poll and ppoll tests.
27044         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
27045         * include/sys/poll.h: Add hidden proto for ppoll.
27046         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
27047         * sysdeps/mach/hurd/ppoll.c: Likewise.
27048         * io/ppoll.c: Likewise.
27049         * debug/poll_chk.c: New file.
27050         * debug/ppoll_chk.c: New file.
27051         * include/bits/poll2.h: New file.
27052         * io/bits/poll2.h: New file.
27053
27054         [BZ #1350]
27055         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
27056
27057         * configure.in: static is always set to yes.  Remove.
27058         * config.make.in: Don't set build-static.
27059         * Makeconfig: Remove use of build-static.
27060         * dlfcn/Makefile: Likewise.
27061         * elf/Makefile: Likewise.
27062         * math/Makefile: Likewise.
27063         * misc/Makefile: Likewise.
27064         * nptl/Makefile: Likewise.
27065         * sysdeps/mach/hurd/Makefile: Likewise.
27066
27067         * configure.in: PWD_P is not used anymore.
27068         * config.make.in: Remove PWD_P entry.
27069
27070         * configure.in: Remove last remnants of RANLIB.
27071         No need to check for signed size_t anymore.
27072         Don't set libc_commonpagesize and libc_relro_required here for Alpha
27073         and IA-64.
27074         Remove __builtin_expect test because we require at least gcc 3.4.
27075         * aclocal.m4: Likewise.
27076
27077         * wcsmbs/mbrtoc16.c: Implement using towc function.
27078         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
27079         * wcsmbs/wcsmbsload.c: Likewise.
27080         * iconv/gconv_simple.c: Likewise.
27081         * iconv/gconv_int.h: Likewise.
27082         * iconv/gconv_builtin.h: Likewise.
27083         * iconv/iconv_prog.c: Remove CHAR16 handling.
27084
27085         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
27086
27087         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
27088
27089         * configure.in: Remove --with-elf and --enable-bounded options.
27090         Dont set base_machine for ia64.  More non-ELF conditions removed.
27091         Remove testing and setting of leading underscore information.
27092         * config.make.in (build-bounded): Set to no.
27093         * config.h.in: Remove NO_UNDERSCORES entry.
27094         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
27095         them.
27096         * csu/start.c: Remove !NO_UNDERSCORE code.
27097         * locale/localeinfo.h: Likewise.
27098         * sysdeps/generic/machine-gmon.h: Likewise.
27099         * sysdeps/generic/sysdep.h: Likewise.
27100         * sysdeps/i386/sysdep.h: Likewise.
27101         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27102         * sysdeps/mach/sysdep.h: Likewise.
27103         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27104         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27105         * sysdeps/sh/sysdep.h: Likewise.
27106         * sysdeps/sparc/sparc32/alloca.S: Likewise.
27107         * sysdeps/unix/i386/sysdep.S: Likewise.
27108         * sysdeps/unix/sparc/start.c: Likewise.
27109         * sysdeps/unix/sparc/sysdep.S: Likewise.
27110         * sysdeps/unix/sparc/sysdep.h: Likewise.
27111         * sysdeps/unix/start.c: Likewise.
27112         * sysdeps/unix/x86_64/sysdep.S: Likewise.
27113         * sysdeps/x86_64/sysdep.h: Likewise.
27114
27115 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
27116
27117         [BZ #13553]
27118         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
27119         for non-gcc.
27120         * argp/argp-fmtstream.h: Use const instead __const.
27121         * argp/argp.h: Likewise.
27122         * assert/assert.h: Likewise.
27123         * bits/fenv.h: Likewise.
27124         * bits/sched.h: Likewise.
27125         * bits/sigset.h: Likewise.
27126         * bits/sigthread.h: Likewise.
27127         * catgets/nl_types.h: Likewise.
27128         * conform/data/pthread.h-data: Likewise.
27129         * crypt/crypt-private.h: Likewise.
27130         * crypt/crypt.h: Likewise.
27131         * crypt/crypt_util.c: Likewise.
27132         * ctype/ctype.h: Likewise.
27133         * debug/execinfo.h: Likewise.
27134         * debug/mbsnrtowcs_chk.c: Likewise.
27135         * debug/mbsrtowcs_chk.c: Likewise.
27136         * debug/wcsnrtombs_chk.c: Likewise.
27137         * debug/wcsrtombs_chk.c: Likewise.
27138         * debug/wcstombs_chk.c: Likewise.
27139         * dirent/dirent.h: Likewise.
27140         * dlfcn/dlfcn.h: Likewise.
27141         * elf/neededtest4.c: Likewise.
27142         * grp/grp.h: Likewise.
27143         * gshadow/gshadow.h: Likewise.
27144         * iconv/gconv.h: Likewise.
27145         * iconv/gconv_int.h: Likewise.
27146         * iconv/gconv_simple.c: Likewise.
27147         * iconv/iconv.h: Likewise.
27148         * iconv/loop.c: Likewise.
27149         * iconv/skeleton.c: Likewise.
27150         * include/aio.h: Likewise.
27151         * include/aliases.h: Likewise.
27152         * include/argz.h: Likewise.
27153         * include/arpa/inet.h: Likewise.
27154         * include/assert.h: Likewise.
27155         * include/dirent.h: Likewise.
27156         * include/dlfcn.h: Likewise.
27157         * include/execinfo.h: Likewise.
27158         * include/fcntl.h: Likewise.
27159         * include/fenv.h: Likewise.
27160         * include/glob.h: Likewise.
27161         * include/grp.h: Likewise.
27162         * include/libintl.h: Likewise.
27163         * include/mntent.h: Likewise.
27164         * include/netdb.h: Likewise.
27165         * include/pwd.h: Likewise.
27166         * include/rpc/netdb.h: Likewise.
27167         * include/sched.h: Likewise.
27168         * include/search.h: Likewise.
27169         * include/shadow.h: Likewise.
27170         * include/signal.h: Likewise.
27171         * include/stdio.h: Likewise.
27172         * include/stdlib.h: Likewise.
27173         * include/string.h: Likewise.
27174         * include/sys/socket.h: Likewise.
27175         * include/sys/stat.h: Likewise.
27176         * include/sys/statfs.h: Likewise.
27177         * include/sys/statvfs.h: Likewise.
27178         * include/sys/syslog.h: Likewise.
27179         * include/sys/time.h: Likewise.
27180         * include/sys/uio.h: Likewise.
27181         * include/time.h: Likewise.
27182         * include/unistd.h: Likewise.
27183         * include/utmp.h: Likewise.
27184         * include/wchar.h: Likewise.
27185         * include/wctype.h: Likewise.
27186         * inet/aliases.h: Likewise.
27187         * inet/arpa/inet.h: Likewise.
27188         * inet/netinet/ether.h: Likewise.
27189         * inet/netinet/in.h: Likewise.
27190         * intl/libintl.h: Likewise.
27191         * io/bits/fcntl2.h: Likewise.
27192         * io/fcntl.h: Likewise.
27193         * io/ftw.h: Likewise.
27194         * io/sys/poll.h: Likewise.
27195         * io/sys/stat.h: Likewise.
27196         * io/sys/statfs.h: Likewise.
27197         * io/sys/statvfs.h: Likewise.
27198         * io/utime.h: Likewise.
27199         * libio/bits/stdio.h: Likewise.
27200         * libio/bits/stdio2.h: Likewise.
27201         * libio/libio.h: Likewise.
27202         * libio/libioP.h: Likewise.
27203         * libio/stdio.h: Likewise.
27204         * locale/lc-ctype.c: Likewise.
27205         * locale/locale.h: Likewise.
27206         * login/utmp.h: Likewise.
27207         * malloc/arena.c: Likewise.
27208         * malloc/malloc.c: Likewise.
27209         * malloc/malloc.h: Likewise.
27210         * malloc/mcheck.c: Likewise.
27211         * malloc/mtrace.c: Likewise.
27212         * math/bits/mathcalls.h: Likewise.
27213         * math/fenv.h: Likewise.
27214         * math/math_private.h: Likewise.
27215         * misc/bits/error.h: Likewise.
27216         * misc/bits/syslog.h: Likewise.
27217         * misc/err.h: Likewise.
27218         * misc/error.h: Likewise.
27219         * misc/fstab.h: Likewise.
27220         * misc/mntent.h: Likewise.
27221         * misc/regexp.h: Likewise.
27222         * misc/search.h: Likewise.
27223         * misc/sgtty.h: Likewise.
27224         * misc/sys/mman.h: Likewise.
27225         * misc/sys/syslog.h: Likewise.
27226         * misc/sys/uio.h: Likewise.
27227         * misc/sys/xattr.h: Likewise.
27228         * misc/ttyent.h: Likewise.
27229         * nis/rpcsvc/ypclnt.h: Likewise.
27230         * nss/nss.h: Likewise.
27231         * posix/bits/unistd.h: Likewise.
27232         * posix/fnmatch.h: Likewise.
27233         * posix/glob.h: Likewise.
27234         * posix/sched.h: Likewise.
27235         * posix/spawn.h: Likewise.
27236         * posix/sys/wait.h: Likewise.
27237         * posix/unistd.h: Likewise.
27238         * posix/wordexp.h: Likewise.
27239         * pwd/pwd.h: Likewise.
27240         * resolv/netdb.h: Likewise.
27241         * resource/sys/resource.h: Likewise.
27242         * rt/aio.h: Likewise.
27243         * rt/bits/mqueue2.h: Likewise.
27244         * rt/mqueue.h: Likewise.
27245         * shadow/shadow.h: Likewise.
27246         * signal/signal.h: Likewise.
27247         * socket/send.c: Likewise.
27248         * socket/sendto.c: Likewise.
27249         * socket/sys/socket.h: Likewise.
27250         * stdio-common/printf.h: Likewise.
27251         * stdlib/bits/stdlib.h: Likewise.
27252         * stdlib/fmtmsg.h: Likewise.
27253         * stdlib/monetary.h: Likewise.
27254         * stdlib/stdlib.h: Likewise.
27255         * stdlib/ucontext.h: Likewise.
27256         * streams/stropts.h: Likewise.
27257         * string/argz.h: Likewise.
27258         * string/bits/string2.h: Likewise.
27259         * string/string.h: Likewise.
27260         * string/strings.h: Likewise.
27261         * sunrpc/rpc/auth.h: Likewise.
27262         * sunrpc/rpc/auth_des.h: Likewise.
27263         * sunrpc/rpc/clnt.h: Likewise.
27264         * sunrpc/rpc/netdb.h: Likewise.
27265         * sunrpc/rpc/pmap_clnt.h: Likewise.
27266         * sunrpc/rpc/xdr.h: Likewise.
27267         * sysdeps/generic/inttypes.h: Likewise.
27268         * sysdeps/generic/net/if.h: Likewise.
27269         * sysdeps/generic/sys/swap.h: Likewise.
27270         * sysdeps/gnu/net/if.h: Likewise.
27271         * sysdeps/gnu/utmpx.h: Likewise.
27272         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
27273         * sysdeps/i386/i486/bits/string.h: Likewise.
27274         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
27275         * sysdeps/s390/bits/string.h: Likewise.
27276         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
27277         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
27278         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27279         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
27280         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
27281         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
27282         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
27283         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
27284         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
27285         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27286         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
27287         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
27288         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
27289         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
27290         * sysdeps/unix/sysv/linux/readv.c: Likewise.
27291         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
27292         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
27293         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27294         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27295         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27296         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27297         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
27298         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
27299         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
27300         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
27301         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
27302         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
27303         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27304         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
27305         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
27306         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
27307         * sysvipc/sys/ipc.h: Likewise.
27308         * sysvipc/sys/msg.h: Likewise.
27309         * sysvipc/sys/sem.h: Likewise.
27310         * sysvipc/sys/shm.h: Likewise.
27311         * termios/termios.h: Likewise.
27312         * time/sys/time.h: Likewise.
27313         * time/time.h: Likewise.
27314         * wcsmbs/bits/wchar2.h: Likewise.
27315         * wcsmbs/uchar.h: Likewise.
27316         * wcsmbs/wchar.h: Likewise.
27317         * wctype/wctype.h: Likewise.
27318
27319         [BZ #13551]
27320         * Makeconfig: Remove all but ELF support including AIX support.
27321         * Makerules: Likewise.
27322         * config.h.in: Likewise.
27323         * config.make.in: Likewise.
27324         * configure: Likewise.
27325         * configure.in: Likewise.
27326         * csu/Makefile: Likewise.
27327         * csu/version.c: Likewise.
27328         * debug/Makefile: Likewise.
27329         * dlfcn/Makefile: Likewise.
27330         * elf/Makefile: Likewise.
27331         * extra-lib.mk: Likewise.
27332         * iconv/Makefile: Likewise.
27333         * include/libc-symbols.h: Likewise.
27334         * include/shlib-compat.h: Likewise.
27335         * resolv/Makefile: Likewise.
27336         * resolv/res_libc.c: Likewise.
27337         * rt/Makefile: Likewise.
27338         * sysdeps/i386/asm-syntax.h: Likewise.
27339         * sysdeps/i386/sysdep.h: Likewise.
27340         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27341         * sysdeps/mach/sysdep.h: Likewise.
27342         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
27343         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
27344         * sysdeps/s390/asm-syntax.h: Likewise.
27345         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27346         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27347         * sysdeps/sh/sysdep.h: Likewise.
27348         * sysdeps/unix/sparc/sysdep.h: Likewise.
27349         * sysdeps/wordsize-32/divdi3.c: Likewise.
27350         * sysdeps/x86_64/sysdep.h: Likewise.
27351
27352         * argp/Versions: Remove _argp_unlock_xxx.
27353
27354         [BZ #13559]
27355         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
27356         * abilist/libBrokenLocale.abilist: Likewise.
27357         * abilist/libanl.abilist: Likewise.
27358         * abilist/libc.abilist: Likewise.
27359         * abilist/libcrypt.abilist: Likewise.
27360         * abilist/libdl.abilist: Likewise.
27361         * abilist/libm.abilist: Likewise.
27362         * abilist/libnsl.abilist: Likewise.
27363         * abilist/libpthread.abilist: Likewise.
27364         * abilist/libresolv.abilist: Likewise.
27365         * abilist/librt.abilist: Likewise.
27366         * abilist/libthread_db.abilist: Likewise.
27367         * abilist/libutil.abilist: Likewise.
27368         * abilist/libnss_db.abilist: New file.
27369
27370         * scripts/abilist.awk: Add support for indirect functions.
27371
27372         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
27373
27374         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
27375
27376         * shlib-versions: Remove entries for ports architectures.
27377
27378         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
27379         files in ports.
27380         * elf/stackguard-macros.h: Remove support for IA-64.
27381         * elf/tst-auditmod1.c: Likewise.
27382         * sysdeps/generic/ldsodefs.h: Likewise.
27383
27384         * sysdeps/unix/sysv/linux/configure.in: Ports should define
27385         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
27386         configure files.
27387
27388         [BZ #13552]
27389         * configure.in: Remove --enable-omitfp support.
27390         * FAQ.in: Adjust.
27391         * config.make.in: Likewise.
27392         * Makeconfig: Likewise.
27393         * manual/install.texi: Likewise.
27394
27395         In case anyone cares, the IA-64 architecture could move to ports.
27396         * sysdeps/ia64/*: Removed.
27397         * sysdeps/unix/sysv/linux/ia64/*: Removed.
27398         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
27399
27400         [BZ #13555]
27401         * configure.in: Remove entries for unsupported architectures.
27402
27403         [BZ #13533]
27404         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
27405         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
27406         routines.
27407         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
27408         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
27409         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
27410         fall back to using wcrtomb.
27411         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
27412         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
27413         renaming.
27414         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
27415         * wcsmbs/tst-c16c32-1.c: New file.
27416
27417         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
27418         local variable.
27419
27420         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
27421
27422         * elf/tst-unique3.cc: Add explicit declaration of gets.
27423         * elf/tst-unique3lib.cc: Likewise.
27424         * elf/tst-unique3lib2.cc: Likewise.
27425         * elf/tst-unique4.cc: Likewise.
27426
27427         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
27428
27429 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
27430
27431         [BZ #13566]
27432         * assert/assert.h (static_assert): Don't define for C++.
27433         * libio/stdio.h (gets): Do declare for C++ <= C++11.
27434         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
27435
27436 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
27437
27438         * iconv/loop.c (single loop): Fix assertion in storing of
27439         remaining bytes.
27440
27441         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
27442
27443 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
27444
27445         * posix/getconf.c: Update copyright year.
27446         * nss/getent.c: Likewise.
27447         * nss/makedb.c: Likewise.
27448         * iconv/iconvconfig.c: Likewise.
27449         * iconv/iconv_prog.c: Likewise.
27450         * elf/ldconfig.c: Likewise.
27451         * elf/pldd.c: Likewise.
27452         * elf/sotruss.ksh: Likewise.
27453         * catgets/gencat.c: Likewise.
27454         * csu/version.c: Likewise.
27455         * elf/ldd.bash.in: Likewise.
27456         * elf/sprof.c (print_version): Likewise.
27457         * locale/programs/locale.c: Likewise.
27458         * locale/programs/localedef.c: Likewise.
27459         * login/programs/pt_chown.c: Likewise.
27460         * nscd/nscd.c (print_version): Likewise.
27461         * debug/xtrace.sh: Likewise.
27462         * malloc/memusage.sh: Likewise.
27463         * malloc/mtrace.pl: Likewise.
27464         * debug/catchsegv.sh: Likewise.
27465
27466 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
27467
27468         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
27469         pure attribute.
27470
27471 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
27472
27473         [BZ #13533]
27474         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
27475         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
27476         transformations.
27477         * iconv/gconv_int.h: Likewise.
27478         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
27479         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
27480         from libc for GLIBC_2.16.
27481         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
27482         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
27483         * wcsmbs/uchar.h: Really define mbstate_t.
27484         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
27485         * wcsmbs/c16rtomb.c: New file.
27486         * wcsmbs/mbrtoc16.c: New file.
27487         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
27488         for C/POSIX locale.
27489         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
27490         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
27491
27492         * wcsmbs/wchar.h: Add missing __restrict.
27493
27494 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27495
27496         [BZ #13532]
27497         * time/Makefile (routines): Add timespec_get.
27498         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
27499         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
27500         timespec for ISO C11.
27501         * time/timespec_get.c: New file.
27502         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
27503         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
27504
27505         [BZ #13531]
27506         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
27507         * stdlib/stdlib.h: Declare aligned_alloc.
27508         * Versions.def: Add GLIBC_2.16 for libc.
27509         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
27510
27511         [BZ 13527]
27512         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
27513         ISO C11.
27514
27515         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
27516         code.
27517
27518         [BZ #13528]
27519         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
27520
27521         [BZ #13529]
27522         * assert/assert.h (static_assert): Define.
27523
27524         * version.h: Update for 2.16 development version.
27525
27526         [BZ #13526]
27527         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
27528         _ISOC11_SOURCE.
27529
27530         * version.h (RELEASE): Bump for 2.15 release.
27531         * include/features.h (__GLIBC_MINOR__): Bump to 15.
27532
27533         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
27534         Patch by Marek Polacek <mpolacek@redhat.com>.
27535
27536         * bits/byteswap.h: Protect long long constants with __extension__.
27537         * sysdeps/i386/bits/byteswap.h: Likewise.
27538         * sysdeps/ia64/bits/byteswap.h: Likewise.
27539         * sysdeps/s390/bits/byteswap.h: Likewise.
27540         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27541
27542 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27543
27544         [BZ #13540]
27545         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
27546         destination buffer.
27547         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
27548
27549 2011-12-23  Marek Polacek  <polacek@redhat.com>
27550
27551         * elf/dl-addr.c (determine_info): Add inline keyword.
27552         * elf/tst-auditmod4b.c (check_avx): Likewise.
27553         * elf/tst-auditmod6b.c (check_avx): Likewise.
27554         * elf/tst-auditmod6c.c (check_avx): Likewise.
27555         * elf/tst-auditmod7b.c (check_avx): Likewise.
27556
27557 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27558
27559         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
27560         !__SSE_MATH__.
27561
27562 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27563
27564         [BZ #13540]
27565         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
27566         processing for last bytes.
27567
27568 2011-08-06  Bruno Haible  <bruno@clisp.org>
27569
27570         [BZ #13061]
27571         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
27572         U+0385, not to U+1FEE.
27573
27574         [BZ #13062]
27575         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
27576         entry for U+00A5 U+0301.
27577
27578 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27579
27580         [BZ #13166]
27581         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
27582         buffer for the output is too small.
27583
27584         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
27585         optimization.
27586
27587         [BZ #13185]
27588         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
27589         SSE flags if possible.
27590
27591 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27592
27593         [BZ #13540]
27594         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
27595         processing for last bytes.
27596
27597 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
27598
27599         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
27600         (syscall-list-default-options, syscall-list-default-condition)
27601         (syscall-list-includes): Define.
27602         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
27603         list of ABIs and options and #if conditions for each ABI.  Do not
27604         handle common syscalls between ABIs specially.
27605         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
27606         Remove.
27607         (syscall-list-variants, syscall-list-32bit-options)
27608         (syscall-list-32bit-condition, syscall-list-64bit-options)
27609         (syscall-list-64bit-condition): Define.
27610         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
27611         (syscall-list-variants, syscall-list-32bit-options)
27612         (syscall-list-32bit-condition, syscall-list-64bit-options)
27613         (syscall-list-64bit-condition): Define.
27614         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
27615         Remove.
27616         (syscall-list-variants, syscall-list-32bit-options)
27617         (syscall-list-32bit-condition, syscall-list-64bit-options)
27618         (syscall-list-64bit-condition): Define.
27619         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
27620         Remove.
27621         (syscall-list-variants, syscall-list-32bit-options)
27622         (syscall-list-32bit-condition, syscall-list-64bit-options)
27623         (syscall-list-64bit-condition): Define.
27624
27625 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27626
27627         * locale/iso-639.def: Add brx entry.
27628
27629         [BZ #13328]
27630         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
27631         Proposed by Mariusz_Cukr <marcukr@op.pl>.
27632
27633         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
27634         __feraiseexcept_renamed.
27635
27636 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
27637
27638         [BZ #13538]
27639         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
27640         EPOLLET with unsigned values.
27641         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27642         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27643
27644         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
27645         to large cancellation.
27646         * math/s_cacoshf.c: Likewise.
27647         * math/s_cacoshl.c: Likewise.
27648
27649 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
27650
27651         [BZ #13305]
27652         [BZ #12786]
27653         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
27654         * math/s_cacoshf.c: Likewise.
27655         * math/s_cacoshl.c: Likewise.
27656
27657 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
27658
27659         [BZ #13439]
27660         * iconv/gconv.h: Define __GCONV_SWAP.
27661         * iconvdata/unicode.c: The swap bit must be stored in __flags.
27662         * iconvdata/utf-16.c: Likewise.
27663         * iconvdata/utf-32.c: Likewise.
27664
27665 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
27666
27667         [BZ #13524]
27668         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
27669         numerator after shifting it by one limb.
27670
27671 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
27672
27673         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
27674         under [__USE_EXTERN_INLINES].
27675
27676 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
27677
27678         [BZ #13446]
27679         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
27680
27681 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27682
27683         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
27684         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
27685         optimized code.
27686         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
27687         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
27688         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
27689         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
27690         for strncasecmp/strncasecmp_l compilation.
27691         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
27692         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
27693
27694 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
27695
27696         [BZ #13484]
27697         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
27698         of __asm__.
27699
27700 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
27701
27702         [BZ #13506]
27703         * time/tzfile.c (__tzfile_read): Check values from file header.
27704
27705 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
27706
27707         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
27708         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
27709         * powerpc/powerpc32/dl-start.S: Likewise.
27710         * powerpc/powerpc32/elf/start.S: Likewise.
27711         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
27712         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
27713         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
27714         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
27715         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
27716         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
27717         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
27718         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
27719         * powerpc/powerpc32/fpu/s_round.S: Likewise.
27720         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
27721         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
27722         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
27723         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
27724         * powerpc/powerpc32/memset.S: Likewise.
27725         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
27726         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
27727         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
27728         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
27729         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
27730         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
27731         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
27732         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
27733         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
27734         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
27735         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
27736         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
27737         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
27738
27739 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27740
27741         * math/libm-test.inc: Added more nearbyint tests.
27742         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
27743         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
27744         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
27745         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
27746
27747 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
27748
27749         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
27750         FD_CLOEXEC.
27751
27752 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27753
27754         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
27755         Add wcscpy-ssse3 wcscpy-c.
27756         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
27757         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
27758         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
27759         * sysdeps/x86_64/wcschr.S: New file.
27760         * sysdeps/x86_64/wcsrchr.S: New file.
27761         * string/test-strcmp.c: Remove checking of wcscmp function for
27762         wrong alignments.
27763         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
27764         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
27765         wcsrchr-sse2 wcsrchr-c.
27766         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
27767         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
27768         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
27769         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
27770         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
27771         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
27772         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
27773         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
27774         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
27775         * wcsmbc/wcschr.c (WCSCHR): New macro.
27776
27777 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27778
27779         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
27780         * wcsmbs/test-wcsrchr.c: New file.
27781         * string/test-strrchr.c: Add wcsrchr support.
27782         (WIDE): New macro.
27783         * wcsmbs/test-wcscpy.c: New file.
27784         * string/test-strcpy.c: Add wcscpy support.
27785         (WIDE): New macro.
27786
27787 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
27788
27789         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
27790         the inner loop.
27791
27792 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
27793
27794         [BZ #13472]
27795         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
27796
27797 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
27798
27799         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
27800         Minor optimizations.
27801
27802         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
27803         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
27804         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
27805
27806 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
27807
27808         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
27809         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
27810         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
27811         for gcc to avoid warnings.
27812         * inet/Makefile (tests): Add tst-checks.
27813         * inet/tst-checks.c: New file.
27814
27815         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
27816         warning.
27817
27818         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
27819         __wmemcmp_sse2.
27820
27821         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
27822         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
27823
27824         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
27825
27826 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
27827
27828         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
27829         problem.
27830
27831         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
27832
27833 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
27834
27835         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
27836         conditional on GCC version.
27837         (__arch_compare_and_exchange_val_8_acq)
27838         (__arch_compare_and_exchange_val_16_acq)
27839         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
27840         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
27841         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
27842
27843 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
27844
27845         * sysdeps/sh/backtrace.c: New file.
27846
27847 2011-12-02  Andreas Schwab  <schwab@redhat.com>
27848
27849         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
27850         parenthesis.
27851
27852 2011-12-01  Andreas Schwab  <schwab@redhat.com>
27853
27854         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
27855         falling back to utime.
27856
27857 2011-11-30  Andreas Schwab  <schwab@redhat.com>
27858
27859         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
27860         expectations for float.
27861
27862 2011-11-29  Andreas Schwab  <schwab@redhat.com>
27863
27864         * locale/weight.h (findidx): Add parameter len.
27865         * locale/weightwc.h (findidx): Likewise.
27866         * posix/fnmatch_loop.c (FCT): Adjust caller.
27867         * posix/regcomp.c (build_equiv_class): Likewise.
27868         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
27869         * posix/regexec.c (check_node_accept_bytes): Likewise.
27870         * string/strcoll_l.c (STRCOLL): Likewise.
27871         * string/strxfrm_l.c (STRXFRM): Likewise.
27872
27873 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
27874
27875         * Makefile.in: Remove CVSOPT handling.
27876         * configure.in: Remove use of AC_REVISION.
27877         * iconvdata/Makefile (distribute): No need to filter out CVS.
27878         * scripts/list-sources.sh: Remove CVS, subversion and monotone
27879         handling.
27880
27881 2011-11-16  Andreas Schwab  <schwab@redhat.com>
27882
27883         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
27884         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
27885         [USE_AS_STRNCASECMP_L]: Likewise.
27886         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
27887         NO_TLS_DIRECT_SEG_REFS.
27888         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
27889         Fix argument offsets for non-PIC.
27890         [USE_AS_STRNCASECMP_L]: Likewise.
27891         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
27892         NO_TLS_DIRECT_SEG_REFS.
27893
27894 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
27895
27896         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
27897         O_CLOEXEC.
27898         * locale/loadlocale.c (_nl_load_locale): Likewise.
27899
27900 2011-11-15  Andreas Schwab  <schwab@redhat.com>
27901
27902         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
27903         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
27904         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
27905         (SYSCALL_GETTIME): Set errno on error.
27906
27907         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
27908         count references to noai6ai_cached.
27909
27910 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
27911
27912         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
27913
27914         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
27915         FD_CLOEXEC for /proc/self/maps.
27916
27917         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
27918         FD_CLOEXEC for /proc/meminfo.
27919
27920         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
27921         gai.conf.
27922
27923         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
27924         FD_CLOEXEC for given file.
27925
27926         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
27927
27928         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
27929         FD_CLOEXEC for /etc/hosts.
27930         (_gethtent): Likewise.
27931
27932         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
27933
27934         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
27935         cancellation and set FD_CLOEXEC for /etc/netgroup.
27936
27937         * nss/nss_files/files-key.c (search): Don't allow cancellation when
27938         reading /etc/publickey.
27939
27940         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
27941         allow cancellation when reading /etc/group.
27942
27943         * nss/nss_files/files-alias.c (internal_setent): Don't allow
27944         cancellation.
27945         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
27946
27947         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
27948         when using data file.
27949
27950         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
27951
27952         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
27953         (write_nis_obj): Use "c" and "e" in fopen.
27954
27955         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
27956
27957         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
27958
27959         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
27960
27961         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
27962
27963         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
27964         locale.alias.
27965
27966         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
27967
27968         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
27969
27970         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
27971
27972         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
27973         file parsing and set FD_CLOEXEC.
27974
27975 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
27976
27977         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
27978
27979 2011-11-14  Andreas Schwab  <schwab@redhat.com>
27980
27981         * malloc/arena.c (arena_get2): Don't call reused_arena when
27982         _int_new_arena failed.
27983
27984 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
27985
27986         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
27987         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
27988         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
27989         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27990         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27991         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
27992         to compile strcasecmp and strncasecmp.
27993         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
27994         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
27995
27996         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
27997
27998 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
27999
28000         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
28001         locale-defines.sym to gen-as-const-headers.
28002         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
28003         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
28004         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
28005         to compile strcasecmp and strncasecmp.
28006         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
28007         strcasecmp_l and strncasecmp_l.
28008         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
28009         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
28010         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
28011         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
28012         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
28013         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
28014         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
28015         * sysdeps/i386/i686/multiarch/strncase.S: New file.
28016         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
28017         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
28018         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
28019
28020 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
28021
28022         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
28023         result of SYSDEP_GETTIME_CPU to retval.
28024         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
28025         parameter list to macro.  Remove trailing semicolon.  Adjust users.
28026
28027         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
28028         variable.
28029
28030         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
28031         mantissa words.
28032         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
28033
28034         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
28035         from unused variable.
28036
28037         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
28038         DWARF definitions.
28039         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
28040         for assembling.
28041
28042         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
28043         over namespaces.
28044
28045         * sunrpc/rpc_prot.c (rejected): Fix case value.
28046
28047         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
28048         unsigned long long int to avoid warnings in shift.
28049
28050         * posix/regex_internal.c (re_string_reconstruct): Actually use result
28051         of use of trans.
28052         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
28053         variable tmp.
28054
28055         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
28056         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
28057         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
28058
28059         * nis/nis_table.c (nis_list): Use variable of correct type for
28060         result of __follow_path call.
28061
28062 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28063
28064         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
28065         of math functions ceil, trunc, floor, round, and sqrt, when
28066         avaliable on the platform.
28067         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
28068         name clash.
28069         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
28070         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
28071         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
28072
28073 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
28074
28075         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
28076         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
28077
28078 2011-11-11  Roland McGrath  <roland@hack.frob.com>
28079
28080         * include/unistd.h: Fix __readlink return type.
28081         Reported by Chris Metcalf <cmetcalf@tilera.com>.
28082
28083 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
28084
28085         * stdlib/ucontext.h: Undo last change for makecontext.
28086
28087 2011-11-11  Andreas Schwab  <schwab@redhat.com>
28088
28089         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
28090
28091         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
28092         * setjmp/setjmp.h: Mark functions as non-leaf.
28093         * setjmp/bits/setjmp2.h: Likewise.
28094         * stdlib/ucontext.h: Likewise.
28095
28096 2011-11-10  Andreas Schwab  <schwab@redhat.com>
28097
28098         * malloc/arena.c (_int_new_arena): Don't increment narenas.
28099         (reused_arena): Don't check arena limit.
28100         (arena_get2): Atomically check arena limit.
28101
28102 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
28103
28104         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
28105         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
28106
28107         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
28108         instructions.
28109
28110 2011-11-07  Andreas Schwab  <schwab@redhat.com>
28111
28112         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
28113         handler when locking.
28114
28115         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
28116         Fix size of allocated buffer.
28117
28118 2011-11-04  Andreas Schwab  <schwab@redhat.com>
28119
28120         [BZ #10103]
28121         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
28122         declarations for long double functions.
28123         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
28124
28125         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
28126
28127 2011-11-03  Andreas Schwab  <schwab@redhat.com>
28128
28129         * nscd/nscd.c (main): Don't start AVC thread until credentials are
28130         installed.
28131
28132         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
28133         is disabled.
28134
28135 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28136
28137         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
28138
28139 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
28140
28141         * include/alloca.h (stackinfo_alloca_round): Define.
28142         (extend_alloca): Use it.
28143         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
28144         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
28145         here.
28146
28147         * scripts/check-local-headers.sh: Ignore libaudit.h.
28148
28149         * nscd/Makefile (extra-objs): Make recursively expanded.
28150
28151 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
28152
28153         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
28154         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
28155
28156         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
28157         * posix/tst-rfc3484-2.c: Likewise.
28158         * posix/tst-rfc3484-3.c: Likewise.
28159
28160         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
28161         process_vm_writev.
28162         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
28163         process_vm_writev.
28164         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
28165         process_vm_writev from libc using GLIBC_2.15 version.
28166
28167         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
28168
28169 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
28170
28171         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
28172         stack usage.
28173
28174 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
28175
28176         [BZ #13367]
28177         * nss/getent.c (initgroups_keys): Show error message in case no group
28178         names are given.
28179
28180         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
28181         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
28182         __bump_nl_timestamp.
28183         * nscd/connections (nscd_init): When host database is served open
28184         netlink socket and request notification about configuration changes.
28185         (main_loop_poll): Track netlink file descriptor and bump timestamp
28186         in case data becomes available.
28187         (main_loop_epoll): Likewise.
28188         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
28189         (database_pers_head): Add extra_data fileds.
28190         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
28191         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
28192         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
28193         Adjust caller.
28194         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
28195         in6ai data, call __free_in6ai.
28196         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
28197         Add -DHAVE_NETLINK.
28198         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
28199         interface information.  Reuse previous data if netlink timestamp
28200         is not changed.
28201         (__bump_nl_timestamp): New function.
28202         (__free_in6ai): New function.
28203
28204 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
28205
28206         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
28207         close_not_cancel_no_status here.
28208         (__check_pf): Reorganize code a bit to not call close twice if OOM.
28209
28210 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28211
28212         [BZ #13276]
28213         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
28214         return value.
28215
28216         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
28217         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
28218         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
28219
28220 2011-07-03  Andreas Jaeger  <aj@suse.de>
28221
28222         [BZ #10709]
28223         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
28224         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
28225         * math/libm-test.inc (sin_test): Add test case.
28226
28227 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28228
28229         [BZ #13337]
28230         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
28231         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28232
28233         * elf/chroot_canon.c (chroot_canon): Cleanups.
28234
28235         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
28236
28237         [BZ #13335]
28238         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
28239         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28240
28241         * string/test-strchr.c: Make usable for strchrnul testing.
28242         * string/test-strchrnul.c: New file.
28243         * string/Makefile (strop-tests): Add strchrnul.
28244
28245         * po/it.po: Update from translation team.
28246         * po/es.po: Likewise.
28247
28248 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
28249
28250         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
28251         the three constants needed as parameters.  Drop the others.
28252         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
28253         __m128i_strloadu_tolower.
28254         Create and initialize variable zero and use it in all the places
28255         where _mm_setzero_si128 was used.
28256
28257         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
28258         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
28259         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
28260         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
28261         anymore.
28262         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
28263         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
28264         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
28265         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
28266         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
28267         __mpranred, __mptan.
28268         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
28269         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
28270         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
28271         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
28272         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
28273         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
28274         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
28275         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
28276         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
28277
28278 2011-10-28  Andreas Schwab  <schwab@redhat.com>
28279
28280         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
28281         redefine if SHARED.
28282         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
28283
28284         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
28285         wide char related routines to wcsmbs subdir.
28286
28287 2011-10-27  Andreas Schwab  <schwab@redhat.com>
28288
28289         [BZ #13344]
28290         * misc/sys/cdefs.h (__THROWNL): Define.
28291         * posix/unistd.h: Use __THREADNL instead of __THREAD
28292         for memory synchronization functions.
28293
28294 2011-10-26  Roland McGrath  <roland@hack.frob.com>
28295
28296         [BZ #13349]
28297         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
28298         doesn't exist.
28299         * manual/stdio.texi (Obstack Streams): Node removed.
28300
28301 2011-10-26  Andreas Schwab  <schwab@redhat.com>
28302
28303         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
28304         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28305         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28306
28307         * math/math_private.h (math_force_eval): Allow non-addressable
28308         arguments.
28309         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
28310
28311 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28312
28313         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
28314         file is not needed.
28315
28316         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
28317         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28318         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28319         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28320         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28321         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28322         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28323         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
28324         Add AVX variants.
28325         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
28326         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
28327         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
28328         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
28329         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
28330         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
28331         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
28332         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
28333         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
28334         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
28335         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
28336         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
28337         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
28338         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
28339         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
28340         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
28341         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
28342         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
28343         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
28344
28345         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
28346         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
28347
28348         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
28349         place.  Use VEX encoding when compiling for AVX.
28350
28351 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28352
28353         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
28354         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
28355
28356         * string/test-strchr.c (do_test): Don't generate NUL bytes.
28357
28358 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28359
28360         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
28361         useless if() expression.
28362         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28363         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28364         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28365         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28366         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28367         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28368         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28369         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28370         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28371         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28372         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28373         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28374         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28375         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28376         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28377         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28378         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28379         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28380         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28381
28382         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
28383
28384 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28385
28386         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
28387         condition.
28388         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28389
28390 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28391
28392         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
28393         .text section.  Avoid duplicate constants.
28394         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28395         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28396         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28397         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28398         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28399         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28400         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28401         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28402         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
28403         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
28404         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
28405         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
28406         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
28407         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
28408         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
28409         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
28410         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
28411         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
28412         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28413         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28414         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28415         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28416         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28417         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
28418         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
28419         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
28420         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
28421         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
28422         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
28423         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
28424         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
28425         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
28426         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
28427         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
28428         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
28429         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
28430         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
28431         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
28432         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
28433         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
28434         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
28435         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
28436         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
28437         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
28438         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
28439
28440 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
28441
28442         * sysdeps/x86_64/dla.h: Move to ...
28443         * sysdeps/x86_64/fpu/dla.h: ...here.
28444         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
28445         situations.  Use __builtin_fma only for gcc 4.6 and up.
28446
28447         * config.make.in: Add have-mfma4 entry.
28448         * configure.in: Substitute libc_cv_cc_fma4.
28449         * math/Makefile (dbl-only-routines): Add sincostab.
28450         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
28451         Use __sincostab not sincos.
28452         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
28453         name is a macro.
28454         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28455         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28456         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28457         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
28458         using __copysign.
28459         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
28460         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
28461         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
28462         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
28463         and __inv.
28464         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
28465         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
28466         __copysign.
28467         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
28468         define aliases when function name is a macro.
28469         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
28470         sysdeps/ieee754/dbl-64/sincos.tbl.
28471         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
28472         fma4-enabled routines.
28473         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
28474         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
28475         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
28476         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
28477         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
28478         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
28479         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
28480         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
28481         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
28482         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
28483         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
28484         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
28485         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
28486         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
28487         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
28488         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
28489         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
28490         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
28491         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
28492         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
28493         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
28494         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
28495         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
28496         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
28497         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
28498         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
28499         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
28500         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
28501         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
28502         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
28503
28504         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
28505         rename.
28506         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28507         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28508         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28509         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28510         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28511         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28512         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28513         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28514
28515 2011-10-24  Andreas Schwab  <schwab@redhat.com>
28516
28517         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
28518
28519 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28520
28521         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
28522
28523         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
28524         prediction.
28525         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
28526
28527         * string/strnlen.c: Don't define STRNLEN, reverse logic.
28528         Remove unused variable magic_bits.
28529         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
28530
28531         * string/strnlen.c: Define and use STRNLEN macro.
28532         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
28533         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
28534         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
28535         * wcsmbs/wcslen.c: Define and use WCSLEN.
28536         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
28537         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
28538         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
28539         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
28540         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
28541         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
28542         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
28543
28544 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28545
28546         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28547         strnlen-sse2-no-bsf.
28548         Rename strlen-no-bsf to strlen-sse2-no-bsf.
28549         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
28550         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
28551         Add strnlen support.
28552         (USE_AS_STRNLEN): New macro.
28553         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
28554         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
28555         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
28556         * sysdeps/x86_64/wcslen.S: New file.
28557
28558 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
28559
28560         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
28561         XMM-moves are used for copying on small sizes.
28562
28563 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28564
28565         * wcsmbs/Makefile (strop-tests): Add wcschr.
28566         * wcsmbs/test-wcschr.c: New file.
28567         * string/test-strchr.c: Update.
28568         Add wcschr support.
28569         (WIDE): New macro.
28570
28571 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28572
28573         * wcsmbs/Makefile (strop-tests): Add wcslen.
28574         * wcsmbs/test-wcslen.c: New file.
28575         * string/test-strlen.c: Update.
28576         Add wcslen support.
28577         (WIDE): New macro.
28578
28579 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28580
28581         * po/it.po: Update from translation team.
28582
28583 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28584
28585         * sysdeps/x86_64/wcscmp.S: Update.
28586         Fix wrong comparison semantics.
28587         wcscmp shall use signed comparison not unsigned.
28588         Don't use substraction to avoid overflow bug.
28589         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
28590         * wcsmbc/wcscmp.c: Likewise.
28591         * string/test-strcmp.c: Likewise.
28592         Add new tests to check cases with negative values.
28593
28594 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28595
28596         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
28597         * sysdeps/x86_64/dla.h: ...here.  New file.
28598         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
28599         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28600         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28601         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28602         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28603         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28604         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28605         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28606         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28607
28608 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
28609
28610         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
28611         __ynl_finite aliases.
28612
28613 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
28614
28615         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28616
28617         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
28618         define DLA_FMA.
28619         [DLA_FMA] (EMULV): Use DLA_FMA.
28620         [DLA_FMA] (MUL12): Use EMULV.
28621         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
28622         that are not needed.
28623         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28624         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28625         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28626         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28627         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28628         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28629         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28630
28631 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
28632
28633         * math/s_nan.c: Undef __nan.
28634         * math/s_nanf.c: Undef __nanf.
28635         * math/s_nanl.c: Undef __nanl.
28636         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
28637         "math_private.h".
28638
28639 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
28640
28641         * math/s_catan.c: Add branch predictions.
28642         * math/s_catanf.c: Likewise.
28643         * math/s_catanh.c: Likewise.
28644         * math/s_catanhf.c: Likewise.
28645         * math/s_catanhl.c: Likewise.
28646         * math/s_catanl.c: Likewise.
28647         * math/s_cexp.c: Likewise.
28648         * math/s_cexpf.c: Likewise.
28649         * math/s_cexpl.c: Likewise.
28650         * math/s_clog.c: Likewise.
28651         * math/s_clog10.c: Likewise.
28652         * math/s_clog10f.c: Likewise.
28653         * math/s_clog10l.c: Likewise.
28654         * math/s_clogf.c: Likewise.
28655         * math/s_clogl.c: Likewise.
28656         * math/s_csqrt.c: Likewise.
28657         * math/s_csqrtf.c: Likewise.
28658         * math/s_csqrtl.c: Likewise.
28659         * math/s_ctanf.c: Likewise.
28660         * math/s_ctanh.c: Likewise.
28661         * math/s_ctanhf.c: Likewise.
28662         * math/s_ctanhl.c: Likewise.
28663         * math/s_ctanl.c: Likewise.
28664
28665         * math/math_private.h: Define __nan, __nanf, __nanl.
28666         * math/s_cacosh.c: Include <math_private.h>.
28667         * math/s_cacoshl.c: Likewise.
28668         * math/s_casinh.c: Likewise.
28669         * math/s_casinhf.c: Likewise.
28670         * math/s_casinhl.c: Likewise.
28671         * math/s_ccos.c: Rely entire on ccosh.
28672         * math/s_ccosf.c: Rely entire on ccoshf.
28673         * math/s_ccosl.c: Rely entirely on ccoshl.
28674         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
28675         Remove tests for FE_INVALID.
28676         * math/s_ccoshf.c: Likewise.
28677         * math/s_ccoshl.c: Likewise.
28678         * math/s_csin.c: Likewise.
28679         * math/s_csinf.c: Likewise.
28680         * math/s_csinh.c Likewise.
28681         * math/s_csinhf.c: Likewise.
28682         * math/s_csinhl.c: Likewise.
28683         * math/s_csinl.c: Likewise.
28684         * math/s_ctan.c: Likewise.
28685         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
28686         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
28687         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
28688
28689 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
28690
28691         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
28692         compilation problems.
28693
28694         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
28695         __builtin_expect.
28696
28697 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
28698
28699         * sysdeps/i386/configure.in: Test for -mfma4 option.
28700         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
28701         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
28702         COMMON_CPUID_INDEX_80000001.
28703         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
28704         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
28705         use it if FMA3 is not supported.
28706         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
28707
28708         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
28709         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28710
28711 2011-10-20  Andreas Schwab  <schwab@redhat.com>
28712
28713         [BZ #12892]
28714         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
28715         it would create a cycle with a link time dependency.
28716
28717 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
28718
28719         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
28720         instruction.
28721         * string/Makefile (strop-tests): Add rawmemchr.
28722         * string/test-rawmemchr.c: New file.
28723
28724         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
28725         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
28726         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
28727         when compiling str{,n}casecmp and when AVX is available.  Hook up
28728         new optimized code in initializers.
28729
28730 2011-10-19  Andreas Schwab  <schwab@redhat.com>
28731
28732         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
28733         __feraiseexcept instead of feraiseexcept.
28734
28735 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
28736
28737         * math/math_private.h: Define defaults for libc_fetestexcept and
28738         libc_feupdateenv.
28739         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
28740         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
28741         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
28742         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
28743         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28744         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
28745         libc_fetestexcept and libc_feupdateenv.
28746
28747         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
28748         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
28749         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
28750         * sysdeps/x86_64/fpu/math_private.h: Define special version of
28751         libc_feholdexcept_setround.
28752
28753         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
28754         Add s_nearbyint-c and s_nearbyintf-c.
28755         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
28756         nearbyintf inlines.
28757         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
28758         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
28759         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
28760         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
28761
28762         * math/math_private.h: Define defaults for libc_fegetround,
28763         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
28764         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
28765         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
28766         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
28767         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
28768         standard functions.
28769         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
28770         Remove comments and hacks for old compiler versions.
28771         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
28772         libc_fegetround, libc_fesetround, libc_feholdexcept, and
28773         libc_feholdexceptl.
28774
28775 2011-10-18  Andreas Schwab  <schwab@redhat.com>
28776
28777         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
28778         (__feraiseexcept_renamed): Add __NTH.
28779         (feraiseexcept): Add __NTH.  Rename local variables to fix
28780         namespace violations.
28781
28782 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
28783
28784         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
28785
28786         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
28787
28788         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
28789         recently added interfaces.
28790         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
28791
28792         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
28793         about macro parameter expansion.
28794
28795         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
28796         __NO_MATH_INLINES is defined.  Cleanups.
28797
28798         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
28799         and __floorf is target has SSE4.1.
28800         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
28801         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
28802         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
28803         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
28804
28805         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
28806         name.
28807         (floorf): Likewise.
28808
28809         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
28810
28811 2011-10-17  Andreas Schwab  <schwab@redhat.com>
28812
28813         * misc/sys/cdefs.h: Fix last change.
28814
28815         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
28816         database lookup.
28817
28818 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
28819
28820         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
28821
28822         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
28823         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28824         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
28825         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28826         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28827         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28828         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28829         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28830         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28831         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
28832         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
28833         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
28834         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
28835         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
28836         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
28837         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
28838         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
28839         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
28840         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
28841         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
28842         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
28843         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
28844
28845         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
28846         ceil, ceilf, floor, floorf.
28847
28848         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
28849         Perform IRELATIVE relocations last.
28850
28851         * elf/do-rel.h: Add another parameter nrelative, replacing the
28852         local variable with the same name.  Change name of the function
28853         to end in Rel or Rela (uppercase).
28854         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
28855         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
28856         elf_dynamic_do_##reloc function.
28857
28858 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
28859
28860         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
28861         is sufficient, at least on modern CPUs.
28862
28863         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
28864
28865         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
28866         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
28867
28868         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
28869         __expl_finite.
28870         * math/bits/math-finite.h: Add entries for exp.
28871         * math/e_expl.c: Add __*_finite alias.
28872         * sysdeps/i386/fpu/e_exp.S: Likewise.
28873         * sysdeps/i386/fpu/e_expf.S: Likewise.
28874         * sysdeps/i386/fpu/e_expl.c: Likewise.
28875         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28876         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
28877         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
28878         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
28879         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
28880         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
28881         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
28882
28883         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
28884         is sufficient, at least on modern CPUs.
28885
28886         * ctype/ctype-info.c (__ctype_init): Define.
28887         * include/ctype.h (__ctype_init): Declare.
28888         (__ctype_b_loc): The variable is always initialized.
28889         (__ctype_toupper_loc): Likewise.
28890         (__ctype_tolower_loc): Likewise.
28891         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
28892         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
28893
28894 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
28895
28896         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
28897
28898         * configure.in: Also look in $cxxmachine/include for C++ system
28899         headers.
28900
28901 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28902
28903         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
28904         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
28905         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
28906         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
28907         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
28908         (USE_AS_WMEMCMP): New macro.
28909         Fixing indents.
28910         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
28911         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
28912         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
28913         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
28914         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28915         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
28916         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
28917         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
28918         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
28919         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
28920         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
28921         (USE_AS_WMEMCMP): New macro.
28922         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
28923         * sysdeps/string/test-memcmp.c: Update.
28924         Fix simple_wmemcmp.
28925         Add new tests.
28926         * wcsmbs/wmemcmp.c: Update.
28927         (WMEMCMP): New macro.
28928         Fix overflow bug.
28929
28930 2011-10-12  Andreas Jaeger  <aj@suse.de>
28931
28932         [BZ #13268]
28933         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
28934
28935 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
28936
28937         * libio/iofwide.c (do_length): Avoid warning.
28938
28939         * ctype/ctype.h (__isctype_f): Add missing __THROW.
28940
28941 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
28942
28943         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
28944
28945         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
28946         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
28947         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
28948         * sysdeps/i386/i686/fpu/e_log.S: New file.
28949         * sysdeps/i386/i686/fpu/e_logf.S: New file.
28950         * sysdeps/i386/i686/fpu/e_logl.S: New file.
28951
28952         * ctype/ctype.h: Add support for inlined isXXX functions when
28953         compiling C++ code.
28954
28955 2011-10-14  Andreas Schwab  <schwab@redhat.com>
28956
28957         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28958
28959         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
28960
28961 2011-10-13  Roland McGrath  <roland@hack.frob.com>
28962
28963         [BZ #13291]
28964         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
28965
28966 2011-10-13  Andreas Schwab  <schwab@redhat.com>
28967
28968         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
28969         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
28970         feraiseexcept.
28971
28972         * sysdeps/x86_64/memrchr.S: Check for zero size.
28973
28974         * string/stratcliff.c: Add memrchr tests.
28975
28976 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28977
28978         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28979         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
28980         rawmemchr-sse2 rawmemchr-sse2-bsf.
28981         * sysdeps/i386/i686/multiarch/memchr.S: New file.
28982         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
28983         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
28984         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
28985         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
28986         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
28987         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
28988         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
28989         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
28990         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
28991         * string/memrchr.c (MEMRCHR): New macro.
28992
28993 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
28994
28995         Add integration with gcc's -ffinite-math-only and optimize wrapper
28996         functions in libm.
28997         * Versions.def: Define GLIBC_2.15 version for libm.
28998         * math/Makefile (headers): Add bits/math-finite.h.
28999         * math/bits/math-finite.h: New file.
29000         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
29001         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
29002         * math/e_acoshl.c: Add __*_finite alias.
29003         * math/e_acosl.c: Likewise.
29004         * math/e_asinl.c: Likewise.
29005         * math/e_atan2l.c: Likewise.
29006         * math/e_atanhl.c: Likewise.
29007         * math/e_coshl.c: Likewise.
29008         * math/e_exp10.c: Likewise.
29009         * math/e_exp10f.c: Likewise.
29010         * math/e_exp10l.c: Likewise.
29011         * math/e_exp2l.c: Likewise.
29012         * math/e_fmodl.c: Likewise.
29013         * math/e_gammal_r.c: Likewise.
29014         * math/e_hypotl.c: Likewise.
29015         * math/e_j0l.c: Likewise.
29016         * math/e_j1l.c: Likewise.
29017         * math/e_jnl.c: Likewise.
29018         * math/e_lgammal_r.c: Likewise.
29019         * math/e_log10l.c: Likewise.
29020         * math/e_log2l.c: Likewise.
29021         * math/e_logl.c: Likewise.
29022         * math/e_powl.c: Likewise.
29023         * math/e_sinhl.c: Likewise.
29024         * math/e_sqrtl.c: Likewise.
29025         * math/e_scalb.c: Completely rewritten and optimized.
29026         * math/e_scalbf.c: Likewise.
29027         * math/e_scalbl.c: Likewise.
29028         * math/w_acos.c: Likewise.
29029         * math/w_acosf.c: Likewise.
29030         * math/w_acosl.c: Likewise.
29031         * math/w_acosh.c: Likewise.
29032         * math/w_acoshf.c: Likewise.
29033         * math/w_acoshl.c: Likewise.
29034         * math/w_asin.c: Likewise.
29035         * math/w_asinf.c: Likewise.
29036         * math/w_asinl.c: Likewise.
29037         * math/w_atan2.c: Likewise.
29038         * math/w_atan2f.c: Likewise.
29039         * math/w_atan2l.c: Likewise.
29040         * math/w_atanh.c: Likewise.
29041         * math/w_atanhf.c: Likewise.
29042         * math/w_atanhl.c: Likewise.
29043         * math/w_exp10.c: Likewise.
29044         * math/w_exp10f.c: Likewise.
29045         * math/w_exp10l.c: Likewise.
29046         * math/w_fmod.c: Likewise.
29047         * math/w_fmodf.c: Likewise.
29048         * math/w_fmodl.c: Likewise.
29049         * math/w_j0.c: Likewise.
29050         * math/w_j0f.c: Likewise.
29051         * math/w_j0l.c: Likewise.
29052         * math/w_j1.c: Likewise.
29053         * math/w_j1f.c: Likewise.
29054         * math/w_j1l.c: Likewise.
29055         * math/w_jn.c: Likewise.
29056         * math/w_jnf.c: Likewise.
29057         * math/w_log.c: Likewise.
29058         * math/w_logf.c: Likewise.
29059         * math/w_logl.c: Likewise.
29060         * math/w_log10.c: Likewise.
29061         * math/w_log10f.c: Likewise.
29062         * math/w_log10l.c: Likewise.
29063         * math/w_log2.c: Likewise.
29064         * math/w_log2f.c: Likewise.
29065         * math/w_log2l.c: Likewise.
29066         * math/w_pow.c: Likewise.
29067         * math/w_powf.c: Likewise.
29068         * math/w_powl.c: Likewise.
29069         * math/w_remainder.c: Likewise.
29070         * math/w_remainderf.c: Likewise.
29071         * math/w_remainderl.c: Likewise.
29072         * math/w_scalb.c: Likewise.
29073         * math/w_scalbf.c: Likewise.
29074         * math/w_scalbl.c: Likewise.
29075         * math/w_sqrt.c: Likewise.
29076         * math/w_sqrtf.c: Likewise.
29077         * math/w_sqrtl.c: Likewise.
29078         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
29079         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
29080         used.
29081         * math/math_private.h: Declare __kernel_standard_f.
29082         * math/w_cosh.c: Remove cruft and optimize a bit.
29083         * math/w_coshf.c: Likewise.
29084         * math/w_coshl.c: Likewise.
29085         * math/w_exp2.c: Likewise.
29086         * math/w_exp2f.c: Likewise.
29087         * math/w_exp2l.c: Likewise.
29088         * math/w_hypot.c: Likewise.
29089         * math/w_hypotf.c: Likewise.
29090         * math/w_hypotl.c: Likewise.
29091         * math/w_lgamma.c: Likewise.
29092         * math/w_lgamma_r.c: Likewise.
29093         * math/w_lgammaf.c: Likewise.
29094         * math/w_lgammaf_r.c: Likewise.
29095         * math/w_lgammal.c: Likewise.
29096         * math/w_lgammal_r.c: Likewise.
29097         * math/w_sinh.c: Likewise.
29098         * math/w_sinhf.c: Likewise.
29099         * math/w_sinhl.c: Likewise.
29100         * math/w_tgamma.c: Likewise.
29101         * math/w_tgammaf.c: Likewise.
29102         * math/w_tgammal.c: Likewise.
29103         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29104         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29105         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
29106         Minor optimizations.  Pretty printing.  Remove cruft.
29107         * sysdeps/i386/fpu/e_acosf.S: Likewise.
29108         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29109         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29110         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29111         * sysdeps/i386/fpu/e_acosl.c: Likewise.
29112         * sysdeps/i386/fpu/e_asin.S: Likewise.
29113         * sysdeps/i386/fpu/e_asinf.S: Likewise.
29114         * sysdeps/i386/fpu/e_atan2.S: Likewise.
29115         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
29116         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
29117         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29118         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29119         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29120         * sysdeps/i386/fpu/e_exp10.S: Likewise.
29121         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
29122         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
29123         * sysdeps/i386/fpu/e_exp2.S: Likewise.
29124         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
29125         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
29126         * sysdeps/i386/fpu/e_fmod.S: Likewise.
29127         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
29128         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
29129         * sysdeps/i386/fpu/e_hypot.S: Likewise.
29130         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
29131         * sysdeps/i386/fpu/e_log.S: Likewise.
29132         * sysdeps/i386/fpu/e_log10.S: Likewise.
29133         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29134         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29135         * sysdeps/i386/fpu/e_log2.S: Likewise.
29136         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29137         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29138         * sysdeps/i386/fpu/e_logf.S: Likewise.
29139         * sysdeps/i386/fpu/e_logl.S: Likewise.
29140         * sysdeps/i386/fpu/e_pow.S: Likewise.
29141         * sysdeps/i386/fpu/e_powf.S: Likewise.
29142         * sysdeps/i386/fpu/e_powl.S: Likewise.
29143         * sysdeps/i386/fpu/e_remainder.S: Likewise.
29144         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
29145         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
29146         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29147         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29148         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29149         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
29150         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
29151         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
29152         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29153         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29154         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29155         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29156         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
29157         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29158         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
29159         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29160         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29161         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29162         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29163         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29164         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29165         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29166         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29167         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29168         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29169         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29170         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29171         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29172         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29173         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29174         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29175         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29176         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29177         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29178         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29179         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29180         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
29181         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29182         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29183         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29184         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29185         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29186         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29187         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29188         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29189         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29190         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29191         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29192         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29193         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29194         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29195         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29196         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29197         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29198         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29199         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29200         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29201         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
29202         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29203         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29204         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29205         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29206         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29207         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29208         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29209         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29210         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29211         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29212         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29213         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29214         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29215         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29216         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29217         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29218         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29219         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29220         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
29221         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29222         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29223         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29224         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29225         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29226         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29227         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29228         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
29229         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29230         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29231         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29232         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29233         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29234         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
29235         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29236         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29237         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29238         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29239         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29240         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29241         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29242         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29243         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29244         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29245         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
29246         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
29247         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
29248         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
29249         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
29250         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
29251         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
29252         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
29253         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
29254         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
29255         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
29256         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29257         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29258         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29259         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29260         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
29261         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29262         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
29263         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
29264         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
29265         (__isnanf): Likewise.
29266         (__isinf_ns): Likewise.
29267         (__isinf_nsf): Likewise.
29268         (__finite): Likewise.
29269         (__finitef): Likewise.
29270         (__ieee754_sqrt): Define as macro.
29271         (__ieee754_sqrtf): Define as macro.
29272         (__ieee754_sqrtl): Define as macro.
29273         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
29274         inlined copy.
29275         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
29276         __FINITE_MATH_ONLY__ consistent.
29277         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
29278
29279 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
29280
29281         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
29282         of rawmemchr.
29283
29284         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
29285
29286 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
29287
29288         * po/ja.po: Update from translation team.
29289
29290 2011-10-08  Roland McGrath  <roland@hack.frob.com>
29291
29292         * locale/programs/locarchive.c (prepare_address_space): New function.
29293         (create_archive, enlarge_archive, open_archive): Use it.
29294
29295         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
29296         inside [SHARED], where it is used.
29297
29298         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
29299
29300         * nss/getent.c (netgroup_keys): Remove unused variable.
29301         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29302
29303 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
29304
29305         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
29306         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
29307         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
29308         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
29309         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
29310         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
29311         * math/Makefile (libm-calls): Add s_isinf_ns.
29312         * math/divtc3.c: Use __isinf_nsl instead of isinf.
29313         * math/multc3.c: Likewise.
29314         * math/s_casin.c: Likewise.
29315         * math/s_casinf.c: Likewise.
29316         * math/s_casinl.c: Likewise.
29317         * math/s_ccos.c: Likewise.
29318         * math/s_ccosf.c: Likewise.
29319         * math/s_ccosl.c: Likewise.
29320         * math/s_ctan.c: Likewise.
29321         * math/s_ctanf.c: Likewise.
29322         * math/s_ctanh.c: Likewise.
29323         * math/s_ctanhf.c: Likewise.
29324         * math/s_ctanhl.c: Likewise.
29325         * math/s_ctanl.c: Likewise.
29326         * math/w_fmod.c: Likewise.
29327         * math/w_fmodf.c: Likewise.
29328         * math/w_fmodl.c: Likewise.
29329         * math/w_remainder.c: Likewise.
29330         * math/w_remainderf.c: Likewise.
29331         * math/w_remainderl.c: Likewise.
29332         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
29333         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
29334         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
29335         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
29336         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
29337         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
29338         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
29339         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
29340
29341         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
29342         of the number.
29343         * stdio-common/printf_fphex.c: Likewise.
29344         * stdio-common/printf_size.c: Likewise.
29345
29346         * math/e_exp10.c: Include math_private.h using <...> not "...".
29347         * math/e_exp10f.c: Likewise.
29348         * math/e_exp10l.c: Likewise.
29349         * math/e_exp2l.c: Likewise.
29350         * math/e_j0l.c: Likewise.
29351         * math/e_j1l.c: Likewise.
29352         * math/e_jnl.c: Likewise.
29353         * math/e_lgammal_r.c: Likewise.
29354         * math/e_rem_pio2l.c: Likewise.
29355         * math/e_scalb.c: Likewise.
29356         * math/e_scalbf.c: Likewise.
29357         * math/e_scalbl.c: Likewise.
29358         * math/k_cosl.c: Likewise.
29359         * math/k_sinl.c: Likewise.
29360         * math/k_tanl.c: Likewise.
29361         * math/s_cacoshf.c: Likewise.
29362         * math/s_catan.c: Likewise.
29363         * math/s_catanf.c: Likewise.
29364         * math/s_catanh.c: Likewise.
29365         * math/s_catanhf.c: Likewise.
29366         * math/s_catanhl.c: Likewise.
29367         * math/s_catanl.c: Likewise.
29368         * math/s_ccosh.c: Likewise.
29369         * math/s_ccoshf.c: Likewise.
29370         * math/s_ccoshl.c: Likewise.
29371         * math/s_cexp.c: Likewise.
29372         * math/s_cexpf.c: Likewise.
29373         * math/s_cexpl.c: Likewise.
29374         * math/s_clog.c: Likewise.
29375         * math/s_clog10.c: Likewise.
29376         * math/s_clog10f.c: Likewise.
29377         * math/s_clog10l.c: Likewise.
29378         * math/s_clogf.c: Likewise.
29379         * math/s_clogl.c: Likewise.
29380         * math/s_csin.c: Likewise.
29381         * math/s_csinf.c: Likewise.
29382         * math/s_csinh.c: Likewise.
29383         * math/s_csinhf.c: Likewise.
29384         * math/s_csinhl.c: Likewise.
29385         * math/s_csinl.c: Likewise.
29386         * math/s_csqrt.c: Likewise.
29387         * math/s_csqrtf.c: Likewise.
29388         * math/s_csqrtl.c: Likewise.
29389         * math/s_ctan.c: Likewise.
29390         * math/s_ctanf.c: Likewise.
29391         * math/s_ctanh.c: Likewise.
29392         * math/s_ctanhf.c: Likewise.
29393         * math/s_ctanhl.c: Likewise.
29394         * math/s_ctanl.c: Likewise.
29395         * math/s_ldexp.c: Likewise.
29396         * math/s_ldexpf.c: Likewise.
29397         * math/s_ldexpl.c: Likewise.
29398         * math/s_significand.c: Likewise.
29399         * math/s_significandf.c: Likewise.
29400         * math/s_significandl.c: Likewise.
29401         * math/w_acos.c: Likewise.
29402         * math/w_acosf.c: Likewise.
29403         * math/w_acosh.c: Likewise.
29404         * math/w_acoshf.c: Likewise.
29405         * math/w_acoshl.c: Likewise.
29406         * math/w_acosl.c: Likewise.
29407         * math/w_asin.c: Likewise.
29408         * math/w_asinf.c: Likewise.
29409         * math/w_asinl.c: Likewise.
29410         * math/w_atan2.c: Likewise.
29411         * math/w_atan2f.c: Likewise.
29412         * math/w_atan2l.c: Likewise.
29413         * math/w_atanh.c: Likewise.
29414         * math/w_atanhf.c: Likewise.
29415         * math/w_atanhl.c: Likewise.
29416         * math/w_cosh.c: Likewise.
29417         * math/w_coshf.c: Likewise.
29418         * math/w_coshl.c: Likewise.
29419         * math/w_dremf.c: Likewise.
29420         * math/w_exp10.c: Likewise.
29421         * math/w_exp10f.c: Likewise.
29422         * math/w_exp10l.c: Likewise.
29423         * math/w_exp2.c: Likewise.
29424         * math/w_exp2f.c: Likewise.
29425         * math/w_fmod.c: Likewise.
29426         * math/w_fmodf.c: Likewise.
29427         * math/w_fmodl.c: Likewise.
29428         * math/w_hypot.c: Likewise.
29429         * math/w_hypotf.c: Likewise.
29430         * math/w_hypotl.c: Likewise.
29431         * math/w_j0.c: Likewise.
29432         * math/w_j0f.c: Likewise.
29433         * math/w_j0l.c: Likewise.
29434         * math/w_j1.c: Likewise.
29435         * math/w_j1f.c: Likewise.
29436         * math/w_j1l.c: Likewise.
29437         * math/w_jn.c: Likewise.
29438         * math/w_jnf.c: Likewise.
29439         * math/w_jnl.c: Likewise.
29440         * math/w_lgamma.c: Likewise.
29441         * math/w_lgamma_r.c: Likewise.
29442         * math/w_lgammaf.c: Likewise.
29443         * math/w_lgammaf_r.c: Likewise.
29444         * math/w_lgammal.c: Likewise.
29445         * math/w_lgammal_r.c: Likewise.
29446         * math/w_log.c: Likewise.
29447         * math/w_log10.c: Likewise.
29448         * math/w_log10f.c: Likewise.
29449         * math/w_log10l.c: Likewise.
29450         * math/w_log2.c: Likewise.
29451         * math/w_log2f.c: Likewise.
29452         * math/w_log2l.c: Likewise.
29453         * math/w_logf.c: Likewise.
29454         * math/w_logl.c: Likewise.
29455         * math/w_pow.c: Likewise.
29456         * math/w_powf.c: Likewise.
29457         * math/w_powl.c: Likewise.
29458         * math/w_remainder.c: Likewise.
29459         * math/w_remainderf.c: Likewise.
29460         * math/w_remainderl.c: Likewise.
29461         * math/w_scalb.c: Likewise.
29462         * math/w_scalbf.c: Likewise.
29463         * math/w_scalbl.c: Likewise.
29464         * math/w_sinh.c: Likewise.
29465         * math/w_sinhf.c: Likewise.
29466         * math/w_sinhl.c: Likewise.
29467         * math/w_sqrt.c: Likewise.
29468         * math/w_sqrtf.c: Likewise.
29469         * math/w_sqrtl.c: Likewise.
29470         * math/w_tgamma.c: Likewise.
29471         * math/w_tgammaf.c: Likewise.
29472         * math/w_tgammal.c: Likewise.
29473
29474         * po/ja.po: Update from translation team.
29475
29476 2011-09-29  Andreas Jaeger  <aj@suse.de>
29477
29478         [BZ #13179]
29479         * sunrpc/netname.c (netname2host): Fix logic.
29480
29481         [BZ #6779]
29482         [BZ #6783]
29483         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
29484         correctly.
29485         * math/w_remainder.c (__remainder): Likewise.
29486         * math/w_remainderf.c (__remainderf): Likewise.
29487         * math/libm-test.inc (remainder_test): Add test cases.
29488
29489 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29490
29491         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
29492         sdiv_qrnnd.
29493
29494 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29495
29496         * string/test-memcmp.c: Avoid unncessary #defines.
29497         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29498
29499 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29500
29501         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
29502         Use new sse2 version for core i3 - i7 as it's faster
29503         than sse42 version.
29504         (bit_Prefer_PMINUB_for_stringop): New.
29505         * sysdeps/x86_64/rawmemchr.S: Update.
29506         Replace with faster SSE2 version.
29507         * sysdeps/x86_64/memrchr.S: New file.
29508         * sysdeps/x86_64/memchr.S: Update.
29509         Replace with faster SSE2 version.
29510
29511 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
29512
29513         * elf/dl-load.c (lose): Add cast to avoid warning.
29514
29515 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29516
29517         * po/ca.po: Update from translation team.
29518
29519         * inet/getnetgrent_r.c: Hook up nscd.
29520         * nscd/Makefile (routines): Add nscd_netgroup.
29521         (nscd-modules): Add netgroupcache.
29522         (CFLAGS-netgroupcache.c): Define.
29523         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
29524         (cache_search): Add const to second parameter.
29525         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
29526         INNETGR.
29527         (dbs): Add netgrdb entry.
29528         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
29529         (verify_persistent_db): Handle netgrdb.
29530         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
29531         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
29532         GETFDNETGR.
29533         (netgroup_response_header): Define.
29534         (innetgroup_response_header): Define.
29535         (datahead): Add netgroup_response_header and innetgroup_response_header
29536         elements.
29537         * nscd/nscd.conf: Add entries for netgroup cache.
29538         * nscd/nscd.h (dbtype): Add netgrdb.
29539         (_PATH_NSCD_NETGROUP_DB): Define.
29540         (netgroup_iov_disabled): Declare.
29541         (xmalloc, xcalloc, xrealloc): Move declarations here.
29542         (cache_search): Adjust prototype.
29543         Add netgroup-related prototypes.
29544         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
29545         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
29546         (__nscd_innetgr): Declare.
29547         * nscd/selinux.c (perms): Use access_vector_t as element type and
29548         add netgroup-related initializers.
29549         * nscd/netgroupcache.c: New file.
29550         * nscd/nscd_netgroup.c: New file.
29551         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
29552         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
29553         For four parameters use innetgr.
29554         * nss/nss_files/files-init.c: Add definition and callback for netgr.
29555         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
29556         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
29557         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
29558
29559         * nscd/connections.c (register_traced_file): Don't register file
29560         for disabled databases.
29561
29562 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
29563
29564         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
29565
29566         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
29567         from tree and freeing node.
29568
29569 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
29570
29571         * nss/nsswitch.c (__nss_database_lookup): Handle
29572         nss_parse_service_list out of memory case.
29573
29574 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
29575
29576         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
29577         out of memory case.
29578
29579 2011-10-04  Andreas Schwab  <schwab@redhat.com>
29580
29581         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
29582         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
29583         pass it down.
29584         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
29585         elf_machine_rela, elf_machine_lazy_rel.
29586         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
29587         (ELF_DYNAMIC_DO_REL): Likewise.
29588         (ELF_DYNAMIC_DO_RELA): Likewise.
29589         (ELF_DYNAMIC_RELOCATE): Likewise.
29590         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
29591         to ELF_DYNAMIC_DO_REL.
29592         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
29593         (dl_main): In trace mode always set __RTLD_NOIFUNC.
29594         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
29595         elf_machine_rela.
29596         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
29597         skip_ifunc, don't call ifunc function if non-zero.
29598         (elf_machine_rela): Likewise.
29599         (elf_machine_lazy_rel): Likewise.
29600         (elf_machine_lazy_rela): Likewise.
29601         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
29602         (elf_machine_lazy_rel): Likewise.
29603         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
29604         Likewise.
29605         (elf_machine_lazy_rel): Likewise.
29606         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29607         Likewise.
29608         (elf_machine_lazy_rel): Likewise.
29609         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
29610         (elf_machine_lazy_rel): Likewise.
29611         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
29612         (elf_machine_lazy_rel): Likewise.
29613         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
29614         (elf_machine_lazy_rel): Likewise.
29615         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
29616         (elf_machine_lazy_rel): Likewise.
29617         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
29618         (elf_machine_lazy_rel): Likewise.
29619         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
29620         (elf_machine_lazy_rel): Likewise.
29621
29622 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
29623
29624         * nss/nss_files/files-init.c (_nss_files_init): Use static
29625         initialization for all the *_traced_file variables.
29626
29627 2011-09-28  Andreas Schwab  <schwab@redhat.com>
29628
29629         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29630
29631 2011-09-27  Roland McGrath  <roland@hack.frob.com>
29632
29633         [BZ #13226]
29634         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
29635
29636 2011-09-27  Andreas Schwab  <schwab@redhat.com>
29637
29638         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
29639         Reread the line before reparsing it.
29640
29641 2011-09-26  Andreas Schwab  <schwab@redhat.com>
29642
29643         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
29644
29645 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
29646             Maxim Kuvyrkov  <maxim@codesourcery.com>
29647             Joseph Myers  <joseph@codesourcery.com>
29648
29649         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
29650         if needed for __stack_chk_guard.
29651
29652 2011-09-19  Roland McGrath  <roland@hack.frob.com>
29653
29654         * sysdeps/posix/spawni.c (script_execute): Always define it.
29655         It will be optimized away if unused.
29656         (maybe_script_execute): New function.
29657         (__spawni): Call it.
29658
29659         * Makerules: Don't include tls.make.
29660         (config-tls): Always set to thread.
29661         * tls.make.c: File removed.
29662
29663 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
29664
29665         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
29666         * config.make.in (CPPFLAGS-config): New substituted variable.
29667
29668 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
29669
29670         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
29671
29672         [BZ #13192]
29673         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
29674         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
29675
29676 2011-09-15  Roland McGrath  <roland@hack.frob.com>
29677
29678         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
29679         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
29680         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
29681         (CALL_FAIL): Likewise.
29682         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
29683         (CALL_FAIL): Macro removed.
29684         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
29685
29686 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
29687
29688         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
29689         for __FINITE_MATH_ONLY__ == 1.
29690
29691 2011-09-15  Andreas Schwab  <schwab@redhat.com>
29692
29693         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
29694         __ieee754_sqrt instead of sqrt.
29695         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
29696         __ieee754_sqrtf instead of sqrtf.
29697         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
29698         __floorf instead of floorf.
29699         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
29700         __floorf, __truncf instead of floorf, truncf.
29701
29702 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
29703
29704         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
29705
29706         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
29707         __extern_always_inline.
29708         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
29709         32-bit.
29710
29711 2011-09-14  Andreas Schwab  <schwab@redhat.com>
29712
29713         * elf/rtld.c (dl_main): Also relocate in dependency order when
29714         doing symbol dependency testing.
29715
29716 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
29717
29718         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29719         Always define `refsym'.
29720
29721 2011-09-13  Andreas Schwab  <schwab@redhat.com>
29722
29723         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
29724         (__FD_ELT): Renamed from __FDELT.
29725         * misc/bits/select2.h (__FD_ELT): Likewise.
29726         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
29727         __FD_MASK instead of __FDELT, __FDMASK.
29728         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
29729         Likewise.
29730         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
29731         Likewise.
29732
29733         * elf/Makefile (gen-ldd): Fix pattern.
29734
29735         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
29736         (init_tls): Likewise.
29737
29738 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
29739
29740         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
29741
29742 2011-09-12  Andreas Schwab  <schwab@redhat.com>
29743
29744         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
29745         `struct cmsghdr *' instead of `void *'.
29746         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
29747         Likewise.
29748
29749 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
29750
29751         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
29752         if non-absolute.
29753         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
29754         ldd_rewrite_script.
29755
29756 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
29757
29758         * configure.in: Remove --with-tls option.
29759         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
29760         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
29761         out in case it is missing.
29762         * sysdeps/ia64/elf/configure.in: Likewise.
29763         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
29764         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
29765         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
29766         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
29767         * sysdeps/sh/elf/configure.in: Likewise.
29768         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
29769         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
29770         * sysdeps/x86_64/elf/configure.in: Likewise.
29771         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
29772         * sysdeps/mach/hurd/tls.h: Likewise.
29773
29774         [BZ #13067]
29775         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
29776
29777         [BZ #13090]
29778         * configure.in: Fix use of AC_INIT.
29779
29780         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
29781
29782 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
29783
29784         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
29785         __set_errno.
29786         * malloc/hooks.c: Likewise.
29787
29788         [BZ #11929]
29789         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
29790         variables statically.
29791         (narenas): Initialize.
29792         (list_lock): Initialize.
29793         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
29794         initializtion of main_arena and list_lock.  Small cleanups.
29795         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
29796         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
29797         Add initializers to main_arena and mp_.
29798         (malloc_state): Remove pagesize member.  Change all users to use
29799         GLRO(dl_pagesize).
29800
29801         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
29802         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
29803         is always initialized.
29804
29805         * malloc/malloc.c: Removed unused configurations and dead code.
29806         * malloc/arena.c: Likewise.
29807         * malloc/hooks.c: Likewise.
29808         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
29809
29810         * include/tls.h: Removed.  USE___THREAD must always be defined.
29811         * bits/libc-tsd.h: Don't handle !USE___THREAD.
29812         * elf/dl-libc.c: Likewise.
29813         * elf/dl-tsd.c: Likewise.
29814         * include/errno.h: Likewise.
29815         * include/netdb.h: Likewise.
29816         * include/resolv.h: Likewise.
29817         * inet/herrno-loc.c: Likewise.
29818         * inet/herrno.c: Likewise.
29819         * malloc/arena.c: Likewise.
29820         * malloc/hooks.c: Likewise.
29821         * malloc/malloc.c: Likewise.
29822         * resolv/res-state.c: Likewise.
29823         * resolv/res_libc.c: Likewise.
29824         * sysdeps/i386/dl-machine.h: Likewise.
29825         * sysdeps/ia64/dl-machine.h: Likewise.
29826         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29827         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29828         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29829         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29830         * sysdeps/sh/dl-machine.h: Likewise.
29831         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29832         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29833         * sysdeps/unix/i386/sysdep.S: Likewise.
29834         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
29835         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
29836         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
29837         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
29838         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
29839         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
29840         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
29841         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29842         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29843         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
29844         * sysdeps/unix/x86_64/sysdep.S: Likewise.
29845         * sysdeps/x86_64/dl-machine.h: Likewise.
29846         * tls.make.c: Likewise.
29847
29848         * configure.in: Remove --with-__thread option.  Make tests for
29849         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
29850         tls_model attribute fail if no support is available.  Remove
29851         USE_IN_LIBIO.
29852         * Makeconfig: Adjust for dropped configure option.  All features are
29853         now mandatory.
29854         * Makerules: Likewise.
29855         * Versions.def: Likewise.
29856         * argp/argp-fmtstream.c: Likewise.
29857         * argp/argp-fmtstream.h: Likewise.
29858         * argp/argp-help.c: Likewise.
29859         * assert/assert.c: Likewise.
29860         * config.h.in: Likewise.
29861         * config.make.in: Likewise.
29862         * configure: Likewise.
29863         * configure.in: Likewise.
29864         * csu/Versions: Likewise.
29865         * csu/init.c: Likewise.
29866         * elf/tst-audit2.c: Likewise.
29867         * elf/tst-tls10.c: Likewise.
29868         * elf/tst-tls10.h: Likewise.
29869         * elf/tst-tls11.c: Likewise.
29870         * elf/tst-tls12.c: Likewise.
29871         * elf/tst-tls14.c: Likewise.
29872         * elf/tst-tlsmod11.c: Likewise.
29873         * elf/tst-tlsmod12.c: Likewise.
29874         * elf/tst-tlsmod13.c: Likewise.
29875         * elf/tst-tlsmod13a.c: Likewise.
29876         * elf/tst-tlsmod14a.c: Likewise.
29877         * elf/tst-tlsmod15b.c: Likewise.
29878         * elf/tst-tlsmod16a.c: Likewise.
29879         * elf/tst-tlsmod16b.c: Likewise.
29880         * elf/tst-tlsmod7.c: Likewise.
29881         * elf/tst-tlsmod8.c: Likewise.
29882         * elf/tst-tlsmod9.c: Likewise.
29883         * gmon/gmon.c: Likewise.
29884         * grp/fgetgrent_r.c: Likewise.
29885         * grp/putgrent.c: Likewise.
29886         * hurd/fopenport.c: Likewise.
29887         * include/libc-symbols.h: Likewise.
29888         * include/tls.h: Likewise.
29889         * intl/gettextP.h: Likewise.
29890         * intl/loadinfo.h: Likewise.
29891         * locale/global-locale.c: Likewise.
29892         * locale/localeinfo.h: Likewise.
29893         * mach/devstream.c: Likewise.
29894         * malloc/arena.c: Likewise.
29895         * malloc/set-freeres.c: Likewise.
29896         * misc/err.c: Likewise.
29897         * misc/getttyent.c: Likewise.
29898         * misc/mntent_r.c: Likewise.
29899         * posix/getopt.c: Likewise.
29900         * posix/wordexp.c: Likewise.
29901         * pwd/fgetpwent_r.c: Likewise.
29902         * resolv/Versions: Likewise.
29903         * resolv/res_hconf.c: Likewise.
29904         * shadow/fgetspent_r.c: Likewise.
29905         * shadow/putspent.c: Likewise.
29906         * stdio-common/printf_fphex.c: Likewise.
29907         * stdio-common/tmpfile.c: Likewise.
29908         * stdlib/abort.c: Likewise.
29909         * stdlib/fmtmsg.c: Likewise.
29910         * sunrpc/auth_unix.c: Likewise.
29911         * sunrpc/clnt_perr.c: Likewise.
29912         * sunrpc/clnt_tcp.c: Likewise.
29913         * sunrpc/clnt_udp.c: Likewise.
29914         * sunrpc/clnt_unix.c: Likewise.
29915         * sunrpc/openchild.c: Likewise.
29916         * sunrpc/svc_simple.c: Likewise.
29917         * sunrpc/svc_tcp.c: Likewise.
29918         * sunrpc/svc_udp.c: Likewise.
29919         * sunrpc/svc_unix.c: Likewise.
29920         * sunrpc/xdr.c: Likewise.
29921         * sunrpc/xdr_array.c: Likewise.
29922         * sunrpc/xdr_rec.c: Likewise.
29923         * sunrpc/xdr_ref.c: Likewise.
29924         * sunrpc/xdr_stdio.c: Likewise.
29925
29926 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29927
29928         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29929
29930 2011-07-03  Andreas Jaeger  <aj@suse.de>
29931
29932         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
29933         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
29934         regenerate with gen-libm-tests.pl.
29935
29936 2010-05-12  Petr Baudis  <pasky@suse.cz>
29937
29938         [BZ #11589]
29939         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
29940         around j0() zero points by switching to j1().
29941         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29942         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29943         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29944         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29945
29946 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29947
29948         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
29949         instead of 0.
29950         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
29951         instead of 0.
29952         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29953         Patch in part by Pavel Roskin <proski@gnu.org>.
29954
29955         [BZ #13138]
29956         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
29957         realloc.
29958         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
29959         Free memory block if necessary.
29960
29961         [BZ #12847]
29962         * libio/genops.c (INTDEF): For string streams the _lock pointer can
29963         be NULL.  Don't lock in this case.
29964
29965 2011-09-09  Roland McGrath  <roland@hack.frob.com>
29966
29967         * elf/elf.h (ELFOSABI_GNU): New macro.
29968         (ELFOSABI_LINUX): Define to that.
29969
29970 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
29971
29972         * string/strncat.c (strncat): Undef the symbol in case it has been
29973         defined in bits/string.h.
29974
29975 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29976
29977         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
29978
29979         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
29980         link map.
29981
29982 2011-08-17  Andreas Jaeger  <aj@suse.de>
29983
29984         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
29985
29986 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
29987             Ian Lance Taylor  <iant@google.com>
29988
29989         * math/libm-test.inc (lround_test): New testcase.
29990         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
29991
29992 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
29993
29994         * Makefile: Remove support for automatic cvs check-ins.
29995         * Makerules: Likewise.
29996         * config.make.in: Likewise.
29997         * configure.in: Likewise.
29998         * intl/Makefile: Likewise.
29999         * locale/Makefile: Likewise.
30000         * po/Makefile: Likewise.
30001         * posix/Makefile: Likewise.
30002         * sysdeps/gnu/Makefile: Likewise.
30003         * sysdeps/mach/hurd/Makefile: Likewise.
30004         * sysdeps/sparc/sparc32/Makefile: Likewise.
30005
30006         [BZ #13118]
30007         * posix/Makefile (bug-regex32-ENV): Define.
30008         Patch by John Stanley <jpsinthemix@verizon.net>.
30009
30010         * misc/Makefile (headers): Add bits/select2.h.
30011         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
30012         * misc/bits/select2.h: New file.
30013         * include/bits/select2.h: New file.
30014         * debug/Makefile (routines): Add fdelt_chk.
30015         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
30016         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
30017         FD_ISSET.
30018         * debug/fdelt_chk.c: New file.
30019
30020         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
30021         * wcsmbs/test-wmemcmp.c: Likewise.
30022         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
30023         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
30024
30025 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30026
30027         * string/Makefile (strop-tests): Add memcmp.
30028         * string/test-wmemcmp.c: New file.
30029         * string/test-memcmp.c: Add wmemcmp support.
30030
30031 2011-09-08  Roland McGrath  <roland@hack.frob.com>
30032
30033         [BZ #13153]
30034         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
30035         2011-07-19 change.
30036
30037         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
30038         garbage value in a __mach_port_mod_refs call in the cases of the
30039         task-self and thread-self ports.
30040
30041 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30042
30043         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
30044
30045 2011-09-08  Andreas Schwab  <schwab@redhat.com>
30046
30047         * elf/dl-load.c (lose): Check for non-null L.
30048
30049 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30050
30051         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
30052
30053         * elf/dl-libc.c (dlerror_run): Pass back error code from
30054         dl_catch_error.
30055
30056         [BZ #13123]
30057         * elf/dl-load.c (lose): Free l_origin if it is valid.
30058
30059         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
30060         names.
30061         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30062         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30063         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30064         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30065         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30066         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
30067
30068 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30069
30070         * sysdeps/powerpc/fpu/e_hypot.c: New file.
30071         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
30072         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
30073         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
30074         * sysdeps/powerpc/fpu/k_cosf.c: New file.
30075         * sysdeps/powerpc/fpu/k_sinf.c: New file.
30076         * sysdeps/powerpc/fpu/s_cosf.c: New file.
30077         * sysdeps/powerpc/fpu/s_sinf.c: New file.
30078         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
30079         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
30080
30081 2011-08-15  Alan Modra  <amodra@gmail.com>
30082
30083         [BZ #13092]
30084         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
30085         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
30086         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
30087         ppc_mcount to static-only-routines.
30088         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
30089         __mcount_internal.
30090         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
30091         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
30092
30093 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
30094
30095         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
30096         for finite and infinity parameters.
30097
30098 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30099
30100         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
30101         and add nop instructions for throughput optimization.
30102         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
30103
30104 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
30105
30106         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
30107         aligned copy for power7 with vector-scalar instructions.
30108         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
30109
30110 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
30111
30112         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
30113         AVX check.
30114
30115 2011-09-07  Andreas Schwab  <schwab@redhat.com>
30116
30117         [BZ #13144]
30118         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
30119         last change.
30120
30121 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30122
30123         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30124         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
30125         syscall wrapper around clock_gettime in __vdso_clock_gettime.
30126         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
30127         clock_gettime.
30128
30129 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30130
30131         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
30132         Forgot to demangle the pointer.
30133
30134         * sysdeps/i386/sysdep.h: Define atom_text_section.
30135         * sysdeps/x86_64/sysdep.h: Likewise.
30136         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
30137         section with atom_text_section.
30138         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30139         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30140         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30141         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30142         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
30143
30144         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
30145         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
30146         already be defined.  Change to take two parameters and don't assign
30147         result to variable.  Adjust all users.
30148         Define INTERNAL_GETTIME if not already defined.
30149         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
30150         call.
30151         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
30152         HAVE_CLOCK_GETTIME_VSYSCALL.
30153         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
30154
30155         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
30156         gettimeofday vsyscall, just use time.
30157
30158 2011-09-06  Andreas Schwab  <schwab@redhat.com>
30159
30160         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
30161         <errno.h>.
30162
30163 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30164
30165         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
30166         syscall on x86-64.
30167         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
30168         syscall.
30169         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30170         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
30171         syscall if possible.
30172
30173 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30174
30175         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
30176         e_ident.  Don't pass to find_mapsXX.
30177         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
30178
30179 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30180
30181         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30182         strchr-sse2-no-bsf strrchr-sse2-no-bsf
30183         * sysdeps/x86_64/multiarch/strchr.S: Update.
30184         Check bit_slow_BSF bit.
30185         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
30186         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
30187         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
30188
30189 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30190
30191         [BZ #13134]
30192         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
30193         before glibc 2.15.
30194         (tryshell): Define.
30195         (__spawni): Change last parameter to be flag.  Test
30196         SPAWN_XFLAGS_USE_PATH flag to use path or not.
30197         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
30198         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
30199         * posix/spawni.c: Likewise.
30200         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
30201         * posix/spawnp.c: Likewise.  Change normal version to use
30202         SPAWN_XFLAGS_USE_PATH.
30203         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
30204         SPAWN_XFLAGS_TRY_SHELL.
30205
30206         [BZ #13150]
30207         * posix/glob.h: Remove gcc 1.x support.
30208
30209         [BZ #13068]
30210         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
30211
30212 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30213
30214         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30215         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
30216         strrchr-sse2-bsf
30217         * sysdeps/i386/i686/multiarch/strchr.S: New file.
30218         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
30219         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
30220         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
30221         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
30222         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
30223
30224 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30225
30226         * sysdeps/x86_64/wcscmp.S: New file.
30227
30228         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
30229         wcscmp-c wcscmp-sse2
30230         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
30231         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
30232         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
30233         * wcsmbs/wcscmp.c: Allow renaming.
30234
30235 2011-09-05  David S. Miller  <davem@davemloft.net>
30236
30237         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
30238         stack slot, rather than the struct return pointer slot.
30239         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
30240         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
30241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
30242         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
30243
30244 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30245
30246         * po/ja.po: Update from translation team.
30247
30248         [BZ #13144]
30249         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
30250         kernel in 64-bit binaries.
30251
30252 2011-09-01  David S. Miller  <davem@davemloft.net>
30253
30254         * elf/elf.h (HWCAP_SPARC_*): Move to..
30255         * sysdeps/sparc/sysdep.h: this new file and add new values.
30256         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
30257         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
30258         _DL_HWCAP_COUNT to 24.
30259         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
30260         entries.
30261         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
30262         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
30263         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
30264         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
30265         instead of magic constants.
30266         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30267
30268 2011-08-31  David S. Miller  <davem@davemloft.net>
30269
30270         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
30271         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
30272         Reimplement to do errno handling inline.
30273         (SYSCALL_ERROR_HANDLER): New macro.
30274         (__SYSCALL_STRING): Do not do errno handling in asm.
30275         (__CLONE_SYSCALL_STRING): Delete.
30276         (__INTERNAL_SYSCALL_STRING): Delete.
30277         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
30278         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
30279         (PSEUDO): Reimplement to do errno handling inline.
30280         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
30281         (SYSCALL_ERROR_HANDLER): New macro.
30282         (__SYSCALL_STRING): Do not do errno handling in asm.
30283         (__CLONE_SYSCALL_STRING): Delete.
30284         (__INTERNAL_SYSCALL_STRING): Delete.
30285         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
30286         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
30287         i386.
30288         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
30289         (inline_syscall*): Add 'err' argument.
30290         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
30291         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
30292         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
30293         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
30294
30295         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
30296         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
30297
30298 2011-08-30  Andreas Schwab  <schwab@redhat.com>
30299
30300         * elf/rtld.c (dl_main): Relocate objects in dependency order.
30301
30302 2011-08-29  Jiri Olsa <jolsa@redhat.com>
30303
30304         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
30305         directive.
30306
30307 2011-08-24  David S. Miller  <davem@davemloft.net>
30308
30309         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
30310
30311 2011-08-24  Andreas Schwab  <schwab@redhat.com>
30312
30313         * elf/Makefile: Add rules to build and run unload8 test.
30314         * elf/unload8.c: New file.
30315         * elf/unload8mod1.c: New file.
30316         * elf/unload8mod1x.c: New file.
30317         * elf/unload8mod2.c: New file.
30318         * elf/unload8mod3.c: New file.
30319
30320         * elf/dl-close.c (_dl_close_worker): Reset private search list if
30321         it wasn't used.
30322
30323 2011-08-23  David S. Miller  <davem@davemloft.net>
30324
30325         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
30326         subtract stack bias.
30327         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
30328         %sp not %fp in calculations.
30329         (_JMPBUF_UNWINDS_ADJ): Likewise.
30330
30331         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
30332         (aio_suspend): Call it to force an exception region around the
30333         AIO_MISC_WAIT() invocation.
30334
30335 2011-08-23  Andreas Schwab  <schwab@redhat.com>
30336
30337         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
30338         backslash.
30339
30340 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
30341
30342         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
30343         protection macro.
30344         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
30345         and <dl-machine.h>.
30346         (Elf64_FuncDesc): Remove.
30347
30348 2011-08-22  David S. Miller  <davem@davemloft.net>
30349
30350         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
30351         sigaltstack check, add missing cfi directives.
30352         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
30353         missing cfi directives, and sigaltstack handling.
30354
30355 2011-08-16  Andreas Schwab  <schwab@redhat.com>
30356
30357         [BZ #11724]
30358         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
30359         object is seen twice.
30360         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30361
30362         * elf/Makefile (distribute): Add tst-initorder2.c.
30363         (tests): Add tst-initorder2.
30364         (modules-names): Add tst-initorder2a tst-initorder2b
30365         tst-initorder2c tst-initorder2d.  Add rules to build them.
30366         ($(objpfx)tst-initorder2.out): New rule.
30367         * elf/tst-initorder2.c: New file.
30368         * elf/tst-initorder2.exp: New file.
30369
30370 2011-08-22  Andreas Schwab  <schwab@redhat.com>
30371
30372         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
30373
30374         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
30375         dependencies back to end of function.
30376
30377         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
30378         $(elfobjdir)/ld.so.
30379
30380 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
30381
30382         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
30383         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
30384         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
30385         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
30386         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
30387         of __vdso_gettimeofday.
30388         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
30389         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
30390         attribute_hidden.
30391         (_libc_vdso_platform_setup): Remove initialization of
30392         __vdso_gettimeofday and __vdso_time.
30393
30394 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30395
30396         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
30397         and fgetc_unlocked.
30398         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
30399         getc_unlocked.
30400
30401         * elf/dl-open.c (add_to_global): Report additions to the global scope
30402         for LD_DEBUG=scopes.
30403         (dl_open_worker): Also print scope of newly loaded dependencies.
30404         (_dl_show_scope): Indicate if there is no scope.
30405
30406         [BZ #13114]
30407         * stdio-common/Makefile (tests): Add bug24.
30408         * stdio-common/bug24.c: New file.
30409
30410 2011-08-19  Andreas Jaeger  <aj@suse.de>
30411
30412         [BZ #13114]
30413         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
30414         non-existant file when using close-on-exec mode.
30415
30416 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30417
30418         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
30419         the very first instruction.
30420
30421         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
30422         the CFI state in the end.
30423         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
30424         inclusion of dl-trampoline.h.
30425         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
30426
30427 2011-08-19  Andreas Schwab  <schwab@redhat.com>
30428
30429         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
30430         expectations for long double.
30431
30432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
30433         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
30434
30435 2011-08-14  David S. Miller  <davem@davemloft.net>
30436
30437         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
30438         artificual limit depends upon the system page size.
30439
30440 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30441
30442         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
30443         * resolv/Makefile: Define CFLAGS-libresolv.
30444
30445 2011-08-17  Andreas Schwab  <schwab@redhat.com>
30446
30447         * nss/makedb.c (compute_tables): Make variables used in nested
30448         function static.
30449
30450 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30451
30452         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
30453         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
30454         if buffer was too small.
30455
30456         * elf/pldd.c (main): Attach to all threads in the process.
30457         Rewrite /proc handling to use *at functions.
30458
30459 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
30460
30461         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
30462         specifies first scope to show.
30463         (dl_open_worker): Update callers.  Move printing scope of new
30464         object to before the relocation.
30465         * elf/rtld.c (dl_main): Update _dl_show_scope call.
30466         * sysdeps/generic/ldsodefs.h: Update declaration.
30467
30468         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
30469         string for the scope number.
30470
30471 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
30472
30473         * nscd/servicescache.c (cache_addserv): Make sure written is always
30474         initialized.
30475
30476 2011-08-14  Roland McGrath  <roland@hack.frob.com>
30477
30478         * sysdeps/i386/i486/bits/atomic.h
30479         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
30480         statement expression, so as to suppress "set but not used" warning.
30481         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
30482
30483         * string/strncat.c (STRNCAT): Use prototype definition.
30484
30485         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
30486         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
30487         -Iprograms here.
30488         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
30489         (localedef-modules): Add localedef.
30490         (locale-modules): Add locale.
30491
30492         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
30493         * elf/rtld.c (dl_main): Invert order of assignment in last change,
30494         to avoid a warning.
30495
30496 2011-08-14  David S. Miller  <davem@davemloft.net>
30497
30498         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
30499         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
30500
30501 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
30502
30503         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
30504         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
30505         * elf/rtld.c (dl_main): Set l_name of vDSO.
30506         Call _dl_show_scope when DL_DEBUG_SCOPES.
30507         (process_dl_debug): Recognize scopes flag and also set it for all.
30508         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
30509         Declare _dl_show_scope.
30510
30511         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
30512         (do_dlopen): Pass caller_dlopen to dl_open.
30513         (__libc_dlopen_mode): Initialize caller_dlopen.
30514
30515         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
30516         of libc.  Make tolower call locale-independent.  Optimize a bit by
30517         using isdigit instead of isalnum.
30518         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
30519
30520 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
30521
30522         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
30523         was a dependency or dynamically loaded.
30524
30525 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
30526
30527         * intl/l10nflist.c: Allow architecture-specific pop function.
30528         * sysdeps/x86_64/l10nflist.c: New file.
30529
30530         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
30531         classification.
30532
30533 2011-08-10  Andreas Schwab  <schwab@redhat.com>
30534
30535         * include/dirent.h: Add libc_hidden_proto for scandirat and
30536         scandirat64.  Don't declare __scandirat64.
30537         * dirent/scandirat.c: Add libc_hidden_def.
30538         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
30539         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
30540
30541 2011-08-10  David S. Miller  <davem@davemloft.net>
30542
30543         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
30544         enum.
30545         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30546         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30547         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30548
30549 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
30550
30551         * Versions.def [libc]: Add GLIBC_2.15.
30552         * dirent/Makefile (routines): Add scandirat and scandirat64.
30553         * dirent/Versions [libc]: Export scandirat and scandirat64 for
30554         GLIBC_2.15.
30555         * dirent/dirent.h: Declare scandirat and scandirat64.
30556         * dirent/scandirat.c: New file.
30557         * dirent/scandirat64.c: New file.
30558         * sysdeps/wordsize-64/scandirat.c: New file.
30559         * sysdeps/wordsize-64/scandirat64.c: New file.
30560         * dirent/opendir.c: Define opendirat.
30561         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
30562         using scandirat.
30563         * dirent/scandir64.c: Adjust for scandir.c change.
30564         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
30565         __scandirat64, and __scandir_cancel_handler.
30566         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
30567         additional parameter and use openat instead of open (outside of ld.so).
30568         Add new __opendir as wrapper around __opendirat.
30569         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
30570         here without requiring old scandirat implementation.
30571
30572 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
30573
30574         * dirent/scandir.c (cancel_handler): Renamed to
30575         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
30576         defined.  Adjust users.
30577         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
30578         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
30579
30580 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
30581
30582         * string/test-string.h (IMPL): Use __STRING to expand name and then
30583         stringify it.
30584
30585         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
30586         of cleanups.
30587
30588 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30589
30590         * string/Makefile: Update.
30591         (strop-tests): Append strncat.
30592         * string/test-wcscmp.c: New file.
30593         New comprehensive test for wcscmp.
30594         * string/test-strcmp.c: Update.
30595         (WIDE): New define.
30596
30597 2011-07-22  Andreas Schwab  <schwab@redhat.com>
30598
30599         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
30600         line.
30601
30602 2011-07-26  Andreas Schwab  <schwab@redhat.com>
30603
30604         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
30605         encoding to ACE if AI_IDN.
30606
30607 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
30608
30609         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
30610         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
30611
30612 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30613
30614         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
30615         Fix overflow bug in strncat.
30616         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30617
30618         * string/test-strncat.c: Update.
30619         Add new tests for checking overflow bugs.
30620
30621 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30622
30623         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30624         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
30625         * sysdeps/i386/i686/multiarch/strcat.S: New file.
30626         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
30627         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
30628         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
30629         * sysdeps/i386/i686/multiarch/strncat.S: New file.
30630         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
30631         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
30632
30633         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
30634         (USE_AS_STRCAT): Define.
30635         Add strcat and strncat support.
30636         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30637
30638 2011-07-25  Andreas Schwab  <schwab@redhat.com>
30639
30640         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
30641         __n bigger than INT_MAX+1.
30642         (__strncmp_g): Likewise.
30643
30644 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
30645
30646         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
30647         * libio/stido.h: Likewise.
30648
30649         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
30650         (AF_NFC): Define.
30651         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
30652         (AF_NFC): Define.
30653
30654         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
30655         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30656         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30657         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30658         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30659
30660         [BZ #13021]
30661         * scripts/test-installation.pl: Don't expect libnss_test1 to be
30662         installed.
30663
30664         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
30665         typo.
30666         (_dl_x86_64_save_sse): Likewise.
30667
30668 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
30669
30670         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
30671         OSXSAVE.
30672         (_dl_x86_64_save_sse): Likewise.
30673
30674         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
30675
30676         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
30677
30678 2011-07-21  Andreas Schwab  <schwab@redhat.com>
30679
30680         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
30681         change.
30682         (_dl_x86_64_save_sse): Use correct AVX check.
30683
30684 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30685
30686         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
30687         bug in strncpy/strncat.
30688         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30689
30690 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
30691
30692         * string/tester.c (test_strcat): Add tests for different alignments
30693         of source and destination.
30694         (test_strncat): Likewise.
30695
30696 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
30697
30698         [BZ #12852]
30699         * posix/glob.c (glob): Check passed in values before using them in
30700         expressions to avoid some overflows.
30701         (glob_in_dir): Likewise.
30702
30703         [BZ #13007]
30704         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
30705         check for AVX enablement so that we don't crash with old kernels and
30706         new hardware.
30707         * elf/tst-audit4.c: Add same checks here.
30708         * elf/tst-audit6.c: Likewise.
30709
30710         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
30711
30712 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
30713
30714         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
30715
30716 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
30717
30718         * po/cs.po: Update from translation team.
30719         * po/bg.po: Likewise.
30720
30721 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
30722
30723         * misc/sys/cdefs.h: Add support for const attribute.
30724         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
30725         to gnu_dev_{major,minor,makedev} functions.
30726
30727 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
30728
30729         * intl/dcigettext.c (get_output_charset): Add missing bracket.
30730
30731 2011-07-20  Andreas Schwab  <schwab@redhat.com>
30732
30733         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
30734         strlen results.
30735
30736 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30737
30738         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
30739         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
30740         register in order to avoid conflicts with the soft frame pointer
30741         being held in r11 when necessary.
30742         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30743         (INTERNAL_VSYSCALL_NCS): Likewise.
30744
30745 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
30746
30747         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
30748         * elf/dl-fini.c (_dl_fini): Adjust caller.
30749         * elf/dl-close.c (_dl_close_worker): Likewise.
30750         * sysdeps/generic/ldsodefs.h: Adjust declaration.
30751
30752 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
30753
30754         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
30755         "aux_cache->nlibs < 0".
30756
30757         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
30758         in the reload-count case.
30759
30760 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30761
30762         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30763         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
30764         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
30765         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
30766         * sysdeps/x86_64/multiarch/strcat.S: New file.
30767         * sysdeps/x86_64/multiarch/strncat.S: New file.
30768         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
30769         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
30770         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
30771         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
30772         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
30773         (USE_AS_STRCAT): Define.
30774         Add strcat and strncat support.
30775         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30776         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30777         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
30778         * string/strncat.c: Update.
30779         (USE_AS_STRNCAT): Define.
30780         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30781         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
30782         and i7.
30783         * sysdeps/x86_64/multiarch/init-arch.h
30784         (bit_Prefer_PMINUB_for_stringop): New.
30785         (index_Prefer_PMINUB_for_stringop): Likewise.
30786         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
30787         bit_Prefer_PMINUB_for_stringop.
30788
30789 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
30790
30791         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
30792         buffer64.
30793         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
30794         of casting of buffer.
30795         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
30796         buffer32 and buffer64.
30797         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
30798         writes instead of casting of buffer.
30799         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
30800         buffer32.
30801         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
30802         casting of buffer.
30803
30804 2011-07-19  Andreas Schwab  <schwab@redhat.com>
30805
30806         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
30807
30808 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
30809
30810         * nscd/nscd.c (termination_handler): Don't do anything for a database
30811         if it has not yet been initialized.
30812
30813 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
30814
30815         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
30816
30817 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
30818
30819         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
30820
30821 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
30822
30823         * po/nl.po: Update from translation team.
30824         * po/sv.po: Likewise.
30825
30826 2011-07-16  Roland McGrath  <roland@hack.frob.com>
30827
30828         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
30829         now disallowed by GCC.
30830
30831         * configure.in (use-default-link): Default to yes if a test -shared
30832         link meets our qualifications.
30833         * configure: Regenerated.
30834
30835         * config.make.in (output-format): New variable.
30836         * configure.in: Check for ld --print-output-format support.
30837         * configure: Regenerated.
30838         * Makerules ($(common-objpfx)format.lds)
30839         [$(output-format) != unknown]: Just use $(output-format),
30840         instead of the linker-script munging.
30841
30842 2011-07-14  Roland McGrath  <roland@hack.frob.com>
30843
30844         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
30845         of $(common-objpfx)shlib.lds.
30846         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
30847
30848         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
30849         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
30850
30851         * configure.in (-z relro check): Adjust test code to add a large
30852         writable data section after it.
30853         * configure: Regenerated.
30854
30855 2011-07-11  Roland McGrath  <roland@hack.frob.com>
30856
30857         * configure.in (-z relro check): Fix test code to make the variable
30858         truly const.
30859         * configure: Regenerated.
30860
30861 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
30862
30863         * nscd/nscd.h (struct traced_file): Define.
30864         (struct database_dyn): Remove inotify_descr, reset_res, and filename
30865         elements.  Add traced_files.
30866         (inotify_fd): Declare.
30867         (register_traced_file): Declare.
30868         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
30869         (inotify_fd): Export.
30870         (resolv_conf_descr): Remove.
30871         (nscd_init): Move inotify descriptor creation to main.
30872         Don't register files for notification here.
30873         (register_traced_file): New function.
30874         (invalidate_cache): Don't use reset_res to determine whether to call
30875         res_init, go through the list of registered files.
30876         (main_loop_poll): The inotify descriptors are now stored in the
30877         structures for the traced files.
30878         (main_loop_epoll): Likewise
30879         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
30880         to __nss_disable_nscd.
30881         * nscd/cache.c (prune_cache): There is no single inotify descriptor
30882         for a database anymore.  Check the records for all the registered
30883         files instead.
30884         * nss/Makefile (libnss_files-routines): Add files-init.
30885         (libnss_db-routines): Add db-init.
30886         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
30887         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
30888         * nss/nss_db/db-init.c: New file.
30889         * nss/nss_files/files-init.c: New file.
30890         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
30891         __nss_lookup_function.
30892         (__nss_lookup_function): Call nss_load_library.
30893         (nss_load_all_libraries): New function.
30894         (__nss_disable_nscd): Take parameter with callback function for files
30895         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
30896         used for the cached services.
30897         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
30898         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
30899         options for features to all the files in nscd.
30900
30901         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
30902
30903 2011-07-10  Roland McGrath  <roland@hack.frob.com>
30904
30905         * csu/elf-init.c (__libc_csu_init): Comment typo.
30906
30907 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
30908
30909         * po/pl.po: Update from translation team.
30910         * po/ja.po: Likewise.
30911         * po/ru.po: Likewise.
30912         * po/ko.po: Likewise.
30913         * po/fr.po: Likewise.
30914
30915 2011-07-09  Roland McGrath  <roland@hack.frob.com>
30916
30917         * configure.in (.ctors/.dtors header and trailer check):
30918         Use an empirical test on a built program.
30919         * configure: Regenerated.
30920
30921         * configure.in (-z relro check): Use an empirical test on a built DSO.
30922         Detect, but do not require, on ia64.
30923         * configure: Regenerated.
30924
30925         * configure.in (READELF): Find it with AC_CHECK_TOOL.
30926         Update tests that use readelf to use $READELF instead.
30927         * configure: Regenerated.
30928
30929 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
30930
30931         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
30932         if the result is not used.
30933
30934 2011-07-05  Andreas Jaeger  <aj@suse.de>
30935
30936         [BZ#9696]
30937         * stdlib/tst-strtod.c: Add testcase.
30938
30939 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
30940
30941         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
30942         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
30943         The latter has a higher limit.  Take additional parameter to pass to
30944         the new function.
30945         (__pathconf): Pass file to __statfs_link_max.
30946         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
30947         __statfs_link_max.
30948         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
30949         __statfs_link_max.
30950
30951         [BZ #12868]
30952         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
30953         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
30954         Handle Lustre.
30955         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
30956         (__statfs_filesize_max): Likewise.
30957         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
30958
30959 2011-07-05  Andreas Jaeger  <aj@suse.de>
30960
30961         * resolv/res_comp.c (dn_skipname): Remove unused variable.
30962
30963 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
30964
30965         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
30966         `status' variable.
30967         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
30968         Likewise.
30969
30970 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
30971
30972         * Makefile (strop-tests): Add strncat.
30973         * string/test-strncat.c: New file.
30974
30975 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
30976
30977         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
30978
30979 2011-06-21  Andreas Jaeger  <aj@suse.de>
30980
30981         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
30982         Copy rule from iconvdata/Makefile.
30983
30984 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
30985
30986         [BZ #12922]
30987         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
30988         but no long options are defined, just return 'W'.
30989
30990 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
30991
30992         [BZ #9696]
30993         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
30994
30995 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
30996
30997         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
30998         netgroups to read.
30999         (innetgr): Likewise.
31000
31001 2011-07-05  Roland McGrath  <roland@hack.frob.com>
31002
31003         * config.make.in (install_root): Default to $(DESTDIR).
31004
31005 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
31006
31007         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
31008
31009 2011-07-02  Roland McGrath  <roland@hack.frob.com>
31010
31011         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
31012
31013         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
31014         containing directory rather than embedding absolute directory names.
31015
31016         * scripts/check-local-headers.sh: Rewritten using awk.
31017         Match by word, not by line.  Print error messages for matches.
31018         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
31019
31020         * Makerules [shlib-lds-flags empty]:
31021         ($(common-objpfx)libc_pic.opts): New target.
31022         ($(common-objpfx)libc_pic.os.clean): New target.
31023         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
31024
31025         * config.make.in (OBJCOPY): New variable.
31026         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
31027         * configure: Regenerated.
31028
31029         * config.make.in (use-default-link): New variable.
31030         * configure.in (use_default_link): Grok --with-default-link to set it.
31031         * configure: Regenerated.
31032         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
31033         (shlib-lds, shlib-lds-flags): Define to empty.
31034
31035         * Makerules (shlib-lds): New variable.
31036         (shlib-lds-flags): New variable.
31037         (build-shlib, build-moduile, build-module-asneeded): Use it.
31038         ($(common-objpfx)libc.so): Use $(shlib-lds).
31039         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
31040         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
31041
31042         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
31043         DT_FLAGS/DT_FLAGS_1 with zero flags.
31044
31045         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
31046         linker script munging.
31047
31048 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
31049
31050         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
31051         as 128-bit value.
31052         * crypt/sha512.c (sha512_process_block): Perform total addition using
31053         128-bit if possible.
31054         (__sha512_finish_ctx): Likewise.
31055         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
31056         as 64-bit value.
31057         * crypt/sha256.c (SWAP64): Define.
31058         (sha256_process_block): Perform total addition using 64-bit if
31059         possible.
31060         (__sha256_finish_ctx): Likewise.
31061
31062 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
31063
31064         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
31065         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31066         * nscd/hstcache.c (cache_addhst): Likewise.
31067         * nscd/grpcache.c (cache_addgr): Likewise.
31068         * nscd/aicache.c (addhstaiX): Likewise
31069         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
31070
31071 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
31072
31073         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
31074         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31075         * nscd/hstcache.c (cache_addhst): Likewise.
31076         * nscd/grpcache.c (cache_addgr): Likewise.
31077         * nscd/aicache.c (addhstaiX): Likewise
31078
31079 2011-07-01  Andreas Schwab  <schwab@redhat.com>
31080
31081         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
31082         domain only when needed.
31083
31084 2011-06-30  Andreas Schwab  <schwab@redhat.com>
31085
31086         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
31087         is always restored.
31088
31089 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
31090
31091         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
31092         are re-adding the entry.
31093         * nscd/servicescache.c (cache_addserv): Likewise.
31094
31095 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
31096
31097         * sysdeps/generic/dl-irel.h: fix protection against multiple
31098         inclusions.
31099         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
31100
31101 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
31102
31103         [BZ #12935]
31104         * malloc/memusage.sh: Fix quoting in message.
31105         * debug/xtrace.sh: Likewise.
31106
31107         * configure.in: Remove support for --experimental-malloc option, make
31108         it the default.
31109         * config.make.in: Likewise.
31110         * malloc/Makefile: Likewise.
31111
31112 2011-06-27  Andreas Schwab  <schwab@redhat.com>
31113
31114         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
31115         two-byte characters.
31116
31117 2011-06-27  Roland McGrath  <roland@hack.frob.com>
31118
31119         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
31120         AC_CACHE_CHECK invocation.
31121         * configure: Regenerated.
31122
31123         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
31124
31125 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
31126
31127         [BZ #12350]
31128         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
31129         bit from old_res_options.
31130
31131         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
31132
31133         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
31134         value type for setfct.
31135
31136 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
31137
31138         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31139         __gettimeofday instead of gettimeofday.
31140
31141 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
31142
31143         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
31144
31145 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
31146
31147         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
31148
31149         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
31150         info.
31151
31152 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31153
31154         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31155         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31156         strcpy-sse2-unaligned strncpy-sse2-unaligned
31157         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
31158         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
31159         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
31160         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
31161         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
31162         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
31163         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
31164         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
31165         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
31166         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
31167         (STRCPY): Support SSE2 and SSSE3 versions.
31168
31169 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
31170
31171         [BZ #12874]
31172         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
31173         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
31174         kernels which artificially limit size of requests.
31175
31176 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31177
31178         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31179         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31180         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
31181         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
31182         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
31183         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
31184         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
31185         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
31186         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
31187         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
31188         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
31189         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
31190         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
31191         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
31192         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
31193         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31194         Enable unaligned load optimization for Intel Core i3, i5 and i7
31195         processors.
31196         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
31197         Define.
31198         (index_Fast_Unaligned_Load): Define.
31199         (HAS_FAST_UNALIGNED_LOAD): Define.
31200
31201 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
31202
31203         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
31204
31205 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31206
31207         [BZ #12907]
31208         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
31209         until it is clear that the information is realy needed.
31210         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
31211
31212 2011-06-22  Andreas Schwab  <schwab@redhat.com>
31213
31214         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
31215
31216 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31217
31218         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31219         /sys/devices/system/cpu/online if it is usable.
31220
31221         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
31222         reading the information from the /proc filesystem to once a second.
31223
31224 2011-06-21  Andreas Jaeger  <aj@suse.de>
31225
31226         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
31227         NULL after inclusion of kernel headers.
31228
31229 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
31230
31231         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
31232         calls to internal_setent.
31233
31234         [BZ #12885]
31235         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
31236         addresses using gethostbyname4_r ignore IPv4 addresses.
31237
31238         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
31239         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
31240
31241         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
31242
31243 2011-06-20  David S. Miller  <davem@davemloft.net>
31244
31245         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
31246         inclusions.
31247         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
31248
31249         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
31250         (elf_irel): Use it.
31251         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
31252         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
31253         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
31254         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
31255         * sysdeps/x86_64/dl-irel.h: Likewise.
31256
31257         * elf/dl-runtime.c: Use elf_ifunc_invoke.
31258         * elf/dl-sym.c: Likewise.
31259
31260 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31261
31262         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
31263         need to dereference resplen2.
31264
31265 2011-06-14  Andreas Schwab  <schwab@redhat.com>
31266
31267         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
31268
31269 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31270
31271         * Makeconfig: Define vardbdir and inst_vardbdir.
31272         * nss/Makefile: Add rules to install db-Makefile.
31273
31274         * nss/nss_db/db-XXX.c: Cleanup.
31275
31276         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
31277         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
31278         GLIBC_PRIVATE.
31279         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
31280         * nss/makedb.c: Implement -g option to specify that value strings
31281         are generated and should not be added to table iterated over for
31282         get*ent calls.
31283         * nss/nss_db/db-initgroups.c: New file.
31284
31285         * nss/getent.c: Add support for initgroups lookups through getgrouplist
31286         interface.
31287
31288         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
31289         (internal_getgrouplist): Adjust to name change.
31290         Update use_initgroups_entry if this is not the first call.
31291         * nss/databases.def: Add initgroups entry.
31292
31293         * nss/makedb.c (compute_tables): Check result of multiple hash table
31294         sizes to minimize maximum chain length.
31295
31296 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
31297
31298         * Versions.def: Add entry for libnss_db.
31299         * shlib-versions: Likewise.
31300         * nss/Makefile: Add rules to build libnss_db.
31301         * nss/Versions: Add libnss_db information.  Organize libnss_files
31302         entries better.
31303         * nss/db-Makefile: Add gshadow support.  Change rules for the new
31304         makedb progra.  Some minor improvements to generate smaller files.
31305         * nss/nss_db/nss_db.h: Move NSS database header data structures to
31306         here from...
31307         * nss/makedb.c: ...here.
31308         Improve database format to be smaller and require less memory at
31309         runtime.
31310         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
31311         db anymore.
31312         * nss/nss_db/db-netgrp.c: Likewise.
31313         * nss/nss_db/db-open.c: Likewise.
31314         * nss/nss_files/flies-XXX.x: Adjust comments.
31315         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
31316         * nss/nss_files/files-grp.c: Likewise.
31317         * nss/nss_files/files-hosts.c: Likewise.
31318         * nss/nss_files/files-network.c: Likewise.
31319         * nss/nss_files/files-proto.c: Likewise.
31320         * nss/nss_files/files-pwd.c: Likewise.
31321         * nss/nss_files/files-rpc.c: Likewise.
31322         * nss/nss_files/files-service.c: Likewise.
31323         * nss/nss_files/files-sgrp.c: Likewise.
31324         * nss/nss_files/files-spwd.c: Likewise.
31325         * nss/nss_db/db-alias.c: Removed.
31326         * nss/nss_db/dummy-db.h: Removed.
31327
31328 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
31329
31330         * nss/makedb.c: Rewritten to not use database library.
31331         * nss/Makefile: Update to build new makedb program.
31332
31333 2011-06-14  Andreas Jaeger  <aj@suse.de>
31334
31335         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
31336         memset declaration.
31337
31338 2011-06-10  Andreas Schwab  <schwab@redhat.com>
31339
31340         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
31341         tmpbuf.
31342
31343 2011-06-10  Roland McGrath  <roland@hack.frob.com>
31344
31345         * Makerules (shlib.lds): Fail if the linker script comes out empty.
31346         * elf/Makefile ($(objpfx)ld.so): Likewise.
31347
31348         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
31349         Don't list ld.so twice in dependencies.
31350
31351         * posix/bug-regex31.c: Include <stdlib.h>.
31352
31353         * nscd/hstcache.c (cache_addhst): Remove unused variable.
31354
31355         * nis/nss_compat/compat-spwd.c
31356         (getspent_next_nss_netgr): Remove unused variable.
31357         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
31358
31359         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
31360         nonmembers" output to use the right array.
31361
31362         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
31363
31364         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
31365
31366         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
31367         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
31368         * catgets/gencat.c (read_input_file): Likewise.
31369         * locale/programs/locarchive.c (enlarge_archive): Likewise.
31370
31371         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
31372         variable definition inside #if's controlling its use.
31373
31374         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
31375
31376         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
31377
31378         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
31379
31380         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
31381         unreachable code.
31382
31383         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
31384
31385         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
31386         * configure: Regenerated.
31387
31388         * Makerules: Revert last change.
31389         * elf/Makefile: Likewise.
31390
31391 2011-06-09  Roland McGrath  <roland@hack.frob.com>
31392
31393         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
31394         * elf/Makefile ($(objpfx)librtld.os): Likewise.
31395         (reloc-link): Likewise.
31396
31397 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
31398
31399         * elf/Makefile: Add rules to build pldd.
31400         * elf/pldd.c: New file.
31401         * elf/pldd-xx.c: New file.
31402
31403 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
31404
31405         * version.h: Update for 2.15 development version.
31406
31407 2011-06-07  David S. Miller  <davem@davemloft.net>
31408
31409         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
31410         ifuncs.
31411         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
31412         elf_machine_lazy_rel): Likewise.
31413         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
31414         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
31415         elf_machine_lazy_rel): Likewise.
31416         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
31417         dl_hwcap via passed in argument.
31418         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
31419         Likewise.
31420
31421 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31422
31423         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
31424
31425 2011-06-06  Roland McGrath  <roland@hack.frob.com>
31426
31427         [BZ #12849]
31428         * manual/fdl-1.1.texi: New file, verbatim from:
31429         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
31430         * manual/lgpl-2.1.texi: New file, verbatim from:
31431         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
31432         * manual/Makefile (licenses): New variable, list those new file names.
31433         (texis): Use it.
31434         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
31435
31436         * manual/fdl.texi: File removed.
31437         * manual/lesser.texi: File removed.
31438         * manual/libc.texinfo (Copying, Documentation License):
31439         Use new @include file names, put @appendix directive before @include.
31440
31441 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
31442
31443         [BZ #12841]
31444         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
31445         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
31446         (mq_open): Add __NTH.
31447
31448 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
31449
31450         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31451         Assume Intel Core i3/i5/i7 processor if AVX is available.
31452
31453 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31454
31455         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
31456         typo.
31457
31458 2011-05-31  Andreas Schwab  <schwab@redhat.com>
31459
31460         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
31461         memory.  Use alloca_account.  Fix memory leak when retrying.
31462
31463 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31464
31465         * version.h (RELEASE): Bump for 2.14 release.
31466         * include/features.h (__GLIBC_MINOR__): Bump to 14.
31467
31468         * config.make.in (RANLIB): Remove entry.
31469
31470 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
31471
31472         * po/Makefile (po-sed-cmd): Add ksh to extensions.
31473         (libc.pot): Work around missing support for .ksh extension in xgettext.
31474
31475         [BZ #12684]
31476         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
31477         if both request failed.
31478         (send_dg): In case of server errors clear resplen or *resplen2.
31479
31480         [BZ #12454]
31481         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
31482         when there are multiple maps.
31483         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
31484         (_dl_fini): Remove test here.
31485
31486         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
31487
31488 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
31489
31490         [BZ #12350]
31491         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
31492         bit from old_res_options.
31493         (gaih_inet): Likewise.
31494
31495         [BZ #11099]
31496         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
31497         as signed.
31498
31499         * resolv/res_init.c (res_setoptions): Make the code more compact.
31500
31501         [BZ #11558]
31502         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
31503         set RES_USEVC.
31504
31505         [BZ #11634]
31506         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
31507
31508         * malloc/malloc.h: Mark malloc hook variables as deprecated.
31509
31510         [BZ #11781]
31511         * malloc/malloc.h: Declare malloc hook variables as volatile.
31512
31513         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
31514         in last patch.
31515
31516         [BZ #11799]
31517         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
31518         raise in the comment.
31519         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
31520         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
31521         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
31522
31523 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
31524
31525         [BZ #12811]
31526         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
31527         grow the buffers more if it already has to be sufficient.
31528         (build_wcs_upper_buffer): Likewise.
31529         * posix/regexec.c (check_matching): Likewise.
31530         (clean_state_log_if_needed): Likewise.
31531         (extend_buffers): Don't enlarge buffers beyond size of the input
31532         buffer.
31533         Patches mostly by Emil Wojak <emil@wojak.eu>.
31534         * posix/bug-regex32.c: New file.
31535         * posix/Makefile (tests): Add bug-regex32.
31536
31537         * locale/findlocale.c (_nl_find_locale): Return right away if
31538         _nl_explode_name failed.
31539         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
31540
31541         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
31542
31543         * debug/xtrace.sh: Unify messages.
31544         * malloc/memusage.sh: Likewise.
31545
31546         [BZ #12813]
31547         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
31548         time symbol from vDSO.  Substitute with vsyscall if not available.
31549         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
31550         __vdso_time.
31551
31552         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
31553         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
31554         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
31555         Add sendmmsg and internal_sendmmsg.
31556         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
31557         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
31558         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
31559
31560         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
31561         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
31562         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
31563
31564 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
31565
31566         [BZ #12813]
31567         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
31568         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
31569         available.
31570         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
31571         __vdso_getcpu.
31572
31573         [BZ #12814]
31574         * iconvdata/Makefile (tests): Add bug-iconv9.
31575         * iconvdata/bug-iconv9.c: New file.
31576
31577 2011-05-27  Andreas Schwab  <schwab@redhat.com>
31578
31579         [BZ #12814]
31580         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
31581
31582 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
31583
31584         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31585         (struct user_regs_struct): Change intcs field back to cs.
31586
31587 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
31588
31589         * po/ja.po: Update from translation team.
31590
31591 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
31592
31593         [BZ #12795]
31594         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
31595         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
31596
31597 2011-05-20  Andreas Schwab  <schwab@redhat.com>
31598
31599         * stdlib/longlong.h: Update from GCC.
31600
31601 2011-05-23  Andreas Schwab  <schwab@redhat.com>
31602
31603         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
31604         parameter name.
31605         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
31606         Add parameter name.
31607         (__sysconf): Pass it down.
31608
31609 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
31610
31611         [BZ #12671]
31612         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
31613         some situations.
31614         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31615         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
31616         add in in __libc_use_alloca calls.  Adjust callers.
31617         (glob): Use malloc in some situations.
31618
31619         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
31620         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
31621         pltexit.
31622
31623 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
31624
31625         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
31626         and CLOCK_BOOTTIME_ALARM.
31627
31628         [BZ #12782]
31629         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
31630         is returned.
31631
31632         * string/_strerror.c (__strerror_r): Print negative errors as signed
31633         numbers.
31634
31635         [BZ #12777]
31636         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
31637         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
31638         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
31639
31640         * configure.in: Fix typo in redirection and correct removal of test
31641         files in two cases.
31642
31643         [BZ #12788]
31644         * locale/setlocale.c (new_composite_name): Fix test to check for
31645         identical name of all categories.
31646
31647         [BZ #12792]
31648         * libio/filedoalloc.c (local_isatty): New function.
31649         (_IO_file_doallocate): Use local_isatty.
31650         * stdio-common/perror.c (perror): In case a new stream is used
31651         forward the stream error.
31652         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
31653         error flag.
31654
31655 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
31656
31657         [BZ #11869]
31658         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
31659         alloca.
31660         * include/alloca.h (extend_alloca_account): Define.
31661
31662         [BZ #11857]
31663         * posix/regex.h: Fix comments with documentation of user-accessible
31664         fields after compilation and describe correct free'ing of pattern
31665         after re_compile_pattern.
31666         Patch by Reuben Thomas <rrt@sc3d.org>.
31667
31668 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
31669
31670         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
31671         and -mno-altivec to prevent the compiler from using Altivec and/or
31672         VSX instructions when the corresponding registers are not available.
31673
31674 2011-05-19  Andreas Schwab  <schwab@redhat.com>
31675
31676         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
31677
31678 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
31679
31680         * libio/freopen.c (freopen): Use __dup2, not dup2.
31681         * libio/freopen64.c (freopen64): Likewise.
31682
31683 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31684
31685         [BZ #12775]
31686         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
31687         * math/Makefile (tests): Add test-powl.
31688         (CFLAGS-test-powl.c): Define.
31689         * math/test-powl.c: New file.
31690
31691 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31692
31693         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
31694
31695 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
31696
31697         [BZ #11837]
31698         * iconvdata/gb18030.c: Update to GB18020-2005.
31699
31700 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
31701
31702         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
31703         RE_SYNTAX_POSIX_AWK): Update to match recent development.
31704         Patch by Aharon Robbins <arnold@skeeve.com>.
31705
31706         [BZ #11892]
31707         * stdlib/putenv.c (putenv): Don't always create copy of the variable
31708         on the stack.
31709
31710         [BZ #11895]
31711         * misc/pselect.c (__pselect): Handle timeout value errors hidden
31712         through underflows.
31713
31714         [BZ #12766]
31715         * misc/error.c (error_at_line): Ensure file_name and old_file_name
31716         point to strings before performing equality test for error_one_per_line
31717         mode.
31718
31719         [BZ #11697]
31720         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
31721
31722         [BZ #11820]
31723         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31724         (struct user_fpregs_struct): Avoid __uint*_t types.
31725
31726         [BZ #6420]
31727         * malloc/mtrace.c (tr_where): Add additional parameter to point to
31728         symbol info.  Use it instead of calling _dl_addr locally.
31729         (lock_and_info): New function.
31730         (tr_freehook): Call lock_and_info and pass symbol info as additional
31731         parameter to tr_where.
31732         (tr_mallochook): Likewise.
31733         (tr_reallochook): Likewise.
31734         (tr_memalignhook): Likewise.
31735
31736         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
31737         used and couldn't be at all thread-safe.
31738
31739 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
31740
31741         * libio/freopen.c (freopen): Don't close old file descriptor
31742         before the new one is opened.  Instead dup the new file descriptor
31743         to the old one after the new stream is created.
31744         * libio/freopen64.c (freopen64): Likewise.
31745         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
31746         * libio/fileops.c (_IO_new_file_close_it): Handle new
31747         _IO_FLAGS2_NOCLOSE flag.
31748         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
31749         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
31750         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
31751         _IO_FLAGS2_NOCLOSE flag.
31752         * include/unistd.h: Add hidden_proto for dup3.
31753         Define __have_dup3.
31754         * io/dup3.c: Define hidden symbol.
31755         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
31756
31757         [BZ #7101]
31758         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
31759         when an incomplete long option is used.
31760         * posix/tst-getopt_long1.c: New file.
31761         * posix/Makefile (tests): Add tst-getopt_long1.
31762
31763         [BZ #10138]
31764         * scripts/config.guess: Update from autoconf-2.68.
31765         * scripts/config.sub: Likewise.
31766
31767         [BZ #10157]
31768         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
31769         tests into ...
31770         (has_cpuclock): ...this.  New function.
31771         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
31772         macro here based on has_cpuclock code.
31773
31774         [BZ #10149]
31775         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
31776         First byte (not low byte) is now always NUL.
31777         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
31778
31779         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
31780         Use non-cancelable interfaces.
31781
31782         [BZ #9809]
31783         * locale/iso-639.def: Add entry for Sorani.
31784
31785         [BZ #11901]
31786         * include/stdlib.h: Move include protection to the right place.
31787         Define abort_msg_s.  Declare __abort_msg with it.
31788         * stdlib/abort.c (__abort_msg): Adjust type.
31789         * assert/assert.c (__assert_fail_base): New function.  Majority
31790         of code from __assert_fail.  Allocate memory for __abort_msg with
31791         mmap.
31792         (__assert_fail): Now call __assert_fail_base.
31793         * assert/assert-perr.c: Remove bulk of implementation.  Use
31794         __assert_fail_base.
31795         * include/assert.hL Declare __assert_fail_base.
31796         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
31797         mmap.
31798         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
31799
31800 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
31801
31802         [BZ #11952]
31803         [BZ #12453]
31804         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
31805         until all modules are registered in the DTV.
31806         * elf/Makefile: Add rules to build and run tst-tls19.
31807         * elf/tst-tls19.c: New file.
31808         * elf/tst-tls19mod1.c: New file.
31809         * elf/tst-tls19mod2.c: New file.
31810         * elf/tst-tls19mod3.c: New file.
31811         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
31812
31813         [BZ #12083]
31814         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
31815         correctly.
31816
31817         [BZ #12601]
31818         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
31819         two-byte sequence errors.
31820         * iconvdata/Makefile (tests): Add bug-iconv8.
31821         * iconvdata/bug-iconv8.c: New file.
31822
31823         [BZ #12626]
31824         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
31825         buf2 definition.
31826
31827         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
31828
31829         [BZ #12432]
31830         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
31831         (dummy_getcfa): New function.
31832         (init): Get _Unwind_GetCFA address, use dummy if not found.
31833         (backtrace_helper): In recursion check, also check whether CFA changes.
31834         (__backtrace): Completely initialize arg.
31835
31836         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
31837         storing incomplete byte sequence in state object.  Avoid testing for
31838         guaranteed too small input if we know there is enough data available.
31839
31840 2011-05-11  Andreas Schwab  <schwab@redhat.com>
31841
31842         * Makeconfig (+link-pie): Indent.
31843         * Rules (binaries-pie): Define if $(have-fpie) and
31844         $(build-shared).
31845         (binaries-shared): Also filter out $(binaries-pie).
31846         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
31847         * nscd/Makefile (others-pie): Add nscd.
31848         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
31849         ($(objpfx)nscd): Remove command override.
31850         * login/Makefile (others-pie): Add pt_chown.
31851         ($(objpfx)pt_chown): Remove command override.
31852         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
31853         remove command overrides.
31854
31855 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
31856
31857         * libio/tst_putwc.c: Fix error messages.
31858
31859         [BZ #12724]
31860         * libio/fileops.c (_IO_new_file_close_it): Always flush when
31861         currently writing and seek to current position when not.
31862         * libio/Makefile (tests): Add bug-fclose1.
31863         * libio/bug-fclose1.c: New file.
31864
31865 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
31866
31867         [BZ #12511]
31868         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
31869         don't set DF_1_NODELETE here.
31870         (do_lookup_x): When entering new entry test for copy relocation
31871         and if necessary set DF_1_NODELETE flag.
31872         * elf/tst-unique4.cc: New file.
31873         * elf/tst-unique4.h: New file.
31874         * elf/tst-unique4lib.cc: New file.
31875         * elf/Makefile: Add rules to build and run tst-unique4.
31876         Patch by Piotr Bury <pbury@goahead.com>.
31877
31878 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
31879
31880         [BZ #12052]
31881         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
31882
31883         [BZ #12625]
31884         * misc/mntent_r.c (addmntent): Flush the stream after the output
31885
31886         [BZ #12393]
31887         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
31888         (is_trusted_path_normalize): Skip initial colon.  Append slash
31889         to empty buffer.  Duplicate is_trusted_path code but allow
31890         constructed patch to be prefix.
31891         (is_dst): Allow $ORIGIN followed by /.
31892         (_dl_dst_substitute): Correct clearing of check_for_trusted.
31893         Correct testing of result of is_trusted_path_normalize
31894         (decompose_rpath): Fix warning.
31895
31896 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
31897
31898         [BZ #11257]
31899         * grp/initgroups.c (internal_getgrouplist): When we found the service
31900         list through the initgroups entry in nsswitch.conf do not always
31901         continue on a successful lookup.  Don't always use the
31902         __nss_group_database value if it is set.
31903         * nss/nsswitch.conf (initgroups): Change action for successful db
31904         lookup to continue for compatibility.
31905
31906 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
31907
31908         [BZ #11532]
31909         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
31910         and CP774 modules.
31911         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
31912         and CP774 modules.
31913         * iconvdata/tst-tables.sh: Likewise.
31914         * iconvdata/cp770.c: New file.
31915         * iconvdata/cp771.c: New file.
31916         * iconvdata/cp772.c: New file.
31917         * iconvdata/cp773.c: New file.
31918         * iconvdata/cp774.c: New file.
31919         * iconvdata/testdata/CP770: New file.
31920         * iconvdata/testdata/CP770..UTF8: New file.
31921         * iconvdata/testdata/CP771: New file.
31922         * iconvdata/testdata/CP771..UTF8: New file.
31923         * iconvdata/testdata/CP772: New file.
31924         * iconvdata/testdata/CP772..UTF8: New file.
31925         * iconvdata/testdata/CP773: New file.
31926         * iconvdata/testdata/CP773..UTF8: New file.
31927         * iconvdata/testdata/CP774: New file.
31928         * iconvdata/testdata/CP774..UTF8: New file.
31929
31930         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
31931         END CHARMAP line.
31932         * iconvdata/gen-8bit-gap.sh: Likewise.
31933         * iconvdata/gen-8bit.sh: Likewise.
31934
31935         * locale/iso-639.def: Add ary entry.
31936
31937         [BZ #11258]
31938         * locale/C-translit.h.in: Add U20A1 transliteration.
31939
31940         [BZ #12178]
31941         * locale/iso-639.def: Add wae entry.
31942         Patch by Kevin Bortis <bortis@translate-wae.ch>.
31943
31944         [BZ #12545]
31945         * locale/programs/localedef.c (construct_output_path): Use ssize_t
31946         for n.
31947
31948         [BZ #12711]
31949         * locale/C-translit.h.in: Add entry for U20B9.
31950         Patch by pravin.d.s@gmail.com.
31951
31952 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
31953
31954         [BZ #12713]
31955         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
31956         ENAMETOOLONG use generic getcwd.
31957         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
31958         in rtld.  Use *stat64.
31959         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
31960         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
31961         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
31962         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
31963         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
31964         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
31965         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
31966         __fstatat64 macros.
31967         * include/dirent.h: Add libc_hidden_proto for rewinddir.
31968         * dirent/rewinddir.c: Add libc_hidden_def.
31969         * sysdeps/mach/hurd/rewinddir.c: Likewise.
31970         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
31971
31972         * include/dirent.h (__alloc_dir): Add flags parameter.
31973         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
31974         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
31975         __alloc_dir.
31976         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
31977         from fdopendir if O_CLOEXEC is already set.
31978
31979 2011-03-15  Alan Modra  <amodra@gmail.com>
31980
31981         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
31982         l_tls_firstbyte_offset non-zero.  Save padding offset in
31983         l_tls_firstbyte_offset for later use.
31984         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
31985         freeing static tls block.
31986
31987 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
31988
31989         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
31990         where #ifdef was intended.  The intent is to prevent ARG_MAX from
31991         being defined by the kernel headers.
31992
31993 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
31994
31995         [BZ #12734]
31996         * resolv/resolv.h: Define RES_NOTLDQUERY.
31997         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
31998         no-tld-query and set RES_NOTLDQUERY.
31999         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
32000         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
32001         modern BIND to search name as TLD unless forbidden.
32002
32003 2011-05-07  Petr Baudis  <pasky@suse.cz>
32004             Ulrich Drepper  <drepper@gmail.com>
32005
32006         [BZ #12393]
32007         * elf/dl-load.c (fillin_rpath): Move trusted path check...
32008         (is_trusted_path): ...to here.
32009         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
32010         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
32011         using is_trusted_path_normalize() in setuid scripts.
32012
32013 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
32014
32015         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
32016         __BEGIN/__END_DECLS.
32017
32018 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
32019
32020         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
32021         NSS_STATUS_NOTFOUND if no record was found.
32022
32023 2011-05-05  Andreas Schwab  <schwab@redhat.com>
32024
32025         * sunrpc/Makefile (headers): Add rpc/netdb.h.
32026         (headers-not-in-tirpc): Remove rpc/netdb.h
32027         * resolv/netdb.h: Revert last change.
32028
32029 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
32030
32031         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
32032         circular dependency between libgcc.a and libc.a.
32033
32034 2011-05-05  Andreas Schwab  <schwab@redhat.com>
32035
32036         * resolv/netdb.h: Don't include <rpc/netdb.h>.
32037         * nis/Makefile: Don't install rpcsvc/*.
32038         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
32039         instead of <rpc/types.h>.
32040         (MAXHOSTNAMELEN): Define.
32041
32042 2011-05-03  Andreas Schwab  <schwab@redhat.com>
32043
32044         * elf/ldconfig.c (add_dir): Don't crash on empty path.
32045
32046 2011-04-28  Maciej Babinski  <mbabinski@google.com>
32047
32048         [BZ #12714]
32049         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
32050         gethostbyname4_r when IPv6 results are possible.
32051
32052 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
32053
32054         [BZ #12723]
32055         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
32056         _PC_PIPE_BUF handling.
32057
32058 2011-04-30  Bruno Haible  <bruno@clisp.org>
32059
32060         [BZ #12717]
32061         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
32062         * resolv/netdb.h (getnameinfo): Change type of flags parameter
32063         to 'int'.
32064         * inet/getnameinfo.c (getnameinfo): Likewise.
32065
32066 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
32067
32068         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
32069         to groups setting in database lookup.
32070         * nss/nsswitch.conf: Add initgroups entry.
32071
32072 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
32073
32074         [BZ #12685]
32075         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
32076         mode string.
32077         Patch by Eric Blake <eblake@redhat.com>.
32078
32079 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
32080
32081         * sunrpc/Makefile (need-export-routines): Add svc_run.
32082         (routines): Remove svc_run.
32083         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
32084         * sunrpc/clnt_perr.c (clnt_perrno): Export.
32085         * sunrpc/svc_run.c (svc_run): Likewise.
32086         * sunrpc/svc_udp.c (svcudp_create): Likewise.
32087
32088 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
32089
32090         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
32091         problem in reallocation in last patch.
32092
32093 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
32094
32095         * sunrpc/Makefile: Move inclusion of Rules.
32096
32097 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32098
32099         * nss/nss_files/files-initgroups.c: New file.
32100         * nss/Makefile (libnss_files-routines): Add files-initgroups.
32101         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
32102         _nss_files_initgroups_dyn.
32103
32104 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
32105
32106         * elf/elf.h (R_ARM_IRELATIVE): Define.
32107
32108 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32109
32110         * po/ru.po: Update from translation team.
32111
32112 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32113
32114         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
32115         dependencies.
32116
32117 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
32118
32119         [BZ #12653]
32120         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
32121         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
32122         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32123         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32124         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
32125
32126 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
32127
32128         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
32129         differing bytes.
32130         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
32131         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
32132         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
32133
32134 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32135
32136         [BZ #12420]
32137         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
32138         storing it.
32139         * stdlib/bug-getcontext.c: New file.
32140         * stdlib/Makefile: Add rules to build and run bug-getcontext.
32141
32142 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32143
32144         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
32145         instructions into .machine "z9-109".
32146         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
32147         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
32148
32149 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32150
32151         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
32152         between environment variables and auxiliary vector.
32153
32154 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
32155
32156         * Makefile: Add rules to build linkobj/libc.so.
32157         * include/libc-symbols.h: Define libc_hidden_nolink.
32158         * include/rpc/auth.h: Mark functions which are to be hidden.
32159         * include/rpc/auth_des.h: Likewise.
32160         * include/rpc/auth_unix.h: Likewise.
32161         * include/rpc/clnt.h: Likewise.
32162         * include/rpc/des_crypt.h: Likewise.
32163         * include/rpc/key_prot.h: Likewise.
32164         * include/rpc/pmap_clnt.h: Likewise.
32165         * include/rpc/pmap_prot.h: Likewise.
32166         * include/rpc/pmap_rmt.h: Likewise.
32167         * include/rpc/rpc_msg.h: Likewise.
32168         * include/rpc/svc.h: Likewise.
32169         * include/rpc/svc_auth.h: Likewise.
32170         * include/rpc/xdr.h: Likewise.
32171         * nis/Makefile: Link all DSOs against linkobj/libc.so.
32172         * nss/Makefile: Likewise.
32173         * sunrpc/Makefile: Don't install headers.  Build library with normal
32174         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
32175         * sunrpc/auth_des.c: Hide exported symbols by default, export some
32176         for the compat linking library.  Remove use of INTDEF/INTUSE.
32177         * sunrpc/auth_none.c: Likewise.
32178         * sunrpc/auth_unix.c: Likewise.
32179         * sunrpc/authdes_prot.c: Likewise.
32180         * sunrpc/authuxprot.c: Likewise.
32181         * sunrpc/clnt_gen.c: Likewise.
32182         * sunrpc/clnt_perr.c: Likewise.
32183         * sunrpc/clnt_raw.c: Likewise.
32184         * sunrpc/clnt_simp.c: Likewise.
32185         * sunrpc/clnt_tcp.c: Likewise.
32186         * sunrpc/clnt_udp.c: Likewise.
32187         * sunrpc/clnt_unix.c: Likewise.
32188         * sunrpc/des_crypt.c: Likewise.
32189         * sunrpc/des_soft.c: Likewise.
32190         * sunrpc/get_myaddr.c: Likewise.
32191         * sunrpc/key_call.c: Likewise.
32192         * sunrpc/key_prot.c: Likewise.
32193         * sunrpc/netname.c: Likewise.
32194         * sunrpc/pm_getmaps.c: Likewise.
32195         * sunrpc/pm_getport.c: Likewise.
32196         * sunrpc/pmap_clnt.c: Likewise.
32197         * sunrpc/pmap_prot.c: Likewise.
32198         * sunrpc/pmap_prot2.c: Likewise.
32199         * sunrpc/pmap_rmt.c: Likewise.
32200         * sunrpc/publickey.c: Likewise.
32201         * sunrpc/rpc_cmsg.c: Likewise.
32202         * sunrpc/rpc_common.c: Likewise.
32203         * sunrpc/rpc_dtable.c: Likewise.
32204         * sunrpc/rpc_prot.c: Likewise.
32205         * sunrpc/rpc_thread.c: Likewise.
32206         * sunrpc/rtime.c: Likewise.
32207         * sunrpc/svc.c: Likewise.
32208         * sunrpc/svc_auth.c: Likewise.
32209         * sunrpc/svc_authux.c: Likewise.
32210         * sunrpc/svc_raw.c: Likewise.
32211         * sunrpc/svc_run.c: Likewise.
32212         * sunrpc/svc_simple.c: Likewise.
32213         * sunrpc/svc_tcp.c: Likewise.
32214         * sunrpc/svc_udp.c: Likewise.
32215         * sunrpc/svc_unix.c: Likewise.
32216         * sunrpc/svcauth_des.c: Likewise.
32217         * sunrpc/xcrypt.c: Likewise.
32218         * sunrpc/xdr.c: Likewise.
32219         * sunrpc/xdr_array.c: Likewise.
32220         * sunrpc/xdr_float.c: Likewise.
32221         * sunrpc/xdr_intXX_t.c: Likewise.
32222         * sunrpc/xdr_mem.c: Likewise.
32223         * sunrpc/xdr_rec.c: Likewise.
32224         * sunrpc/xdr_ref.c: Likewise.
32225         * sunrpc/xdr_sizeof.c: Likewise.
32226         * sunrpc/xdr_stdio.c: Likewise.
32227
32228 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
32229
32230         [BZ #12650]
32231         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
32232         * sysdeps/ia64/dl-tls.h: Likewise.
32233         * sysdeps/powerpc/dl-tls.h: Likewise.
32234         * sysdeps/s390/dl-tls.h: Likewise.
32235         * sysdeps/sh/dl-tls.h: Likewise.
32236         * sysdeps/sparc/dl-tls.h: Likewise.
32237         * sysdeps/x86_64/dl-tls.h: Likewise.
32238         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
32239
32240 2011-03-14  Andreas Schwab  <schwab@redhat.com>
32241
32242         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
32243         rpath element also skip the following colon.
32244         (expand_dynamic_string_token): Add is_path parameter and pass
32245         down to DL_DST_REQUIRED and _dl_dst_substitute.
32246         (decompose_rpath): Call expand_dynamic_string_token with
32247         non-zero is_path.  Ignore empty rpaths.
32248         (_dl_map_object_from_fd): Call expand_dynamic_string_token
32249         with zero is_path.
32250
32251 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
32252
32253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
32254         Make cancelable.
32255
32256 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
32257
32258         [BZ #12655]
32259         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
32260         Patch by Filipe David Manana <fdmanana@apache.org>.
32261
32262 2011-04-07  Andreas Schwab  <schwab@redhat.com>
32263
32264         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
32265         Maintain aligned stack.
32266         (CHECK_RSP): Remove unused macro.
32267
32268 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
32269
32270         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
32271         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
32272
32273 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
32274
32275         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
32276
32277         * include/features.h: Mention __USE_XOPEN2K8 in comment.
32278
32279 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
32280
32281         [BZ #12518]
32282         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
32283         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
32284         * sysdeps/x86_64/memmove.c: New file.
32285         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
32286         (memcpy): Renamed to ...
32287         (__new_memcpy): This.
32288         (memcpy): Provide GLIBC_2_14 memcpy.
32289         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
32290         (memcpy): Provide GLIBC_2_2_5 memcpy.
32291
32292 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32293
32294         [BZ #12631]
32295         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
32296
32297 2011-03-30  Andreas Schwab  <schwab@redhat.com>
32298
32299         * misc/syncfs.c: New file.
32300         * misc/Makefile (routines): Add syncfs.
32301         * posix/unistd.h: Declare syncfs.
32302         * sysdeps/unix/syscalls.list: Add syncfs.
32303
32304 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32305
32306         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
32307         open_by_handle_at.
32308         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
32309         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32310         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32311         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32312         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32313         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
32314         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32315
32316 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32317
32318         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
32319         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32320         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
32321         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32322         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32323         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32324         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32325
32326         * io/Makefile: Compile fallocate.c, fallocate64.c, and
32327         sync_file_range.c with -fexceptions.
32328         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
32329         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
32330         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32331         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32332         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
32333         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
32334         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
32335         sync_file_range as cancellation point
32336         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
32337         now a wrapper around __call_sync_file_range with cancellation handling.
32338         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
32339         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
32340         function name to __call_sync_file_range.
32341         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
32342         Add call_sync_file_range.
32343
32344 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32345
32346         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
32347         bits/timex.h.
32348
32349 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32350
32351         * iconv/iconv.h: Fix typo in comment.
32352         * io/fcntl.h: Likewise.
32353         * libio/stdio.h: Likewise.
32354         * posix/spawn.h: Likewise.
32355         * posix/unistd.h: Likewise.
32356         * stdlib/stdlib.h: Likewise.
32357         * time/time.h: Likewise.
32358         * wcsmbs/wchar.h: Likewise.
32359
32360         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
32361         open_by_handle): Add.
32362         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
32363         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
32364         Augment a few comments.
32365         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32366         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32367         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32368         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32369         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32370         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
32371         open_by_handle.
32372
32373         * io/fcntl.h (AT_EMPTY_PATH): Define.
32374
32375 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
32376
32377         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
32378         * sysdeps/unix/sysv/linux/bits/time.h: New file.
32379         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
32380         to...
32381         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
32382         * Versions.def: Add GLIBC_2.14.
32383         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
32384         Export.
32385
32386 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
32387
32388         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
32389         round counter.
32390         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32391
32392 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
32393
32394         [BZ #12597]
32395         * string/test-strncmp.c (do_page_test): New function.
32396         (check2): Likewise.
32397         (test_main): Call check2.
32398         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
32399
32400 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
32401
32402         [BZ #12587]
32403         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
32404         Handle cache information in CPU leaf 4.
32405         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32406
32407 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
32408
32409         [BZ #12583]
32410         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
32411         character representation.
32412         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
32413
32414 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
32415
32416         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
32417         END(__isnan) to END(__isnanf) to match function entry point/label
32418         EALIGN(__isnanf,...).
32419
32420 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32421
32422         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
32423
32424 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
32425
32426         [BZ #12510]
32427         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
32428         copy from the symbol referenced in the relocation to initialize the
32429         used variable.
32430         Patch by Piotr Bury <pbury@goahead.com>.
32431         * elf/Makefile: Add rules to build and tst-unique3.
32432         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
32433         * elf/tst-unique3.cc: New file.
32434         * elf/tst-unique3.h: New file.
32435         * elf/tst-unique3lib.cc: New file.
32436         * elf/tst-unique3lib2.cc: New file.
32437
32438         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
32439
32440 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
32441
32442         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
32443         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
32444         to _start.
32445
32446 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
32447
32448         * elf/dl-load.c (_dl_map_object): If we are looking for the first
32449         to-be-loaded object along a path to loader is ld.so.
32450
32451 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32452             Ulrich Drepper  <drepper@gmail.com>
32453
32454         * sysdeps/x86_64/memset.S: After aligning destination, code
32455         branches to different locations depending on the value of
32456         misalignment, when multiarch is enabled. Fix this.
32457
32458 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32459
32460         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
32461         Set _x86_64_preferred_memory_instruction for AMD processsors.
32462         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32463         Set bit_Prefer_SSE_for_memop for AMD processors.
32464
32465 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
32466
32467         * libio/fmemopen.c (fmemopen): Optimize a bit.
32468
32469 2011-03-03  Andreas Schwab  <schwab@redhat.com>
32470
32471         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
32472
32473 2011-03-03  Roland McGrath  <roland@redhat.com>
32474
32475         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
32476
32477 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
32478
32479         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
32480         __bzero_ultra1 instead of __memset_ultra1.
32481
32482 2011-02-23  Andreas Schwab  <schwab@redhat.com>
32483             Ulrich Drepper  <drepper@gmail.com>
32484
32485         [BZ #12509]
32486         * include/link.h (struct link_map): Add l_orig_initfini.
32487         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
32488         returning unsuccessfully.
32489         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
32490         close of a file loaded at startup, restore the original l_initfini
32491         list.
32492         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
32493         list, store the pointer.
32494         * elf/Makefile ($(objpfx)noload-mem): New rule.
32495         (noload-ENV): Define.
32496         (tests): Add $(objpfx)noload-mem.
32497         * elf/noload.c: Include <memcheck.h>.
32498         (main): Call mtrace.  Close all opened handles.
32499
32500 2011-02-17  Andreas Schwab  <schwab@redhat.com>
32501
32502         [BZ #12454]
32503         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
32504         dependencies are missing.
32505
32506 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32507
32508         Fix __if_freereq crash: Unlike the generic version which uses free,
32509         Hurd needs munmap.
32510         * sysdeps/mach/hurd/ifreq.h: New file.
32511
32512 2011-01-27  Petr Baudis  <pasky@suse.cz>
32513             Ulrich Drepper  <drepper@gmail.com>
32514
32515         [BZ 12445]#
32516         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
32517         to extend_alloca().
32518         * stdio-common/bug23.c: New file.
32519         * stdio-common/Makefile (tests): Add bug23.
32520
32521 2010-09-28  Andreas Schwab  <schwab@redhat.com>
32522             Ulrich Drepper  <drepper@gmail.com>
32523
32524         [BZ #12489]
32525         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
32526         before performing relro protection.  At old place add assertion
32527         to make sure nothing changed.
32528
32529 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
32530             Glauber de Oliveira Costa  <glommer@gmail.com>
32531
32532         * elf/elf.h: Add new ARM TLS relocs.
32533
32534 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
32535
32536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
32537         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
32538         cast from r3.
32539         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
32540         'tests' variable.
32541         * sysdeps/wordsize-64/tst-writev.c: New file.
32542
32543 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
32544
32545         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
32546         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
32547         insns in _dl_start to prevent a TOC reference before relocs are
32548         resolved.
32549
32550 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
32551
32552         [BZ #12469]
32553         * Makeconfig: Remove RANLIB definition.
32554         * Makerules: Don't use RANLIB.
32555         * aclocal.m4: Remove ranlib test.
32556         * configure.in: No need to check for ranlib.
32557         * elf/rtld-Rules: Don't use RANLIB.
32558
32559 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32560
32561         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
32562         protection macro.
32563         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
32564         inclusion protection macro.
32565
32566         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
32567         SIGRTMIN and SIGRTMAX and print information in that case only when
32568         SIGRTMIN is defined.
32569
32570 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
32571
32572         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
32573         arginfo fn returning -1.
32574
32575         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
32576         and thousands string is zero terminated.
32577
32578 2011-02-03  Andreas Schwab  <schwab@redhat.com>
32579
32580         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
32581         sysdeps/unix/sysv/linux/bits/socket.h.
32582
32583 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32584
32585         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
32586         (__CPU_COUNT): Remove old macros.
32587         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
32588         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
32589         (__CPU_ALLOC, __CPU_FREE): Add macros.
32590         (__sched_cpualloc, __sched_cpufree): Add declarations.
32591
32592 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
32593
32594         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
32595         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
32596         * nscd/aicache.c (addhstaiX): Return timeout of added value.
32597         (readdhstai): Return value of addhstaiX call.
32598         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
32599         (addgrbyX): Return value returned by cache_addgr.
32600         (readdgrbyname): Return value returned by addgrbyX.
32601         (readdgrbygid): Likewise.
32602         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
32603         (addpwbyX): Return value returned by cache_addpw.
32604         (readdpwbyname): Return value returned by addhstbyX.
32605         (readdpwbyuid): Likewise.
32606         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
32607         (addservbyX): Return value returned by cache_addserv.
32608         (readdservbyname): Return value returned by addservbyX:
32609         (readdservbyport): Likewise.
32610         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
32611         (addhstbyX): Return value returned by cache_addhst.
32612         (readdhstbyname): Return value returned by addhstbyX.
32613         (readdhstbyaddr): Likewise.
32614         (readdhstbynamev6): Likewise.
32615         (readdhstbyaddrv6): Likewise.
32616         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
32617         (readdinitgroups): Return value returned by addinitgroupsX.
32618         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
32619         (prune_cache): Keep track of timeout value of re-added entries.
32620         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
32621         * nscd/nscd.h: Adjust prototypes of readd* functions.
32622
32623 2011-02-04  Roland McGrath  <roland@redhat.com>
32624
32625         * nis/nis_server.c (nis_servstate): Use the right name for 0.
32626         (nis_stats): Likewise.
32627         * nis/nis_modify.c (nis_modify): Likewise.
32628         * nis/nis_remove.c (nis_remove): Likewise.
32629         * nis/nis_add.c (nis_add): Likewise.
32630
32631         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
32632
32633         * posix/fnmatch_loop.c: Add some consts.
32634
32635         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
32636
32637 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
32638
32639         [BZ #12460]
32640         * config.make.in (config-cflags-novzeroupper): Define.
32641         * configure.in: Substitute libc_cv_cc_novzeroupper.
32642         * elf/Makefile (AVX-CFLAGS): Define.
32643         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
32644         (CFLAGS-tst-auditmod4a.c): Likewise.
32645         (CFLAGS-tst-auditmod4b.c): Likewise.
32646         (CFLAGS-tst-auditmod6b.c): Likewise.
32647         (CFLAGS-tst-auditmod6c.c): Likewise.
32648         (CFLAGS-tst-auditmod7b.c): Likewise.
32649         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
32650
32651 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
32652
32653         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
32654         function to the callback.
32655         Patch partly by Jiri Olsa <jolsa@redhat.com>.
32656
32657 2011-02-02  Andreas Schwab  <schwab@redhat.com>
32658
32659         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
32660         of errno.
32661
32662 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
32663
32664         [BZ #11724]
32665         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
32666         of constructors.
32667         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
32668         of destructors.
32669         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
32670
32671         [BZ #11724]
32672         * elf/Makefile: Add rules to build and run new test.
32673         * elf/tst-initorder.c: New file.
32674         * elf/tst-initorder.exp: New file.
32675         * elf/tst-initordera1.c: New file.
32676         * elf/tst-initordera2.c: New file.
32677         * elf/tst-initordera3.c: New file.
32678         * elf/tst-initordera4.c: New file.
32679         * elf/tst-initorderb1.c: New file.
32680         * elf/tst-initorderb2.c: New file.
32681         * elf/tst-order-a1.c: New file.
32682         * elf/tst-order-a2.c: New file.
32683         * elf/tst-order-a3.c: New file.
32684         * elf/tst-order-a4.c: New file.
32685         * elf/tst-order-b1.c: New file.
32686         * elf/tst-order-b2.c: New file.
32687         * elf/tst-order-main.c: New file.
32688         New test case by George Gensure <werkt0@gmail.com>.
32689
32690 2010-10-01  Andreas Schwab  <schwab@redhat.com>
32691
32692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
32693         decoding ACE if AI_CANONIDN.
32694
32695 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
32696
32697         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
32698
32699 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
32700
32701         * version.h (RELEASE): Bump for 2.13 release.
32702         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
32703
32704         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
32705
32706         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
32707         MADV_NOHUGEPAGE.
32708         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
32709         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
32710         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
32711         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
32712         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
32713         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
32714
32715         * posix/getconf.c: Update copyright year.
32716         * catgets/gencat.c: Likewise.
32717         * csu/version.c: Likewise.
32718         * debug/catchsegv.sh: Likewise.
32719         * debug/xtrace.sh: Likewise.
32720         * elf/ldconfig.c: Likewise.
32721         * elf/ldd.bash.in: Likewise.
32722         * elf/sprof.c (print_version): Likewise.
32723         * iconv/iconv_prog.c: Likewise.
32724         * iconv/iconvconfig.c: Likewise.
32725         * locale/programs/locale.c: Likewise.
32726         * locale/programs/localedef.c: Likewise.
32727         * malloc/memusage.sh: Likewise.
32728         * malloc/mtrace.pl: Likewise.
32729         * nscd/nscd.c (print_version): Likewise.
32730         * nss/getent.c: Likewise.
32731
32732         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
32733         PF_CAIF, and PF_ALG.
32734         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
32735
32736 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
32737
32738         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
32739         (modules-names): Use them.
32740         (ifunc-test-modules, ifunc-pie-tests): Define.
32741         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
32742         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
32743         (test-extras): Likewise.
32744         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
32745         $(compile-command.c).
32746         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
32747         (all-built-dso): Define.
32748         (check-textrel.out, check-execstack.out): Depend on it.
32749
32750         * configure.in: Don't override --enable-multi-arch.
32751
32752 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
32753
32754         [BZ #6812]
32755         * nscd/hstcache.c (tryagain): Define.
32756         (cache_addhst): Return tryagain not notfound for temporary errors.
32757         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
32758         failed.
32759
32760 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
32761
32762         [BZ #10563]
32763         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
32764         to make the syscall.
32765         * sysdeps/unix/sysv/linux/setgroups.c: New file.
32766
32767         [BZ #12378]
32768         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
32769         and fall back to matching as normal character if the string ends before
32770         the matching ']' is found.  This is what POSIX requires.
32771         * posix/testfnm.c: Adjust test result.
32772         * posix/globtest.sh: Adjust test result.  Add new test.
32773         * posix/tst-fnmatch.input: Likewise.
32774         * posix/tst-fnmatch2.c: Add new test.
32775
32776 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
32777
32778         * elf/Makefile (check-execstack): Revert last change.  Depend on
32779         check-execstack.h.
32780         (check-execstack.h): New target.
32781         (generated): Add check-execstack.h.
32782         * elf/check-execstack.c: Include "check-execstack.h".
32783         (main): Revert last change.
32784         (handle_file): Return zero if GNU_STACK is absent and
32785         DEFAULT_STACK_PERMS doesn't include PF_X.
32786
32787 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
32788
32789         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
32790         in child fails because the descriptor is already closed.
32791         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
32792         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
32793         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
32794
32795         [BZ #12397]
32796         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
32797         syscall.
32798
32799         [BZ #10484]
32800         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
32801         temporary buffer used to handle multi lookups locally.
32802         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
32803
32804 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
32805
32806         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
32807         loader is ld.so.
32808
32809 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
32810
32811         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
32812         alignment for SSE2.
32813
32814 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
32815
32816         [BZ #12394]
32817         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
32818         characters.  When rounding increased number of integer digits recompute
32819         number of groups.
32820         * stdio-common/tst-grouping.c: New file.
32821         * stdio-common/Makefile: Add rules to build and run tst-grouping.
32822
32823 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
32824
32825         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
32826         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
32827
32828         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
32829         void.
32830         * bits/select.h: Likewise.
32831
32832 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
32833
32834         * po/ja.po: Update from translation team.
32835
32836 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
32837
32838         [BZ #11155]
32839         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
32840         implementation just like for lxstat, fxstatat, et al.
32841
32842 2010-12-27  Jim Meyering  <meyering@redhat.com>
32843
32844         [BZ #12348]
32845         * posix/regexec.c (build_trtable): Return failure indication upon
32846         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
32847
32848 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
32849
32850         [BZ #12201]
32851         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
32852         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
32853         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
32854         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
32855
32856         [BZ #12207]
32857         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
32858
32859         [BZ #12204]
32860         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
32861         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
32862
32863 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
32864
32865         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
32866         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
32867         script has SORT_BY_INIT_PRIORITY.
32868         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
32869         NO_CTORS_DTORS_SECTIONS is defined.
32870         * elf/soinit.c: Likewise.
32871         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
32872         NO_CTORS_DTORS_SECTIONS is defined.
32873         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
32874         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
32875         * sysdeps/sh/init-first.c: Likewise.
32876         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
32877
32878 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
32879
32880         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
32881         always use the slow path.
32882
32883 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
32884
32885         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
32886         similar rule which adds the sysdep directories to the header search in
32887         order to pick up the correct platform stackinfo.h.
32888         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
32889         perform test if it is, otherwise return successfully without testing.
32890         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
32891         DEFAULT_STACK_PERMS define in stackinfo.h.
32892         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
32893         defined in stackinfo.h.
32894         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
32895         DEFAULT_STACK_PERMS defined in stackinfo.h.
32896         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
32897         * sysdeps/ia64/stackinfo.h: Likewise.
32898         * sysdeps/s390/stackinfo.h: Likewise.
32899         * sysdeps/sh/stackinfo.h: Likewise.
32900         * sysdeps/sparc/stackinfo.h: Likewise.
32901         * sysdeps/x86_64/stackinfo.h: Likewise.
32902         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
32903         PF_X for powerpc64.  Retain PF_X for powerpc32.
32904
32905 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
32906
32907         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
32908         accurately.
32909         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
32910         GETDENTS_64BIT_ALIGNED.
32911
32912 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
32913
32914         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
32915
32916 2010-12-10  Andreas Schwab  <schwab@redhat.com>
32917
32918         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
32919         _GNU_SOURCE.
32920
32921         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
32922         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
32923         Remove __restrict.
32924         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
32925         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
32926
32927 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
32928
32929         [BZ #11655]
32930         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
32931         are initialized.
32932
32933 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
32934
32935         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
32936
32937 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
32938
32939         * po/it.po: Update from translation team.
32940
32941 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
32942
32943         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
32944         unused codes.
32945
32946 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
32947
32948         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
32949
32950 2010-11-24  Andreas Schwab  <schwab@redhat.com>
32951
32952         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
32953         specially.
32954         (gaih_getanswer_slice): Likewise.
32955
32956 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
32957
32958         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
32959
32960 2010-05-31  Petr Baudis  <pasky@suse.cz>
32961
32962         [BZ #11149]
32963         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
32964         silently even in the chroot mode.
32965
32966 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
32967
32968         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
32969         last patch a bit.  Pretty printing
32970
32971 2010-05-31  Petr Baudis <pasky@suse.cz>
32972
32973         [BZ #10085]
32974         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
32975         initialization of skip_initgroups_dyn.
32976
32977 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
32978
32979         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
32980         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
32981
32982 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
32983
32984         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
32985
32986 2010-11-11  Andreas Schwab  <schwab@redhat.com>
32987
32988         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
32989         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
32990         (tst-fnmatch-ENV): Set MALLOC_TRACE.
32991         ($(objpfx)tst-fnmatch-mem): New rule.
32992         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
32993         * posix/tst-fnmatch.c (main): Call mtrace.
32994
32995 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
32996
32997         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32998         Support Intel processor model 6 and model 0x2c.
32999
33000 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
33001
33002         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
33003           signed comparison.
33004
33005 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
33006
33007         [BZ #12205]
33008         * string/test-strncasecmp.c (check_result): New function.
33009         (do_one_test): Use it.
33010         (check1): New function.
33011         (test_main): Use it.
33012         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
33013         Support strcasecmp and strncasecmp.
33014
33015 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
33016
33017         [BZ #12194]
33018         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
33019         * sysdeps/x86_64/bits/byteswap.h: Likewise.
33020
33021 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
33022
33023         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
33024         IFUNC support.
33025         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33026         memset-x86-64.
33027         * sysdeps/x86_64/multiarch/bzero.S: New file.
33028         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
33029         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
33030         * sysdeps/x86_64/multiarch/memset.S: New file.
33031         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
33032         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33033         Set bit_Prefer_SSE_for_memop for Intel processors.
33034         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
33035         Define.
33036         (index_Prefer_SSE_for_memop): Define.
33037         (HAS_PREFER_SSE_FOR_MEMOP): Define.
33038
33039 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
33040
33041         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
33042         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
33043
33044 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
33045
33046         [BZ #12191]
33047         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33048         (__x86_64_raw_data_cache_size_half): Likewise.
33049         (__x86_64_raw_shared_cache_size): Likewise.
33050         (__x86_64_raw_shared_cache_size_half): Likewise.
33051
33052         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33053         (__x86_64_raw_data_cache_size_half): Likewise.
33054         (__x86_64_raw_shared_cache_size): Likewise.
33055         (__x86_64_raw_shared_cache_size_half): Likewise.
33056         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
33057         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
33058         and __x86_64_raw_shared_cache_size_half.  Round
33059         __x86_64_data_cache_size_half, __x86_64_data_cache_size
33060         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
33061         to multiple of 256 bytes.
33062
33063 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
33064
33065         [BZ #12167]
33066         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
33067         of inacessible symlinks.  Verify result of symlink before returning it.
33068         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
33069         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
33070
33071 2010-10-28  Erich Ritz  <erichritz@gmail.com>
33072
33073         * math/math.h (isinf): Fix typo in comment.
33074
33075 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
33076
33077         * po/da.po: Update from translation team.
33078
33079 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
33080
33081         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
33082         is added to the list.
33083
33084 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33085             Ulrich Drepper  <drepper@gmail.com>
33086
33087         * elf/dl-object.c (_dl_new_object): Don't append the new object to
33088         the global list here.  Move code to...
33089         (_dl_add_to_namespace_list): ...here.  New function.
33090         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
33091         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
33092         * elf/dl-load.c (lose): Don't remove the element from the list.
33093         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
33094         (_dl_map_object): Likewise.
33095
33096 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
33097
33098         [BZ #12159]
33099         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
33100         into all bytes of SSE register.
33101         Patch by Richard Li <richardpku@gmail.com>.
33102
33103 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
33104
33105         [BZ #12140]
33106         * malloc/malloc.c (_int_free): Fill correct number of bytes when
33107         perturbing.
33108
33109 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
33110
33111         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
33112         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
33113         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
33114         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
33115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
33116         submachine.
33117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
33118
33119 2010-10-22  Andreas Schwab  <schwab@redhat.com>
33120
33121         * include/dlfcn.h (__RTLD_SECURE): Define.
33122         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
33123         mode & __RTLD_SECURE instead.
33124         (open_path): Rename preloaded parameter to secure.
33125         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
33126         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
33127         * elf/dl-deps.c (openaux): Likewise.
33128         * elf/rtld.c (struct map_args): Remove is_preloaded.
33129         (map_doit): Don't use it.
33130         (dl_main): Likewise.
33131         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
33132         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
33133
33134 2010-09-09  Andreas Schwab  <schwab@redhat.com>
33135
33136         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
33137         (sysd-rules-targets): Remove duplicates.
33138         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
33139         rtld-%.$o dependency.
33140
33141 2010-10-18  Andreas Schwab  <schwab@redhat.com>
33142
33143         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
33144         _dl_map_object do it.
33145
33146 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
33147
33148         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
33149         fast fma builtins, define the macros in the C99 standard.
33150         (FP_FAST_FMAF): Likewise.
33151         (FP_FAST_FMAL): Likewise.
33152         * sysdeps/x86_64/bits/mathdef.h: Likewise.
33153
33154         * bits/mathdef.h: Update copyright year.
33155         * sysdeps/powerpc/bits/mathdef.h: Likewise.
33156
33157 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33158
33159         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
33160         builtins, define the macros in the C99 standard.
33161         (FP_FAST_FMAF): Likewise.
33162         (FP_FAST_FMAL): Likewise.
33163         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
33164         multiply/add.
33165         (FP_FAST_FMAF): Likewise.
33166
33167 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
33168
33169         [BZ #3268]
33170         * math/libm-test.inc (fma_test): Some new testcases.
33171         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
33172         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
33173         y and infinite z.  Do multiplication by C already in long double.
33174         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
33175         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
33176         y and infinite z.  Do bitwise or of inexact bit into u.d.
33177         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
33178         * sysdeps/i386/fpu/s_fmaf.S: Removed.
33179         * sysdeps/i386/fpu/s_fma.S: Removed.
33180         * sysdeps/i386/fpu/s_fmal.S: Removed.
33181
33182 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
33183
33184         [BZ #3268]
33185         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
33186         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
33187         computation is not scheduled after fetestexcept.  Fix value
33188         of minimum denormal long double.
33189
33190 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
33191
33192         [BZ #3268]
33193         * math/libm-test.inc (fma_test): Add some more tests.
33194         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
33195         correctly.
33196
33197 2010-10-15  Andreas Schwab  <schwab@redhat.com>
33198
33199         * scripts/data/localplt-s390-linux-gnu.data: New file.
33200         * scripts/data/localplt-s390x-linux-gnu.data: New file.
33201
33202 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
33203
33204         [BZ #3268]
33205         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
33206         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
33207         instead of dbl-64.
33208         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
33209         inlines.
33210         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
33211         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
33212         if one of x and y is very large and the other is subnormal.
33213         * sysdeps/s390/fpu/s_fmaf.c: New file.
33214         * sysdeps/s390/fpu/s_fma.c: New file.
33215         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
33216         * sysdeps/powerpc/fpu/s_fma.S: New file.
33217         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
33218         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
33219         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
33220
33221 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
33222
33223         [BZ #3268]
33224         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
33225         fma tests.
33226         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
33227         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
33228         * sysdeps/i386/i686/multiarch/s_fma.c: Include
33229         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
33230         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
33231         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
33232         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
33233
33234 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
33235
33236         [BZ #12078]
33237         * posix/regcomp.c (parse_branch): One more memory leak plugged.
33238         * posix/bug-regex31.input: Add test case.
33239
33240 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33241
33242         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
33243         * posix/bug-regex31.input: New file.
33244
33245         [BZ #12078]
33246         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
33247         (parse_sub_exp): Fix last change, use postorder.
33248
33249         * posix/bug-regex31.c: New file.
33250         * posix/Makefile: Add rules to build and run bug-regex31.
33251
33252         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
33253
33254         [BZ #12078]
33255         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
33256
33257         [BZ #12108]
33258         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
33259         to have entries in sys_siglist.
33260
33261         [BZ #12093]
33262         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
33263         be NULL.
33264
33265 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
33266
33267         [BZ #3268]
33268         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
33269         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
33270         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
33271         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
33272         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33273         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
33274         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
33275         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
33276         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
33277         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
33278         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
33279         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
33280         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
33281         * math/ftestexcept.c (fetestexcept): Likewise.
33282         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
33283         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
33284         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
33285         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
33286         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
33287         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
33288         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
33289
33290 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33291
33292         [BZ #12107]
33293         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
33294         newline.
33295
33296 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
33297
33298         * string/bug-strstr1.c: New file.
33299         * string/Makefile: Add rules to build and run bug-strstr1.
33300
33301 2010-10-05  Eric Blake  <eblake@redhat.com>
33302
33303         [BZ #12092]
33304         * string/str-two-way.h (two_way_long_needle): Always clear memory
33305         when skipping input due to the shift table.
33306
33307 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
33308
33309         [BZ #12005]
33310         * malloc/mcheck.c: Handle large requests.
33311
33312         [BZ #12077]
33313         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
33314         for strncmp and strncasecmp.
33315         * string/stratcliff.c: Add tests for strcmp and strncmp.
33316         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
33317
33318 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33319
33320         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
33321         __set_fpscr.
33322
33323 2010-09-30  Andreas Jaeger  <aj@suse.de>
33324
33325         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
33326         (CGROUP_SUPER_MAGIC): Define.
33327         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33328         Handle btrfs and cgroup file systems.
33329         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
33330         Likewise.
33331
33332 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
33333
33334         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
33335         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
33336
33337 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33338
33339         [BZ #12067]
33340         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
33341         trying to locate the ELF header.
33342
33343 2010-09-27  Andreas Schwab  <schwab@redhat.com>
33344
33345         [BZ #11611]
33346         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
33347         Mask out sign-bit copies when constructing f_fsid.
33348
33349 2010-09-24  Petr Baudis <pasky@suse.cz>
33350
33351         * debug/stack_chk_fail_local.c: Add missing licence exception.
33352         * debug/warning-nop.c: Likewise.
33353
33354 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
33355
33356         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
33357         implementing getdents64 using getdents syscall, set d_type if
33358         __ASSUME_GETDENTS32_D_TYPE.
33359
33360 2010-09-16  Andreas Schwab  <schwab@redhat.com>
33361
33362         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
33363         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
33364
33365 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
33366
33367         [BZ #12037]
33368         * posix/unistd.h: Undo change of feature selection for ftruncate from
33369         2010-01-11.
33370
33371 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
33372
33373         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
33374         detection.
33375
33376 2010-09-20  Andreas Schwab  <schwab@redhat.com>
33377
33378         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
33379         fanotify_mark.
33380         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33381
33382 2010-09-14  Andreas Schwab  <schwab@redhat.com>
33383
33384         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
33385         variables after CHECK_SP call.
33386         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
33387
33388 2010-09-13  Andreas Schwab  <schwab@redhat.com>
33389             Ulrich Drepper  <drepper@redhat.com>
33390
33391         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
33392         re-relocationg ld.so.
33393         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
33394         _dl_init_paths call.
33395         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
33396         here anymore.
33397
33398 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
33399
33400         * resolv/res_init.c (__res_vinit): Count the default server we added.
33401
33402 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
33403             Ulrich Drepper  <drepper@redhat.com>
33404
33405         [BZ #11968]
33406         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33407         (____longjmp_chk): Use %ebx for saving value across system call.
33408         Add unwind info.
33409
33410 2010-09-06  Andreas Schwab  <schwab@redhat.com>
33411
33412         * manual/Makefile: Don't mix pattern rules with normal rules.
33413
33414 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
33415
33416         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
33417         operation.
33418         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
33419         * libio/iofopncook.c (_IO_cookie_init): Likewise.
33420         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
33421         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
33422         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33423         Likewise.
33424
33425 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
33426
33427         [BZ #11979]
33428         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
33429         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
33430
33431 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
33432
33433         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
33434         * sysdeps/x86_64/addmul_1.S: Likewise.
33435         * sysdeps/x86_64/lshift.S: Likewise.
33436         * sysdeps/x86_64/mul_1.S: Likewise.
33437         * sysdeps/x86_64/rshift.S: Likewise.
33438         * sysdeps/x86_64/sub_n.S: Likewise.
33439         * sysdeps/x86_64/submul_1.S: Likewise.
33440
33441 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33442
33443         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
33444         Define __sched_param instead of SCHED_* and sched_param when
33445         <bits/sched.h> is included with __need_schedparam defined.
33446         * bits/sched.h [__need_schedparam]
33447         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
33448         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
33449         (__defined_schedparam): Define to 1.
33450         (__sched_param): New structure, identical to sched_param.
33451         (__need_schedparam): Undefine.
33452
33453 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
33454
33455         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
33456         (epoll_create1): Declare.
33457
33458         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
33459
33460 2010-08-31  Andreas Schwab  <schwab@redhat.com>
33461
33462         [BZ #7066]
33463         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
33464         shifting retval into place.
33465
33466 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
33467
33468         * nis/rpcsvc/nis.h: Update copyright notice.
33469         * nis/rpcsvc/nis.x: Likewise.
33470         * nis/rpcsvc/nis_callback.h: Likewise.
33471         * nis/rpcsvc/nis_callback.x: Likewise.
33472         * nis/rpcsvc/nis_object.x: Likewise.
33473         * nis/rpcsvc/nis_tags.h: Likewise.
33474         * nis/rpcsvc/yp.h: Likewise.
33475         * nis/rpcsvc/yp.x: Likewise.
33476         * nis/rpcsvc/ypupd.h: Likewise.
33477         * nis/yp_xdr.c: Likewise.
33478         * nis/ypupdate_xdr.c: Likewise.
33479
33480         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
33481         mainly the body of pmap_getport.  Add parameters to specify timeouts.
33482         (pmap_getport): Use __libc_rpc_getport.
33483         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
33484         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
33485         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
33486
33487 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
33488
33489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
33490         fanotify_mark.
33491
33492 2010-08-27  Roland McGrath  <roland@redhat.com>
33493
33494         * sysdeps/i386/i686/multiarch/Makefile
33495         (CFLAGS-varshift.c): New variable.
33496
33497 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
33498
33499         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
33500         * sysdeps/i386/i686/multiarch/varshift.c: New file.
33501
33502         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
33503
33504         * sysdeps/x86_64/strlen.S: Minimal code improvement.
33505
33506 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
33507
33508         * sysdeps/x86_64/strlen.S: Unroll the loop.
33509         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33510         strlen-sse2 strlen-sse2-bsf.
33511         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
33512         __strlen_no_bsf if bit_Slow_BSF is set.
33513         (__strlen_sse42): Removed.
33514         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
33515         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
33516
33517 2010-08-25  Roland McGrath  <roland@redhat.com>
33518
33519         * sysdeps/x86_64/multiarch/varshift.S: File removed.
33520         * sysdeps/x86_64/multiarch/varshift.c: New file.
33521         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
33522         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
33523         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
33524         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
33525
33526 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
33527
33528         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33529         strlen-sse2 strlen-sse2-bsf.
33530         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
33531         __strlen_sse2_bsf if bit_Slow_BSF is unset.
33532         (__strlen_sse2): Removed.
33533         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
33534         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
33535         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
33536         bit_Slow_BSF for Atom.
33537         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
33538         (index_Slow_BSF): Define.
33539         (HAS_SLOW_BSF): Define.
33540
33541 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
33542
33543         [BZ #10851]
33544         * resolv/res_init.c (__res_vinit): When no server address at all
33545         is given default to loopback.
33546
33547 2010-08-24  Roland McGrath  <roland@redhat.com>
33548
33549         * configure.in: Remove config-name.h generation.
33550         * configure: Regenerated.
33551         * config-name.in: File removed.
33552         * scripts/config-uname.sh: New file.
33553         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
33554         ($(objdir)config-name.h): New target.
33555
33556         * sunrpc/rpc_parse.h: Avoid nested comment.
33557
33558 2010-08-24  Richard Henderson  <rth@redhat.com>
33559             Ulrich Drepper  <drepper@redhat.com>
33560             H.J. Lu  <hongjiu.lu@intel.com>
33561
33562         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
33563         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
33564         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
33565         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
33566         _mm_alignr_epi8 with _mm_loadu_si128.
33567         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
33568         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
33569         (__m128i_shift_right): Removed.
33570         * sysdeps/i386/i686/multiarch/varshift.h: New file.
33571         * sysdeps/i386/i686/multiarch/varshift.S: New file.
33572         * sysdeps/x86_64/multiarch/varshift.h: New file.
33573         * sysdeps/x86_64/multiarch/varshift.S: New file.
33574
33575 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
33576
33577         * configure.in: Move assembler checks to before sysdep dir checking.
33578
33579 2010-08-20  Petr Baudis  <pasky@suse.cz>
33580
33581         * LICENSES: Sync the sunrpc license.
33582
33583 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
33584
33585         * sunrpc/auth_des.c: Update copyright notice once again.
33586         * sunrpc/auth_none.c: Likewise.
33587         * sunrpc/auth_unix.c: Likewise.
33588         * sunrpc/authdes_prot.c: Likewise.
33589         * sunrpc/authuxprot.c: Likewise.
33590         * sunrpc/bindrsvprt.c: Likewise.
33591         * sunrpc/clnt_gen.c: Likewise.
33592         * sunrpc/clnt_perr.c: Likewise.
33593         * sunrpc/clnt_raw.c: Likewise.
33594         * sunrpc/clnt_simp.c: Likewise.
33595         * sunrpc/clnt_tcp.c: Likewise.
33596         * sunrpc/clnt_udp.c: Likewise.
33597         * sunrpc/clnt_unix.c: Likewise.
33598         * sunrpc/des_crypt.c: Likewise.
33599         * sunrpc/des_soft.c: Likewise.
33600         * sunrpc/get_myaddr.c: Likewise.
33601         * sunrpc/getrpcport.c: Likewise.
33602         * sunrpc/key_call.c: Likewise.
33603         * sunrpc/key_prot.c: Likewise.
33604         * sunrpc/openchild.c: Likewise.
33605         * sunrpc/pm_getmaps.c: Likewise.
33606         * sunrpc/pm_getport.c: Likewise.
33607         * sunrpc/pmap_clnt.c: Likewise.
33608         * sunrpc/pmap_prot.c: Likewise.
33609         * sunrpc/pmap_prot2.c: Likewise.
33610         * sunrpc/pmap_rmt.c: Likewise.
33611         * sunrpc/rpc/auth.h: Likewise.
33612         * sunrpc/rpc/auth_unix.h: Likewise.
33613         * sunrpc/rpc/clnt.h: Likewise.
33614         * sunrpc/rpc/des_crypt.h: Likewise.
33615         * sunrpc/rpc/key_prot.h: Likewise.
33616         * sunrpc/rpc/netdb.h: Likewise.
33617         * sunrpc/rpc/pmap_clnt.h: Likewise.
33618         * sunrpc/rpc/pmap_prot.h: Likewise.
33619         * sunrpc/rpc/pmap_rmt.h: Likewise.
33620         * sunrpc/rpc/rpc.h: Likewise.
33621         * sunrpc/rpc/rpc_des.h: Likewise.
33622         * sunrpc/rpc/rpc_msg.h: Likewise.
33623         * sunrpc/rpc/svc.h: Likewise.
33624         * sunrpc/rpc/svc_auth.h: Likewise.
33625         * sunrpc/rpc/types.h: Likewise.
33626         * sunrpc/rpc/xdr.h: Likewise.
33627         * sunrpc/rpc_clntout.c: Likewise.
33628         * sunrpc/rpc_cmsg.c: Likewise.
33629         * sunrpc/rpc_common.c: Likewise.
33630         * sunrpc/rpc_cout.c: Likewise.
33631         * sunrpc/rpc_dtable.c: Likewise.
33632         * sunrpc/rpc_hout.c: Likewise.
33633         * sunrpc/rpc_main.c: Likewise.
33634         * sunrpc/rpc_parse.c: Likewise.
33635         * sunrpc/rpc_parse.h: Likewise.
33636         * sunrpc/rpc_prot.c: Likewise.
33637         * sunrpc/rpc_sample.c: Likewise.
33638         * sunrpc/rpc_scan.c: Likewise.
33639         * sunrpc/rpc_scan.h: Likewise.
33640         * sunrpc/rpc_svcout.c: Likewise.
33641         * sunrpc/rpc_tblout.c: Likewise.
33642         * sunrpc/rpc_util.c: Likewise.
33643         * sunrpc/rpc_util.h: Likewise.
33644         * sunrpc/rpcinfo.c: Likewise.
33645         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
33646         * sunrpc/rpcsvc/key_prot.x: Likewise.
33647         * sunrpc/rpcsvc/klm_prot.x: Likewise.
33648         * sunrpc/rpcsvc/mount.x: Likewise.
33649         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
33650         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
33651         * sunrpc/rpcsvc/rex.x: Likewise.
33652         * sunrpc/rpcsvc/rstat.x: Likewise.
33653         * sunrpc/rpcsvc/rusers.x: Likewise.
33654         * sunrpc/rpcsvc/sm_inter.x: Likewise.
33655         * sunrpc/rpcsvc/spray.x: Likewise.
33656         * sunrpc/rpcsvc/yppasswd.x: Likewise.
33657         * sunrpc/rtime.c: Likewise.
33658         * sunrpc/svc.c: Likewise.
33659         * sunrpc/svc_auth.c: Likewise.
33660         * sunrpc/svc_authux.c: Likewise.
33661         * sunrpc/svc_raw.c: Likewise.
33662         * sunrpc/svc_run.c: Likewise.
33663         * sunrpc/svc_simple.c: Likewise.
33664         * sunrpc/svc_tcp.c: Likewise.
33665         * sunrpc/svc_udp.c: Likewise.
33666         * sunrpc/svc_unix.c: Likewise.
33667         * sunrpc/svcauth_des.c: Likewise.
33668         * sunrpc/xcrypt.c: Likewise.
33669         * sunrpc/xdr.c: Likewise.
33670         * sunrpc/xdr_array.c: Likewise.
33671         * sunrpc/xdr_float.c: Likewise.
33672         * sunrpc/xdr_mem.c: Likewise.
33673         * sunrpc/xdr_rec.c: Likewise.
33674         * sunrpc/xdr_ref.c: Likewise.
33675         * sunrpc/xdr_sizeof.c: Likewise.
33676         * sunrpc/xdr_stdio.c: Likewise.
33677
33678         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
33679         handling.
33680
33681 2010-08-19  Andreas Schwab  <schwab@redhat.com>
33682
33683         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
33684
33685 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
33686
33687         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
33688         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
33689         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
33690         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
33691         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
33692         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
33693         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
33694         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
33695         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
33696         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
33697         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
33698         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
33699         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
33700         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
33701
33702 2010-07-26  Anton Blanchard  <anton@samba.org>
33703
33704         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
33705         * malloc/arena.c (heap_trim): Likewise.
33706
33707 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
33708
33709         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
33710         here.  Not...
33711         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
33712         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
33713
33714 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33715
33716         * sysdeps/i386/elf/Makefile: New file.
33717
33718 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
33719
33720         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
33721         from fanotify_init.
33722         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
33723         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
33724
33725 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
33726
33727         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
33728         of strncasecmp_l.
33729         * sysdeps/multiarch/strcmp.S: Likewise.
33730
33731 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
33732
33733         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
33734         strncase_l-nonascii.
33735         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
33736         Add strncase_l-ssse3.
33737         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
33738         * sysdeps/x86_64/strcmp.S: Likewise.
33739         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
33740         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
33741         * sysdeps/x86_64/strncase.S: New file.
33742         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
33743         * sysdeps/x86_64/strncase_l.S: New file.
33744         * string/Makefile (strop-tests): Add strncasecmp.
33745         * string/test-strncasecmp.c: New file.
33746
33747         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
33748         warning.
33749
33750         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
33751         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
33752
33753 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
33754
33755         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
33756
33757 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
33758
33759         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
33760         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
33761         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
33762
33763 2010-05-01  Alan Modra  <amodra@gmail.com>
33764
33765         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
33766         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
33767         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
33768         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
33769         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
33770         tidying.  Don't tail-call __sigjmp_save for static lib.
33771         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
33772         save location.
33773         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
33774         (CALL_MCOUNT): Add eh info, and nop after bl.
33775         (TAIL_CALL_SYSCALL_ERROR): New macro.
33776         (PSEUDO_RET): Use it.
33777         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
33778         Correct save location of integer regs and cr.
33779         (_dl_profile_resolve): Correct cr save location.  Delete nops
33780         after bl when SHARED.  Reduce cfi size a little by better
33781         placement of cfi directives.
33782         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
33783         make a stack frame.  Instead use parm save area as a temp.
33784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
33785         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
33786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
33787         Don't make a stack frame for parent, use parm save area.
33788         Increase child stack frame to 112 bytes.  Don't save unused reg,
33789         and adjust reg usage.  Set up cfi on error recovery and
33790         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
33791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
33792         (__makecontext): Add dummy nop after jump to exit.
33793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
33794         Use correct parm save area and cr save, reduce stack frame.
33795         Correct cfi for possible PSEUDO_RET frame setup.
33796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
33797         Branch to local label emitted by PSEUDO_RET rather than
33798         __syscall_error.
33799
33800 2010-08-12  Andreas Schwab  <schwab@redhat.com>
33801
33802         [BZ #11904]
33803         * locale/programs/locale.c (print_assignment): New function.
33804         (show_locale_vars): Use it.
33805
33806 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
33807
33808         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
33809         field.
33810         (struct statfs64): Likewise.
33811         (_STATFS_F_FLAGS): Define.
33812         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
33813         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33814         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
33815         (ST_VALID): Define locally.
33816         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
33817         __statvfs_getflags, use the provided value.
33818         * sysdeps/unix/sysv/linux/kernel-features.h: Define
33819         __ASSUME_STATFS_F_FLAGS.
33820
33821         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
33822
33823         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
33824         Add sys/fanotify.h.
33825         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
33826         fanotify_mask for GLIBC_2.13.
33827         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
33828         fanotify_init and fanotify_mark.
33829         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
33830         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
33831
33832         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
33833         Add prlimit.
33834         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
33835         prlimit64 for GLIBC_2.13.
33836         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
33837         prlimit64.
33838         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
33839         syscall.
33840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
33841         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33842         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
33843         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
33844         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
33845         add prlimit alias.
33846         * sysdeps/unix/sysv/linux/prlimit.c: New file.
33847
33848         [BZ #11903]
33849         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
33850         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
33851
33852         * nss/Makefile: Add rules to build and run tst-nss-test1.
33853         * shlib-versions: Add entry for libnss_test1.
33854         * nss/nss_test1.c: New file.
33855         * nss/tst-nss-test1.c: New file.
33856
33857         * nss/nsswitch.c (__nss_database_custom): Define new variable.
33858         (__nss_configure_lookup): Set appropriate entry in
33859         __nss_configure_lookup to true.
33860         * nss/nsswitch.h: Define enum with indeces of databases in
33861         databases and __nss_database_custom arrays.  Declare
33862         __nss_database_custom.
33863         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
33864         to avoid using nscd when custom rules are installed.
33865         * nss/getXXbyYY_r.c: Likewise.
33866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
33867
33868         * nss/nss_files/files-parse.c: Whitespace fixes.
33869
33870 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
33871
33872         [BZ #11883]
33873         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
33874         * posix/fnmatch_loop.c: Likewise.
33875
33876 2010-07-17  Andi Kleen  <ak@linux.intel.com>
33877
33878         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
33879         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
33880         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
33881         * Versions.def [GLIBC_2.13]: Add.
33882
33883 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
33884
33885         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33886         Also fail if tpwd after pwuid call is NULL.
33887
33888 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33889
33890         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
33891         when converting to ms.
33892
33893 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33894
33895         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
33896         EOPNOTSUPP errors with ENOTTY.
33897         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
33898         EOPNOTSUPP errors with ENOTTY.
33899
33900 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
33901
33902         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
33903         Add strcasecmp_l-ssse3.
33904         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
33905         strcasecmp.
33906         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
33907         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
33908         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
33909
33910 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
33911
33912         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
33913
33914         * string/Makefile (strop-tests): Add strcasecmp.
33915         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
33916         strcasecmp_l-nonascii.
33917         (gen-as-const-headers): Add locale-defines.sym.
33918         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
33919         * sysdeps/x86_64/strcasecmp.S: New file.
33920         * sysdeps/x86_64/strcasecmp_l.S: New file.
33921         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
33922         * sysdeps/x86_64/locale-defines.sym: New file.
33923         * string/test-strcasecmp.c: New file.
33924
33925         * string/test-strcasestr.c: Test both ends of the range of characters.
33926         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
33927
33928 2010-07-29  Roland McGrath  <roland@redhat.com>
33929
33930         [BZ #11856]
33931         * manual/locale.texi (Yes-or-No Questions): Fix example code.
33932
33933 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
33934
33935         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
33936         for ld.so.
33937
33938 2010-07-27  Andreas Schwab  <schwab@redhat.com>
33939
33940         * manual/memory.texi (Malloc Tunable Parameters): Document
33941         M_PERTURB.
33942
33943 2010-07-26  Roland McGrath  <roland@redhat.com>
33944
33945         [BZ #11840]
33946         * configure.in (-fgnu89-inline check): Set and substitute
33947         gnu89_inline, not libc_cv_gnu89_inline.
33948         * configure: Regenerated.
33949         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
33950
33951 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
33952
33953         * string/test-strnlen.c: New file.
33954         * string/Makefile (strop-tests): Add strnlen.
33955         * string/tester.c (test_strnlen): Add a few more test cases.
33956         * string/tst-strlen.c: Better error reporting.
33957
33958         * sysdeps/x86_64/strnlen.S: New file.
33959
33960 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
33961
33962         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
33963         lower-latency instructions.
33964
33965 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
33966
33967         * string/test-strcasestr.c: New file.
33968         * string/test-strstr.c: New file.
33969         * string/Makefile (strop-tests): Add strstr and strcasestr.
33970         * string/str-two-way.h: Don't undefine MAX.
33971         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
33972
33973 2010-07-21  Andreas Schwab  <schwab@redhat.com>
33974
33975         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33976         strcasestr-nonascii.
33977         (CFLAGS-strcasestr-nonascii.c): Define.
33978         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
33979         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
33980         Remove unused attribute.
33981
33982 2010-07-20  Roland McGrath  <roland@redhat.com>
33983
33984         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
33985         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
33986         ld.so.cache was broken.  With it, there is no way to disable dsocaps
33987         like LD_HWCAP_MASK can disable hwcaps.
33988
33989 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
33990
33991         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
33992
33993 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
33994
33995         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
33996         call in strcasestr.
33997         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
33998         __strcasestr_sse42_nonascii.
33999         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
34000         strcasestr-nonascii.c.
34001         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
34002
34003 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
34004
34005         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
34006         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
34007         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
34008         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
34009
34010 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
34011
34012         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
34013         fcntl.
34014
34015 2010-07-06  Andreas Schwab  <schwab@redhat.com>
34016
34017         [BZ #11577]
34018         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
34019         dl_signal_cerror.
34020
34021 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
34022
34023         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
34024         _PC_PIPE_BUF using F_GETPIPE_SZ.
34025
34026 2010-07-05  Roland McGrath  <roland@redhat.com>
34027
34028         * manual/arith.texi (Rounding Functions): Fix rint description
34029         implicit in round description.
34030
34031 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
34032
34033         * elf/Makefile: Fix linking for a few tests to make recent linker
34034         happy.
34035
34036 2010-06-30  Andreas Schwab  <schwab@redhat.com>
34037
34038         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34039         $(common-objpfx)libc_nonshared.a.
34040
34041 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
34042
34043         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
34044         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
34045         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
34046         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
34047         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
34048         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
34049         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
34050         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
34051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
34052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
34053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
34054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
34055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
34056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
34057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
34058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
34059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
34060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
34061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
34062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
34063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
34064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
34065         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
34066         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
34067         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
34068         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
34069         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
34070         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
34071         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
34072         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
34073         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
34074         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
34075         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
34076         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
34077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
34078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
34079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
34080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
34081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
34082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
34083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
34084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
34085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
34086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
34087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
34088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
34089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
34090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
34091
34092 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
34093
34094         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
34095         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
34096         * string/memmove.c (memmove): Renamed to ...
34097         (MEMMOVE): ...this.  Default to memmove.
34098         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
34099         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
34100         (END_CHK): Define.
34101         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34102         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
34103         mempcpy-ssse3-back memmove-ssse3-back.
34104         * sysdeps/x86_64/multiarch/bcopy.S: New file .
34105         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
34106         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
34107         * sysdeps/x86_64/multiarch/memcpy.S: New file.
34108         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
34109         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
34110         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
34111         * sysdeps/x86_64/multiarch/memmove.c: New file.
34112         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
34113         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
34114         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
34115         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
34116         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
34117         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
34118         Define.
34119         (index_Fast_Copy_Backward): Define.
34120         (HAS_ARCH_FEATURE): Define.
34121         (HAS_FAST_REP_STRING): Define.
34122         (HAS_FAST_COPY_BACKWARD): Define.
34123
34124 2010-06-21  Andreas Schwab  <schwab@redhat.com>
34125
34126         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34127         Restore proper fallback handling.
34128
34129 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
34130
34131         [BZ #11701]
34132         * posix/group_member.c (__group_member): Correct checking loop.
34133
34134         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
34135         OOM in getpwuid_r correctly.  Return error number when the caller
34136         should return, otherwise -1.
34137         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
34138         call returning > 0 value.
34139         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
34140
34141 2010-06-07  Andreas Schwab  <schwab@redhat.com>
34142
34143         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
34144         libc_nonshared.a from targets in modules-names.
34145
34146 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
34147
34148         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
34149         requires it.
34150
34151 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
34152
34153         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
34154         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
34155         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
34156         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
34157
34158 2010-06-02  Andreas Schwab  <schwab@redhat.com>
34159
34160         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
34161
34162 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
34163
34164         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
34165         and F_GETPIPE_SZ.
34166         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
34167         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34168         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
34169         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
34170         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
34171         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
34172
34173 2010-06-14  Roland McGrath  <roland@redhat.com>
34174
34175         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
34176
34177 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
34178
34179         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
34180         __REDIRECT followed by __THROW.
34181         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
34182         * posix/getopt.h (getopt): Likewise.
34183
34184 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
34185
34186         * hurd/lookup-at.c (__file_name_lookup_at): Accept
34187         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
34188         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
34189         in AT_FLAGS.
34190         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
34191         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
34192
34193 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
34194
34195         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
34196
34197 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
34198
34199         [BZ #11640]
34200         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34201         Properly check family and model.
34202
34203 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
34204
34205         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
34206
34207 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
34208
34209         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
34210
34211 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
34212
34213         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
34214         symbol reference.
34215
34216 2010-05-19  Andreas Schwab  <schwab@redhat.com>
34217
34218         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
34219         symbol reference.
34220
34221 2010-05-21  Andreas Schwab  <schwab@redhat.com>
34222
34223         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
34224         and internal_recvmmsg.
34225         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
34226         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
34227         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
34228         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
34229
34230         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
34231         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
34232         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
34233
34234 2010-05-20  Andreas Schwab  <schwab@redhat.com>
34235
34236         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
34237
34238 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
34239
34240         POWER7 optimizations.
34241         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
34242         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
34243
34244 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
34245
34246         * version.h: Update for 2.13 development version.
34247
34248 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
34249
34250         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
34251         exceptions.  Return 0.
34252
34253 2010-05-07  Roland McGrath  <roland@redhat.com>
34254
34255         * elf/ldconfig.c (main): Add a const.
34256
34257 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
34258
34259         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
34260         (args_options): Add no-idn option.
34261         (ahosts_keys_int): Add idn_flags to ai_flags.
34262         (parse_option): Handle 'i' option to clear idn_flags.
34263
34264         * malloc/malloc.c (_int_free): Possible race in the most recently
34265         added check.  Only act on the data if no current modification
34266         happened.
34267
34268 See ChangeLog.17 for earlier changes.