Consolidate multiple precision sin/cos functions
[platform/upstream/glibc.git] / ChangeLog
1 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         * sysdeps/generic/math_private.h (__mpsin1): Remove
4         declaration.
5         (__mpcos1): Likewise.
6         (__mpsin): New argument __range_reduce.
7         (__mpcos): Likewise.
8         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9         (slow): Use __mpsin and __mpcos.
10         (slow1): Likewise.
11         (slow2): Likewise.
12         (sloww): Likewise.
13         (sloww1): Likewise.
14         (sloww2): Likewise.
15         (bsloww): Likewise.
16         (bsloww1): Likewise.
17         (bsloww2): Likewise.
18         (cslow2): Likewise.
19         (csloww): Likewise.
20         (csloww1): Likewise.
21         (csloww2): Likewise.
22         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
23         range_reduce.  Merge in __mpsin1.
24         (__mpcos): Likewise.
25         (__mpsin1): Remove.
26         (__mpcos1): Likewise.
27
28 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
29
30         * locale/loadlocale.c (_nl_intern_locale_data): Use
31         LOCFILE_ALIGNED_P.
32         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
33         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
34         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
35         obstack data is appropriately aligned.
36         (obstack_int32_grow_fast): Likewise.
37         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
38         * locale/programs/locfile.c (add_locale_uint32): Likewise.
39         (add_locale_uint32_array): Likewise.
40
41 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
42
43         * benchtests/Makefile: Remove ARGLIST and RET variables.
44         ($(objpfx)bench-%.c): Pass only function name to the script.
45         * benchtests/README: Update documentation.
46         * benchtests/acos-inputs: Add new directives.
47         * benchtests/acosh-inputs: Likewise.
48         * benchtests/asin-inputs: Likewise.
49         * benchtests/asinh-inputs: Likewise.
50         * benchtests/atan-inputs: Likewise.
51         * benchtests/atanh-inputs: Likewise.
52         * benchtests/cos-inputs: Likewise.
53         * benchtests/cosh-inputs: Likewise.
54         * benchtests/exp-inputs: Likewise.
55         * benchtests/log-inputs: Likewise.
56         * benchtests/pow-inputs: Likewise.
57         * benchtests/rint-inputs: Likewise.
58         * benchtests/sin-inputs: Likewise.
59         * benchtests/sinh-inputs: Likewise.
60         * benchtests/tan-inputs: Likewise.
61         * benchtests/tanh-inputs: Likewise.
62         * scripts/bench.pl: Add support for new directives.
63
64 2013-10-07  Alan Modra  <amodra@gmail.com>
65
66         * README: Fix careless merge.
67
68 2013-10-05  Alan Modra  <amodra@gmail.com>
69
70         * NEWS: Mention powerpc64le support and bugs fixed.
71         * README: Both big-endian and little-endian powerpc64 supported.
72
73 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74
75         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
76         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
77         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
78         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
79
80 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
81
82         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
83         match prototype.
84
85 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
86
87         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
88         Move -mhard-float appending from
89         ports/sysdeps/powerpc/powerpc32/Makefile.
90         [$(with-fp) = yes] (ASFLAGS): Likewise.
91         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
92         * sysdeps/powerpc/nofpu: Move directory from
93         ports/sysdeps/powerpc/nofpu.
94         * sysdeps/powerpc/soft-fp: Move directory from
95         ports/sysdeps/powerpc/soft-fp.
96         * sysdeps/powerpc/powerpc32/405: Move directory from
97         ports/sysdeps/powerpc/powerpc32/405.
98         * sysdeps/powerpc/powerpc32/440: Move directory from
99         ports/sysdeps/powerpc/powerpc32/440.
100         * sysdeps/powerpc/powerpc32/464: Move directory from
101         ports/sysdeps/powerpc/powerpc32/464.
102         * sysdeps/powerpc/powerpc32/476: Move directory from
103         ports/sysdeps/powerpc/powerpc32/476.
104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
105         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
107         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
109         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
111         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
113         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
114         * README: Update for powerpc-*-linux-gnu software floating point
115         support in libc.
116
117         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
118         case to powerpc/powerpc32*.
119         * sysdeps/unix/sysv/linux/configure: Regenerated.
120
121         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
122         (_FPU_MASK_OM): Define as 0x04.
123         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
124         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
125         0x00c10080.
126         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
127         0x0000003c.
128         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
129
130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
131         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
132         getcontext_e500.
133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
134         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
135         setcontext_e500.
136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
137         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
138         and setcontext_e500.
139
140 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
141
142         * locale/iso-3166.def: Update iso-1366.def and related occurrences
143
144 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
145
146         * manual/threads.texi (Default Thread Attributes): Fix typo.
147
148 2013-10-04  Will Newton  <will.newton@linaro.org>
149
150         * malloc/Makefile: Add tst-memalign.
151         * malloc/tst-memalign.c: New file.
152
153         * malloc/tst-posix_memalign.c: Add comments.
154         (do_test): Add comments and call free on all potentially
155         allocated pointers. Add space after cast.
156
157         * malloc/tst-pvalloc.c: Add comments.
158         (do_test): Add comments and call free on all potentially
159         allocated pointers. Remove duplicate check for NULL pointer.
160         Add space after cast.
161
162         * malloc/tst-valloc.c: Add comments.
163         (do_test): Add comments and call free on all potentially
164         allocated pointers. Remove duplicate check for NULL pointer.
165         Add space after cast.
166
167 2013-10-04  Alan Modra  <amodra@gmail.com>
168
169         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
170         Use stdint types in rather than __attribute__((mode())).
171         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
172
173 2013-10-04  Alan Modra  <amodra@gmail.com>
174
175         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
176         Correct handling of unaligned relocs for little-endian.
177         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
178
179 2013-10-04  Alan Modra  <amodra@gmail.com>
180
181         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
182         * configure: Regenerate.
183         * nptl/shlib-versions: Powerpc*le starts at 2.18.
184         * shlib-versions: Likewise.
185
186 2013-10-04  Alan Modra  <amodra@gmail.com>
187
188         * string/tester.c (test_memrchr): Increment reported test cycle.
189
190 2013-10-04  Alan Modra  <amodra@gmail.com>
191
192         * string/test-memcpy.c (do_one_test): When reporting errors, print
193         string address and don't overrun end of string.
194
195 2013-10-04  Alan Modra  <amodra@gmail.com>
196
197         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
198         insrdi.  Make better use of reg selection to speed exit slightly.
199         Schedule entry path a little better.  Remove useless "are we done"
200         checks on entry to main loop.  Handle wrapping around zero address.
201         Correct main loop count.  Handle single left-over word from main
202         loop inline rather than by using loop_small.  Remove extra word
203         case in loop_small caused by wrong loop count.  Add little-endian
204         support.
205         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
206         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
207         cache hint.
208         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
209         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
210         support.  Avoid rlwimi.
211         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
212
213 2013-10-04  Alan Modra  <amodra@gmail.com>
214
215         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
216         insrdi.  Formatting.
217         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
218         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
219         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
220         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
221         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
222         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
223
224 2013-10-04  Alan Modra  <amodra@gmail.com>
225
226         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
227         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
228         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
229         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
230         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
231         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
232         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
233         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
234         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
235         use of regs.  Use power7 mtocrf.  Tidy function tails.
236
237 2013-10-04  Alan Modra  <amodra@gmail.com>
238
239         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
240         Formatting.  Consistently use rXXX register defines or rN defines.
241         Use early exit labels that avoid restoring unused non-volatile regs.
242         Make cr field use more consistent with rWORDn compares.  Rename
243         regs used as shift registers for unaligned loop, using rN defines
244         for short lifetime/multiple use regs.
245         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
246         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
247         addi 1,1,64 to pop stack frame.  Simplify return value code.
248         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
249
250 2013-10-04  Alan Modra  <amodra@gmail.com>
251
252         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
253         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
254         rather than rlwimi.
255         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
256         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
257         little-endian support.  Correct typos.
258         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
259         rather than rlwimi.
260         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
261         in loop and entry code to keep "and." results.
262         (strchr): Add little-endian support.  Comment.  Move cntlzd
263         earlier in tail.
264         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
265
266 2013-10-04  Alan Modra  <amodra@gmail.com>
267
268         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
269         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
270         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
271         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
272
273 2013-10-04  Alan Modra  <amodra@gmail.com>
274
275         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
276         (rTMP): Define as r11.
277         (strcmp): Add little-endian support.  Optimise tail.
278         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
279         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
280         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
281         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
282         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
283         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
284         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
285
286 2013-10-04  Alan Modra  <amodra@gmail.com>
287
288         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
289         little-endian support.  Remove unnecessary "are we done" tests.
290         Handle "s" wrapping around zero and extremely large "size".
291         Correct main loop count.  Handle single left-over word from main
292         loop inline rather than by using small_loop.  Correct comments.
293         Delete "zero" tail, use "end_max" instead.
294         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
295
296 2013-10-04  Alan Modra  <amodra@gmail.com>
297
298         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
299         support.  Don't branch over align.
300         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
301         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
302         support.  Rearrange tmp reg use to suit.  Comment.
303         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
304
305 2013-10-04  Alan Modra  <amodra@gmail.com>
306
307         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
308
309 2013-10-04  Alan Modra  <amodra@gmail.com>
310
311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
312         conditional form of branch and link when obtaining pc.
313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
314
315 2013-10-04  Alan Modra  <amodra@gmail.com>
316
317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
318         HIWORD/LOWORD.
319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
321
322 2013-10-04  Alan Modra  <amodra@gmail.com>
323
324         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
325         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
326         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
327         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
328         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
329         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
330         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
331         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
332         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
333         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
334
335 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
336             Alistair Popple <alistair@ozlabs.au.ibm.com>
337             Alan Modra <amodra@gmail.com>
338
339         [BZ #15723]
340         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
341         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
342         _dl_hwcap access for little-endian.
343         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
344         destroy vmx regs when saving unaligned.
345         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
346         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
347         destroy vmx regs when saving unaligned.
348
349 2013-10-04  Alan Modra  <amodra@gmail.com>
350
351         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
352         Don't use a union to pack hi/low value.
353
354 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
355
356         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
357         for little-endian.
358         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
359         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
360         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
361         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
362         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
363
364 2013-10-04  Alan Modra  <amodra@gmail.com>
365
366         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
367         constants to usual value for .cst8 section, and remove redundant
368         high address load.
369         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
370         constant for 0x1p52.  Load little-endian words of double from
371         correct stack offsets.
372
373 2013-10-04  Alan Modra  <amodra@gmail.com>
374
375         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
376         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
377         words of double from correct stack offsets.
378         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
379         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
380         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
381         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
382         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
383         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
384         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
385         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
386         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
387         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
388         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
389         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
390         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
391         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
392         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
393         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
394         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
395
396 2013-10-04  Alan Modra  <amodra@gmail.com>
397
398         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
399         64-bit int/double union.
400         (_FPU_SETCW): Likewise.
401         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
402         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
403
404 2013-10-04  Alan Modra  <amodra@gmail.com>
405
406         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
407         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
408
409 2013-10-04  Alan Modra  <amodra@gmail.com>
410
411         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
412         use vector int constants.
413         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
414
415 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
416
417         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
418         array with long long.
419         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
420         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
421         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
422         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
423         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
424         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
425         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
426         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
427         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
428         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
429         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
430         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
431         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
432
433 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
434
435         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
436         (__signbit): Likewise.  Correct for little-endian.
437         (__signbitl): Call __signbit.
438         (lrint): Correct for little-endian.
439         (lrintf): Call lrint.
440
441 2013-10-04  Alan Modra  <amodra@gmail.com>
442
443         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
444         union 32-bit int array member with 64-bit int array.
445         (t515, tm256): Double rather than long double.
446         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
447
448 2013-10-04  Alan Modra  <amodra@gmail.com>
449
450         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
451         Delete.
452         (IEEE854_LONG_DOUBLE_BIAS): Delete.
453         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
454         version of math_ldbl.h.
455
456 2013-10-04  Alan Modra  <amodra@gmail.com>
457
458         [BZ #15734], [BZ #15735]
459         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
460         all uses of ieee875 long double macros and unions.  Simplify test
461         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
462         ldbl_extract_mantissa value for ix,iy exponents.  Properly
463         normalize after ldbl_extract_mantissa, and don't add hidden bit
464         already handled.  Don't treat low word of ieee854 mantissa like
465         low word of IBM long double and mask off bit when testing for
466         zero.
467         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
468         all uses of ieee875 long double macros and unions.  Simplify tests
469         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
470         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
471         two1022, instead use their values.  Recognise that tests for large
472         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
473         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
474         Rewrite all uses of ieee875 long double macros and unions.  Simplify
475         test for 0.0L and nan.  Correct negation.
476         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
477         ieee875 long double macros and unions.  Correct output for large
478         magnitude x.  Correct absolute value calculation.
479         (__erfcl): Likewise.
480         * math/libm-test.inc: Add tests for errors discovered in IBM long
481         double versions of fmodl, remainderl, erfl and erfcl.
482
483 2013-10-04  Alan Modra  <amodra@gmail.com>
484
485         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
486         all uses of ieee854 long double macros and unions.  Simplify tests
487         for long doubles that are fully specified by the high double.
488         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
489         Likewise.
490         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
491         Remove dead code too.
492         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
493         (__ieee754_ynl): Likewise.
494         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
495         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
496         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
497         Remove dead code too.
498         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
499         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
500         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
501         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
502         Simplify.
503         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
504         Simplify.
505         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
506         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
507         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
508         Comment on variable precision.
509         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
510         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
511         Likewise.
512         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
513         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
514         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
515         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
516         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
517
518 2013-10-04  Alan Modra  <amodra@gmail.com>
519
520         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
521         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
522         all uses of ieee854 long double macros and unions.
523         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
524         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
525         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
526         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
527         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
528         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
529         Likewise.
530         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
531         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
532         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
533         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
534         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
535         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
536         Simplify sign and nan test too.
537         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
538         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
539         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
540         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
541         Likewise.
542         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
543         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
544         Likewise.
545         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
546         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
547         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
548         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
549         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
550         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
551
552 2013-10-04  Alan Modra  <amodra@gmail.com>
553
554         * stdio-common/printf_size.c (__printf_size): Don't use
555         union ieee854_long_double in fpnum union.
556         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
557         signbit macro to retrieve sign from long double.
558         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
559         retrieve sign from long double.
560         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
561         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
562         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
563         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
564         * math/test-misc.c (main): Don't use union ieee854_long_double.
565
566 2013-10-04  Alan Modra  <amodra@gmail.com>
567
568         [BZ #15680]
569         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
570         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
571         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
572         calculation.  Remove unnecessary test for denormal exponent.
573         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
574         Correct handling of denormals.  Avoid undefined shift behaviour.
575         Correct normalisation of low mantissa when low double is denormal.
576         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
577         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
578         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
579         Correct normalisation of low mantissa.  Test for overflow of high
580         mantissa and normalise.
581         (ldbl_nearbyint): Use more readable constant for two52.
582         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
583         (__mpn_construct_long_double): Fix test for overflow of high
584         mantissa and correct normalisation.  Avoid undefined shift.
585
586 2013-10-04  Alan Modra  <amodra@gmail.com>
587
588         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
589         (union ibm_extended_long_double): Define as an array of ieee754_double.
590         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
591         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
592         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
593         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
594         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
595         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
596         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
597         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
598         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
599         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
600         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
601
602 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
603
604         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
605         page size instead of calling getpagesize.
606
607         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
608         (LOCFILE_ALIGN_MASK): Likewise.
609         (LOCFILE_ALIGN_UP): Likewise.
610         (LOCFILE_ALIGNED_P): Likewise.
611         * locale/programs/ld-collate.c (collate_output): Use the new
612         macros instead of __alignof__ (int32_t).
613         * locale/weight.h (findidx): Likewise.
614
615 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
616
617         [BZ #431]
618         * manual/string.texi: Fix strncat and wcsncat.
619
620 2013-10-03  Brooks Moses  <bmoses@google.com>
621
622         [BZ #15915]
623         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
624         * Makerules: ...here, and adjust associated comments.
625
626 2013-10-02  Will Newton  <will.newton@linaro.org>
627
628         * malloc/Makefile: Add tst-pvalloc.
629         * malloc/tst-pvalloc.c: New file.
630
631 2013-10-02  Will Newton  <will.newton@linaro.org>
632
633         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
634         improve test coverage.
635
636 2013-10-02  Will Newton  <will.newton@linaro.org>
637
638         * malloc/Makefile: Add tst-posix_memalign.
639         * malloc/tst-posix_memalign.c: New file.
640
641 2013-10-01  Eric Blake  <eblake@redhat.com>
642
643         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
644         Use __THROWNL rather than __THROW on static functions.
645
646 2013-09-30  Petr Machata  <pmachata@redhat.com>
647
648         * elf/elf.h (R_AARCH64_ABS16): New macro.
649         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
650         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
651         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
652         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
653         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
654         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
655         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
656         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
657         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
658         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
659         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
660         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
661         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
662         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
663         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
664         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
665         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
666         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
667         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
668         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
669         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
670         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
671         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
672         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
673         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
674         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
675         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
676         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
677         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
678         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
679         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
680         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
681         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
682         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
683         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
684         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
685         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
686         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
687         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
688         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
689         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
690         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
691         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
692         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
693         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
694         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
695         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
696         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
697         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
698         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
699         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
700         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
701         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
702         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
703         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
704         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
705         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
706         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
707         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
708         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
709         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
710         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
711         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
712         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
713         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
714         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
715         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
716         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
717         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
718         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
719         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
720         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
721         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
722         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
723         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
724         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
725         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
726         (R_AARCH64_TLSDESC_LDR): Likewise.
727         (R_AARCH64_TLSDESC_ADD): Likewise.
728         (R_AARCH64_TLSDESC_CALL): Likewise.
729
730 2013-09-30  Andreas Schwab  <schwab@suse.de>
731
732         [BZ #15048]
733         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
734         the nss database lookup.
735         * nscd/initgrcache.c (addinitgroupsX): Likewise.
736         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
737
738 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
739
740         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
741
742 2013-09-28  P. J. McDermott  <pj@pehjota.net>
743
744         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
745         ${Bash-specific parameter/pattern/string} parameter expansion.
746         * sysdeps/unix/make-syscalls.sh: Likewise.
747
748 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
749
750         * sysdeps/sh/stackguard-macros.h: New file.
751
752 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
753
754         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
755         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
756         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
757         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
758         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
759         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
760
761 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
762
763         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
764         Fix thread ID register.
765
766 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
767
768         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
769         [POSIX || UNIX98]: Require rather than permitting all symbols from
770         <time.h>.
771         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
772         element of struct sched_param.
773         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
774         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
775         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
776         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
777         constant.
778
779 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
780
781         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
782         argument calculation.
783
784 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
785
786         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
787         Expect macro.
788         [POSIX] (pthread_attr_t): Do not require type.
789         [POSIX] (pthread_cond_t): Likewise.
790         [POSIX] (pthread_condattr_t): Likewise.
791         [POSIX] (pthread_key_t): Likewise.
792         [POSIX] (pthread_mutex_t): Likewise.
793         [POSIX] (pthread_mutexattr_t): Likewise.
794         [POSIX] (pthread_once_t): Likewise.
795         [POSIX] (pthread_t): Likewise.
796         [POSIX-based standards] (pthread_atfork): Expect function.
797
798 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
799             Richard Sandiford  <richard@codesourcery.com>
800
801         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
802         (swap_endianness_p): New extern variable.
803         (set_big_endian): New inline function.
804         (maybe_swap_uint32): Likewise.
805         (maybe_swap_uint32_array): Likewise.
806         (maybe_swap_uint32_obstack): Likewise.
807         * locale/programs/locfile.c: Include <stdbool.h>.
808         (swap_endianness_p): New variable.
809         (add_locale_uint32): Call maybe_swap_uint32.
810         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
811         (write_locale_data): Call maybe_swap_uint32_array.
812         * locale/programs/ld-collate.c (obstack_int32_grow): Call
813         maybe_swap_uint32.
814         (obstack_int32_grow_fast): Likewise.
815         (output_weightwc): Call maybe_swap_uint32_obstack.
816         (collate_output): Likewise.
817         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
818         (OPT_LITTLE_ENDIAN): Likewise.
819         (options): Add --little-endian and --big-endian options.
820         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
821         * locale/programs/locarchive.c: Include "locfile.h".
822         (GET): New macro.
823         (SET): Likewise.
824         (INC): Likewise.
825         (create_archive): Use the new macros to access fields of
826         structures directly mapped from or written to locale archives.
827         (oldlocrecentcmp): Likewise.
828         (enlarge_archive): Likewise.
829         (insert_name): Likewise.
830         (add_alias): Likewise.
831         (add_locale): Likewise.
832         (delete_locales_from_archive): Likewise.
833         (show_archive_content): Likewise.
834         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
835         locale data.
836
837 2013-09-24  Roland McGrath  <roland@hack.frob.com>
838
839         * manual/freemanuals.texi: Updated from (newly) canonical copy at
840         http://www.gnu.org/doc/freemanuals.texi.
841         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
842
843 2013-09-24  Will Newton  <will.newton@linaro.org>
844
845         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
846         macro.
847
848 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
849
850         * locale/hashval.h (compute_hashval): Interpret bytes of key as
851         unsigned char.
852
853 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
854
855         * manual/threads.texi (POSIX Threads): Fix a typo.
856
857 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
858
859         [BZ #14547]
860         * string/tst-strcoll-overflow.c: New test case.
861         * string/Makefile (xtests): Add tst-strcoll-overflow.
862         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
863         cache if string sizes may cause integer overflow.
864
865         [BZ #14547]
866         * string/strcoll_l.c (coll_seq): New members rule, idx,
867         save_idx and back_us.
868         (get_next_seq_nocache): New function.
869         (do_compare_nocache): New function.
870         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
871         when malloc fails.
872
873 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
874
875         [BZ #15754]
876         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
877         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
878         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
879
880         [BZ #15754]
881         * elf/Makefile (tests): Add tst-ptrguard1.
882         (tests-static): Add tst-ptrguard1-static.
883         (tst-ptrguard1-ARGS): Define.
884         (tst-ptrguard1-static-ARGS): Define.
885         * elf/tst-ptrguard1.c: New file.
886         * elf/tst-ptrguard1-static.c: New file.
887         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
888         * sysdeps/i386/stackguard-macros.h: Likewise.
889         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
890         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
891         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
892         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
893         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
894         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
895
896 2013-09-23  Hector Marco  <hecmargi@upv.es>
897             Ismael Ripoll  <iripoll@disca.upv.es>
898             Carlos O'Donell  <carlos@redhat.com>
899
900         [BZ #15754]
901         * sysdeps/generic/stackguard-macros.h: Define
902         __pointer_chk_guard_local and POINTER_CHK_GUARD.
903         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
904         Define __pointer_chk_guard_local.
905         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
906         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
907
908 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
909
910         [BZ #15859]
911         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
912
913 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
914
915         * include/string.h (__ffs): Declare as hidden.
916         * string/ffs.c (__ffs): Define as hidden.
917         * sysdeps/i386/ffs.c (__ffs): Likewise.
918         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
919         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
920         * sysdeps/s390/ffs.c (__ffs): Likewise.
921         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
922
923 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
924
925         * NEWS: Mention malloc probes.
926
927         * malloc/arena.c (new_heap): New memory_heap_new probe.
928         (grow_heap): New memory_heap_more probe.
929         (shrink_heap): New memory_heap_less probe.
930         (heap_trim): New memory_heap_free probe.
931         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
932         (systrim): New memory_sbrk_less probe.
933         * manual/probes.texi: Document them.
934
935         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
936         * manual/probes.texi: Document it.
937
938         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
939         (__libc_realloc): Add memory_realloc_retry probe.
940         (__libc_memalign): Add memory_memalign_retry probe.
941         (__libc_valloc): Add memory_valloc_retry probe.
942         (__libc_pvalloc): Add memory_pvalloc_retry probe.
943         (__libc_calloc): Add memory_calloc_retry probe.
944         * manual/probes.texi: Document them.
945
946         * malloc/arena.c (get_free_list): Add probe
947         memory_arena_reuse_free_list.
948         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
949         and memory_arena_reuse.
950         (arena_get2) [!PER_THREAD]: Likewise.
951         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
952         memory_arena_reuse_realloc.
953         * manual/probes.texi: Document them.
954
955         * malloc/malloc.c (__libc_free): Add
956         memory_mallopt_free_dyn_thresholds probe.
957         (__libc_mallopt): Add multiple memory_mallopt probes.
958         * manual/probes.texi: Document them.
959
960         * malloc/malloc.c: Include stap-probe.h.
961         (__libc_mallopt): Add memory_mallopt probe.
962         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
963         * manual/probes.texi: New.
964         * manual/Makefile (chapters): Add probes.
965         * manual/threads.texi: Set next node.
966
967 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
968
969         [BZ #15963, #13985]
970         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
971         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
972         Add `Chinese' to `nan' entry name.
973
974 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
975
976         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
977         (POLYNOMIAL): Likewise.
978         (TAYLOR_SINCOS): Likewise.
979         (TAYLOR_SLOW): Likewise.
980         (__sin): Use TAYLOR_SINCOS.
981         (__cos): Likewise.
982         (slow): Use TAYLOR_SLOW.
983         (sloww): Likewise.
984         (bsloww): Likewise.
985         (csloww): Likewise.
986
987 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
988
989         * stdlib/strtod_l.c: Fix buffer overrun.
990
991 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
992
993         * benchtests/Makefile (bench): Add sincos.
994         * benchtests/bench-sincos.c: New file.
995
996         * math/libm-test.inc (cos_test_data): New test inputs.
997         (sin_test_data): Likewise.
998
999         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
1000         macro.
1001         (__sin): Use it.
1002         (__cos): Likewise.
1003         (slow1): Likewise.
1004         (slow2): Likewise.
1005         (sloww1): Likewise.
1006         (sloww2): Likewise.
1007         (bsloww1): Likewise.
1008         (bsloww2): Likewise.
1009         (cslow2): Likewise.
1010         (csloww1): Likewise.
1011         (csloww2): Likewise.
1012
1013         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
1014         function.
1015         (__sin): Use it.
1016         (__cos): Likewise.
1017
1018         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
1019         gotos.
1020         (__cos): Likewise.
1021
1022 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
1023
1024         * config.h.in (HAVE_MIPS_NAN2008): New macro.
1025         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
1026         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
1027         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
1028         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
1029         * elf/cache.c (print_entry): Handle the new cache flags.
1030
1031 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1032             Aldy Hernandez  <aldyh@redhat.com>
1033
1034         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
1035         Change condition to [_SOFT_FLOAT].
1036         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
1037         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
1038         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
1039         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
1040         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
1041         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
1042         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
1043         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
1044         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
1045         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
1046         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
1047         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
1048         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
1049         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
1050         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
1051         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
1052         declaration.
1053
1054 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1055
1056         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
1057         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1058         (__longjmp): Use LOAD_GP to load saved GPRs.
1059         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
1060         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1061         (__sigsetjmp): Use SAVE_GP to save GPRs.
1062
1063         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
1064         Do not append -msoft-float.
1065         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
1066
1067 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1068
1069         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
1070
1071 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
1072
1073         [BZ #15966]
1074         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
1075         (_FPU_GETCW): Use initial "__" on variable and field names but not
1076         on macro parameter name.
1077         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
1078         parentheses around reference to macro parameter.
1079
1080 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
1081
1082         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
1083         prototype.
1084         (ctype_startup): Use uint32_t in cast and sizeof for
1085         ctype->charnames.
1086
1087 2013-09-11  Jia Liu  <proljc@gmail.com>
1088
1089         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
1090         __daddr_t_defined.
1091         [__FreeBSD__]: Likewise.
1092
1093 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
1094
1095         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1096         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
1097         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
1098         (strchr): Remove __strchr_sse42 ifunc selection.
1099         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
1100         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
1101
1102 2013-09-11  Will Newton  <will.newton@linaro.org>
1103
1104         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
1105         parameter to RES. Remove hardcoded 1000 value.
1106         * benchtests/bench-skeleton.c (main): Pass RES parameter
1107         to TIMING_INIT and multiply result by 1000.
1108
1109 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1110
1111         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1112
1113 2013-09-11  Andreas Schwab  <schwab@suse.de>
1114
1115         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
1116         if not defined.
1117         (O_TMPFILE) [__USE_GNU]: Define.
1118         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
1119         Define.
1120
1121 2013-09-11  Will Newton  <will.newton@linaro.org>
1122
1123         [BZ #15857]
1124         * malloc/malloc.c (__libc_memalign): Check the value of bytes
1125         does not overflow.
1126
1127 2013-09-11  Will Newton  <will.newton@linaro.org>
1128
1129         [BZ #15856]
1130         * malloc/malloc.c (__libc_valloc): Check the value of bytes
1131         does not overflow.
1132
1133 2013-09-11  Will Newton  <will.newton@linaro.org>
1134
1135         [BZ #15855]
1136         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
1137         does not overflow.
1138
1139 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
1140
1141         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
1142         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1143         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1144         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1145         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1146
1147 2013-09-10  Allan McRae  <allan@archlinux.org>
1148
1149         [BZ #15748]
1150         * manual/arith.texi (Parsing of Floats): Clarify
1151         cross-reference.
1152
1153         [BZ #15849]
1154         * manual/install.texi (Running make install): Mention
1155         --enable-pt-chown.
1156         * INSTALL: Regenerated.
1157
1158 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1159
1160         * csu/init-first.c (_init): Remove the !SHARED condition around
1161         FPU control word initialization.
1162         * elf/dl-support.c (_dl_fpu_control): New variable.
1163         (_dl_aux_init) <AT_FPUCW>: Initialize it.
1164         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
1165         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
1166         * math/test-fpucw-static.c: New file.
1167         * math/test-fpucw-ieee.c: New file.
1168         * math/test-fpucw-ieee-static.c: New file.
1169         * math/Makefile (tests): Add `test-fpucw-ieee' and
1170         `$(tests-static)'.
1171         (tests-static): New variable.
1172         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
1173         dependency to...
1174         [($(build-shared),yes)]
1175         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
1176         ... this.
1177         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
1178         New dependency.
1179
1180 2013-09-09  Allan McRae  <allan@archlinux.org>
1181
1182         [BZ #15939]
1183         * manual/string.texi (Collation Functions): Fix typo in
1184         strcoll example.
1185         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
1186
1187         [BZ #15893]
1188         * stdlib/isomac.c (get_null_defines): Fix memory leak.
1189
1190         [BZ #15892]
1191         * libio/memstream.c (open_memstream): Fix memory leak.
1192         * libio/wmemstream.c (open_wmemstream): Likewise.
1193
1194         [BZ #15895]
1195         * nscd/netgroupcache.c: Fix nesting of ifdefs.
1196
1197 2013-09-09  Will Newton  <will.newton@linaro.org>
1198
1199         * malloc/Makefile: Add tst-realloc to tests.
1200         * malloc/tst-realloc.c: New file.
1201
1202 2013-09-09  Allan McRae  <allan@archlinux.org>
1203
1204         [BZ #15844]
1205         * COPYING: Update from GNU website to fix FSF address.
1206         * COPYING.LIB: Likewise.
1207
1208 2013-09-06  David S. Miller  <davem@davemloft.net>
1209
1210         * po/zh_TW.po: Update Chinese (traditional) translation from
1211         translation project.
1212
1213 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
1214             Joseph Myers  <joseph@codesourcery.com>
1215
1216         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
1217         "localeinfo.h".
1218         (obstack_chunk_alloc): New macro.
1219         (obstack_chunk_free): Likewise.
1220         (record_offset): New function.
1221         (init_locale_data): Likewise.
1222         (align_locale_data): Likewise.
1223         (add_locale_empty): Likewise.
1224         (add_locale_raw_data): Likewise.
1225         (add_locale_raw_obstack): Likewise.
1226         (add_locale_string): Likewise.
1227         (add_locale_wstring): Likewise.
1228         (add_locale_uint32): Likewise.
1229         (add_locale_uint32_array): Likewise.
1230         (add_locale_char): Likewise.
1231         (start_locale_structure): Likewise.
1232         (end_locale_structure): Likewise.
1233         (start_locale_prelude): Likewise.
1234         (end_locale_prelude): Likewise.
1235         (write_locale_data): Take locale_file structure rather than an
1236         iovec.
1237         * locale/programs/locfile.h: Include "obstack.h".
1238         (struct locale_file): Change to store locale file contents instead
1239         of header.
1240         (init_locale_data): New prototype.
1241         (align_locale_data): Likewise.
1242         (add_locale_empty): Likewise.
1243         (add_locale_raw_data): Likewise.
1244         (add_locale_raw_obstack): Likewise.
1245         (add_locale_string): Likewise.
1246         (add_locale_wstring): Likewise.
1247         (add_locale_uint32): Likewise.
1248         (add_locale_uint32_array): Likewise.
1249         (add_locale_char): Likewise.
1250         (start_locale_structure): Likewise.
1251         (end_locale_structure): Likewise.
1252         (start_locale_prelude): Likewise.
1253         (end_locale_prelude): Likewise.
1254         (write_locale_data): Update prototype.
1255         * locale/programs/3level.h (struct TABLE): Remove result field.
1256         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
1257         Use new locale_file interface.
1258         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
1259         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
1260         * locale/programs/ld-address.c (address_output): Use new
1261         locale_file interface.
1262         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
1263         NO_ADD_LOCALE.
1264         (collate_finish): Don't call collseq_table_finalize.
1265         (collate_output): Use new locale_file interface.
1266         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
1267         in file.
1268         (NO_FINALIZE): Change to NO_ADD_LOCALE.
1269         (TABLE): Move defines earlier in file.
1270         (ELEMENT): Likewise.
1271         (DEFAULT): Likewise.
1272         (wctrans_table_add): Move macro and inline function earlier in
1273         file.
1274         (struct wctype_table): Move type earlier in file.
1275         (add_locale_wctype_table): New static prototype.
1276         (struct locale_ctype_t): Use logical types instead of struct iovec
1277         pointers for members.
1278         (ctype_output): Use new locale_file interface.
1279         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
1280         new locale_file interface.
1281         (allocate_arrays): Update for use of new locale_file interface.
1282         * locale/programs/ld-identification.c (identification_output): Use
1283         new locale_file interface.
1284         * locale/programs/ld-measurement.c (measurement_output): Likewise.
1285         * locale/programs/ld-messages.c (messages_output): Likewise.
1286         * locale/programs/ld-monetary.c (monetary_output): Likewise.
1287         * locale/programs/ld-name.c (name_output): Likewise.
1288         * locale/programs/ld-numeric.c (numeric_output): Likewise.
1289         * locale/programs/ld-paper.c (paper_output): Likewise.
1290         * locale/programs/ld-telephone.c (telephone_output): Likewise.
1291         * locale/programs/ld-time.c (time_output): Likewise.
1292
1293 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1294
1295         * benchtests/Makefile: Add memrchr benchmark.
1296         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
1297         benchmark as memrchr.
1298         * benchtests/bench-memrchr-ifunc.c: New file.
1299         * benchtests/bench-memrchr.c: New file.
1300
1301 2013-09-06   Will Newton  <will.newton@linaro.org>
1302
1303         * benchtests/Makefile (string-bench): Add memcpy.
1304
1305 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
1306             Cong Wang  <amwang@redhat.com>
1307
1308         * sysdeps/unix/sysv/linux/bits/in.h
1309         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
1310         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
1311         before __USE_KERNEL_IPV6_DEFS uses.
1312         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
1313         IPPROTO_BEETPH.
1314         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
1315         sockaddr_in6, or ipv6_mreq.
1316
1317 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1318
1319         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
1320         memory access for final bytes in some large inputs.
1321         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
1322
1323 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1324
1325         * string/test-memrchr.c: New file.
1326         * string/test-memrchr-ifunc.c: New file.
1327         * string/Makefile: Add new memrchr testcase.
1328
1329 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
1330
1331         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
1332         fanotify_init returns EPERM.
1333
1334 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1335
1336         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
1337         errors.
1338         (top level): Treat second token from macro or constant entries for
1339         allowed headers as allowed.
1340         * include/complex.h: Condition internal declarations on
1341         [!_ISOMAC].
1342         * include/fenv.h: Condition include of <stdbool.h> and internal
1343         declarations on [!_ISOMAC].
1344
1345 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
1346
1347         [BZ #15923]
1348         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
1349
1350 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1351
1352         * configure.in (--enable-versioning): Remove configure option.
1353         (libc_cv_asm_symver_directive): Remove configure test.
1354         (libc_cv_ld_version_script_option): Likewise.
1355         (VERSIONING): Remove variable and AC_SUBST.
1356         (DO_VERSIONING): Remove AC_DEFINE.
1357         * configure: Regenerated.
1358         * config.h.in (DO_VERSIONING): Remove macro.
1359         * Makerules [$(versioning) = yes]: Change conditionals to
1360         [$(build-shared) = yes].
1361         * config.make.in (versioning): Remove variable.
1362         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
1363         [$(build-shared) = yes].
1364         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
1365         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
1366         * elf/Makefile [$(versioning) = yes]: Change conditionals to
1367         [$(build-shared) = yes].
1368         * extra-lib.mk [$(versioning) = yes]: Likewise.
1369         * hurd/Makefile [$(versioning) = yes]: Likewise.
1370         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
1371         [SHARED].
1372         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
1373         [SHARED].
1374         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
1375         [SHARED && !NO_HIDDEN].
1376         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
1377         [SHARED].
1378         [SHARED && DO_VERSIONING]: Likewise..
1379         * libio/Makefile [$(versioning) = yes]: Change conditionals to
1380         [$(build-shared) = yes].
1381         * manual/install.texi (--disable-versioning): Remove
1382         documentation.
1383         * INSTALL: Regenerated.
1384         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
1385         to [SHARED].
1386         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
1387         [$(build-shared) = yes].
1388         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
1389         * sysdeps/i386/i686/multiarch/strstr-c.c
1390         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
1391         [SHARED && !NO_HIDDEN].
1392         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
1393         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
1394         * sysdeps/powerpc/powerpc32/dl-machine.c
1395         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
1396         * sysdeps/powerpc/powerpc32/sysdep.h
1397         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
1398         to [SHARED && PIC && !NO_HIDDEN].
1399         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
1400         conditional to [SHARED].
1401
1402 2013-09-04   Will Newton  <will.newton@linaro.org>
1403
1404         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
1405         * benchtests/bench-string.h: Include bench-timing.h instead
1406         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
1407         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
1408         call to HP_TIMING_DIFF_INIT.
1409         * benchtests/bench-memccpy.c: Use bench-timing.h macros
1410         instead of hp-timing.h macros.
1411         * benchtests/bench-memchr.c: Likewise.
1412         * benchtests/bench-memcmp.c: Likewise.
1413         * benchtests/bench-memcpy.c: Likewise.
1414         * benchtests/bench-memmem.c: Likewise.
1415         * benchtests/bench-memmove.c: Likewise.
1416         * benchtests/bench-memset.c: Likewise.
1417         * benchtests/bench-rawmemchr.c: Likewise.
1418         * benchtests/bench-strcasecmp.c: Likewise.
1419         * benchtests/bench-strcasestr.c: Likewise.
1420         * benchtests/bench-strcat.c: Likewise.
1421         * benchtests/bench-strchr.c: Likewise.
1422         * benchtests/bench-strcmp.c: Likewise.
1423         * benchtests/bench-strcpy.c: Likewise.
1424         * benchtests/bench-strcpy_chk.c: Likewise.
1425         * benchtests/bench-strlen.c: Likewise.
1426         * benchtests/bench-strncasecmp.c: Likewise.
1427         * benchtests/bench-strncat.c: Likewise.
1428         * benchtests/bench-strncmp.c: Likewise.
1429         * benchtests/bench-strncpy.c: Likewise.
1430         * benchtests/bench-strnlen.c: Likewise.
1431         * benchtests/bench-strpbrk.c: Likewise.
1432         * benchtests/bench-strrchr.c: Likewise.
1433         * benchtests/bench-strspn.c: Likewise.
1434         * benchtests/bench-strstr.c: Likewise.
1435
1436 2013-09-04  Will Newton  <will.newton@linaro.org>
1437
1438         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
1439
1440 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
1441
1442         [BZ #15427]
1443         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
1444         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
1445         * math/libm-test.inc (lgamma_test_data): Add more tests.
1446         * sysdeps/i386/fpu/libm-test-ulps: Update.
1447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1448
1449 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
1450
1451         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
1452         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1453         Add ifunc.
1454         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1455         Add strcmp-sse2-unaligned
1456         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
1457
1458 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
1459
1460         * Versions.def (libc): Add GLIBC_2.19.
1461
1462 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
1463
1464         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
1465         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
1466
1467 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
1468
1469         [BZ #14155]
1470         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
1471         intermediate calculations in recurrence.
1472         (__ieee754_ynf): Likewise.
1473         * math/libm-test.inc (jn_test_data): Do not allow spurious
1474         underflow exception.  Add more tests.
1475         (yn_test_data): Add more tests.
1476         * sysdeps/i386/fpu/libm-test-ulps: Update.
1477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1478
1479 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
1480
1481         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
1482
1483 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
1484
1485         * csu/init-first.c: Fix then/than typos.
1486         * locale/programs/ld-collate.c: Likewise.
1487         * locale/programs/linereader.h: Likewise.
1488         * manual/charset.texi: Likewise.
1489         * manual/filesys.texi: Likewise.
1490         * manual/stdio.texi: Likewise.
1491         * manual/string.texi: Likewise.
1492         * stdlib/fmtmsg.c: Likewise.
1493         * sysdeps/i386/stpncpy.S: Likewise.
1494         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1495         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
1496         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1497         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1498
1499 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
1500
1501         * elf/dl-open.c: Fix typos.
1502         * iconvdata/gbbig5.c: Likewise.
1503         * iconvdata/iso-2022-jp.c: Likewise.
1504         * iconv/gconv_int.h: Likewise.
1505         * iconv/loop.c: Likewise.
1506         * nis/rpcsvc/nis.h: Likewise.
1507         * resolv/ns_name.c: Likewise.
1508         * stdio-common/vfscanf.c: Likewise.
1509         * streams/stropts.h: Likewise.
1510         * sunrpc/rpc_thread.c: Likewise.
1511         * sysdeps/i386/strpbrk.S: Likewise.
1512         * sysdeps/ieee754/k_standard.c: Likewise.
1513         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1514         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1515         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1516         * sysdeps/mach/hurd/profil.c: Likewise.
1517         * sysdeps/s390/dl-procinfo.h: Likewise.
1518         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1519         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1520         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1521         * sysdeps/x86_64/dl-trampoline.S: Likewise.
1522         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1523
1524 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
1525
1526         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
1527         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
1528
1529 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
1530
1531         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
1532         aix specific files.
1533         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
1534         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
1535         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
1536         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
1537         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
1538         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
1539         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
1540         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
1541
1542 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
1543             Roland McGrath  <roland@hack.frob.com>
1544
1545         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
1546         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
1547
1548 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1549
1550         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
1551         __executable_start symbol instead of _start.
1552
1553 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
1554
1555         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
1556         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
1557         Move macros to...
1558         * sysdeps/gnu/ldsodefs.h: ... this new file.
1559
1560         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
1561         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
1562         instead of ELFOSABI_LINUX.
1563
1564         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
1565         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
1566         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
1567         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
1568         Likewise.
1569         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
1570         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
1571         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
1572         Likewise.
1573         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
1574         (ibm_extended_long_double): Add ieee_nan member.
1575         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
1576         (do_test): New function.
1577
1578         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
1579         TEST_TRUNC.
1580         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
1581         functions, renamed from truncdfsf_test, trunctfsf_test,
1582         trunctfdf_test.
1583         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
1584         functions.
1585         (do_test): Run all these.
1586
1587 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
1588
1589         * argp/argp-help.c: Fix typos.
1590         * argp/argp-parse.c: Likewise.
1591         * debug/backtracesyms.c: Likewise.
1592         * elf/elf.h: Likewise.
1593         * malloc/malloc.c: Likewise.
1594         * nis/nis_print.c: Likewise.
1595         * resolv/res_comp.c: Likewise.
1596         * stdlib/stdlib.h: Likewise.
1597         * sunrpc/clnt_tcp.c: Likewise.
1598         * sunrpc/clnt_udp.c: Likewise.
1599         * sunrpc/clnt_unix.c: Likewise.
1600         * sysdeps/unix/bsd/ptsname.c: Likewise.
1601         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1602         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
1603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
1604         Likewise.
1605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1606         Likewise.
1607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1608         Likewise.
1609         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1610
1611 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1612
1613         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
1614         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1615
1616 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
1617
1618         [BZ #15897]
1619         * dlfcn/Makefile (tests): Add bug-dl-leaf.
1620         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
1621         ($(objpfx)bug-dl-leaf): New rule.
1622         ($(objpfx)bug-dl-leaf.so): Likewise.
1623         ($(objpfx)bug-dl-leaf.out): Likewise.
1624         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
1625         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
1626         * dlfcn/bug-dl-leaf.c: New test.
1627         * dlfcn/bug-dl-leaf-lib.c: Likewise.
1628         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
1629         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
1630         (dlclose): Likewise.
1631         (dlmopen): Likewise.
1632
1633 2013-08-27  Roland McGrath  <roland@hack.frob.com>
1634
1635         * include/netdb.h [!_ISOMAC]:
1636         Don't include <tls.h>.
1637         (h_errno, __libc_h_errno): Move declaration and macros out of
1638         [_LIBC_REENTRANT].
1639
1640         * include/resolv.h [_RESOLV_H_]:
1641         Don't include <tls.h>.
1642         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
1643         * resolv/res_libc.c: Don't include <tls.h>.
1644         (_res): Use __attribute__ ((nocommon)) in place of
1645         __attribute__ ((section (".bss"))).
1646
1647         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
1648         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
1649
1650         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
1651
1652         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
1653         only under [SIOCGIFCONF && SIOCGIFNETMASK].
1654
1655         * resolv/res_mkquery.c: Include <sys/time.h>.
1656
1657         * inet/ifreq.c: Moved to ...
1658         * sysdeps/unix/ifreq.c: ... here.
1659         * inet/ifreq.c: New file, true stub version.
1660
1661         * socket/sa_len.c: New file.
1662         * socket/Makefile (aux): Add it.
1663         * sysdeps/unix/sysv/linux/Makefile
1664         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
1665         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
1666         and #include <socket/sa_len.c>.
1667         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
1668         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
1669
1670         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
1671         * bits/socket.h: ... here.
1672
1673         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
1674         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
1675         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
1676
1677 2013-08-27  Andreas Schwab  <schwab@suse.de>
1678
1679         [BZ #15736]
1680         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
1681         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
1682         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
1683         * string/test-strcasecmp.c (test_main): Run tests in several
1684         locales.
1685         * string/test-strncasecmp.c (test_main): Likewise.
1686
1687         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
1688         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
1689         to __strcasecmp_nonascii and __strncasecmp_nonascii.
1690         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
1691         (__strncasecmp_ssse3) [PIC]: Likewise.
1692
1693 2013-08-26  Roland McGrath  <roland@hack.frob.com>
1694
1695         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
1696
1697         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
1698         instead of explicitly declaring xdecrypt.
1699         * nis/nss_nis/nis-publickey.c: Likewise.
1700
1701 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1702
1703         [BZ #15890]
1704         * nscd/aicache.c: Include res_hconf.h.
1705         (addhstaiX): Initialize res_hconf.
1706
1707 2013-08-26  Andreas Schwab  <schwab@suse.de>
1708
1709         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
1710         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
1711
1712 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1713
1714         * nscd/aicache.c (addhstaiX): Fix indentation.
1715
1716 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
1717
1718         * configure.ac: Quote $build_pt_chown test.
1719         * configure: Regenerated.
1720
1721 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
1722
1723         [BZ #15532]
1724         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
1725         * math/s_cexpf.c (__cexpf): Likewise.
1726         * math/s_cexpl.c (__cexpl): Likewise.
1727         * math/libm-test.inc (cexp_test_data): Correct expected return
1728         value for NaN + i0.  Add another test.
1729
1730 2013-08-22  David S. Miller  <davem@davemloft.net>
1731
1732         * po/ca.po: Update Catalan translation from translation project.
1733         * po/uk.po: Add Ukrainian translations from translation project.
1734
1735 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
1736
1737         [BZ #15797]
1738         * math/s_fdim.c (__fdim): Check for infinite arguments if result
1739         is infinite, not alongside NaN test.
1740         * math/s_fdimf.c (__fdimf): Likewise.
1741         * math/s_fdiml.c (__fdiml): Likewise.
1742         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
1743         errno is unchanged.
1744
1745 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
1746
1747         * argp/argp-help.c: Fix typos.
1748         * crypt/speeds.c: Likewise.
1749         * csu/check_fds.c: Likewise.
1750         * elf/dl-load.c: Likewise.
1751         * elf/dl-open.c: Likewise.
1752         * elf/reldep3.c: Likewise.
1753         * elf/reldep.c: Likewise.
1754         * elf/sprof.c: Likewise.
1755         * iconv/iconv_charmap.c: Likewise.
1756         * iconv/skeleton.c: Likewise.
1757         * iconv/strtab.c: Likewise.
1758         * io/lockf64.c: Likewise.
1759         * libio/libioP.h: Likewise.
1760         * resolv/gai_notify.c: Likewise.
1761         * resolv/ns_name.c: Likewise.
1762         * resolv/ns_samedomain.c: Likewise.
1763         * resolv/res_send.c: Likewise.
1764         * stdlib/random.c: Likewise.
1765         * sunrpc/rpc/xdr.h: Likewise.
1766         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
1767         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
1768         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
1769         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
1770         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
1771         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
1772         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
1773         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
1774         * sysdeps/mach/hurd/check_fds.c: Likewise.
1775         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
1776         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1777         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
1778         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
1779         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1780         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
1781         * sysdeps/pthread/aio_notify.c: Likewise.
1782         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
1783         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
1784         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
1785         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1786         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
1787
1788 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1789
1790         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
1791         version if bit_Slow_SSE4_2 is set.
1792         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1793         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1794
1795 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1796
1797         [BZ #15867]
1798         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
1799         trampoline stack frame information.
1800         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
1801         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
1802         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
1803         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
1804         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
1805         * sysdeps/unix/sysv/linux/powerpc/init-first.c
1806         (_libc_vdso_platform_setup): Initialize the signal trampolines.
1807         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
1808         sa_flags value.
1809         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
1810         interrupting a syscall and set with option SA_SIGINFO.
1811
1812 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
1813
1814         [BZ #15531]
1815         * math/s_cproj.c (__cproj): Only return an infinity if one part of
1816         argument is infinite.
1817         * math/s_cprojf.c (__cprojf): Likewise.
1818         * math/s_cprojl.c (__cprojl): Likewise.
1819         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
1820         * math/libm-test.inc (cproj_test_data): Add more tests.
1821
1822         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
1823
1824         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
1825         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
1826         size.  Use __ffs to determine corresponding shift.
1827
1828 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
1829             Roland McGrath  <roland@hack.frob.com>
1830
1831         * Makefile (INSTALL): Remove trailing blank lines from output of
1832         makeinfo.
1833
1834 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1835
1836         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
1837         Align 32 bit compat elf_greg to 8 bytes.
1838
1839 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1840
1841         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
1842
1843 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1844
1845         * string/strcoll_l.c (coll_seq): New structure.
1846         (get_next_seq_cached): New function.
1847         (get_next_seq): New function.
1848         (do_compare): New function.
1849         (STRCOLL): Use GNU style definition.  Simplify implementation
1850         by using get_next_seq, get_next_seq_cached and do_compare.
1851
1852 2013-08-16  Florian Weimer  <fweimer@redhat.com>
1853
1854         [BZ #14699]
1855         CVE-2013-4237
1856         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
1857         member.
1858         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
1859         member.
1860         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
1861         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
1862         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
1863         conditional.
1864         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
1865         GETDENTS_64BIT_ALIGNED.
1866         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1867         * manual/filesys.texi (Reading/Closing Directory): Document
1868         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
1869         strongly.
1870         * manual/conf.texi (Limits for Files): Add portability note to
1871         NAME_MAX, PATH_MAX.
1872         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
1873
1874 2013-08-13  Andreas Schwab  <schwab@suse.de>
1875
1876         [BZ #15749]
1877         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
1878         of fabs.
1879         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
1880         LDBL_MAX_EXP >= 16384]: Add tests for it.
1881
1882 2013-08-12  David S. Miller  <davem@davemloft.net>
1883
1884         * version.h (RELEASE): Set to "development".
1885         (VERSION): Set to "2.18.90".
1886         * NEWS: Add 2.19 section.
1887
1888 2013-08-03  David S. Miller  <davem@davemloft.net>
1889
1890         * po/ko.po: Update Korean translation from translation project.
1891
1892 2013-08-01  David S. Miller  <davem@davemloft.net>
1893
1894         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
1895         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
1896         Bilka.
1897
1898 2013-07-30  David S. Miller  <davem@davemloft.net>
1899
1900         * po/fr.po: Update French translation from translation project.
1901
1902 2013-07-28  David S. Miller  <davem@davemloft.net>
1903
1904         * po/cs.po: Update Czech translation from translation project.
1905
1906         * po/sv.po: Update Swedish translation from translation project.
1907
1908 2013-07-27  David S. Miller  <davem@davemloft.net>
1909
1910         * po/eo.po: Update Esperanto translation from translation project.
1911
1912         * po/vi.po: Update Vietnamese translation from translation project.
1913
1914         * po/de.po: Update German translation from translation project.
1915
1916 2013-07-26  David S. Miller  <davem@davemloft.net>
1917
1918         * po/bg.po: Update Bulgarian translation from translation project.
1919
1920         * po/nl.po: Update Dutch translation from translation project.
1921         * po/pl.po: Update Polish translation from translation project.
1922         * po/ru.po: Update Russian translation from translation project.
1923
1924 2013-07-24  David S. Miller  <davem@davemloft.net>
1925
1926         * po/libc.pot: Update.
1927
1928 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1929
1930         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
1931         variable page size.
1932         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
1933         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
1934         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
1935
1936 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1937
1938         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
1939
1940 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1941             Andreas Schwab  <schwab@suse.de>
1942             Roland McGrath  <roland@hack.frob.com>
1943             Joseph Myers  <joseph@codesourcery.com>
1944             Carlos O'Donell  <carlos@redhat.com>
1945
1946         [BZ #15755]
1947         * config.h.in: Define HAVE_PT_CHOWN.
1948         * config.make.in (build-pt-chown): New variable.
1949         * configure.in (--enable-pt_chown): New configure option.
1950         * configure: Regenerate.
1951         * login/Makefile: Include Makeconfig.  Build pt_chown only if
1952         build-pt-chown is enabled.
1953         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
1954         pt_chown to fix pty ownership.
1955         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
1956         CLOSE_ALL_FDS.
1957         * manual/install.texi (Configuring and compiling): Mention
1958         --enable-pt_chown. Add @findex for grantpt.
1959         * INSTALL: Regenerate.
1960
1961 2013-07-20  David S. Miller  <davem@davemloft.net>
1962
1963         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
1964         difference between 32-bit and 64-bit.
1965
1966 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
1967
1968         [BZ #15711]
1969         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
1970         Avoid system header dependency with -ffreestanding.
1971         ($(objpfx)bits/syscall%d): Likewise.
1972
1973 2013-07-13  David S. Miller  <davem@davemloft.net>
1974
1975         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
1976         underflows from atanl/atan2l due to bug 15319.
1977         (casinh_test_data): Likewise.
1978
1979 2013-07-07  David S. Miller  <davem@davemloft.net>
1980
1981         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
1982
1983 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
1984
1985         * sysdeps/i386/fpu/libm-test-ulps: Update.
1986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1987
1988 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1989
1990         * configure.in (--enable-lock-elision): Fix message text.
1991         * INSTALL: Regenerate.
1992         * configure: Regenerate.
1993
1994 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1995
1996         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1997
1998 2013-07-03  Andreas Jaeger  <aj@suse.de>
1999
2000         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
2001         define.
2002         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
2003         (ptrace_peeksiginfo_args): Add.
2004         (__ptrace_peeksiginfo_flags): Add.
2005         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2006         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2007         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2008
2009 2013-07-03  Allan McRae  <allan@archlinux.org>
2010
2011         * sysdeps/i386/fpu/libm-test-ulps: Update.
2012
2013 2013-07-02  David S. Miller  <davem@davemloft.net>
2014
2015         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2016
2017 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
2018
2019         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2020
2021 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2022
2023         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2025
2026 2013-07-02  Andi Kleen <ak@linux.intel.com>
2027
2028         * config.h.in (ENABLE_LOCK_ELISION): Add.
2029         * configure.in (--enable-lock-elision): Add option.
2030         * manual/install.texi: Document --enable lock elision.
2031         * configure: Regenerate
2032         * INSTALL: Regenerate.
2033
2034 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2035
2036         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
2037         SSE4.2 strcasecmp for libc.a.
2038         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
2039
2040 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2041
2042         [BZ #13304]
2043         * soft-fp/op-common.h (_FP_FMA): New macro.
2044         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
2045         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
2046         (_FP_MUL_MEAT_1_imm): ... here.
2047         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
2048         (_FP_MUL_MEAT_1_wide): ... here.
2049         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
2050         (_FP_MUL_MEAT_1_hard): ... here.
2051         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
2052         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
2053         (_FP_MUL_MEAT_2_wide): ... here.
2054         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
2055         (_FP_MUL_MEAT_2_wide_3mul): ... here.
2056         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
2057         (_FP_MUL_MEAT_2_gmp): ... here.
2058         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
2059         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
2060         (_FP_MUL_MEAT_4_wide): ... here.
2061         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
2062         (_FP_MUL_MEAT_4_gmp): ... here.
2063         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
2064         (_FP_WFRACBITS_DW_S): Likewise.
2065         (_FP_WFRACXBITS_DW_S): Likewise.
2066         (_FP_HIGHBIT_DW_S): Likewise.
2067         (FP_FMA_S): Likewise.
2068         (_FP_FRAC_HIGH_DW_S): Likewise.
2069         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
2070         (_FP_WFRACBITS_DW_D): Likewise.
2071         (_FP_WFRACXBITS_DW_D): Likewise.
2072         (_FP_HIGHBIT_DW_D): Likewise.
2073         (FP_FMA_D): Likewise.
2074         (_FP_FRAC_HIGH_DW_D): Likewise.
2075         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
2076         (_FP_WFRACBITS_DW_E): Likewise.
2077         (_FP_WFRACXBITS_DW_E): Likewise.
2078         (_FP_HIGHBIT_DW_E): Likewise.
2079         (FP_FMA_E): Likewise.
2080         (_FP_FRAC_HIGH_DW_E): Likewise.
2081         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
2082         (_FP_WFRACBITS_DW_Q): Likewise.
2083         (_FP_WFRACXBITS_DW_Q): Likewise.
2084         (_FP_HIGHBIT_DW_Q): Likewise.
2085         (FP_FMA_Q): Likewise.
2086         (_FP_FRAC_HIGH_DW_Q): Likewise.
2087         * soft-fp/fmasf4.c: New file.
2088         * soft-fp/fmadf4.c: Likewise.
2089         * soft-fp/fmatf4.c: Likewise.
2090
2091 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2092
2093         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
2094         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
2095         Silvermont.
2096         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
2097         macro.
2098         (index_Slow_SSE4_2): Likewise.
2099         (index_Prefer_PMINUB_for_stringop): Likewise.
2100         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
2101         bit_Slow_SSE4_2 is set.
2102         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2103         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2104
2105 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2106
2107         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
2108         rtld_global._dl_hwcap2.
2109         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
2110         POWER8.
2111         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
2112         POWER8 feature descriptions defined in _dl_hwcap2.
2113         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
2114         string handling for POWER8 feature bits.
2115         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
2116         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
2117         _dl_powerpc_cap_flags.
2118         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
2119         * sysdeps/powerpc/rtld-global-offsets.sym
2120         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
2121         _dl_hwcap2 in the rtld_global_ro structure.
2122
2123 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2124
2125         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
2126         hardware capabilities in support of AT_HWCAP2.
2127         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
2128         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
2129         GLRO(dl_hwcap2).
2130         (_dl_show_auxv): Add support for calling _dl_procinfo to display
2131         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
2132         explicitly the unknown a_type display mechanism is used.
2133         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
2134         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
2135         struct member.
2136         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
2137         to macro prototype for AT_HWCAP2 support.
2138         * sysdeps/i386/dl-procinfo.h: Likewise.
2139         * sysdeps/s390/dl-procinfo.h: Likewise.
2140         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
2141         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
2142         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
2143         return -1 for unknown a_type display fallback.
2144         * sysdeps/sparc/dl-procinfo.h: Likewise.
2145         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2146         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
2147
2148 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
2149
2150         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
2151         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
2152
2153 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
2154
2155         [BZ #12492]
2156         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
2157         mprotect making __stack_prot writable.
2158
2159 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2160             Joseph Myers  <joseph@codesourcery.com>
2161
2162         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
2163         as being properly aligned.
2164
2165 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
2166
2167         * dlfcn/modstatic5.c: New file.
2168         * dlfcn/tststatic5.c: New file.
2169         * dlfcn/Makefile (tests): Add tststatic5.
2170         (tests-static): Likewise.
2171         (modules-names): Add modstatic5.
2172         (tststatic5-ENV): New variable.
2173         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
2174
2175         [BZ #15022]
2176         * elf/dl-support.c (_dl_main_map): New variable.
2177         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
2178         (_dl_nns, _dl_load_adds): Set to 1.
2179         (_dl_initial_searchlist): Refer to _dl_main_map.
2180         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
2181         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
2182         call to _dl_get_origin.
2183         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
2184         around call_map.
2185         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
2186         * dlfcn/modstatic3.c: New file.
2187         * dlfcn/tststatic3.c: New file.
2188         * dlfcn/tststatic4.c: New file.
2189         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
2190         (tests-static): Likewise.
2191         (modules-names): Add modstatic3.
2192         (tststatic3-ENV, tststatic4-ENV): New variables.
2193         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
2194         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
2195
2196 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
2197
2198         * configure.in (CC): Require GCC version 4.4 or later.
2199         * configure: Regenerated.
2200         * manual/install.texi (Tools for Compilation): Update GCC version
2201         requirement.
2202         * INSTALL: Regenerated.
2203
2204 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2205
2206         [BZ #15674]
2207         * string/test-memcmp.c (check2): New.
2208         (main): Call check2.
2209
2210         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
2211
2212 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
2213
2214         [BZ #15022]
2215         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
2216         over to...
2217         (dl_open_worker) [!SHARED]: ... here.
2218
2219 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2220
2221         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
2222
2223 2013-06-25  Richard Henderson  <rth@redhat.com>
2224
2225         * locale/programs/locarchive.c: Include <libc-internal.h>
2226
2227 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
2228
2229         * manual/texinfo.tex: Update to version 2013-06-21.17, with
2230         trailing whitespace removed.
2231
2232 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2233
2234         [BZ #10283]
2235         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
2236         * locale/programs/locarchive.c: Include libc-mmap.h.
2237         (prepare_address_space): Take two new outputs (the mmap base and len).
2238         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
2239         values.
2240         (create_archive): Declare new mmap base and len values for
2241         prepare_address_space, and store the result in ah.
2242         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
2243         (enlarge_archive): If ah->mmap_base is not NULL, use that and
2244         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2245         Declare new mmap base and len values for
2246         prepare_address_space, and store the result in new_ah.
2247         (open_archive): Declare new mmap base and len values for
2248         prepare_address_space, and store the result in ah.
2249         (close_archive): If ah->mmap_base is not NULL, use that and
2250         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2251         * sysdeps/generic/libc-mmap.h: New file.
2252
2253 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2254
2255         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
2256         (ALIGN_UP): Likewise.
2257         (PTR_ALIGN_DOWN): Likewise.
2258         (PTR_ALIGN_UP): Likewise.
2259
2260 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2261
2262         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
2263         entry mapped to PPC_PLATFORM_POWER8.
2264         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
2265         POWER8.
2266         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
2267         (_dl_string_platform): Add case for exporting platform position for
2268         POWER8.
2269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
2270         search path to sysdeps/powerpc/powerpc32/power8 directory.
2271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
2272         search path to sysdeps/powerpc/powerpc64/power8 directory.
2273         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
2274         power7 directories.
2275         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
2276         power7 directories.
2277
2278 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2279
2280         * INSTALL: Regenerate.
2281
2282         * nscd/connections.c (nscd_init): Fix comment.
2283
2284 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
2285
2286         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
2287
2288         [BZ #15667]
2289         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
2290         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
2291
2292 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2293
2294         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
2295         DL_DST_REQ_STATIC.
2296         (DL_DST_REQ_STATIC): Remove macro.
2297
2298 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
2299
2300         [BZ #7006]
2301         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
2302         with a shift of 0 bits.
2303
2304 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2305
2306         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
2307         $(tststatic-ENV).
2308
2309 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2310
2311         [BZ #15655]
2312         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
2313
2314 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2315
2316         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
2317         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
2318         accepts -fno-tree-loop-distribute-patterns.
2319         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
2320         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
2321         recursive call.
2322         * string/memset.c (memset): Likewise.
2323         * string/test-memmove.c (simple_memmove): Disable loop transformation
2324         to library calls.
2325         * string/test-memset.c (simple_memset): Likewise.
2326         * benchtests/bench-memmove.c (simple_memmove): Likewise.
2327         * benchtests/bench-memset.c (simple_memset): Likewise.
2328         * configure: Regenerated.
2329
2330 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
2331
2332         * math/test-misc.c (main): Ignore fesetround failure when failures
2333         of subsequent rounding tests would be ignored.
2334
2335         [BZ #15654]
2336         * math/fedisblxcpt.c (fedisableexcept): Return 0.
2337         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
2338         * math/fegetenv.c (__fegetenv): Return 0.
2339         * math/fegetexcept.c (fegetexcept): Return 0.
2340         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
2341         FE_TONEAREST.
2342         * math/feholdexcpt.c (feholdexcept): Return 0.
2343         * math/fesetenv.c (__fesetenv): Return 0.
2344         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
2345         argument FE_TONEAREST.
2346         * math/feupdateenv.c (__feupdateenv): Return 0.
2347         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
2348
2349 2013-06-18  Roland McGrath  <roland@hack.frob.com>
2350
2351         * elf/rtld-Rules (rtld-compile-command.S): New variable.
2352         (rtld-compile-command.s, rtld-compile-command.c): New variables.
2353         ($(objpfx)rtld-%.os rules): Use them.
2354
2355 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2356
2357         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
2358         fields.
2359
2360 2013-06-17  Roland McGrath  <roland@hack.frob.com>
2361
2362         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
2363         length of target pattern, then descending length of dependency pattern.
2364         * configure.in (AWK): Require gawk 3.1.2 or newer.
2365         * manual/install.texi (Tools for Compilation): Say that we do.
2366         * configure: Regenerated.
2367
2368         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
2369         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
2370         * scripts/sysd-rules.awk: ... this new script.
2371         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
2372         than a glob-style pattern.
2373
2374 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
2375
2376         * math/test-misc.c (main): Do not treat incorrectly rounded
2377         conversions as failure unless ROUNDING_TESTS passes.
2378
2379 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
2380
2381         [BZ #15631]
2382         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
2383         restore exception state around main square root computation, then
2384         check for inexactness explicitly.
2385
2386         * math/libm-test.inc (fma_test_data): Add another test.
2387
2388 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2389
2390         * manual/threads.texi (Non-POSIX Extensions): New document
2391         node.  Document pthread_getattr_default_np and
2392         pthread_setattr_default_np.
2393
2394         * Versions.def (libpthread): Add GLIBC_2.18.
2395         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
2396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2397         Likewise.
2398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2399         Likewise.
2400         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2401         Likewise.
2402         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2403         Likewise.
2404         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
2405         Likewise.
2406         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2407         Likewise.
2408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2409         Likewise.
2410         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2411         Likewise.
2412         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
2413         Likewise.
2414
2415 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2416
2417         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2418         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
2419
2420 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2421             H.J. Lu  <hjl.tools@gmail.com>
2422
2423         [BZ #15627]
2424         * sysdeps/x86_64/rtld-memset.c: Remove file.
2425         * sysdeps/x86_64/rtld-memset.S: New file.
2426
2427 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
2428
2429         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
2430         (test_in_one_mode): Take arguments for whether the rounding mode
2431         is supported for each floating-point type.
2432         (do_test): Pass new arguments to test_in_one_mode using
2433         ROUNDING_TESTS.
2434
2435 2013-06-13  Roland McGrath  <roland@hack.frob.com>
2436
2437         * posix/tst-waitid.c (do_test): Distinguish different instances of
2438         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
2439         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
2440         before entering the kernel for waitpid.
2441
2442 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2443
2444         * NEWS: Fix note on clock function precision.  Text by Roland
2445         McGrath.
2446
2447 2013-06-13  Roland McGrath  <roland@hack.frob.com>
2448
2449         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
2450         it into place only when and if the sanity check passes.
2451
2452 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
2453
2454         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
2455         output for whether conversion result is exact.  Take argument
2456         indicating whether type is IBM long double.
2457         (round_for_all): Change need_exact field to ibm_ld.
2458         * stdlib/tst-strtod-round.c (struct exactness): New type.
2459         (struct test): Change bool ld_ok field to struct exactness exact.
2460         (TEST): Update all definitions for change to field.
2461         (tests): Regenerate array contents.
2462         (test_in_one_mode): Take pointer to new field instead of old ld_ok
2463         field value.  Check for IBM long double here.
2464         (do_test): Update calls to test_in_one_mode.
2465
2466 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2467
2468         [BZ #12515]
2469         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
2470         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
2471
2472 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2473
2474         [BZ #15605]
2475         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
2476         generated by the compiler on loop optimizations.
2477         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
2478         general definitions.
2479
2480 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
2481
2482         * math/bug-nextafter.c: Include <math-tests.h>.
2483         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2484         the relevant type.
2485         * math/bug-nexttoward.c: Include <math-tests.h>.
2486         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2487         the relevant type.
2488         * math/test-misc.c: Include <math-tests.h>.
2489         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2490         the relevant type.
2491
2492 2013-06-12  Andreas Jaeger  <aj@suse.de>
2493
2494         * po/ia.po: Update Interlingua translation from translation
2495         project.
2496
2497 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2498
2499         * include/fenv.h: Include stdbool.h.
2500         (struct rm_ctx): New structure.
2501         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
2502         Define macro.
2503         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
2504         (SET_RESTORE_ROUNDF): Likewise.
2505         (SET_RESTORE_ROUNDL): Likewise.
2506         (SET_RESTORE_ROUND_NOEX): Likewise.
2507         (SET_RESTORE_ROUND_NOEXF): Likewise.
2508         (SET_RESTORE_ROUND_NOEXL): Likewise.
2509         (SET_RESTORE_ROUND_53BIT): Likewise.
2510         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
2511         (libc_feresetround_noexf_ctx): Likewise.
2512         (libc_feresetround_noexl_ctx): Likewise.
2513         (libc_feholdsetround_53bit_ctx): Likewise.
2514         (libc_feresetround_53bit_ctx): Likewise.
2515         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
2516         (libc_feholdexcept_setround_sse_ctx): New function.
2517         (libc_fesetenv_sse_ctx): Likewise.
2518         (libc_feupdateenv_sse_ctx): Likewise.
2519         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
2520         (libc_feholdexcept_setround_387_ctx): Likewise.
2521         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
2522         (libc_feholdsetround_387_prec_ctx): Likewise.
2523         (libc_feholdsetround_387_ctx): Likewise.
2524         (libc_feholdsetround_387_53bit_ctx): Likewise.
2525         (libc_feholdsetround_sse_ctx): Likewise.
2526         (libc_feresetround_sse_ctx): Likewise.
2527         (libc_feresetround_387_ctx): Likewise.
2528         (libc_feupdateenv_387_ctx): Likewise.
2529         (libc_feholdexcept_setroundf_ctx): Define macro.
2530         (libc_fesetenvf_ctx): Likewise.
2531         (libc_feupdateenvf_ctx): Likewise.
2532         (libc_feholdsetroundf_ctx): Likewise.
2533         (libc_feresetroundf_ctx): Likewise.
2534         (libc_feholdexcept_setround_ctx): Likewise.
2535         (libc_fesetenv_ctx): Likewise.
2536         (libc_feupdateenv_ctx): Likewise.
2537         (libc_feholdsetround_ctx): Likewise.
2538         (libc_feresetround_ctx): Likewise.
2539         (libc_feholdexcept_setroundl_ctx): Likewise.
2540         (libc_feupdateenvl_ctx): Likewise.
2541         (libc_feholdsetroundl_ctx): Likewise.
2542         (libc_feresetroundl_ctx): Likewise.
2543         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
2544         (libc_feresetround_53bit_ctx): Likewise.
2545
2546 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2547
2548         * locale/iso-639.def: Convert to UTF-8.
2549
2550 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
2551
2552         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
2553         (EXCEPTION_TESTS_double): Likewise.
2554         (EXCEPTION_TESTS_long_double): Likewise.
2555         (EXCEPTION_TESTS): Likewise.
2556         * math/libm-test.inc (test_exceptions): Only test exceptions if
2557         EXCEPTION_TESTS (FLOAT).
2558
2559 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2560
2561         * benchtests/Makefile (string-bench): Add strcpy_chk and
2562         stpcpy_chk.
2563         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
2564         * benchtests/bench-stpcpy_chk.c: New file.
2565         * benchtests/bench-strcpy_chk-ifunc.c: New file.
2566         * benchtests/bench-strcpy_chk.c: New file.
2567         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
2568         code.
2569         (do_test): Likewise.
2570
2571 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2572
2573         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
2574         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
2575         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
2576         with tabs where appropriate.
2577         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
2578         dl-procinfo.h.
2579         [PPC_PLATFORM_PPC440]: Likewise.
2580         [PPC_PLATFORM_PPC464]: Likewise.
2581         [PPC_PLATFORM_PPC476]: Likewise.
2582         (_dl_string_platform): Add support for detecting ppc405, ppc440,
2583         ppc464, and ppc476 platform strings merging from ports/
2584         dl-procinfo.h.
2585
2586 2013-06-11  Andreas Schwab  <schwab@suse.de>
2587
2588         [BZ #14991]
2589         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
2590         (from_ucs4_idx): Regenerate.
2591         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
2592         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
2593         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
2594         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
2595         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
2596         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
2597         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
2598         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
2599         from FROM_LOOP and TO_LOOP specific macros.
2600         (BODY): Handle combining characters.
2601         * iconvdata/BIG5HKSCS.irreversible: Update.
2602         * iconvdata/BIG5HKSCS.precomposed: New file.
2603         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
2604         characters.
2605         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
2606
2607 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2608
2609         * include/sys/time.h: Fix indentation and add copyright header.
2610
2611         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
2612         (do_test): Likewise.
2613         * string/test-memchr.c (do_one_test): Likewise.
2614         (do_test): Likewise.
2615         * string/test-memcmp.c (do_one_test): Likewise.
2616         (do_test): Likewise.
2617         * string/test-memcpy.c (do_one_test): Likewise.
2618         (do_test): Likewise.
2619         * string/test-memmem.c (do_one_test): Likewise.
2620         (do_test): Likewise.
2621         (do_random_tests): Likewise.
2622         * string/test-memmove.c (do_one_test): Likewise.
2623         (do_test): Likewise.
2624         * string/test-memset.c (do_one_test): Likewise.
2625         (do_test): Likewise.
2626         * string/test-rawmemchr.c (do_one_test): Likewise.
2627         (do_test): Likewise.
2628         * string/test-strcasecmp.c (do_one_test): Likewise.
2629         (do_test): Likewise.
2630         * string/test-strcasestr.c (do_one_test): Likewise.
2631         (do_test): Likewise.
2632         * string/test-strcat.c (do_one_test): Likewise.
2633         (do_test): Likewise.
2634         * string/test-strchr.c (do_one_test): Likewise.
2635         (do_test): Likewise.
2636         * string/test-strcmp.c (do_one_test): Likewise.
2637         (do_test): Likewise.
2638         * string/test-strcpy.c (do_one_test): Likewise.
2639         (do_test): Likewise.
2640         * string/test-string.h: Likewise.
2641         (test_init): Likewise.
2642         * string/test-strlen.c (do_one_test): Likewise.
2643         (do_test): Likewise.
2644         * string/test-strncasecmp.c (do_one_test): Likewise.
2645         (do_test): Likewise.
2646         * string/test-strncat.c (do_one_test): Likewise.
2647         (do_test): Likewise.
2648         * string/test-strncmp.c (do_one_test): Likewise.
2649         (do_test_limit): Likewise.
2650         (do_test): Likewise.
2651         * string/test-strncpy.c (do_one_test): Likewise.
2652         (do_test): Likewise.
2653         * string/test-strnlen.c (do_one_test): Likewise.
2654         (do_test): Likewise.
2655         * string/test-strpbrk.c (do_one_test): Likewise.
2656         (do_test): Likewise.
2657         * string/test-strrchr.c (do_one_test): Likewise.
2658         (do_test): Likewise.
2659         * string/test-strspn.c (do_one_test): Likewise.
2660         (do_test): Likewise.
2661         * string/test-strstr.c (do_one_test): Likewise.
2662         (do_test): Likewise.
2663
2664         * benchtests/Makefile (string-bench): Add string benchmarks.
2665         * benchtests/bench-bcopy-ifunc.c: New file.
2666         * benchtests/bench-bcopy.c: New file.
2667         * benchtests/bench-bzero-ifunc.c: New file.
2668         * benchtests/bench-bzero.c: New file.
2669         * benchtests/bench-memccpy-ifunc.c: New file.
2670         * benchtests/bench-memccpy.c: New file.
2671         * benchtests/bench-memchr-ifunc.c: New file.
2672         * benchtests/bench-memchr.c: New file.
2673         * benchtests/bench-memcmp-ifunc.c: New file.
2674         * benchtests/bench-memcmp.c: New file.
2675         * benchtests/bench-memmem-ifunc.c: New file.
2676         * benchtests/bench-memmem.c: New file.
2677         * benchtests/bench-memmove-ifunc.c: New file.
2678         * benchtests/bench-memmove.c: New file.
2679         * benchtests/bench-mempcpy-ifunc.c: New file.
2680         * benchtests/bench-mempcpy.c: New file.
2681         * benchtests/bench-memset-ifunc.c: New file.
2682         * benchtests/bench-memset.c: New file.
2683         * benchtests/bench-rawmemchr-ifunc.c: New file.
2684         * benchtests/bench-rawmemchr.c: New file.
2685         * benchtests/bench-stpcpy-ifunc.c: New file.
2686         * benchtests/bench-stpcpy.c: New file.
2687         * benchtests/bench-stpncpy-ifunc.c: New file.
2688         * benchtests/bench-stpncpy.c: New file.
2689         * benchtests/bench-strcasecmp-ifunc.c: New file.
2690         * benchtests/bench-strcasecmp.c: New file.
2691         * benchtests/bench-strcasestr-ifunc.c: New file.
2692         * benchtests/bench-strcasestr.c: New file.
2693         * benchtests/bench-strcat-ifunc.c: New file.
2694         * benchtests/bench-strcat.c: New file.
2695         * benchtests/bench-strchr-ifunc.c: New file.
2696         * benchtests/bench-strchr.c: New file.
2697         * benchtests/bench-strchrnul-ifunc.c: New file.
2698         * benchtests/bench-strchrnul.c: New file.
2699         * benchtests/bench-strcmp-ifunc.c: New file.
2700         * benchtests/bench-strcmp.c: New file.
2701         * benchtests/bench-strcpy-ifunc.c: New file.
2702         * benchtests/bench-strcpy.c: New file.
2703         * benchtests/bench-strcspn-ifunc.c: New file.
2704         * benchtests/bench-strcspn.c: New file.
2705         * benchtests/bench-strlen-ifunc.c: New file.
2706         * benchtests/bench-strlen.c: New file.
2707         * benchtests/bench-strncasecmp-ifunc.c: New file.
2708         * benchtests/bench-strncasecmp.c: New file.
2709         * benchtests/bench-strncat-ifunc.c: New file.
2710         * benchtests/bench-strncat.c: New file.
2711         * benchtests/bench-strncmp-ifunc.c: New file.
2712         * benchtests/bench-strncmp.c: New file.
2713         * benchtests/bench-strncpy-ifunc.c: New file.
2714         * benchtests/bench-strncpy.c: New file.
2715         * benchtests/bench-strnlen-ifunc.c: New file.
2716         * benchtests/bench-strnlen.c: New file.
2717         * benchtests/bench-strpbrk-ifunc.c: New file.
2718         * benchtests/bench-strpbrk.c: New file.
2719         * benchtests/bench-strrchr-ifunc.c: New file.
2720         * benchtests/bench-strrchr.c: New file.
2721         * benchtests/bench-strspn-ifunc.c: New file.
2722         * benchtests/bench-strspn.c: New file.
2723         * benchtests/bench-strstr-ifunc.c: New file.
2724         * benchtests/bench-strstr.c: New file.
2725
2726         * benchtests/Makefile: Disable parallel execution of targets.
2727         (string-bench): Add memcpy.
2728         (benchset): New variable to store a list of benchmark sets.
2729         (bench-func): Renamed from bench.
2730         (bench-set): New target.
2731         (bench): Depend on bench-func and bench-set.
2732         * benchtests/README: Add section on benchmark sets.
2733         * benchtests/bench-memcpy-ifunc.c: New file.
2734         * benchtests/bench-memcpy.c: New file.
2735         * benchtests/bench-string.h: New file.
2736
2737 2013-06-11  Andreas Schwab  <schwab@suse.de>
2738
2739         [BZ #15577]
2740         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
2741         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
2742         values in the triple.
2743         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
2744         terminator in the group key.
2745
2746 2013-06-11  Andreas Jaeger  <aj@suse.de>
2747
2748         * po/zh_TW.po: Update Chinese (traditional) translation from
2749         translation project.
2750
2751 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2752
2753         * include/time.h (__clock_gettime): Add libc_hidden_proto.
2754         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
2755         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
2756         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2757         (clock_getcpuclockid): Likewise.
2758         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
2759         Add weak_alias and libc_hidden_def.
2760         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
2761         * rt/clock_gettime.c (clock_gettime): Rename to
2762         __clock_gettime.  Add weak_alias and libc_hidden_def.
2763         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
2764         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
2765         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
2766         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
2767         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
2768         Likewise.
2769         * rt/clock_settime.c (clock_settime): Rename to
2770         __clock_settime.  Add weak_alias and libc_hidden_def.
2771         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
2772
2773 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
2774
2775         * mach/err_boot.sub: Remove trailing whitespace.
2776         * mach/err_ipc.sub: Likewise.
2777         * mach/err_mach.sub: Likewise.
2778
2779         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
2780         (ROUNDING_TESTS_double): Likewise.
2781         (ROUNDING_TESTS_long_double): Likewise.
2782         (ROUNDING_TESTS): Likewise.
2783         * math/libm-test.inc: Include <math-tests.h>.
2784         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
2785         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
2786         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
2787         (IF_ROUND_INIT_FE_UPWARD): Likewise.
2788
2789 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2790
2791         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
2792         of assigning.
2793
2794 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
2795
2796         * sysdeps/gnu/errlist.awk: Do not generate space at end of
2797         otherwise empty TRANS lines.
2798         * sysdeps/gnu/errlist.c: Regenerated.
2799
2800         * catgets/gencat.c (error_print): Use (void) in function
2801         definition.
2802         * crypt/crypt_util.c (__init_des): Likewise.
2803         * crypt/speeds.c (Stop): Likewise.
2804         (main): Likewise.
2805         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
2806         * inet/ruserpass.c (token): Likewise.
2807         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
2808         * intl/localealias.c (extend_alias_table): Likewise.
2809         * intl/plural-exp.c (init_germanic_plural): Likewise.
2810         * libio/fcloseall.c (__fcloseall): Likewise.
2811         * libio/genops.c (_IO_flush_all): Likewise.
2812         (_IO_flush_all_linebuffered): Likewise.
2813         (_IO_cleanup): Likewise.
2814         (_IO_iter_begin): Likewise.
2815         (_IO_iter_end): Likewise.
2816         (_IO_list_lock): Likewise.
2817         (_IO_list_unlock): Likewise.
2818         (_IO_list_resetlock): Likewise.
2819         * libio/getchar.c (getchar): Likewise.
2820         * libio/getchar_u.c (getchar_unlocked): Likewise.
2821         * libio/getwchar.c (getwchar): Likewise.
2822         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
2823         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
2824         * login/getpt.c (__getpt): Likewise.
2825         * login/tst-utmp.c (main): Likewise.
2826         * malloc/hooks.c (__malloc_check_init): Likewise.
2827         * malloc/malloc.c (__malloc_stats): Likewise.
2828         * malloc/mtrace.c (tr_break): Likewise.
2829         (mtrace): Likewise.
2830         (muntrace): Likewise.
2831         * misc/fstab.c (endfsent): Likewise.
2832         * misc/getclktck.c (__getclktck): Likewise.
2833         * misc/getdtsz.c (__getdtablesize): Likewise.
2834         * misc/gethostid.c (gethostid): Likewise.
2835         * misc/getpagesize.c (__getpagesize): Likewise.
2836         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
2837         (__get_nprocs): Likewise.
2838         (__get_phys_pages): Likewise.
2839         (__get_avphys_pages): Likewise.
2840         * misc/getttyent.c (getttyent): Likewise.
2841         (setttyent): Likewise.
2842         (endttyent): Likewise.
2843         * misc/getusershell.c (getusershell): Likewise.
2844         (endusershell): Likewise.
2845         (setusershell): Likewise.
2846         (initshells): Likewise.
2847         * misc/hsearch.c (__hdestroy): Likewise.
2848         * misc/sync.c (sync): Likewise.
2849         * misc/syslog.c (closelog_internal): Likewise.
2850         (closelog): Likewise.
2851         * misc/ttyslot.c (ttyslot): Likewise.
2852         * misc/vhangup.c (vhangup): Likewise.
2853         * posix/fork.c (__fork): Likewise.
2854         * posix/getegid.c (__getegid): Likewise.
2855         * posix/geteuid.c (__geteuid): Likewise.
2856         * posix/getgid.c (__getgid): Likewise.
2857         * posix/getpid.c (__getpid): Likewise.
2858         * posix/getppid.c (__getppid): Likewise.
2859         * posix/getuid.c (__getuid): Likewise.
2860         * posix/pause.c (pause): Likewise.
2861         * posix/setpgrp.c (setpgrp): Likewise.
2862         * posix/setsid.c (__setsid): Likewise.
2863         * posix/test-vfork.c (noop): Likewise.
2864         * resolv/gethnamaddr.c (_endhtent): Likewise.
2865         (_gethtent): Likewise.
2866         (ht_endhostent): Likewise.
2867         (gethostent): Likewise.
2868         (dns_service): Likewise.
2869         * stdlib/drand48.c (drand48): Likewise.
2870         * stdlib/lrand48.c (lrand48): Likewise.
2871         * stdlib/mrand48.c (mrand48): Likewise.
2872         * stdlib/rand.c (rand): Likewise.
2873         * stdlib/random.c (__random): Likewise.
2874         * stdlib/setenv.c (clearenv): Likewise.
2875         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
2876         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
2877         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
2878         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
2879         (__get_nprocs): Likewise.
2880         (__get_phys_pages): Likewise.
2881         (__get_avphys_pages): Likewise.
2882         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
2883         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
2884         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
2885         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
2886         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
2887         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
2888         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
2889         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
2890         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
2891         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
2892         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
2893         * sysdeps/mach/hurd/sync.c (sync): Likewise.
2894         * sysdeps/posix/clock.c (clock): Likewise.
2895         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
2896         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
2897         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
2898         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2899         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
2900         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
2901         (__get_nprocs_conf): Likewise.
2902         (__get_phys_pages): Likewise.
2903         (__get_avphys_pages): Likewise.
2904         * time/clock.c (clock): Likewise.
2905         * time/tzset.c (__tzname_max): Likewise.
2906
2907 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
2908
2909         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
2910         (__bswap_32): Do not use "register".
2911         * crypt/crypt.c (_ufc_doit_r): Likewise.
2912         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
2913         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
2914         * gmon/gmon.c (__monstartup): Likewise.
2915         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
2916         * hurd/hurdmalloc.c (more_memory): Likewise.
2917         (malloc): Likewise.
2918         (free): Likewise.
2919         (realloc): Likewise.
2920         (malloc_fork_prepare): Likewise.
2921         (malloc_fork_parent): Likewise.
2922         (malloc_fork_child): Likewise.
2923         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
2924         (_svcauth_des): Likewise.
2925         * inet/inet_lnaof.c (inet_lnaof): Likewise.
2926         * inet/inet_net.c (inet_network): Likewise.
2927         * inet/inet_netof.c (inet_netof): Likewise.
2928         * inet/rcmd.c (__validuser2_sa): Likewise.
2929         * io/fts.c (fts_open): Likewise.
2930         (fts_load): Likewise.
2931         (fts_close): Likewise.
2932         (fts_read): Likewise.
2933         (fts_children): Likewise.
2934         (fts_build): Likewise.
2935         (fts_stat): Likewise.
2936         (fts_sort): Likewise.
2937         (fts_alloc): Likewise.
2938         (fts_lfree): Likewise.
2939         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
2940         (_IO_file_xsgetn): Likewise.
2941         (_IO_file_xsgetn_mmap): Likewise.
2942         * libio/iofopncook.c (_IO_cookie_read): Likewise.
2943         (_IO_cookie_write): Likewise.
2944         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
2945         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
2946         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
2947         * malloc/obstack.c (_obstack_begin): Likewise.
2948         (_obstack_begin_1): Likewise.
2949         (_obstack_newchunk): Likewise.
2950         (_obstack_allocated_p): Likewise.
2951         (obstack_free): Likewise.
2952         (_obstack_memory_used): Likewise.
2953         * misc/getttyent.c (getttynam): Likewise.
2954         (getttyent): Likewise.
2955         (skip): Likewise.
2956         (value): Likewise.
2957         * misc/getusershell.c (initshells): Likewise.
2958         * misc/syslog.c (__vsyslog_chk): Likewise.
2959         * misc/ttyslot.c (ttyslot): Likewise.
2960         * nis/nis_hash.c (__nis_hash): Likewise.
2961         * posix/fnmatch_loop.c (FCT): Likewise.
2962         * posix/getconf.c (print_all): Likewise.
2963         (main): Likewise.
2964         * posix/getopt.c (exchange): Likewise.
2965         * posix/glob.c (globfree): Likewise.
2966         (prefix_array): Likewise.
2967         (__glob_pattern_type): Likewise.
2968         * resolv/arpa/nameser.h (NS_GET16): Likewise.
2969         (NS_GET32): Likewise.
2970         (NS_PUT16): Likewise.
2971         (NS_PUT32): Likewise.
2972         * resolv/gethnamaddr.c (getanswer): Likewise.
2973         (gethostbyname2): Likewise.
2974         (gethostbyaddr): Likewise.
2975         (_gethtent): Likewise.
2976         (_gethtbyname2): Likewise.
2977         (_gethtbyaddr): Likewise.
2978         * resolv/ns_print.c (dst_s_get_int16): Likewise.
2979         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
2980         * resolv/res_init.c (__res_vinit): Likewise.
2981         (net_mask): Likewise.
2982         * resolv/res_mkquery.c (outchar): Likewise.
2983         (PRINT): Likewise.
2984         * stdio-common/printf_fp.c (outchar): Likewise.
2985         (PRINT): Likewise.
2986         * stdio-common/printf_fphex.c (outchar): Likewise.
2987         (PRINT): Likewise.
2988         * stdio-common/printf_size.c (outchar): Likewise.
2989         (PRINT): Likewise.
2990         * stdio-common/test_rdwr.c (main): Likewise.
2991         * stdio-common/tfformat.c (matches): Likewise.
2992         * stdio-common/vfprintf.c (outchar): Likewise.
2993         (printf_unknown): Likewise.
2994         (buffered_vfprintf): Likewise.
2995         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
2996         * stdio-common/xbug.c (AppendToBuffer): Likewise.
2997         (ReadFile): Likewise.
2998         * stdlib/qsort.c (SWAP): Likewise.
2999         (_quicksort): Likewise.
3000         * stdlib/setenv.c (__add_to_environ): Likewise.
3001         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
3002         * stdlib/strtol_l.c (__strtol_l): Likewise.
3003         * stdlib/tst-strtod.c (main): Likewise.
3004         * stdlib/tst-strtol.c (main): Likewise.
3005         * stdlib/tst-strtoll.c (main): Likewise.
3006         * string/bits/string2.h (__strcmp_cc): Likewise.
3007         (__strcmp_cg): Likewise.
3008         (__strcspn_c1): Likewise.
3009         (__strcspn_c2): Likewise.
3010         (__strcspn_c3): Likewise.
3011         (__strspn_c1): Likewise.
3012         (__strspn_c2): Likewise.
3013         (__strspn_c3): Likewise.
3014         (__strsep_1c): Likewise.
3015         (__strsep_2c): Likewise.
3016         (__strsep_3c): Likewise.
3017         * string/memccpy.c (__memccpy): Likewise.
3018         * string/stpcpy.c (__stpcpy): Likewise.
3019         * string/strcmp.c (strcmp): Likewise.
3020         * string/strrchr.c (strrchr): Likewise.
3021         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
3022         Likewise.
3023         * sysdeps/mach/hurd/getcwd.c
3024         (_hurd_canonicalize_directory_name_internal): Likewise.
3025         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
3026         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
3027         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
3028         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
3029         Likewise, in both definitions.
3030         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
3031         definitions.
3032         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
3033         64] (__bswap_64): Likewise.
3034         * time/test_time.c (main): Likewise.
3035         * time/tzfile.c (__tzfile_read): Likewise.
3036         (__tzfile_compute): Likewise.
3037         * time/tzset.c (__tzset_parse_tz): Likewise.
3038         (tzset_internal): Likewise.
3039         (compute_change): Likewise.
3040         * wcsmbs/wcscat.c (__wcscat): Likewise.
3041         * wcsmbs/wcschr.c (wcschr): Likewise.
3042         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
3043         * wcsmbs/wcscspn.c (wcscspn): Likewise.
3044         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3045         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
3046         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3047         * wcsmbs/wcsstr.c (wcsstr): Likewise.
3048         * wcsmbs/wmemchr.c (wmemchr): Likewise.
3049         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
3050         * wcsmbs/wmemset.c (wmemset): Likewise.
3051
3052 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
3053
3054         * scripts/config.guess: Update to version 2013-05-16.
3055         * scripts/config.sub: Update to version 2013-04-24.
3056         * scripts/install-sh: Update to version 2011-11-20.07.
3057         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
3058         * scripts/move-if-change: Update to version 2012-01-06 07:23.
3059
3060 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
3061
3062         * debug/fgetws_u_chk.c: Fix leading whitespaces.
3063         * elf/sln.c: Likewise.
3064         * hurd/hurd/ioctl.h: Likewise.
3065         * hurd/hurdmalloc.c: Likewise.
3066         * hurd/xattr.c: Likewise.
3067         * include/shlib-compat.h: Likewise.
3068         * inet/ruserpass.c: Likewise.
3069         * libio/iofgets_u.c: Likewise.
3070         * libio/iofgetws_u.c: Likewise.
3071         * locale/programs/ld-identification.c: Likewise.
3072         * locale/programs/ld-time.c: Likewise.
3073         * mach/msg-destroy.c: Likewise.
3074         * nss/nss_files/files-netgrp.c: Likewise.
3075         * resolv/res_data.c: Likewise.
3076         * soft-fp/op-1.h: Likewise.
3077         * soft-fp/op-2.h: Likewise.
3078         * soft-fp/op-4.h: Likewise.
3079         * soft-fp/op-common.h: Likewise.
3080         * stdio-common/printf_fphex.c: Likewise.
3081         * stdlib/strtod_l.c: Likewise.
3082         * sunrpc/rpc/clnt.h: Likewise.
3083         * sysdeps/generic/framestate.c: Likewise.
3084         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3085         * sysdeps/i386/bsd-setjmp.S: Likewise.
3086         * sysdeps/i386/__longjmp.S: Likewise.
3087         * sysdeps/i386/setjmp.S: Likewise.
3088         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3089         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3090         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3091         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3092         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3093         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3094         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3095         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3096         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3097         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3098         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3099         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3100         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3101         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3102         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3103         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3104         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3105         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
3106         * sysdeps/ieee754/support.c: Likewise.
3107         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3108         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
3109         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
3110         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
3111         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
3112         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
3113         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
3114         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
3115         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
3116         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
3117         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
3118         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
3119         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
3120         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
3121         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
3122         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
3123         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
3124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3125
3126 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
3127
3128         * posix/transbug.c: Remove executable mode.
3129
3130 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
3131
3132         * crypt/speeds.c: Remove trailing whitespace.
3133         * dlfcn/default.c: Likewise.
3134         * elf/ifuncdep2.c: Likewise.
3135         * elf/ifuncmain1.c: Likewise.
3136         * elf/ifuncmain1vis.c: Likewise.
3137         * elf/testobj.h: Likewise.
3138         * elf/tst-stackguard1.c: Likewise.
3139         * gmon/sys/gmon.h: Likewise.
3140         * hurd/hurdmsg.c: Likewise.
3141         * hurd/new-fd.c: Likewise.
3142         * hurd/ports-get.c: Likewise.
3143         * iconvdata/ibm1008_420.c: Likewise.
3144         * inet/tst-getni1.c: Likewise.
3145         * inet/tst-getni2.c: Likewise.
3146         * libio/ioungetc.c: Likewise.
3147         * libio/wfiledoalloc.c: Likewise.
3148         * manual/libm-err-tab.pl: Likewise.
3149         * math/w_dremf.c: Likewise.
3150         * misc/ftruncate.c: Likewise.
3151         * posix/bug-glob2.c: Likewise.
3152         * posix/tst-pcre.c: Likewise.
3153         * posix/wait4.c: Likewise.
3154         * resolv/README: Likewise.
3155         * resolv/res_debug.h: Likewise.
3156         * resolv/tst-inet_ntop.c: Likewise.
3157         * setjmp/bug269-setjmp.c: Likewise.
3158         * soft-fp/extended.h: Likewise.
3159         * soft-fp/op-1.h: Likewise.
3160         * soft-fp/op-2.h: Likewise.
3161         * soft-fp/op-4.h: Likewise.
3162         * soft-fp/op-8.h: Likewise.
3163         * soft-fp/testit.c: Likewise.
3164         * stdio-common/bug16.c: Likewise.
3165         * stdlib/random.c: Likewise.
3166         * sunrpc/rpcsvc/rquota.x: Likewise.
3167         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3168         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3169         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3170         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3171         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3172         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3173         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3174         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3175         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3176         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3177         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3178         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3179         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3180         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3181         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3182         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3183         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3184         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3185         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3186         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3187         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3188         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3189         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
3190         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3191         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3192         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3193         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3194         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
3195         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3196         * sysdeps/ieee754/s_lib_version.c: Likewise.
3197         * sysdeps/mach/hurd/check_fds.c: Likewise.
3198         * sysdeps/mach/hurd/getsockname.c: Likewise.
3199         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
3200         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3201         * sysdeps/powerpc/bits/link.h: Likewise.
3202         * sysdeps/powerpc/dl-procinfo.c: Likewise.
3203         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
3204         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
3205         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
3206         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
3207         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3208         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
3209         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3210         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
3211         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3212         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3213         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
3214         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
3215         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3216         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
3217         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3218         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3219         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3220         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3221         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3222         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
3223         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
3224         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3225         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3226         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3227         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3228         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3229         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3230         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3231         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3232         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3233         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3234         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3235         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3236         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
3237         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3238         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3239         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3240         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3241         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
3242         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3243         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3244         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3245         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3246         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3247         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
3248         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3249         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3250         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
3251         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
3252         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3253         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3254         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3255         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3256         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3257         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3258         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3259         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3260         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
3261         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3262         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3263         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3264         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
3265         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3266         * sysdeps/powerpc/sysdep.h: Likewise.
3267         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3268         * sysdeps/s390/s390-64/sub_n.S: Likewise.
3269         * sysdeps/sh/dl-trampoline.S: Likewise.
3270         * sysdeps/sh/memset.S: Likewise.
3271         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
3272         * sysdeps/sh/strlen.S: Likewise.
3273         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
3274         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
3275         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
3276         * sysdeps/sparc/sparc32/rem.S: Likewise.
3277         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
3278         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
3279         * sysdeps/sparc/sparc32/strchr.S: Likewise.
3280         * sysdeps/sparc/sparc32/udiv.S: Likewise.
3281         * sysdeps/sparc/sparc32/urem.S: Likewise.
3282         * sysdeps/sparc/sparc64/add_n.S: Likewise.
3283         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3284         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
3285         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
3286         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
3287         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
3288         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
3289         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
3290         * sysdeps/unix/bsd/times.c: Likewise.
3291         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
3292         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
3296         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
3297         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3298         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
3299         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
3300         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
3301         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
3302         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3303         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
3304         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
3305         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3306         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3307         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3308         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3309         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
3310         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
3311         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
3312         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
3313         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
3314         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
3315         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
3316         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
3317         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
3318         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3319         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
3320         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
3321         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
3322         * sysdeps/x86_64/strcspn.S: Likewise.
3323
3324 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3325
3326         * locale/C-translit.h: Revert #include <stdint.h> because this is a
3327         generated file.  Regenerate properly from gen-translit.pl.
3328         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
3329         locale/C-translit.h.
3330
3331 2013-06-05  Andreas Schwab  <schwab@suse.de>
3332
3333         [BZ #15100]
3334         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
3335         week as 6 instead of -1.
3336         * time/tst-strptime.c (day_tests): Add test case.
3337
3338 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3339
3340         * sysdeps/generic/math_private.h
3341         (libc_feholdexcept_setround_53bit): Replace with
3342         libc_feholdsetround_53bit.
3343         (libc_feupdateenv_53bit): Replace with
3344         libc_feresetround_53bit.
3345         (SET_RESTORE_ROUND_53BIT): Adjust.
3346
3347 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
3348
3349         * string/test-strchrnul.c: Add copyright header.
3350
3351         * posix/tst-getaddrinfo4.c: Increase test timeout.
3352
3353 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
3354
3355         [BZ #15536]
3356         * math/libm-test.inc (MAX_EXP): Remove
3357         (MIN_EXP): Define.
3358         (ulp): Use MIN_EXP - MANT_DIG.
3359         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
3360
3361 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
3362
3363         * po/be.po: Revert last change.
3364         * po/zh_CN.po: Likewise.
3365         * po/header.pot: Likewise.
3366
3367 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
3368
3369         * Makefile ($(common-objpfx)linkobj/libc.so): Define
3370         link-libc-deps to empty as target-specific variable.
3371         * Makerules (link-libc-args): New variable.
3372         (libc-for-link): Likewise.
3373         (link-libc-deps): Likewise.
3374         (lib%.so): Depend on $(link-libc-deps).  Link with
3375         $(link-libc-args).
3376         (build-module): Link with $(link-libc-args).
3377         (build-module-asneeded): Likewise.
3378         (build-module-helper-objlist): Filter out $(link-libc-deps) from
3379         list of objects.
3380         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
3381         target-specific variable.
3382         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
3383         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
3384         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
3385         libc.
3386         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
3387         libc and ld.so.
3388         ($(objpfx)libpcprofile.so): Likewise.
3389         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
3390         libc_nonshared.a.
3391         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
3392         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
3393         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
3394         $(link-libc-deps).
3395         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
3396         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
3397         * login/Makefile ($(objpfx)libutil.so): Likewise.
3398         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
3399         * math/Makefile ($(objpfx)libm.so): Likewise.
3400         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
3401         $(objpfx)libnsl.so): Define libc-for-link as target-specific
3402         variable instead of depending directly on libc.
3403         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
3404         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
3405         $(link-libc-deps).
3406         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
3407         libc.
3408         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
3409         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
3410         ($(objpfx)libanl.so): Likewise.
3411         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
3412         ld.so.
3413         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
3414         $(link-libc-deps).
3415         * sysdeps/i386/fpu/Makefile: Remove file.
3416         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
3417         ($(objpfx)libm.so): Remove dependency on ld.so.
3418
3419 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
3420
3421         [BZ # 15553]
3422         * nis/yp_xdr.c (XDRMAXNAME): Define.
3423         (XDRMAXRECORD): Define.
3424         (xdr_domainname): Use XDRMAXNAME.
3425         (xdr_mapname): Likewise.
3426         (xdr_peername): Likewise.
3427         (xdr_keydat): Use XDRMAXRECORD.
3428         (xdr_valdat): Likewise.
3429
3430 2013-05-30  Jeff Law  <law@redhat.com>
3431
3432         [BZ #14256]
3433         * manual/errno.texi (ESTALE): Update to account for more than
3434         just NFS file systems.
3435         * sysdeps/gnu/errlist.c: Regenerated.
3436
3437 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3438
3439         [BZ #15465]
3440         * elf/Makefile (tests): Add tst-null-argv.
3441         (modules-names):  Add tst-null-argv-lib.
3442         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
3443         (tst-null-argv-ENV): Set environment for tst-null-argv.
3444         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
3445         (RTLD_PROGNAME): New macro.
3446         * elf/tst-null-argv.c: New test case.
3447         * elf/tst-null-argv-lib.c: Library for test case.
3448         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
3449         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3450         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
3451         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
3452         * elf/dl-init.c (call_init): Likewise.
3453         (_dl_init): Likewise.
3454         * elf/dl-load.c (print_search_path): Likewise.
3455         (_dl_map_object): Likewise.
3456         * elf/dl-lookup.c (do_lookup_x): Likewise.
3457         (add_dependency): Likewise.
3458         (_dl_lookup_symbol_x): Likewise.
3459         (_dl_debug_bindings): Likewise.
3460         * elf/dl-open.c (_dl_show_scope): Likewise.
3461         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3462         * elf/dl-version.c (match_symbol): Likewise.
3463         (_dl_check_map_versions): Likewise.
3464         * elf/rtld.c (dl_main): Likewise.
3465         (print_unresolved): Use RTLD_PROGNAME.
3466         (print_missing_version): Likewise.
3467         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3468         (elf_machine_rela): Likewise.
3469         * sysdeps/powerpc/powerpc32/dl-machine.c
3470         (__process_machine_rela): Likewise.
3471         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3472         Likewise.
3473         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3474         Likewise.
3475         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
3476         Likewise.
3477         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3478         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
3479         Likewise.
3480         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
3481         Likewise.
3482         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3483
3484 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
3485
3486         * po/be.po: Add descriptive title.
3487         * po/zh_CN.po: Likewise.
3488         * po/header.pot: Likewise.
3489
3490 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
3491
3492         * locale/programs/locarchive.c (create_archive): Inlucde fname in
3493         error message.
3494         (enlarge_archive): Likewise.
3495
3496 2013-05-28  Ben North  <ben@redfrontdoor.org>
3497
3498         * manual/arith.texi (frexp): It is the magnitude of the return
3499         value which lies in [0.5, 1), not the return value itself.
3500
3501 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3502
3503         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3504
3505 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
3506
3507         * stdio-common/bug26.c (main): Correct fscanf template.
3508
3509         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
3510         declare _dl_skip_args.
3511
3512         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
3513         Don't declare.
3514
3515         * manual/platform.texi: Add missing @end deftypefun.
3516
3517 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
3518
3519         [BZ #15529]
3520         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
3521         bit of mantissa of 2^16382.
3522         * math/libm-test.inc (hypot_test_data): Add more tests.
3523
3524         * math/libm-test.inc: Add drem and pow10 to list of tested
3525         functions.
3526         (pow10_test): New function.
3527         (drem_test): Likewise.
3528         (drem_test_tonearest): Likewise.
3529         (drem_test_towardzero): Likewise.
3530         (drem_test_downward): Likewise.
3531         (drem_test_upward): Likewise.
3532         (main): Call the new functions.
3533
3534         * math/libm-test.inc (finite_test_data): Remove.
3535         (finite_test): Run tests from isfinite_test_data.
3536         (gamma_test_data): Remove.
3537         (gamma_test): Run tests from lgamma_test_data.
3538         * sysdeps/i386/fpu/libm-test-ulps: Update.
3539         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3540
3541 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3542
3543         * manual/platform.texi: Add PowerPC PPR function set documentation.
3544         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
3545         implementation.
3546
3547 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
3548
3549         * math/libm-test.inc (MAX_EXP): Define.
3550         (ULPDIFF): Define.
3551         (ulp): New function.
3552         (check_float_internal): Use ULPDIFF.
3553         (cpow_test): Disable failing test.
3554         (check_ulp): Test ulp() implemetnation.
3555         (main): Call check_ulp before starting tests.
3556
3557 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
3558
3559         * math/gen-libm-test.pl (generate_testfile): Do not handle
3560         START_DATA and END_DATA.
3561         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
3562         END_DATA.
3563         (acos_tonearest_test_data): Likewise.
3564         (acos_towardzero_test_data): Likewise.
3565         (acos_downward_test_data): Likewise.
3566         (acos_upward_test_data): Likewise.
3567         (acosh_test_data): Likewise.
3568         (asin_test_data): Likewise.
3569         (asin_tonearest_test_data): Likewise.
3570         (asin_towardzero_test_data): Likewise.
3571         (asin_downward_test_data): Likewise.
3572         (asin_upward_test_data): Likewise.
3573         (asinh_test_data): Likewise.
3574         (atan_test_data): Likewise.
3575         (atanh_test_data): Likewise.
3576         (atan2_test_data): Likewise.
3577         (cabs_test_data): Likewise.
3578         (cacos_test_data): Likewise.
3579         (cacosh_test_data): Likewise.
3580         (carg_test_data): Likewise.
3581         (casin_test_data): Likewise.
3582         (casinh_test_data): Likewise.
3583         (catan_test_data): Likewise.
3584         (catanh_test_data): Likewise.
3585         (cbrt_test_data): Likewise.
3586         (ccos_test_data): Likewise.
3587         (ccosh_test_data): Likewise.
3588         (ceil_test_data): Likewise.
3589         (cexp_test_data): Likewise.
3590         (cimag_test_data): Likewise.
3591         (clog_test_data): Likewise.
3592         (clog10_test_data): Likewise.
3593         (conj_test_data): Likewise.
3594         (copysign_test_data): Likewise.
3595         (cos_test_data): Likewise.
3596         (cos_tonearest_test_data): Likewise.
3597         (cos_towardzero_test_data): Likewise.
3598         (cos_downward_test_data): Likewise.
3599         (cos_upward_test_data): Likewise.
3600         (cosh_test_data): Likewise.
3601         (cosh_tonearest_test_data): Likewise.
3602         (cosh_towardzero_test_data): Likewise.
3603         (cosh_downward_test_data): Likewise.
3604         (cosh_upward_test_data): Likewise.
3605         (cpow_test_data): Likewise.
3606         (cproj_test_data): Likewise.
3607         (creal_test_data): Likewise.
3608         (csin_test_data): Likewise.
3609         (csinh_test_data): Likewise.
3610         (csqrt_test_data): Likewise.
3611         (ctan_test_data): Likewise.
3612         (ctan_tonearest_test_data): Likewise.
3613         (ctan_towardzero_test_data): Likewise.
3614         (ctan_downward_test_data): Likewise.
3615         (ctan_upward_test_data): Likewise.
3616         (ctanh_test_data): Likewise.
3617         (ctanh_tonearest_test_data): Likewise.
3618         (ctanh_towardzero_test_data): Likewise.
3619         (ctanh_downward_test_data): Likewise.
3620         (ctanh_upward_test_data): Likewise.
3621         (erf_test_data): Likewise.
3622         (erfc_test_data): Likewise.
3623         (exp_test_data): Likewise.
3624         (exp_tonearest_test_data): Likewise.
3625         (exp_towardzero_test_data): Likewise.
3626         (exp_downward_test_data): Likewise.
3627         (exp_upward_test_data): Likewise.
3628         (exp10_test_data): Likewise.
3629         (exp2_test_data): Likewise.
3630         (expm1_test_data): Likewise.
3631         (fabs_test_data): Likewise.
3632         (fdim_test_data): Likewise.
3633         (finite_test_data): Likewise.
3634         (floor_test_data): Likewise.
3635         (fma_test_data): Likewise.
3636         (fma_towardzero_test_data): Likewise.
3637         (fma_downward_test_data): Likewise.
3638         (fma_upward_test_data): Likewise.
3639         (fmax_test_data): Likewise.
3640         (fmin_test_data): Likewise.
3641         (fmod_test_data): Likewise.
3642         (fpclassify_test_data): Likewise.
3643         (frexp_test_data): Likewise.
3644         (gamma_test_data): Likewise.
3645         (hypot_test_data): Likewise.
3646         (ilogb_test_data): Likewise.
3647         (isfinite_test_data): Likewise.
3648         (isgreater_test_data): Likewise.
3649         (isgreaterequal_test_data): Likewise.
3650         (isinf_test_data): Likewise.
3651         (isless_test_data): Likewise.
3652         (islessequal_test_data): Likewise.
3653         (islessgreater_test_data): Likewise.
3654         (isnan_test_data): Likewise.
3655         (isnormal_test_data): Likewise.
3656         (issignaling_test_data): Likewise.
3657         (isunordered_test_data): Likewise.
3658         (j0_test_data): Likewise.
3659         (j1_test_data): Likewise.
3660         (jn_test_data): Likewise.
3661         (ldexp_test_data): Likewise.
3662         (lgamma_test_data): Likewise.
3663         (lrint_test_data): Likewise.
3664         (lrint_tonearest_test_data): Likewise.
3665         (lrint_towardzero_test_data): Likewise.
3666         (lrint_downward_test_data): Likewise.
3667         (lrint_upward_test_data): Likewise.
3668         (llrint_test_data): Likewise.
3669         (llrint_tonearest_test_data): Likewise.
3670         (llrint_towardzero_test_data): Likewise.
3671         (llrint_downward_test_data): Likewise.
3672         (llrint_upward_test_data): Likewise.
3673         (log_test_data): Likewise.
3674         (log10_test_data): Likewise.
3675         (log1p_test_data): Likewise.
3676         (log2_test_data): Likewise.
3677         (logb_test_data): Likewise.
3678         (logb_downward_test_data): Likewise.
3679         (lround_test_data): Likewise.
3680         (llround_test_data): Likewise.
3681         (modf_test_data): Likewise.
3682         (nearbyint_test_data): Likewise.
3683         (nextafter_test_data): Likewise.
3684         (nexttoward_test_data): Likewise.
3685         (pow_test_data): Likewise.
3686         (pow_tonearest_test_data): Likewise.
3687         (pow_towardzero_test_data): Likewise.
3688         (pow_downward_test_data): Likewise.
3689         (pow_upward_test_data): Likewise.
3690         (remainder_test_data): Likewise.
3691         (remainder_tonearest_test_data): Likewise.
3692         (remainder_towardzero_test_data): Likewise.
3693         (remainder_downward_test_data): Likewise.
3694         (remainder_upward_test_data): Likewise.
3695         (remquo_test_data): Likewise.
3696         (rint_test_data): Likewise.
3697         (rint_tonearest_test_data): Likewise.
3698         (rint_towardzero_test_data): Likewise.
3699         (rint_downward_test_data): Likewise.
3700         (rint_upward_test_data): Likewise.
3701         (round_test_data): Likewise.
3702         (scalb_test_data): Likewise.
3703         (scalbn_test_data): Likewise.
3704         (scalbln_test_data): Likewise.
3705         (signbit_test_data): Likewise.
3706         (sin_test_data): Likewise.
3707         (sin_tonearest_test_data): Likewise.
3708         (sin_towardzero_test_data): Likewise.
3709         (sin_downward_test_data): Likewise.
3710         (sin_upward_test_data): Likewise.
3711         (sincos_test_data): Likewise.
3712         (sinh_test_data): Likewise.
3713         (sinh_tonearest_test_data): Likewise.
3714         (sinh_towardzero_test_data): Likewise.
3715         (sinh_downward_test_data): Likewise.
3716         (sinh_upward_test_data): Likewise.
3717         (sqrt_test_data): Likewise.
3718         (tan_test_data): Likewise.
3719         (tan_tonearest_test_data): Likewise.
3720         (tan_towardzero_test_data): Likewise.
3721         (tan_downward_test_data): Likewise.
3722         (tan_upward_test_data): Likewise.
3723         (tanh_test_data): Likewise.
3724         (tgamma_test_data): Likewise.
3725         (trunc_test_data): Likewise.
3726         (y0_test_data): Likewise.
3727         (y1_test_data): Likewise.
3728         (yn_test_data): Likewise.
3729         (significand_test_data): Likewise.
3730
3731         * math/gen-libm-test.pl (@functions): Remove variable.
3732         (generate_testfile): Don't handle START and END lines.
3733         * math/libm-test.inc (START): New macro.
3734         (END): Likewise.
3735         (END_COMPLEX): Likewise.
3736         (acos_test): Use END macro without arguments.
3737         (acos_test_tonearest): Likewise.
3738         (acos_test_towardzero): Likewise.
3739         (acos_test_downward): Likewise.
3740         (acos_test_upward): Likewise.
3741         (acosh_test): Likewise.
3742         (asin_test): Likewise.
3743         (asin_test_tonearest): Likewise.
3744         (asin_test_towardzero): Likewise.
3745         (asin_test_downward): Likewise.
3746         (asin_test_upward): Likewise.
3747         (asinh_test): Likewise.
3748         (atan_test): Likewise.
3749         (atanh_test): Likewise.
3750         (atan2_test): Likewise.
3751         (cabs_test): Likewise.
3752         (cacos_test): Use END_COMPLEX macro without arguments.
3753         (cacosh_test): Likewise.
3754         (carg_test): Use END macro without arguments.
3755         (casin_test): Use END_COMPLEX macro without arguments.
3756         (casinh_test): Likewise.
3757         (catan_test): Likewise.
3758         (catanh_test): Likewise.
3759         (cbrt_test): Use END macro without arguments.
3760         (ccos_test): Use END_COMPLEX macro without arguments.
3761         (ccosh_test): Likewise.
3762         (ceil_test): Use END macro without arguments.
3763         (cexp_test): Use END_COMPLEX macro without arguments.
3764         (cimag_test): Use END macro without arguments.
3765         (clog_test): Use END_COMPLEX macro without arguments.
3766         (clog10_test): Likewise.
3767         (conj_test): Likewise.
3768         (copysign_test): Use END macro without arguments.
3769         (cos_test): Likewise.
3770         (cos_test_tonearest): Likewise.
3771         (cos_test_towardzero): Likewise.
3772         (cos_test_downward): Likewise.
3773         (cos_test_upward): Likewise.
3774         (cosh_test): Likewise.
3775         (cosh_test_tonearest): Likewise.
3776         (cosh_test_towardzero): Likewise.
3777         (cosh_test_downward): Likewise.
3778         (cosh_test_upward): Likewise.
3779         (cpow_test): Use END_COMPLEX macro without arguments.
3780         (cproj_test): Likewise.
3781         (creal_test): Use END macro without arguments.
3782         (csin_test): Use END_COMPLEX macro without arguments.
3783         (csinh_test): Likewise.
3784         (csqrt_test): Likewise.
3785         (ctan_test): Likewise.
3786         (ctan_test_tonearest): Likewise.
3787         (ctan_test_towardzero): Likewise.
3788         (ctan_test_downward): Likewise.
3789         (ctan_test_upward): Likewise.
3790         (ctanh_test): Likewise.
3791         (ctanh_test_tonearest): Likewise.
3792         (ctanh_test_towardzero): Likewise.
3793         (ctanh_test_downward): Likewise.
3794         (ctanh_test_upward): Likewise.
3795         (erf_test): Use END macro without arguments.
3796         (erfc_test): Likewise.
3797         (exp_test): Likewise.
3798         (exp_test_tonearest): Likewise.
3799         (exp_test_towardzero): Likewise.
3800         (exp_test_downward): Likewise.
3801         (exp_test_upward): Likewise.
3802         (exp10_test): Likewise.
3803         (exp2_test): Likewise.
3804         (expm1_test): Likewise.
3805         (fabs_test): Likewise.
3806         (fdim_test): Likewise.
3807         (finite_test): Likewise.
3808         (floor_test): Likewise.
3809         (fma_test): Likewise.
3810         (fma_test_towardzero): Likewise.
3811         (fma_test_downward): Likewise.
3812         (fma_test_upward): Likewise.
3813         (fmax_test): Likewise.
3814         (fmin_test): Likewise.
3815         (fmod_test): Likewise.
3816         (fpclassify_test): Likewise.
3817         (frexp_test): Likewise.
3818         (gamma_test): Likewise.
3819         (hypot_test): Likewise.
3820         (ilogb_test): Likewise.
3821         (isfinite_test): Likewise.
3822         (isgreater_test): Likewise.
3823         (isgreaterequal_test): Likewise.
3824         (isinf_test): Likewise.
3825         (isless_test): Likewise.
3826         (islessequal_test): Likewise.
3827         (islessgreater_test): Likewise.
3828         (isnan_test): Likewise.
3829         (isnormal_test): Likewise.
3830         (issignaling_test): Likewise.
3831         (isunordered_test): Likewise.
3832         (j0_test): Likewise.
3833         (j1_test): Likewise.
3834         (jn_test): Likewise.
3835         (ldexp_test): Likewise.
3836         (lgamma_test): Likewise.
3837         (lrint_test): Likewise.
3838         (lrint_test_tonearest): Likewise.
3839         (lrint_test_towardzero): Likewise.
3840         (lrint_test_downward): Likewise.
3841         (lrint_test_upward): Likewise.
3842         (llrint_test): Likewise.
3843         (llrint_test_tonearest): Likewise.
3844         (llrint_test_towardzero): Likewise.
3845         (llrint_test_downward): Likewise.
3846         (llrint_test_upward): Likewise.
3847         (log_test): Likewise.
3848         (log10_test): Likewise.
3849         (log1p_test): Likewise.
3850         (log2_test): Likewise.
3851         (logb_test): Likewise.
3852         (logb_test_downward): Likewise.
3853         (lround_test): Likewise.
3854         (llround_test): Likewise.
3855         (modf_test): Likewise.
3856         (nearbyint_test): Likewise.
3857         (nextafter_test): Likewise.
3858         (nexttoward_test): Likewise.
3859         (pow_test): Likewise.
3860         (pow_test_tonearest): Likewise.
3861         (pow_test_towardzero): Likewise.
3862         (pow_test_downward): Likewise.
3863         (pow_test_upward): Likewise.
3864         (remainder_test): Likewise.
3865         (remainder_test_tonearest): Likewise.
3866         (remainder_test_towardzero): Likewise.
3867         (remainder_test_downward): Likewise.
3868         (remainder_test_upward): Likewise.
3869         (remquo_test): Likewise.
3870         (rint_test): Likewise.
3871         (rint_test_tonearest): Likewise.
3872         (rint_test_towardzero): Likewise.
3873         (rint_test_downward): Likewise.
3874         (rint_test_upward): Likewise.
3875         (round_test): Likewise.
3876         (scalb_test): Likewise.
3877         (scalbn_test): Likewise.
3878         (scalbln_test): Likewise.
3879         (signbit_test): Likewise.
3880         (sin_test): Likewise.
3881         (sin_test_tonearest): Likewise.
3882         (sin_test_towardzero): Likewise.
3883         (sin_test_downward): Likewise.
3884         (sin_test_upward): Likewise.
3885         (sincos_test): Likewise.
3886         (sinh_test): Likewise.
3887         (sinh_test_tonearest): Likewise.
3888         (sinh_test_towardzero): Likewise.
3889         (sinh_test_downward): Likewise.
3890         (sinh_test_upward): Likewise.
3891         (sqrt_test): Likewise.
3892         (tan_test): Likewise.
3893         (tan_test_tonearest): Likewise.
3894         (tan_test_towardzero): Likewise.
3895         (tan_test_downward): Likewise.
3896         (tan_test_upward): Likewise.
3897         (tanh_test): Likewise.
3898         (tgamma_test): Likewise.
3899         (trunc_test): Likewise.
3900         (y0_test): Likewise.
3901         (y1_test): Likewise.
3902         (yn_test): Likewise.
3903         (significand_test): Likewise.
3904
3905 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
3906
3907         [BZ #15381]
3908         * libio/genops.c (_IO_no_init): Initialize wide struct info.
3909
3910 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
3911
3912         [BZ #14894]
3913         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
3914         __ppc_mdoio and __ppc_mdoom.
3915         * manual/platform.texi: Document new functions __ppc_yield,
3916         __ppc_mdoio and __ppc_mdoom.
3917
3918 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
3919
3920         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
3921         (main): Mention "tls" pseudo-hwcap is legacy.
3922         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
3923
3924 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
3925
3926         * math/gen-libm-test.pl (parse_args): Output only string of
3927         arguments as text for test name, not full call or descriptions of
3928         tests for extra outputs.
3929         (generate_testfile): Do not pass function name to parse_args.
3930         Generate this_func variable from START.
3931         * math/libm-test.inc (struct test_f_f_data): Rename test_name
3932         field to arg_str.
3933         (struct test_ff_f_data): Likewise.
3934         (test_ff_f_data_nexttoward): Likewise.
3935         (struct test_fi_f_data): Likewise.
3936         (struct test_fl_f_data): Likewise.
3937         (struct test_if_f_data): Likewise.
3938         (struct test_fff_f_data): Likewise.
3939         (struct test_c_f_data): Likewise.
3940         (struct test_f_f1_data): Likewise.  Remove field extra_name.
3941         (struct test_fF_f1_data): Likewise.
3942         (struct test_ffI_f1_data): Likewise.
3943         (struct test_c_c_data): Rename test_name field to arg_str.
3944         (struct test_cc_c_data): Likewise.
3945         (struct test_f_i_data): Likewise.
3946         (struct test_ff_i_data): Likewise.
3947         (struct test_f_l_data): Likewise.
3948         (struct test_f_L_data): Likewise.
3949         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
3950         and extra2_name.
3951         (COMMON_TEST_SETUP): New macro.
3952         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
3953         (COMMON_TEST_CLEANUP): Likewise.
3954         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
3955         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
3956         macros.
3957         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
3958         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
3959         macros.
3960         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
3961         (RUN_TEST_fff_f): Take argument string.  Call new setup and
3962         cleanup macros.
3963         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
3964         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
3965         macros.
3966         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
3967         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
3968         macros.
3969         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
3970         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
3971         cleanup macros.
3972         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
3973         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
3974         cleanup macros.
3975         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
3976         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
3977         cleanup macros.
3978         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
3979         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
3980         macros.
3981         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
3982         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
3983         macros.
3984         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
3985         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
3986         macros.
3987         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
3988         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
3989         cleanup macros.
3990         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
3991         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
3992         cleanup macros.
3993         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
3994         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
3995         macros.
3996         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
3997         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
3998         cleanup macros.
3999         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
4000         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
4001         macros.
4002         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
4003         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
4004         macros.
4005         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
4006         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
4007         cleanup macros.
4008         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
4009
4010 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4011
4012         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
4013         to _sifields.sigfault.
4014         (si_addr_lsb): Define new macro.
4015         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
4016         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4017         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
4018
4019 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
4020
4021         [BZ #15441]
4022         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
4023         returns -1.
4024         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
4025         null return -1.
4026         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
4027         loading the domain.
4028
4029 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4030
4031         * math/gen-libm-test.pl (parse_args): Do not include expected
4032         result in test name.
4033         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
4034         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4035         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4036         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4037         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4039
4040 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4041
4042         * benchtests/Makefile: Sort function entries.
4043
4044         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
4045         tanh, asinh, acosh, atanh.
4046         * benchtests/acos-inputs: New file.
4047         * benchtests/acosh-inputs: New file.
4048         * benchtests/asin-inputs: New file.
4049         * benchtests/asinh-inputs: New file.
4050         * benchtests/atanh-inputs: New file.
4051         * benchtests/cosh-inputs: New file.
4052         * benchtests/log-inputs: New file.
4053         * benchtests/sinh-inputs: New file.
4054         * benchtests/tanh-inputs: New file.
4055
4056 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
4057
4058         [BZ #15339]
4059         * posix/tst-getaddrinfo4.c: New test.
4060         * posix/Makefile (tests): Add it.
4061
4062 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4063
4064         [BZ #15339]
4065         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
4066         when no services were used.
4067         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
4068         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
4069
4070 2013-05-21  Andreas Schwab  <schwab@suse.de>
4071
4072         [BZ #15014]
4073         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
4074         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
4075         successful.
4076         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
4077         redundant variable declarations and reallocation of buffer when
4078         parsing as IPv6 address.  Always set NSS status when called from
4079         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
4080         buffer too small.  Correct computation of needed size.
4081         * nss/Makefile (tests): Add test-digits-dots.
4082         * nss/test-digits-dots.c: New test.
4083
4084 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4085
4086         * benchtests/Makefile: Remove instructions for adding
4087         benchmark tests.
4088         * benchtests/README: New file to explain how to execute and
4089         enhance the benchmark tests.
4090
4091 2013-05-21  Andreas Schwab  <schwab@suse.de>
4092
4093         [BZ #15493]
4094         * setjmp/Makefile (tests): Add tst-sigsetjmp.
4095         * setjmp/tst-sigsetjmp.c: New test.
4096
4097 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4098
4099         * sysdeps/x86_64/memset.S (memset): New implementation.
4100         (__bzero): Likewise.
4101         (__memset_tail): New function.
4102
4103 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4104
4105         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
4106         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
4107         __memcpy_sse2_unaligned ifunc selection.
4108         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
4109         Add memcpy-sse2-unaligned.S.
4110         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4111         Add: __memcpy_sse2_unaligned.
4112
4113 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
4114
4115         [BZ #15490]
4116         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4117         math_force_eval before restoring floating-point envrionment.
4118         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
4119         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4120         Likewise.
4121         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
4122         <math_private.h>.
4123         (__nearbyintl): Use math_force_eval before restoring
4124         floating-point environment.
4125         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
4126
4127         * math/gen-libm-test.pl (special_functions): Remove.
4128         (parse_args): Don't handle TEST_extra.  Handle functions with no
4129         return value.
4130         * math/libm-test.inc (struct test_sincos_data): Replace with
4131         struct test_fFF_11_data.
4132         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
4133         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
4134         (sincos_test_data): Change element type to struct
4135         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
4136         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
4137         RUN_TEST_LOOP_sincos.
4138         * math/README.libm-test: Don't mention special handling of
4139         individual functions.
4140         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
4141         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4142         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4143         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4144         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4146
4147         * math/gen-libm-test.pl (get_variable): Remove function.
4148         (parse_args): Don't show pointer parameters to call in test
4149         names.  Use "extra output N" in test names for extra outputs
4150         rather than naming variables.
4151
4152 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
4153
4154         [BZ #15488]
4155         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
4156         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
4157         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
4158         double tests.
4159         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
4160         disable.
4161         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
4162         check_long_double.
4163
4164         * math/gen-libm-test.pl (@tests): Remove variable.
4165         ($count): Likewise.
4166         (new_test): Remove function.
4167         (show_exceptions): New function.
4168         (special_functions): Use show_exceptions instead of new_test.
4169         (parse_args): Likewise.
4170         (generate_testfile): Pass only function name in generated call to
4171         print_max_error or print_complex_max_error.
4172         (get_ulps): Do not handle complex tests specially.
4173         (output_test): Rename to ...
4174         (get_all_ulps_for_test): ... this.  Return a string rather than
4175         printing to a file.  Require ulps to be present.
4176         (output_ulps): Generate arrays rather than #defines.
4177         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
4178         (struct ulp_data): New type.
4179         (BUILD_COMPLEX_ULP): Remove macro.
4180         (compare_ulp_data): New function.
4181         (find_ulps): Likewise.
4182         (find_test_ulps): Likewise.
4183         (find_function_ulps): Likewise.
4184         (find_complex_function_ulps): Likewise.
4185         (print_max_error): Determine allowed ulps using
4186         find_function_ulps.
4187         (print_complex_max_error): Determine allowed ulps using
4188         find_complex_function_ulps.
4189         (check_float_internal): Determine max ulps using find_test_ulps.
4190         (check_float): Do not take max_ulp parameter.  Update call to
4191         check_float_internal.
4192         (check_complex): Likewise.
4193         (check_int): Do not take max_ulp parameter.
4194         (check_long): Likewise.
4195         (check_bool): Likewise.
4196         (check_longlong): Likewise.
4197         (struct test_f_f_data): Remove max_ulp field.
4198         (struct test_ff_f_data): Likewise.
4199         (struct test_ff_f_data_nexttoward): Likewise.
4200         (struct test_fi_f_data): Likewise.
4201         (struct test_fl_f_data): Likewise.
4202         (struct test_if_f_data): Likewise.
4203         (struct test_fff_f_data): Likewise.
4204         (struct test_c_f_data): Likewise.
4205         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
4206         (struct test_fF_f1_data): Likewise.
4207         (struct test_ffI_f1_data): Likewise.
4208         (struct test_c_c_data): Remove max_ulp field.
4209         (struct test_cc_c_data): Likewise.
4210         (struct test_f_i_data): Likewise.
4211         (struct test_ff_i_data): Likewise.
4212         (struct test_f_l_data): Likewise.
4213         (struct test_f_L_data): Likewise.
4214         (struct test_sincos_data): Likewise.
4215         (RUN_TEST_f_f): Do not handle ulps.
4216         (RUN_TEST_LOOP_f_f): Likewise.
4217         (RUN_TEST_2_f): Likewise.
4218         (RUN_TEST_LOOP_2_f): Likewise.
4219         (RUN_TEST_fff_f): Likewise.
4220         (RUN_TEST_LOOP_fff_f): Likewise.
4221         (RUN_TEST_c_f): Likewise.
4222         (RUN_TEST_LOOP_c_f): Likewise.
4223         (RUN_TEST_f_f1): Likewise.
4224         (RUN_TEST_LOOP_f_f1): Likewise.
4225         (RUN_TEST_fF_f1): Likewise.
4226         (RUN_TEST_LOOP_fF_f1): Likewise.
4227         (RUN_TEST_fI_f1): Likewise.
4228         (RUN_TEST_LOOP_fI_f1): Likewise.
4229         (RUN_TEST_ffI_f1): Likewise.
4230         (RUN_TEST_LOOP_ffI_f1): Likewise.
4231         (RUN_TEST_c_c): Likewise.
4232         (RUN_TEST_LOOP_c_c): Likewise.
4233         (RUN_TEST_cc_c): Likewise.
4234         (RUN_TEST_LOOP_cc_c): Likewise.
4235         (RUN_TEST_f_i): Likewise.
4236         (RUN_TEST_LOOP_f_i): Likewise.
4237         (RUN_TEST_f_i_tg): Likewise.
4238         (RUN_TEST_LOOP_f_i_tg): Likewise.
4239         (RUN_TEST_ff_i_tg): Likewise.
4240         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4241         (RUN_TEST_f_b): Likewise.
4242         (RUN_TEST_LOOP_f_b): Likewise.
4243         (RUN_TEST_f_b_tg): Likewise.
4244         (RUN_TEST_LOOP_f_b_tg): Likewise.
4245         (RUN_TEST_f_l): Likewise.
4246         (RUN_TEST_LOOP_f_l): Likewise.
4247         (RUN_TEST_f_L): Likewise.
4248         (RUN_TEST_LOOP_f_L): Likewise.
4249         (RUN_TEST_sincos): Likewise.
4250         (RUN_TEST_LOOP_sincos): Likewise.
4251
4252 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
4253
4254         [BZ #15480]
4255         [BZ #15485]
4256         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
4257         main case of finite arguments, set rounding mode to FE_TONEAREST
4258         and discard exceptions.
4259         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
4260         exceptions.
4261         (remainder_tonearest_test_data): New variable.
4262         (remainder_test_tonearest): New function.
4263         (remainder_towardzero_test_data): New variable.
4264         (remainder_test_towardzero): New function.
4265         (remainder_downward_test_data): New variable.
4266         (remainder_test_downward): New function.
4267         (remainder_upward_test_data): New variable.
4268         (remainder_test_upward): New function.
4269         (main): Call the new test functions.
4270
4271         * math/libm-test.inc (struct test_f_f1_data): Remove field
4272         extra_init.
4273         (struct test_fF_f1_data): Likewise.
4274         (struct test_ffI_f1_data): Likewise.
4275         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
4276         based on value of EXTRA_EXPECTED.
4277         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4278         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
4279         EXTRA_VAR based on value of EXTRA_EXPECTED.
4280         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4281         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
4282         EXTRA_VAR based on value of EXTRA_EXPECTED.
4283         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4284         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
4285         EXTRA_VAR based on value of EXTRA_EXPECTED.
4286         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4287         * math/gen-libm-test.pl (parse_args): Don't output initializers
4288         for extra output values.
4289
4290         * math/libm-test.inc (check_int): Expect result to be exactly
4291         equal to expected value and do not handle ulps.
4292         (check_long): Likewise.
4293         (check_longlong): Likewise.
4294
4295         * math/libm-test.inc (ceil_test_data): Test for "inexact"
4296         exceptions.
4297         (cimag_test_data): Likewise.
4298         (conj_test_data): Likewise.
4299         (copysign_test_data): Likewise.
4300         (cproj_test_data): Likewise.
4301         (creal_test_data): Likewise.
4302         (fabs_test_data): Likewise.
4303         (fdim_test_data): Likewise.
4304         (finite_test_data): Likewise.
4305         (floor_test_data): Likewise.
4306         (fmax_test_data): Likewise.
4307         (fmin_test_data): Likewise.
4308         (fmod_test_data): Likewise.
4309         (fpclassify_test_data): Likewise.
4310         (frexp_test_data): Likewise.
4311         (ilogb_test_data): Likewise.
4312         (isfinite_test_data): Likewise.
4313         (isgreater_test_data): Likewise.
4314         (isgreaterequal_test_data): Likewise.
4315         (isinf_test_data): Likewise.
4316         (isless_test_data): Likewise.
4317         (islessequal_test_data): Likewise.
4318         (islessgreater_test_data): Likewise.
4319         (isnan_test_data): Likewise.
4320         (isnormal_test_data): Likewise.
4321         (issignaling_test_data): Likewise.
4322         (isunordered_test_data): Likewise.
4323         (ldexp_test_data): Likewise.
4324         (lrint_test_data): Likewise.
4325         (lrint_test_data) [TEST_FLOAT]: Disable one test.
4326         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
4327         (lrint_tonearest_test_data): Test for "inexact" exceptions.
4328         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4329         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
4330         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4331         test input.
4332         (lrint_towardzero_test_data): Test for "inexact" exceptions.
4333         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4334         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
4335         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
4336         that test input.
4337         (lrint_downward_test_data): Test for "inexact" exceptions.
4338         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
4339         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
4340         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4341         test input.
4342         (lrint_upward_test_data): Test for "inexact" exceptions.
4343         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
4344         test input.
4345         (llrint_test_data): Test for "inexact" exceptions.
4346         (llrint_test_data) [TEST_FLOAT]: Disable one test.
4347         (llrint_tonearest_test_data): Test for "inexact" exceptions.
4348         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4349         (llrint_towardzero_test_data): Test for "inexact" exceptions.
4350         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4351         (llrint_downward_test_data): Test for "inexact" exceptions.
4352         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
4353         (llrint_upward_test_data): Test for "inexact" exceptions.
4354         (logb_test_data): Likewise.
4355         (logb_downward_test_data): Likewise.
4356         (nextafter_test_data): Likewise.
4357         (nexttoward_test_data): Likewise.
4358         (remainder_test_data): Likewise.
4359         (remquo_test_data): Likewise.
4360         (scalbn_test_data): Likewise.
4361         (scalbln_test_data): Likewise.
4362         (signbit_test_data): Likewise.
4363         (sqrt_test_data): Likewise.
4364         (significand_test_data): Likewise.
4365
4366 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4367
4368         [BZ #15424]
4369         * benchtests/bench-modf.c (struct args): Mark arg0 as
4370         volatile.
4371         * scripts/bench.pl: Mark members of struct args as volatile.
4372
4373 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4374
4375         [BZ # 15497]
4376         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
4377         negative infinity on POWER6 or lower.
4378         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
4379
4380 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
4381
4382         [BZ #15442]
4383         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
4384         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
4385         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
4386         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
4387         (_FP_SETQNAN): New macro.
4388         (_FP_SETQNAN_SEMIRAW): Likewise.
4389         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
4390         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
4391         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
4392         (FP_EXTEND): Use _FP_FRAC_SNANP.
4393         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
4394         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
4395         into account.
4396         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
4397         New macro.
4398         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
4399         Likewise.
4400
4401 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4402
4403         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
4404         with DIVIDE_BY_ZERO_EXCEPTION.
4405         (gamma_test_data): Likewise.
4406         (lgamma_test_data): Likewise.
4407         (log_test_data): Likewise.
4408         (log10_test_data): Likewise.
4409         (log2_test_data): Likewise.
4410         (tgamma_test_data): Likewise.
4411
4412         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
4413         (acos_test_tonearest): Likewise.
4414         (acos_test_towardzero): Likewise.
4415         (acos_test_downward): Likewise.
4416         (acos_test_upward): Likewise.
4417         (acosh_test): Likewise.
4418         (asin_test): Likewise.
4419         (asin_test_tonearest): Likewise.
4420         (asin_test_towardzero): Likewise.
4421         (asin_test_downward): Likewise.
4422         (asin_test_upward): Likewise.
4423         (asinh_test): Likewise.
4424         (atan_test): Likewise.
4425         (atanh_test): Likewise.
4426         (atan2_test): Likewise.
4427         (cabs_test): Likewise.
4428         (cacos_test): Likewise.
4429         (cacosh_test): Likewise.
4430         (casin_test): Likewise.
4431         (casinh_test): Likewise.
4432         (catan_test): Likewise.
4433         (catanh_test): Likewise.
4434         (cbrt_test): Likewise.
4435         (ccos_test): Likewise.
4436         (ccosh_test): Likewise.
4437         (cexp_test): Likewise.
4438         (clog_test): Likewise.
4439         (clog10_test): Likewise.
4440         (cos_test): Likewise.
4441         (cos_test_tonearest): Likewise.
4442         (cos_test_towardzero): Likewise.
4443         (cos_test_downward): Likewise.
4444         (cos_test_upward): Likewise.
4445         (cosh_test): Likewise.
4446         (cosh_test_tonearest): Likewise.
4447         (cosh_test_towardzero): Likewise.
4448         (cosh_test_downward): Likewise.
4449         (cosh_test_upward): Likewise.
4450         (cpow_test): Likewise.
4451         (csin_test): Likewise.
4452         (csinh_test): Likewise.
4453         (csqrt_test): Likewise.
4454         (ctan_test): Likewise.
4455         (ctan_test_tonearest): Likewise.
4456         (ctan_test_towardzero): Likewise.
4457         (ctan_test_downward): Likewise.
4458         (ctan_test_upward): Likewise.
4459         (ctanh_test): Likewise.
4460         (ctanh_test_tonearest): Likewise.
4461         (ctanh_test_towardzero): Likewise.
4462         (ctanh_test_downward): Likewise.
4463         (ctanh_test_upward): Likewise.
4464         (erf_test): Likewise.
4465         (erfc_test): Likewise.
4466         (exp_test): Likewise.
4467         (exp_test_tonearest): Likewise.
4468         (exp_test_towardzero): Likewise.
4469         (exp_test_downward): Likewise.
4470         (exp_test_upward): Likewise.
4471         (exp10_test): Likewise.
4472         (exp2_test): Likewise.
4473         (expm1_test): Likewise.
4474         (fmod_test): Likewise.
4475         (gamma_test): Likewise.
4476         (hypot_test): Likewise.
4477         (j0_test): Likewise.
4478         (j1_test): Likewise.
4479         (jn_test): Likewise.
4480         (lgamma_test): Likewise.
4481         (log_test): Likewise.
4482         (log10_test): Likewise.
4483         (log1p_test): Likewise.
4484         (log2_test): Likewise.
4485         (logb_test_downward): Likewise.
4486         (pow_test): Likewise.
4487         (pow_test_tonearest): Likewise.
4488         (pow_test_towardzero): Likewise.
4489         (pow_test_downward): Likewise.
4490         (pow_test_upward): Likewise.
4491         (remainder_test): Likewise.
4492         (remquo_test): Likewise.
4493         (sin_test): Likewise.
4494         (sin_test_tonearest): Likewise.
4495         (sin_test_towardzero): Likewise.
4496         (sin_test_downward): Likewise.
4497         (sin_test_upward): Likewise.
4498         (sincos_test): Likewise.
4499         (sinh_test): Likewise.
4500         (sinh_test_tonearest): Likewise.
4501         (sinh_test_towardzero): Likewise.
4502         (sinh_test_downward): Likewise.
4503         (sinh_test_upward): Likewise.
4504         (sqrt_test): Likewise.
4505         (tan_test): Likewise.
4506         (tan_test_tonearest): Likewise.
4507         (tan_test_towardzero): Likewise.
4508         (tan_test_downward): Likewise.
4509         (tan_test_upward): Likewise.
4510         (tanh_test): Likewise.
4511         (tgamma_test): Likewise.
4512         (y0_test): Likewise.
4513         (y1_test): Likewise.
4514         (yn_test): Likewise.
4515
4516         * math/gen-libm-test.pl (adjust_arg): Remove function.
4517         (special_function): Remove argument $in_func.  Only handle
4518         generating output for tables of tests, not inside functions.
4519         (parse_args): Likewise.
4520         (generate_testfile): Remove variable $in_func.  Update call to
4521         parse_args.
4522         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
4523         (MINUS_ZERO_INIT): Rename macro to minus_zero.
4524         (PLUS_INFTY_INIT): Rename macro to plus_infty.
4525         (MINUS_INFTY_INIT): Rename macro to minus_infty.
4526         (QNAN_VALUE_INIT): Rename macro to qnan_value.
4527         (MAX_VALUE_INIT): Rename macro to max_value.
4528         (MIN_VALUE_INIT): Rename macro to min_value.
4529         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
4530         (plus_zero): Remove variable.
4531         (minus_zero): Likewise.
4532         (plus_infty): Likewise.
4533         (minus_infty): Likewise.
4534         (qnan_value): Likewise.
4535         (max_value): Likewise.
4536         (min_value): Likewise.
4537         (min_subnorm_value): Likewise.
4538
4539 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4540
4541         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
4542         uint64_t or uint32_t usage.
4543         * crypt/sha256-block.c: Likewise.
4544         * crypt/sha256-crypt.c: Likewise.
4545         * crypt/sha256.c: Likewise.
4546         * crypt/sha512-block.c: Likewise.
4547         * crypt/sha512-crypt.c: Likewise.
4548         * crypt/sha512.c: Likewise.
4549         * debug/backtrace-tst.c: Likewise.
4550         * debug/pcprofiledump.c: Likewise.
4551         * elf/cache.c: Likewise.
4552         * elf/dl-cache.c: Likewise.
4553         * elf/dl-misc.c: Likewise.
4554         * elf/dl-profile.c: Likewise.
4555         * elf/dl-support.c: Likewise.
4556         * elf/ldconfig.c: Likewise.
4557         * elf/sprof.c: Likewise.
4558         * iconv/dummy-repertoire.c: Likewise.
4559         * iconv/iconv_charmap.c: Likewise.
4560         * iconv/skeleton.c: Likewise.
4561         * iconvdata/8bit-generic.c: Likewise.
4562         * iconvdata/cp737.h: Likewise.
4563         * iconvdata/cp775.h: Likewise.
4564         * iconvdata/ibm1008.h: Likewise.
4565         * iconvdata/ibm1025.h: Likewise.
4566         * iconvdata/ibm1046.h: Likewise.
4567         * iconvdata/ibm1097.h: Likewise.
4568         * iconvdata/ibm1112.h: Likewise.
4569         * iconvdata/ibm1122.h: Likewise.
4570         * iconvdata/ibm1123.h: Likewise.
4571         * iconvdata/ibm1124.h: Likewise.
4572         * iconvdata/ibm1129.h: Likewise.
4573         * iconvdata/ibm1130.h: Likewise.
4574         * iconvdata/ibm1132.h: Likewise.
4575         * iconvdata/ibm1133.h: Likewise.
4576         * iconvdata/ibm1137.h: Likewise.
4577         * iconvdata/ibm1140.h: Likewise.
4578         * iconvdata/ibm1141.h: Likewise.
4579         * iconvdata/ibm1142.h: Likewise.
4580         * iconvdata/ibm1143.h: Likewise.
4581         * iconvdata/ibm1144.h: Likewise.
4582         * iconvdata/ibm1145.h: Likewise.
4583         * iconvdata/ibm1146.h: Likewise.
4584         * iconvdata/ibm1147.h: Likewise.
4585         * iconvdata/ibm1148.h: Likewise.
4586         * iconvdata/ibm1149.h: Likewise.
4587         * iconvdata/ibm1153.h: Likewise.
4588         * iconvdata/ibm1154.h: Likewise.
4589         * iconvdata/ibm1155.h: Likewise.
4590         * iconvdata/ibm1156.h: Likewise.
4591         * iconvdata/ibm1157.h: Likewise.
4592         * iconvdata/ibm1158.h: Likewise.
4593         * iconvdata/ibm1160.h: Likewise.
4594         * iconvdata/ibm1161.h: Likewise.
4595         * iconvdata/ibm1162.h: Likewise.
4596         * iconvdata/ibm1163.h: Likewise.
4597         * iconvdata/ibm1164.h: Likewise.
4598         * iconvdata/ibm1166.h: Likewise.
4599         * iconvdata/ibm1167.h: Likewise.
4600         * iconvdata/ibm12712.h: Likewise.
4601         * iconvdata/ibm1390.h: Likewise.
4602         * iconvdata/ibm1399.h: Likewise.
4603         * iconvdata/ibm16804.h: Likewise.
4604         * iconvdata/ibm4517.h: Likewise.
4605         * iconvdata/ibm4899.h: Likewise.
4606         * iconvdata/ibm4909.h: Likewise.
4607         * iconvdata/ibm4971.h: Likewise.
4608         * iconvdata/ibm5347.h: Likewise.
4609         * iconvdata/ibm803.h: Likewise.
4610         * iconvdata/ibm856.h: Likewise.
4611         * iconvdata/ibm901.h: Likewise.
4612         * iconvdata/ibm902.h: Likewise.
4613         * iconvdata/ibm9030.h: Likewise.
4614         * iconvdata/ibm9066.h: Likewise.
4615         * iconvdata/ibm921.h: Likewise.
4616         * iconvdata/ibm922.h: Likewise.
4617         * iconvdata/ibm9448.h: Likewise.
4618         * iconvdata/isiri-3342.h: Likewise.
4619         * iconvdata/jis0201.h: Likewise.
4620         * include/link.h: Likewise.
4621         * include/netdb.h: Likewise.
4622         * inet/check_native.c: Likewise.
4623         * inet/check_pf.c: Likewise.
4624         * inet/getipv4sourcefilter.c: Likewise.
4625         * inet/getnameinfo.c: Likewise.
4626         * inet/getsourcefilter.c: Likewise.
4627         * inet/htonl.c: Likewise.
4628         * inet/setipv4sourcefilter.c: Likewise.
4629         * inet/setsourcefilter.c: Likewise.
4630         * inet/test-inet6_opt.c: Likewise.
4631         * inet/tst-network.c: Likewise.
4632         * locale/C-collate.c: Likewise.
4633         * locale/C-ctype.c: Likewise.
4634         * locale/C-time.c: Likewise.
4635         * locale/C-translit.h: Likewise.
4636         * locale/loadarchive.c: Likewise.
4637         * locale/programs/3level.h: Likewise.
4638         * locale/programs/charmap.c: Likewise.
4639         * locale/programs/charmap.h: Likewise.
4640         * locale/programs/ld-address.c: Likewise.
4641         * locale/programs/ld-collate.c: Likewise.
4642         * locale/programs/ld-ctype.c: Likewise.
4643         * locale/programs/ld-identification.c: Likewise.
4644         * locale/programs/ld-measurement.c: Likewise.
4645         * locale/programs/ld-messages.c: Likewise.
4646         * locale/programs/ld-monetary.c: Likewise.
4647         * locale/programs/ld-name.c: Likewise.
4648         * locale/programs/ld-numeric.c: Likewise.
4649         * locale/programs/ld-paper.c: Likewise.
4650         * locale/programs/ld-telephone.c: Likewise.
4651         * locale/programs/ld-time.c: Likewise.
4652         * locale/programs/linereader.c: Likewise.
4653         * locale/programs/locale.c: Likewise.
4654         * locale/programs/locarchive.c: Likewise.
4655         * locale/programs/locfile.h: Likewise.
4656         * locale/programs/repertoire.c: Likewise.
4657         * locale/programs/simple-hash.c: Likewise.
4658         * locale/programs/simple-hash.h: Likewise.
4659         * malloc/memusage.c: Likewise.
4660         * malloc/memusagestat.c: Likewise.
4661         * nis/nis_defaults.c: Likewise.
4662         * nis/nis_hash.c: Likewise.
4663         * nis/nis_print.c: Likewise.
4664         * nis/nis_xdr.c: Likewise.
4665         * nscd/connections.c: Likewise.
4666         * nscd/hstcache.c: Likewise.
4667         * nscd/nscd_gethst_r.c: Likewise.
4668         * nscd/nscd_getserv_r.c: Likewise.
4669         * nscd/nscd_helper.c: Likewise.
4670         * nscd/servicescache.c: Likewise.
4671         * nss/makedb.c: Likewise.
4672         * nss/nss_db/db-XXX.c: Likewise.
4673         * nss/nss_db/db-initgroups.c: Likewise.
4674         * nss/nss_db/db-netgrp.c: Likewise.
4675         * nss/nss_files/files-network.c: Likewise.
4676         * nss/nss_files/files-parse.c: Likewise.
4677         * posix/bug-regex5.c: Likewise.
4678         * posix/fnmatch_loop.c: Likewise.
4679         * posix/regcomp.c: Likewise.
4680         * posix/regexec.c: Likewise.
4681         * posix/tst-rfc3484-2.c: Likewise.
4682         * posix/tst-rfc3484-3.c: Likewise.
4683         * posix/tst-rfc3484.c: Likewise.
4684         * resolv/nss_dns/dns-canon.c: Likewise.
4685         * resolv/nss_dns/dns-network.c: Likewise.
4686         * resolv/res_init.c: Likewise.
4687         * resolv/res_mkquery.c: Likewise.
4688         * resolv/tst-aton.c: Likewise.
4689         * stdlib/cxa_atexit.c: Likewise.
4690         * stdlib/cxa_finalize.c: Likewise.
4691         * stdlib/gen-fpioconst.c: Likewise.
4692         * stdlib/strtol_l.c: Likewise.
4693         * string/tst-endian.c: Likewise.
4694         * sunrpc/auth_des.c: Likewise.
4695         * sunrpc/clnt_udp.c: Likewise.
4696         * sunrpc/rtime.c: Likewise.
4697         * sunrpc/svcauth_des.c: Likewise.
4698         * sunrpc/xdr.c: Likewise.
4699         * sunrpc/xdr_intXX_t.c: Likewise.
4700         * sunrpc/xdr_rec.c: Likewise.
4701         * sysdeps/generic/ldconfig.h: Likewise.
4702         * sysdeps/generic/ldsodefs.h: Likewise.
4703         * sysdeps/generic/memusage.h: Likewise.
4704         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
4705         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
4706         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
4707         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
4708         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
4709         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4710         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
4711         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
4712         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
4713         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4714         * sysdeps/posix/getaddrinfo.c: Likewise.
4715         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4716         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4717         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
4718         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4719         * sysdeps/powerpc/test-gettimebase.c: Likewise.
4720         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
4721         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
4722         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
4723         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
4724         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
4725         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4726         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4727         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
4728         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
4729         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
4730         * sysdeps/x86_64/dl-tls.h: Likewise.
4731         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
4732         * time/alt_digit.c: Likewise.
4733         * time/era.c: Likewise.
4734         * wcsmbs/tst-c16c32-1.c: Likewise.
4735
4736 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4737
4738         * math/libm-test.inc (struct test_sincos_data): New type.
4739         (RUN_TEST_LOOP_sincos): New macro.
4740         (sincos_test_data): New variable.
4741         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
4742
4743 2013-05-16  Richard Henderson  <rth@redhat.com>
4744
4745         * math/atest-exp2.c (LIMB64): New macro.
4746         (CONSTSZ): New macro.
4747         (mp_exp1, mp_exp_m1, mp_log2): New variables.
4748         (hexdig): Move ...
4749         (print_mpn_fp): ... to function scope.
4750         (read_mpn_hex): Remove.
4751         (get_log2): Remove.
4752         (exp2_mpn): Use mp_log2.
4753         (main): Use mp_exp1.
4754
4755 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4756
4757         * math/libm-test.inc: Remove comment about not testing "inexact"
4758         exceptions.
4759         (INEXACT_EXCEPTION): New macro.
4760         (NO_INEXACT_EXCEPTION): Likewise.
4761         (INVALID_EXCEPTION_OK): Update value.
4762         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4763         (OVERFLOW_EXCEPTION_OK): Likewise.
4764         (UNDERFLOW_EXCEPTION_OK): Likewise.
4765         (IGNORE_ZERO_INF_SIGN): Likewise.
4766         (ERRNO_UNCHANGED): Likewise.
4767         (ERRNO_EDOM): Likewise.
4768         (ERRNO_ERANGE): Likewise.
4769         (test_exceptions): Handle testing "inexact" exceptions.
4770         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
4771         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
4772         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
4773         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
4774         INEXACT_EXCEPTION.
4775         (rint_towardzero_test_data): Likewise.
4776         (rint_downward_test_data): Likewise.
4777         (rint_upward_test_data): Likewise.
4778
4779         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
4780         with OVERFLOW_EXCEPTION.
4781         (exp10_test_data): Likewise.
4782         (exp2_test_data): Likewise.
4783         (expm1_test_data): Likewise.
4784         (lgamma_test_data): Likewise.
4785         (pow_test_data): Likewise.
4786         (tgamma_test_data): Likewise.
4787         (yn_test_data): Remove duplicate test of overflow.
4788
4789         * math/libm-test.inc (struct test_cc_c_data): New type.
4790         (RUN_TEST_LOOP_cc_c): New macro.
4791         (cpow_test_data): New variable.
4792         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
4793
4794         * math/libm-test.inc (struct test_f_L_data): New type.
4795         (RUN_TEST_LOOP_f_L): New macro.
4796         (llrint_test_data): New variable.
4797         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
4798         (llrint_tonearest_test_data): New variable.
4799         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
4800         (llrint_towardzero_test_data): New variable.
4801         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
4802         (llrint_downward_test_data): New variable.
4803         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
4804         (llrint_upward_test_data): New variable.
4805         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
4806         (llround_test_data): New variable.
4807         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
4808
4809 2013-05-13  Peter Collingbourne  <pcc@google.com>
4810
4811         * math/atest-exp2.c (get_log2): Remove const attribute.
4812
4813 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
4814
4815         * math/libm-test.inc (struct test_f_l_data): New type.
4816         (RUN_TEST_LOOP_f_l): New macro.
4817         (lrint_test_data): New variable.
4818         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
4819         (lrint_tonearest_test_data): New variable.
4820         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
4821         (lrint_towardzero_test_data): New variable.
4822         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
4823         (lrint_downward_test_data): New variable.
4824         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
4825         (lrint_upward_test_data): New variable.
4826         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
4827         (lround_test_data): New variable.
4828         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
4829
4830 2013-05-15  Peter Collingbourne  <pcc@google.com>
4831
4832         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
4833         (EXTRACT_WORDS64) Use where appropriate.
4834         (INSERT_WORDS64) Likewise.
4835
4836         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
4837         constraints with x constraints.
4838         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
4839
4840         * malloc/obstack.c (_obstack_compat): Add initializer.
4841
4842 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4843
4844         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
4845         si_trapno and add si_addr_lsb to _sifields.sigfault.
4846         (si_trapno): Remove macro.
4847         (si_addr_lsb): Define new macro.
4848         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
4849
4850 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
4851
4852         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
4853         instead of TEST_f_l.
4854         (llrint_test_tonearest): Likewise.
4855         (llrint_test_towardzero): Likewise.
4856         (llrint_test_downward): Likewise.
4857         (llrint_test_upward): Likewise.
4858         (llround_test): Likewise.
4859
4860         * math/libm-test.inc (struct test_f_i_data): Add comment.
4861         (RUN_TEST_LOOP_f_b): New macro.
4862         (RUN_TEST_LOOP_f_b_tg): Likewise.
4863         (finite_test_data): New variable.
4864         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
4865         (isfinite_test_data): New variable.
4866         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4867         (isinf_test_data): New variable.
4868         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4869         (isnan_test_data): New variable.
4870         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4871         (isnormal_test_data): New variable.
4872         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4873         (issignaling_test_data): New variable.
4874         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4875         (signbit_test_data): New variable.
4876         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4877
4878         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
4879         with INVALID_EXCEPTION.
4880         (acosh_test_data): Likewise.
4881         (asin_test_data): Likewise.
4882         (atanh_test_data): Likewise.
4883         (fmod_test_data): Likewise.
4884         (log_test_data): Likewise.
4885         (log10_test_data): Likewise.
4886         (log2_test_data): Likewise.
4887         (pow_test_data): Likewise.
4888         (sqrt_test_data): Likewise.
4889         (y0_test_data): Likewise.
4890         (y1_test_data): Likewise.
4891         (yn_test_data): Likewise.
4892
4893         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
4894         function contents.
4895
4896         * math/libm-test.inc (struct test_ff_i_data): New type.
4897         (RUN_TEST_LOOP_ff_i_tg): New macro.
4898         (isgreater_test_data): New variable.
4899         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4900         (isgreaterequal_test_data): New variable.
4901         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4902         (isless_test_data): New variable.
4903         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4904         (islessequal_test_data): New variable.
4905         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4906         (islessgreater_test_data): New variable.
4907         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4908         (isunordered_test_data): New variable.
4909         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4910
4911 2013-05-14  David S. Miller  <davem@davemloft.net>
4912
4913         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4914
4915 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
4916
4917         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
4918
4919         * math/libm-test.inc (struct test_fF_f1_data): Change type of
4920         extra_test to int.
4921         (struct test_f_i_data): Change type of max_ulp to int.
4922
4923         * math/libm-test.inc (test_ffI_f1_data): New type.
4924         (RUN_TEST_LOOP_ffI_f1): New macro.
4925         (remquo_test_data): New variable.
4926         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
4927
4928         * setjmp/tst-setjmp-fp.c: New file.
4929         * setjmp/Makefile (tests): Add tst-setjmp-fp.
4930         (link-libm): New variable.
4931         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
4932
4933         * math/libm-test.inc (struct test_f_i_data): New type.
4934         (RUN_TEST_LOOP_f_i): New macro.
4935         (RUN_TEST_LOOP_f_i_tg): Likewise.
4936         (fpclassify_test_data): New variable.
4937         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
4938         (ilogb_test_data): New variable.
4939         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
4940
4941         * math/libm-test.inc (scalbln_test): Correct function name in END
4942         call.
4943
4944         * math/libm-test.inc (struct test_f_f1_data): Add comment.
4945         (RUN_TEST_LOOP_fI_f1): New macro.
4946         (frexp_test_data): New variable.
4947         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
4948
4949         * math/libm-test.inc (struct test_fF_f1_data): New type.
4950         (RUN_TEST_LOOP_fF_f1): New macro.
4951         (modf_test_data): New variable.
4952         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
4953
4954         * math/libm-test.inc (struct test_f_f1_data): New type.
4955         (RUN_TEST_LOOP_f_f1): New macro.
4956         (gamma_test_data): New variable.
4957         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
4958         (lgamma_test_data): New variable.
4959         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
4960
4961 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
4962
4963         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
4964         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
4965         (main): Comment "tls" pseudo-hwcap.
4966
4967 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
4968
4969         * math/libm-test.inc (struct test_fl_f_data): New type.
4970         (RUN_TEST_LOOP_fl_f): New variable.
4971         (scalbln_test_data): New variable.
4972         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
4973
4974         * math/libm-test.inc (struct test_fi_f_data): New type.
4975         (RUN_TEST_LOOP_fi_f): New macro.
4976         (ldexp_test_data): New variable.
4977         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
4978         (scalbn_test_data): New variable.
4979         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
4980
4981         * math/libm-test.inc (struct test_c_f_data): New type.
4982         (RUN_TEST_LOOP_c_f): New macro.
4983         (cabs_test_data): New variable.
4984         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
4985         (carg_test_data): New variable.
4986         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
4987         (cimag_test_data): New variable.
4988         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
4989         (creal_test_data): New variable.
4990         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
4991
4992         * math/libm-test.inc (struct test_if_f_data): New type.
4993         (RUN_TEST_LOOP_if_f): New macro.
4994         (jn_test_data): New variable.
4995         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
4996         (yn_test_data): New variable.
4997         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
4998
4999         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
5000
5001 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5002
5003         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
5004         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
5005
5006 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5007
5008         * benchtests/Makefile (CPPFLAGS-nonlib): Add
5009         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
5010         (bench-deps): Add bench-timing.h.
5011         * benchtests-bench-skeleton.c: Include bench-timing.h.
5012         (main): Use TIMING_* macros instead of clock_gettime.
5013         * benchtests/bench-timing.h: New file.
5014
5015         [BZ #14582]
5016         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
5017         Renamed from _LIB_VERSION.
5018         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
5019
5020 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
5021
5022         * math/libm-test.inc (struct test_fff_f_data): New type.
5023         (RUN_TEST_LOOP_fff_f): New macro.
5024         (fma_test_data): New variable.
5025         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
5026         (fma_towardzero_test_data): New variable.
5027         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
5028         (fma_downward_test_data): New variable.
5029         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
5030         (fma_upward_test_data): New variable.
5031         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
5032
5033         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
5034         (struct test_c_c_data): New type.
5035         (RUN_TEST_LOOP_c_c): New macro.
5036         (cacos_test_data): New variable.
5037         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
5038         (cacosh_test_data): New variable.
5039         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
5040         (casin_test_data): New variable.
5041         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
5042         (casinh_test_data): New variable.
5043         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
5044         (catan_test_data): New variable.
5045         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
5046         (catanh_test_data): New variable.
5047         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
5048         (ccos_test_data): New variable.
5049         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
5050         (ccosh_test_data): New variable.
5051         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
5052         (cexp_test_data): New variable.
5053         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
5054         (clog_test_data): New variable.
5055         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
5056         (clog10_test_data): New variable.
5057         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
5058         (conj_test_data): New variable.
5059         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
5060         (cproj_test_data): New variable.
5061         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
5062         (csin_test_data): New variable.
5063         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
5064         (csinh_test_data): New variable.
5065         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
5066         (csqrt_test_data): New variable.
5067         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
5068         (ctan_test_data): New variable.
5069         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
5070         (ctan_tonearest_test_data): New variable.
5071         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5072         (ctan_towardzero_test_data): New variable.
5073         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5074         (ctan_downward_test_data): New variable.
5075         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5076         (ctan_upward_test_data): New variable.
5077         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5078         (ctanh_test_data): New variable.
5079         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
5080         (ctanh_tonearest_test_data): New variable.
5081         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5082         (ctanh_towardzero_test_data): New variable.
5083         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5084         (ctanh_downward_test_data): New variable.
5085         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5086         (ctanh_upward_test_data): New variable.
5087         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5088         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
5089         of BUILD_COMPLEX.
5090
5091         * math/libm-test.inc (struct test_ff_f_data): New type.
5092         (struct test_ff_f_data_nexttoward): Likewise.
5093         (RUN_TEST_LOOP_2_f): New macro.
5094         (RUN_TEST_LOOP_ff_f): Likewise.
5095         (atan2_test_data): New variable.
5096         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
5097         (copysign_test_data): New variable.
5098         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
5099         (fdim_test_data): New variable.
5100         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
5101         (fmax_test_data): New variable.
5102         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
5103         (fmin_test_data): New variable.
5104         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
5105         (fmod_test_data): New variable.
5106         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
5107         (hypot_test_data): New variable.
5108         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
5109         (nextafter_test_data): New variable.
5110         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
5111         (nexttoward_test_data): New variable.
5112         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
5113         (pow_test_data): New variable.
5114         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
5115         (pow_tonearest_test_data): New variable.
5116         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
5117         (pow_towardzero_test_data): New variable.
5118         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
5119         (pow_downward_test_data): New variable.
5120         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
5121         (pow_upward_test_data): New variable.
5122         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
5123         (remainder_test_data): New variable.
5124         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
5125         (scalb_test_data): New variable.
5126         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
5127         * sysdeps/i386/fpu/libm-test-ulps: Update.
5128
5129 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
5130
5131         * math/libm-test.inc (fma_test): Use max_value instead of local
5132         variable fltmax.
5133         (nextafter_test): Likewise.
5134
5135         * math/libm-test.inc (acos_towardzero_test_data): New variable.
5136         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5137         (acos_downward_test_data): New variable.
5138         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5139         (acos_upward_test_data): New variable.
5140         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5141         (acosh_test_data): New variable.
5142         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
5143         (asin_test_data): New variable.
5144         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
5145         (asin_tonearest_test_data): New variable.
5146         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5147         (asin_towardzero_test_data): New variable.
5148         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5149         (asin_downward_test_data): New variable.
5150         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5151         (asin_upward_test_data): New variable.
5152         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5153         (asinh_test_data): New variable.
5154         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
5155         (atan_test_data): New variable.
5156         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
5157         (atanh_test_data): New variable.
5158         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
5159         (cbrt_test_data): New variable.
5160         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
5161         (ceil_test_data): New variable.
5162         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
5163         (cos_test_data): New variable.
5164         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
5165         (cos_tonearest_test_data): New variable.
5166         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5167         (cos_towardzero_test_data): New variable.
5168         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5169         (cos_downward_test_data): New variable.
5170         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5171         (cos_upward_test_data): New variable.
5172         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5173         (cosh_test_data): New variable.
5174         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
5175         (cosh_tonearest_test_data): New variable.
5176         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5177         (cosh_towardzero_test_data): New variable.
5178         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5179         (cosh_downward_test_data): New variable.
5180         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5181         (cosh_upward_test_data): New variable.
5182         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5183         (erf_test_data): New variable.
5184         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
5185         (erfc_test_data): New variable.
5186         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
5187         (exp_test_data): New variable.
5188         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
5189         (exp_tonearest_test_data): New variable.
5190         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5191         (exp_towardzero_test_data): New variable.
5192         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5193         (exp_downward_test_data): New variable.
5194         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5195         (exp_upward_test_data): New variable.
5196         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5197         (exp10_test_data): New variable.
5198         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
5199         (exp2_test_data): New variable.
5200         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
5201         (expm1_test_data): New variable.
5202         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
5203         (fabs_test_data): New variable.
5204         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
5205         (floor_test_data): New variable.
5206         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
5207         (j0_test_data): New variable.
5208         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
5209         (j1_test_data): New variable.
5210         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
5211         (log_test_data): New variable.
5212         (log_test): Run tests with RUN_TEST_LOOP_f_f.
5213         (log10_test_data): New variable.
5214         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
5215         (log1p_test_data): New variable.
5216         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
5217         (log2_test_data): New variable.
5218         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
5219         (logb_test_data): New variable.
5220         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
5221         (logb_downward_test_data): New variable.
5222         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5223         (nearbyint_test_data): New variable.
5224         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
5225         (rint_test_data): New variable.
5226         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
5227         (rint_tonearest_test_data): New variable.
5228         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5229         (rint_towardzero_test_data): New variable.
5230         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5231         (rint_downward_test_data): New variable.
5232         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5233         (rint_upward_test_data): New variable.
5234         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5235         (round_test_data): New variable.
5236         (round_test): Run tests with RUN_TEST_LOOP_f_f.
5237         (sin_test_data): New variable.
5238         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
5239         (sin_tonearest_test_data): New variable.
5240         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5241         (sin_towardzero_test_data): New variable.
5242         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5243         (sin_downward_test_data): New variable.
5244         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5245         (sin_upward_test_data): New variable.
5246         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5247         (sinh_test_data): New variable.
5248         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
5249         (sinh_tonearest_test_data): New variable.
5250         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5251         (sinh_towardzero_test_data): New variable.
5252         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5253         (sinh_downward_test_data): New variable.
5254         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5255         (sinh_upward_test_data): New variable.
5256         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5257         (sqrt_test_data): New variable.
5258         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
5259         (tan_test_data): New variable.
5260         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
5261         (tan_tonearest_test_data): New variable.
5262         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5263         (tan_towardzero_test_data): New variable.
5264         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5265         (tan_downward_test_data): New variable.
5266         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5267         (tan_upward_test_data): New variable.
5268         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5269         (tanh_test_data): New variable.
5270         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
5271         (tgamma_test_data): New variable.
5272         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
5273         (trunc_test_data): New variable.
5274         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
5275         (y0_test_data): New variable.
5276         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
5277         (y1_test_data): New variable.
5278         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
5279         (significand_test_data): New variable.
5280         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
5281
5282 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
5283
5284         [BZ #12387]
5285         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
5286
5287 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5288
5289         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
5290
5291 2013-05-10  Andreas Jaeger  <aj@suse.de>
5292
5293         [BZ #15448]
5294         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
5295         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
5296
5297 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5298
5299         * math/gen-libm-test.pl (adjust_arg): New function.
5300         (special_functions): Handle generating output in both functions
5301         and arrays.
5302         (parse_args): Likewise.
5303         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
5304         $in_func argument to parse_args.
5305         * math/libm-test.inc (struct test_f_f_data): New type.
5306         (IF_ROUND_INIT_): New macro.
5307         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
5308         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
5309         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
5310         (IF_ROUND_INIT_FE_UPWARD): Likewise.
5311         (ROUND_RESTORE_): Likewise.
5312         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
5313         (ROUND_RESTORE_FE_TONEAREST): Likewise.
5314         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
5315         (ROUND_RESTORE_FE_UPWARD): Likewise.
5316         (RUN_TEST_LOOP_f_f): New macro.
5317         (acos_test_data): New variable.
5318         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
5319         (acos_tonearest_test_data): New variable.
5320         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5321
5322 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5323
5324         * benchtests/bench-skeleton.c (startup): Fix coding style.
5325
5326 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5327
5328         [BZ #6809]
5329         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
5330         negative infinity argument.
5331         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
5332         negative infinity argument.
5333         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
5334         negative infinity argument.
5335         * math/libm-test.inc (tgamma_test): Expect errno to be set for
5336         domain errors.
5337
5338 2013-05-10  Florian Weimer  <fweimer@redhat.com>
5339
5340         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
5341         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
5342         * iconv/iconv_prog.c (main): Likewise.
5343         * locale/programs/charmap-dir.c (charmap_readdir)
5344         (fopen_uncompressed): Likewise.
5345         * locale/programs/locfile.c (siblings_uncached)
5346         (write_locale_data): Use lstat64 instead of lstat.
5347         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
5348         stat.
5349
5350 2013-05-10  Andreas Jaeger  <aj@suse.de>
5351
5352         [BZ #15395]
5353         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
5354         localization.
5355         Include <locale.h>.
5356
5357 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
5358
5359         * elf/dl-close.c (_dl_close_worker): Add comments.
5360
5361 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
5362
5363         [BZ #15359]
5364         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
5365         high part of pi/2.
5366         (__ieee754_rem_pio2l): Update comments.
5367
5368         [BZ #15429]
5369         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
5370         high part of pi/2.
5371         (__ieee754_rem_pio2l): Update comments.
5372
5373         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
5374         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
5375
5376         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
5377         M_PI_4l.
5378
5379         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
5380         (M_PI_34_LOG10El): Likewise.
5381         (M_PI2_LOG10El): Likewise.
5382         (M_PI4_LOG10El): Likewise.
5383         (M_PI_LOG10El): Likewise.
5384
5385 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5386
5387         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5388
5389 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
5390
5391         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
5392         (MINUS_ZERO_INIT): Likewise.
5393         (PLUS_INFTY_INIT): Likewise.
5394         (MINUS_INFTY_INIT): Likewise.
5395         (QNAN_VALUE_INIT): Likewise.
5396         (MAX_VALUE_INIT): Likewise.
5397         (MIN_VALUE_INIT): Likewise.
5398         (MIN_SUBNORM_VALUE_INIT): Likewise.
5399         (plus_zero): Initialize with PLUS_ZERO_INIT.
5400         (minus_zero): Initialize with MINUS_ZERO_INIT.
5401         (plus_infty): Initialize with PLUS_INFTY_INIT.
5402         (minus_infty): Initialize with MINUS_INFTY_INIT.
5403         (qnan_value): Initialize with QNAN_VALUE_INIT.
5404         (max_value): Initialize with MAX_VALUE_INIT.
5405         (min_value): Initialize with MIN_VALUE_INIT.
5406         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
5407
5408         * math/libm-test.inc (RUN_TEST_if_f): New macro.
5409         (jn_test): Use TEST_if_f instead of TEST_ff_f.
5410         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
5411         (yn_test): Use TEST_if_f instead of TEST_ff_f.
5412
5413         * math/libm-test.inc (RUN_TEST_f_f): New macro.
5414         (RUN_TEST_2_f): Likewise.
5415         (RUN_TEST_ff_f): Likewise.
5416         (RUN_TEST_fi_f): Likewise.
5417         (RUN_TEST_fl_f): Likewise.
5418         (RUN_TEST_fff_f): Likewise.
5419         (RUN_TEST_c_f): Likewise.
5420         (RUN_TEST_f_f1): Likewise.
5421         (RUN_TEST_fF_f1): Likewise.
5422         (RUN_TEST_fI_f1): Likewise.
5423         (RUN_TEST_ffI_f1): Likewise.
5424         (RUN_TEST_c_c): Likewise.
5425         (RUN_TEST_cc_c): Likewise.
5426         (RUN_TEST_f_i): Likewise.
5427         (RUN_TEST_f_i_tg): Likewise.
5428         (RUN_TEST_ff_i_tg): Likewise.
5429         (RUN_TEST_f_b): Likewise.
5430         (RUN_TEST_f_b_tg): Likewise.
5431         (RUN_TEST_f_l): Likewise.
5432         (RUN_TEST_f_L): Likewise.
5433         (RUN_TEST_sincos): Likewise.
5434         * math/gen-libm-test.pl (new_test): Take new argument to indicate
5435         whether to show exceptions.  Do not include ");\n" in return
5436         value.
5437         (special_functions): Output call to RUN_TEST_sincos instead of
5438         check_float calls.  Update calls to new_test.
5439         (parse_args): Output call to single RUN_TEST_* macro instead of
5440         check_* calls and other assignments.  Update calls to new_test.
5441
5442         [BZ #2546]
5443         [BZ #2560]
5444         [BZ #5159]
5445         [BZ #15426]
5446         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
5447         input to result for tgamma overflow.
5448         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
5449         (gamma_coeff): New variable.
5450         (NCOEFF): New macro.
5451         (gamma_positive): New function.
5452         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
5453         underflow here.  Use gamma_positive instead of exp (lgamma) for
5454         other arguments.
5455         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
5456         (gamma_coeff): New variable.
5457         (NCOEFF): New macro.
5458         (gammaf_positive): New function.
5459         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
5460         underflow here.  Use gamma_positive instead of exp (lgamma) for
5461         other arguments.
5462         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
5463         (gamma_coeff): New variable.
5464         (NCOEFF): New macro.
5465         (gammal_positive): New function.
5466         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
5467         underflow here.  Use gamma_positive instead of exp (lgamma) for
5468         other arguments.
5469         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
5470         (gamma_coeff): New variable.
5471         (NCOEFF): New macro.
5472         (gammal_positive): New function.
5473         (__ieee754_gammal_r): Handle positive infinity, overflow and
5474         underflow here.  Handle NaN the same as positive infinity.  Remove
5475         check x < 0xffffffff for negative integers.  Use gamma_positive
5476         instead of exp (lgamma) for other arguments.
5477         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
5478         (gamma_coeff): New variable.
5479         (NCOEFF): New macro.
5480         (gammal_positive): New function.
5481         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
5482         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
5483         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
5484         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
5485         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
5486         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
5487         * sysdeps/generic/math_private.h (__gamma_productf): New
5488         prototype.
5489         (__gamma_product): Likewise.
5490         (__gamma_productl): Likewise.
5491         * math/Makefile (libm-calls): Add gamma_product.
5492         * math/libm-test.inc (tgamma_test): Add more tests.
5493         * sysdeps/i386/fpu/libm-test-ulps: Update.
5494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5495
5496 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
5497
5498         * benchtests/bench-skeleton.c (main): Preheat CPU.
5499
5500 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
5501
5502         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
5503
5504 2013-05-07  Roland McGrath  <roland@hack.frob.com>
5505
5506         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
5507         and _dl_skip_args_internal.
5508
5509 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
5510
5511         * manual/message.texi (Message Translation): Talk about users.
5512         Message to key mapping impacts design.
5513
5514 2013-05-06  Roland McGrath  <roland@hack.frob.com>
5515
5516         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
5517
5518         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
5519
5520         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
5521         * sysdeps/wordsize-64/glob64.c: ... here.
5522
5523         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
5524         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
5525         New macros.
5526
5527         * debug/getlogin_r_chk.c: Moved to ...
5528         * login/getlogin_r_chk.c: ... here.
5529         * debug/Makefile (routines): Move getlogin_r_chk to ...
5530         * login/Makefile (routines): ... here.
5531         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
5532         * login/Versions (libc: GLIBC_2.4): ... here.
5533
5534         * io/poll.c (__poll): Renamed from poll.
5535         Add libc_hidden_def.
5536         (poll): Define as weak alias.
5537
5538         * debug/ptsname_r_chk.c: Moved to ...
5539         * login/ptsname_r_chk.c: ... here.
5540         * debug/Makefile (routines): Move ptsname_r_chk to ...
5541         * login/Makefile (routines): ... here.
5542         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
5543         * login/Versions (libc: GLIBC_2.4): ... here.
5544
5545         * posix/getlogin.c: Moved to ...
5546         * login/getlogin.c: ... here.
5547         * posix/getlogin_r.c: Moved to ...
5548         * login/getlogin_r.c: ... here.
5549         * posix/getlogin_r.c: Moved to ...
5550         * login/getlogin_r.c: ... here.
5551         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
5552         * login/Makefile (routines): ... here.
5553         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
5554         * login/Versions (libc: GLIBC_2.0): ... here.
5555
5556         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
5557         (setrlimit): Define as weak alias.
5558
5559         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
5560         Call __ names for open, ftruncate, and close.
5561         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
5562         (truncate): Define as weak alias.
5563
5564 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
5565
5566         * math/gen-libm-test.pl (parse_args): Initialize x before each
5567         test of frexp, modf and remquo.
5568
5569         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
5570         test signgam value.
5571
5572 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5573
5574         [BZ #15418]
5575         [BZ #15419]
5576         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
5577         internal tests.
5578         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5579
5580 2013-05-06  Roland McGrath  <roland@hack.frob.com>
5581
5582         * elf/dl-writev.h: New file.
5583         * elf/dl-misc.c: Include it.
5584         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
5585         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
5586
5587 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
5588
5589         * math/libm-test.inc (noXFails): Remove variable.
5590         (noXPasses): Likewise.
5591         (BUILD_COMPLEX_INT): Remove macro.
5592         (print_screen): Remove xfail argument.
5593         (print_screen_max_error): Likewise.
5594         (update_stats): Likewise.
5595         (print_max_error): Likewise.  Update calls to other affected
5596         functions.
5597         (print_complex_max_error): Likewise.
5598         (test_single_exception): Update calls to print_screen.
5599         (test_single_errno): Likewise.
5600         (check_float_internal): Remove xfail argument.  Update calls to
5601         other affected functions.
5602         (check_float): Likewise.
5603         (check_complex): Likewise.
5604         (check_int): Likewise.
5605         (check_long): Likewise.
5606         (check_bool): Likewise.
5607         (check_longlong): Likewise.
5608         (main): Don't print noXFails and noXPasses.
5609         * math/gen-libm-test.pl (top level): Don't mention expected
5610         failure handling in comment.
5611         (new_test): Don't handle expected failures.
5612         (parse_args): Don't mention expected failure handling in comment.
5613         (generate_testfile): Don't handle expected failures.
5614         (parse_ulps): Likewise.
5615         (print_ulps_file): Likewise.
5616         (get_failure): Remove function.
5617         (output_test): Don't handle expected failures.
5618         * make/README.libm-test: Don't mention expected failure handling.
5619
5620         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
5621         (minus_zero): Likewise.
5622         (plus_infty): Likewise.
5623         (minus_infty): Likewise.
5624         (qnan_value): Likewise.
5625         (max_value): Likewise.
5626         (min_value): Likewise.
5627         (min_subnorm_value): Likewise.
5628         (initialize): Do not initialize those variables dynamically.
5629
5630 2013-05-03  Roland McGrath  <roland@hack.frob.com>
5631
5632         * io/open.c (__open_2): Moved to ...
5633         * io/open_2.c: ... this new file.
5634         * io/open64.c (__open64_2): Moved to ...
5635         * io/open64_2.c: ... this new file.
5636         * io/openat.c (__openat_2): Moved to ...
5637         * io/openat_2.c: ... this new file.
5638         * io/openat64.c (__openat64_2): Moved to ...
5639         * io/openat64_2.c: ... this new file.
5640         * io/Makefile (routines): Add them.
5641         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
5642         * sysdeps/unix/sysv/linux/open_2.c: File removed.
5643         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
5644         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
5645         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
5646         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
5647         (__openat64): Add hidden_ver.
5648         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
5649         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
5650
5651         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5652         Separately conditionalize setting of GLRO(dl_sysinfo) so
5653         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
5654         as well, but the actual setting is only under [NEED_DL_SYSINFO].
5655
5656 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5657
5658         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
5659         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
5660         definition.
5661         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
5662         * sysdeps/unix/sysv/linux/powerpc/init-first.c
5663         (_libc_vdso_platform_setup): Add __vdso_time initialization.
5664         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
5665         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
5666
5667 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
5668
5669         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
5670         test signgam value.
5671
5672         * math/libm-test.inc (hypot_test): Do not use
5673         IGNORE_ZERO_INF_SIGN.
5674
5675 2013-05-03  Andreas Jaeger  <aj@suse.de>
5676
5677         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
5678         Linux 3.9.
5679         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
5680         (PF_MAX): Adjust for VSOCK change.
5681
5682 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5683
5684         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5685
5686 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
5687
5688         [BZ #15264]
5689         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
5690         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
5691         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
5692
5693 2013-05-02  David S. Miller  <davem@davemloft.net>
5694
5695         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5696
5697 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
5698
5699         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
5700
5701 2013-05-01  Roland McGrath  <roland@hack.frob.com>
5702
5703         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
5704
5705 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
5706
5707         [BZ #14952]
5708         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
5709         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
5710         Use __attribute__ ((__gnu_inline__)).
5711         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
5712         Don't use __attribute__ ((__gnu_inline__)).
5713
5714 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
5715
5716         [BZ #15423]
5717         * math/s_catan.c (__catan): Handle small real or imaginary part of
5718         input specially to avoid spurious underflow.
5719         * math/s_catanf.c (__catanf): Likewise.
5720         * math/s_catanh.c (__catanh): Likewise.
5721         * math/s_catanhf.c (__catanhf): Likewise.
5722         * math/s_catanhl.c (__catanhl): Likewise.
5723         * math/s_catanl.c (__catanl): Likewise.
5724         * math/libm-test.inc (catan_test): Add more tests.
5725         (catanh_test): Likewise.
5726         * sysdeps/i386/fpu/libm-test-ulps: Update.
5727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5728
5729 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5730
5731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5732
5733 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
5734
5735         [BZ #15416]
5736         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
5737         accurately for denominator in atan2.
5738         * math/s_catanf.c (__catanf): Likewise.
5739         * math/s_catanh.c (__catanh): Likewise.
5740         * math/s_catanhf.c (__catanhf): Likewise.
5741         * math/s_catanhl.c (__catanhl): Likewise.
5742         * math/s_catanl.c (__catanl): Likewise.
5743         * math/libm-test.inc (catan_test): Add more tests.
5744         (catanh_test): Likewise.
5745         * sysdeps/i386/fpu/libm-test-ulps: Update.
5746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5747
5748 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5749
5750         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
5751
5752         * benchtests/Makefile (bench): Remove slow benchmarks.
5753         * benchtests/atan-inputs: Add slow benchmark inputs.
5754         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
5755         (BENCH_FUNC): Accept variant offset.
5756         (VARIANT): Define.
5757         * benchtests/bench-skeleton.c (main): Run benchmark for each
5758         variant.
5759         * benchtests/cos-inputs: Add slow benchmark inputs.
5760         * benchtests/exp-inputs: Likewise.
5761         * benchtests/pow-inputs: Likewise.
5762         * benchtests/sin-inputs: Likewise.
5763         * benchtests/slowatan-inputs: Remove.
5764         * benchtests/slowatan.c: Remove.
5765         * benchtests/slowcos-inputs: Remove.
5766         * benchtests/slowcos.c: Remove.
5767         * benchtests/slowexp-inputs: Remove.
5768         * benchtests/slowexp.c: Remove.
5769         * benchtests/slowpow-inputs: Remove.
5770         * benchtests/slowpow.c: Remove.
5771         * benchtests/slowsin-inputs: Remove.
5772         * benchtests/slowsin.c: Remove.
5773         * benchtests/slowtan-inputs: Remove.
5774         * benchtests/slowtan.c: Remove.
5775         * benchtests/tan-inputs: Add slow benchmark inputs.
5776         * scripts/bench.pl: Parse comments and directives.
5777
5778         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
5779         in CPPFLAGS.
5780         ($(objpfx)bench-%.c): Remove *-ITER.
5781         * benchtests/bench-modf.c: Remove definition of ITER.
5782         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
5783         (main): Loop for DURATION seconds instead of fixed number of
5784         iterations.
5785         * scripts/bench.pl: Don't expect iterations in parameters.
5786
5787 2013-04-29  Roland McGrath  <roland@hack.frob.com>
5788
5789         * io/fchdir.c (__fchdir): Renamed from fchdir.
5790         (fchdir): Define as weak alias.
5791
5792 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
5793
5794         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
5795         (ERRNO_EDOM): Likewise.
5796         (ERRNO_ERANGE): Likewise.
5797         (noErrnoTests): New variable.
5798         (init_max_error): Set errno to 0.
5799         (test_single_errno): New function.
5800         (test_errno): Likewise.
5801         (check_float_internal): Call test_errno.  Set errno to 0.
5802         (check_complex): Refer to errno tests in comment.
5803         (check_int): Call test_errno.  Set errno to 0.
5804         (check_long): Likewise.
5805         (check_bool): Likewise.
5806         (check_longlong): Likewise.
5807         (cos_test): Use ERRNO_* flags for errno tests instead of
5808         check_int.
5809         (expm1_test): Likewise.
5810         (fmod_test): Likewise.
5811         (ilogb_test): Likewise.
5812         (lgamma_test): Likewise.
5813         (pow_test): Likewise.
5814         (remainder_test): Likewise.
5815         (sin_test): Likewise.
5816         (tan_test): Likewise.
5817         (yn_test): Likewise.
5818         (initialize): Set errno to 0.
5819         (main): Print number of errno tests.
5820         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
5821
5822 2013-04-29  Andreas Jaeger  <aj@suse.de>
5823
5824         [BZ #15084]
5825         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
5826         and RES_USEVC.
5827
5828         [BZ #15085]
5829         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
5830         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
5831         unimplemented.
5832
5833         [BZ #15380]
5834         * stdlib/random.c (__initstate): Return NULL if
5835         __initstate fails.
5836
5837         [BZ #15086]
5838         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
5839         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
5840         RES_SNGLKUPREOP.
5841
5842 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5843
5844         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5845
5846 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
5847
5848         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
5849         of individual tests.
5850         (casin_test): Likewise.
5851         (casinh_test): Likewise.
5852
5853 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
5854
5855         [BZ #15409]
5856         * math/s_catan.c (__catan): Handle arguments with large real or
5857         imaginary part separately without squaring.
5858         * math/s_catanf.c (__catanf): Likewise.
5859         * math/s_catanh.c (__catanh): Likewise.
5860         * math/s_catanhf.c (__catanhf): Likewise.
5861         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
5862         and redefine.
5863         (__catanhl): Handle arguments with large real or imaginary part
5864         separately without squaring.
5865         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
5866         and redefine.
5867         (__catanl): Handle arguments with large real or imaginary part
5868         separately without squaring.
5869         * math/libm-test.inc (catan_test): Add more tests.
5870         (catanh_test): Likewise.
5871         * sysdeps/i386/fpu/libm-test-ulps: Update.
5872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5873
5874 2013-04-27  Andreas Jaeger  <aj@suse.de>
5875
5876         [BZ #15007]
5877         * stdlib/stdlib.h: Update guards for qecvt.
5878         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
5879         <stdlib.h>.
5880
5881 2013-04-27  Allan McRae  <allan@archlinux.org>
5882
5883         * sysdeps/i386/fpu/libm-test-ulps: Update.
5884
5885 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
5886
5887         [BZ #15406]
5888         * math/s_catan.c: Include <float.h>.
5889         (__catan): Ensure underflow exception occurs for underflowed
5890         result.
5891         * math/s_catanf.c: Include <float.h>.
5892         (__catanf): Ensure underflow exception occurs for underflowed
5893         result.
5894         * math/s_catanh.c: Include <float.h>.
5895         (__catanh): Ensure underflow exception occurs for underflowed
5896         result.
5897         * math/s_catanhf.c: Include <float.h>.
5898         (__catanhf): Ensure underflow exception occurs for underflowed
5899         result.
5900         * math/s_catanhl.c: Include <float.h>.
5901         (__catanhl): Ensure underflow exception occurs for underflowed
5902         result.
5903         * math/s_catanl.c: Include <float.h>.
5904         (__catanl): Ensure underflow exception occurs for underflowed
5905         result.
5906         * math/libm-test.inc (catan_test): Add more tests.
5907         (catanh_test): Likewise.
5908
5909         [BZ #15405]
5910         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
5911         underflowed result.
5912         * math/s_ccoshf.c (__ccoshf): Likewise.
5913         * math/s_ccoshl.c (__ccoshl): Likewise.
5914         * math/s_csin.c (__csin): Likewise.
5915         * math/s_csinf.c (__csinf): Likewise.
5916         * math/s_csinh.c (__csinh): Likewise.
5917         * math/s_csinhf.c (__csinhf): Likewise.
5918         * math/s_csinhl.c (__csinhl): Likewise.
5919         * math/s_csinl.c (__csinl): Likewise.
5920         * math/libm-test.inc (ccos_test): Add more tests.
5921         (ccosh_test): Likewise.
5922         (csin_test): Likewise.
5923         (csinh_test): Likewise.
5924
5925 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5926
5927         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
5928         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
5929         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
5930         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
5931         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
5932         powerpc/power5+/fpu folders.
5933         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
5934
5935
5936 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
5937
5938         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5939
5940 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
5941
5942         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
5943         additions to variable.
5944         [$(config-machine) = x86_64] (modules-names): Likewise.
5945         ($(objpfx)tst-audit3): Remove dependency.
5946         ($(objpfx)tst-audit3.out): Likewise.
5947         ($(objpfx)tst-audit4): Likewise.
5948         ($(objpfx)tst-audit4.out): Likewise.
5949         ($(objpfx)tst-audit5): Likewise.
5950         ($(objpfx)tst-audit5.out): Likewise.
5951         ($(objpfx)tst-audit6): Likewise.
5952         ($(objpfx)tst-audit6.out): Likewise.
5953         ($(objpfx)tst-audit7): Likewise.
5954         ($(objpfx)tst-audit7.out): Likewise.
5955         (tst-audit3-ENV): Remove variable.
5956         (tst-audit4-ENV): Likewise.
5957         (tst-audit5-ENV): Likewise.
5958         (tst-audit6-ENV): Likewise.
5959         (tst-audit7-ENV): Likewise.
5960         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
5961         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
5962         addition to variable.
5963         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
5964         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
5965         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
5966         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
5967         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
5968         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
5969         tst-audit3, tst-audit4 and tst-audit5.
5970         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
5971         tst-audit6 and tst-audit7.
5972         [$(subdir) = elf] (modules-names): Add audit modules for those
5973         tests.
5974         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
5975         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
5976         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
5977         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
5978         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
5979         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
5980         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
5981         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
5982         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
5983         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
5984         [$(subdir) = elf] (tst-audit3-ENV): New variable.
5985         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
5986         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
5987         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
5988         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
5989         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
5990         Likewise.
5991         [$(subdir) = elf && $(config-cflags-avx) = yes]
5992         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
5993         [$(subdir) = elf && $(config-cflags-avx) = yes]
5994         (CFLAGS-tst-auditmod4a.c): Likewise.
5995         [$(subdir) = elf && $(config-cflags-avx) = yes]
5996         (CFLAGS-tst-auditmod4b.c): Likewise.
5997         [$(subdir) = elf && $(config-cflags-avx) = yes]
5998         (CFLAGS-tst-auditmod6b.c): Likewise.
5999         [$(subdir) = elf && $(config-cflags-avx) = yes]
6000         (CFLAGS-tst-auditmod6c.c): Likewise.
6001         [$(subdir) = elf && $(config-cflags-avx) = yes]
6002         (CFLAGS-tst-auditmod7b.c): Likewise.
6003         * elf/tst-audit3.c: Move to ...
6004         * sysdeps/x86_64/tst-audit3.c: ... here.
6005         * elf/tst-audit4.c: Move to ...
6006         * sysdeps/x86_64/tst-audit4.c: ... here.
6007         * elf/tst-audit5.c: Move to ...
6008         * sysdeps/x86_64/tst-audit5.c: ... here.
6009         * elf/tst-audit6.c: Move to ...
6010         * sysdeps/x86_64/tst-audit6.c: ... here.
6011         * elf/tst-audit7.c: Move to ...
6012         * sysdeps/x86_64/tst-audit7.c: ... here.
6013         * elf/tst-auditmod3a.c: Move to ...
6014         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
6015         * elf/tst-auditmod3b.c: Move to ...
6016         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
6017         * elf/tst-auditmod4a.c: Move to ...
6018         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
6019         * elf/tst-auditmod4b.c: Move to ...
6020         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
6021         * elf/tst-auditmod5a.c: Move to ...
6022         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
6023         * elf/tst-auditmod5b.c: Move to ...
6024         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
6025         * elf/tst-auditmod6a.c: Move to ...
6026         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
6027         * elf/tst-auditmod6b.c: Move to ...
6028         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
6029         * elf/tst-auditmod6c.c: Move to ...
6030         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
6031         * elf/tst-auditmod7a.c: Move to ...
6032         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
6033         * elf/tst-auditmod7b.c: Move to ...
6034         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
6035
6036 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
6037
6038         [BZ #15366]
6039         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
6040         define unconditionally.
6041         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
6042         define unconditionally.
6043         (INT8_C, INT16_C, etc.): Likewise.
6044
6045 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
6046
6047         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
6048         __ehdr_start with hidden visibility.
6049
6050         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
6051
6052 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
6053
6054         * math/libm-test.inc (cos_test): Use accurate hex constants.
6055         (sincost_test): Likewise.
6056
6057 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
6058
6059         * math/libm-test.inc (catan_test): Add more tests.
6060         (catanh_test): Likewise.
6061
6062         * math/s_catanf.c (__catanf): Use suffixed floating-point
6063         constants.
6064         * math/s_catanhf.c (__catanhf): Likewise.
6065         * math/s_catanhl.c (__catanhl): Likewise.
6066         * math/s_catanl.c (__catanl): Likewise.
6067
6068         [BZ #15394]
6069         * math/s_catan.c (__catan): Calculate imaginary part of result
6070         with log1p not log unless computing log of number close to 0.
6071         * math/s_catanf.c (__catanf): Likewise.
6072         * math/s_catanl.c (__catanl): Likewise.
6073         * math/s_catanh.c (__catanh): Calculate real part of result with
6074         log1p not log unless computing log of number close to 0.
6075         * math/s_catanhf.c (__catanhf): Likewise.
6076         * math/s_catanhl.c (__catanhl): Likewise.
6077         * math/libm-test.inc (catan_test): Add more tests.
6078         (catanh_test): Likewise.
6079         * sysdeps/i386/fpu/libm-test-ulps: Update.
6080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6081
6082 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6083
6084         * benchtests/Makefile: Mention files in which fast and slow
6085         paths of math functions are implemented.
6086
6087 2013-04-23  Roland McGrath  <roland@hack.frob.com>
6088
6089         * sysdeps/posix/timespec_get.c: New file.
6090
6091 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6092
6093         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
6094         POWER.
6095         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
6096         for POWER.
6097         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
6098         powerpc/power5/fpu folders.
6099         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
6100         * benchtests/Makefile: Add modf testcase.
6101         * benchtests/bench-modf.c: New file: Benchmark test for mo
6102
6103 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
6104
6105         [BZ #14888]
6106         * time/Makefile (tests): Add tst-strptime-whitespace.
6107         * time/strptime_l.c (get_number): Use ISSPACE.
6108         (__strptime_internal): Likewise.
6109         * time/tst-strptime-whitespace.c: New test case.
6110
6111 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6112
6113         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
6114         member.
6115         (_nss_files_init): Set it here.
6116
6117 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
6118
6119         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
6120         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
6121         unsigned.
6122
6123 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
6124
6125         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
6126
6127 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6128
6129         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
6130         size just once.
6131
6132 2013-04-21  David S. Miller  <davem@davemloft.net>
6133
6134         * po/ru.po: Update Russion translation from translation project.
6135
6136 2013-04-17  Adam Conrad  <adconrad@0c3.net>
6137
6138         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
6139         and setfsgid.
6140
6141 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
6142
6143         * configure.in: Remove i386 configure warning. Remove i386 case.
6144         * configure: Regenerate.
6145         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
6146         Add example to error message.
6147         * sysdeps/i386/configure: Regenerate.
6148
6149 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
6150
6151         * benchtests/Makefile (bench): Add cos, tan, slowcos and
6152         slowtan.
6153         * benchtests/cos-inputs: New file.
6154         * benchtests/slowcos-inputs: New file.
6155         * benchtests/slowcos.c: New file.
6156         * benchtests/slowtan-inputs: New file.
6157         * benchtests/slowtan.c: New file.
6158         * benchtests/tan-inputs: New file.
6159
6160 2013-04-16  Roland McGrath  <roland@hack.frob.com>
6161
6162         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
6163         considered kosher.
6164
6165 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6166
6167         * benchtests/Makefile: Include cppflags-iterator.mk to add
6168         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
6169
6170         * Makefile.in (bench-clean): New target.
6171         * benchtests/Makefile (bench-clean): Likewise.
6172
6173 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
6174
6175         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
6176
6177 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6178
6179         * stdio-common/tstdiomisc.c: Fix coding-style violation.
6180
6181 2013-04-15  Andreas Schwab  <schwab@suse.de>
6182
6183         * nscd/grpcache.c (cache_addgr): Properly check for short write.
6184         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6185         * nscd/pwdcache.c (cache_addpw): Likewise.
6186         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
6187         more than recsize.
6188
6189 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6190
6191         * benchtests/Makefile (bench): Write all output to
6192         bench-out.tmp together.
6193
6194 2013-04-15  Andreas Schwab  <schwab@suse.de>
6195
6196         * nscd/nscd.c (main): Don't fork again after closing files.
6197
6198 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6199
6200         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
6201
6202         * benchtests/Rules (bench-deps): Collect dependencies into a
6203         single variable.  Add Makefile to dependencies.
6204         ($(objpfx)bench-%.c): Depend on bench-deps.
6205
6206 2013-04-12  Roland McGrath  <roland@hack.frob.com>
6207             Xavier Roche  <roche+kml2@exalead.com>
6208
6209         [BZ #15361]
6210         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
6211         just that it's a file descriptor.
6212         * manual/llio.texi (Synchronizing AIO Operations): Update description
6213         for EBADF error from aio_fsync.
6214
6215 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6216
6217         * Rules (bench): Move target definition...
6218         * benchtests/Makefile: ... here.
6219
6220 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
6221
6222         * math/libm-test.inc (cos_test): Fix PI/2 test.
6223         (sincos_test): Likewise.
6224         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6225         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6226
6227 2013-04-11  Andreas Schwab  <schwab@suse.de>
6228
6229         [BZ #13988]
6230         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
6231         accept exponent character only when digits were seen.
6232         * stdio-common/Makefile (tests): Add bug26.
6233         * stdio-common/bug26.c: New file.
6234
6235         [BZ #14293]
6236         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
6237         non-freeable.
6238
6239 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6240
6241         * Makeconfig (rtld-prefix): Define built linker prefix.
6242         * Rules (run-bench): Use it.
6243         * math/Makefile (run-regen-ulps): Likewise.
6244
6245         * Rules (bench): Remove eval.
6246
6247 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6248             Roland McGrath  <roland@hack.frob.com>
6249             Ondrej Bilka  <neleai@seznam.cz>
6250
6251         [BZ #15346]
6252         * time/getdate.c: Include ctype.h and alloca.h.
6253         (__getdate_r): Trim leading and trailing spaces of input.
6254         * time/tst-getdate.c (tests): Add tests with leading and
6255         trailing spaces.
6256
6257 2013-04-08  Roland McGrath  <roland@hack.frob.com>
6258
6259         [BZ #14280]
6260         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
6261         when computing value.
6262
6263 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6264
6265         * math/README.libm-test (How can I generate "libm-test-ulps"?):
6266         Use testrun.sh to run libm tests.
6267
6268         [BZ #15309]
6269         * elf/dl-open.c (dl_open_worker): memset all of seen array.
6270
6271 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
6272
6273         [BZ #15264]
6274         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
6275
6276 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6277
6278         * Makefile.in (regen-ulps): New target.
6279         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
6280         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
6281         [ifneq (no,$(PERL)] (regen-ulps): New target.
6282         [ifeq (no,$(PERL)] (regen-ulps): New target.
6283         * math/libm-test.inc (ulps_file_name): Define.
6284         (output_dir): New variable.
6285         (options): Add "output-dir" option.
6286         (parse_opt): Handle 'o' case.
6287         (main): If output_dir is non-NULL use it as a prefix
6288         otherwise use "".
6289         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
6290
6291 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6292
6293         [BZ #10060, #10062]
6294         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
6295         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
6296         fail configure if __sync_val_compare_and_swap is not inlined.
6297         * sysdeps/i386/configure: Regenerate.
6298         * configure.in: Build for i686 when configured for i386.
6299         * configure: Regenerate.
6300         * README: Remove i386 reference.
6301
6302 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6303
6304         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
6305         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6306
6307 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6308
6309         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
6310         (lmsnanval): New variables.
6311         (F): Add conversion tests.
6312         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
6313         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
6314
6315         * stdio-common/tstdiomisc.c (F): Properly collect individual
6316         tests' results.
6317
6318         [BZ #14686, #15336]
6319         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
6320         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
6321         Instead, use input NaN values or generate a qNaN by arithmetic
6322         operation.  Also fix bugs to comply with the standard.
6323         * math/libm-test.inc (remainder_test): Add more tests.
6324
6325         [BZ #15335, #15342]
6326         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
6327         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
6328         input NaN values or generate a qNaN by arithmetic operation.
6329
6330         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
6331         unreachable code.
6332
6333         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
6334         definitions.
6335
6336 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
6337
6338         [BZ #14478]
6339         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
6340         underflowed result.
6341         * math/s_cexpf.c (__cexpf): Likewise.
6342         * math/s_cexpl.c (__cexpl): Likewise.
6343         * math/libm-test.inc (cexp_test): Add more tests.
6344
6345 2013-04-03  Andreas Schwab  <schwab@suse.de>
6346
6347         [BZ #15330]
6348         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
6349         order arrays from heap if bigger than alloca cutoff.
6350
6351 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6352
6353         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
6354         (SNAN_TESTS_double): Refer to GCC PR56831.
6355         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
6356         GCC PR56828.
6357
6358 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6359
6360         * Rules (bench): Move bench.out after the run is complete.
6361
6362         * Rules (bench): Echo currently running benchmark.
6363
6364         * benchtests/Makefile (bench): Add atan and slowatan.
6365         * benchtests/atan-inputs: New file.
6366         * benchtests/slowatan-inputs: New file.
6367         * benchtests/slowatan.c: New file.
6368
6369         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
6370         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
6371         its value.
6372
6373         [BZ #15305]
6374         * sysdeps/unix/sysv/linux/kernel-features.h
6375         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
6376         __ASSUME_XFS_RESTRICTED_CHOWN.
6377         * sysdeps/unix/sysv/linux/pathconf.c
6378         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
6379         Save and restore errno.
6380
6381 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
6382
6383         [BZ #15327]
6384         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
6385         arguments using __kernel_casinh.
6386         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
6387         arguments using __kernel_casinhf.
6388         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
6389         arguments using __kernel_casinhl.
6390         * math/libm-test.inc (cacosh_test): Add more tests.
6391         * sysdeps/i386/fpu/libm-test-ulps: Update.
6392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6393
6394 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6395
6396         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
6397         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
6398
6399         * bench/Makefile (bench): Add sin and slowsin.
6400         * benchtests/sin-inputs: New file.
6401         * benchtests/slowsin-inputs: New file.
6402         * benchtests/slowsin.c: New file.
6403
6404         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
6405         (bench): Add slowexp and slowpow.
6406         (exp-ITER): Increase iterations.
6407         (pow-ITER): Likewise.
6408         * benchtests/exp-inputs: Change input.
6409         * benchtests/pow-inputs: Likewise.
6410         * benchtests/slowexp-inputs: New file.
6411         * benchtests/slowexp.c: New file.
6412         * benchtests/slowpow-inputs: New file.
6413         * benchtests/slowpow.c: New file.
6414
6415 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6416
6417         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
6418         instructions.
6419         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
6420         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
6421         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
6422         * benchtests/Makefile: Add rint benchtest.
6423         * benchtests/rint-inputs: Input for rint benchtest.
6424
6425 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
6426
6427         * Versions.def (libm): Add GLIBC_2.18.
6428         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
6429         hidden libm prototypes.
6430         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
6431         * math/Makefile (libm-calls): Add s_issignaling.
6432         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
6433         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
6434         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
6435         declaration.
6436         * math/math.h [__USE_GNU] (issignaling): New macro.
6437         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
6438         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
6439         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
6440         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
6441         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
6442         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
6443         * manual/arith.texi (issignaling): New section.
6444         * manual/libm-err-tab.pl (@all_functions): Update comment.
6445         * math/gen-libm-test.pl (parse_args): Apply special handling for
6446         issignaling.
6447         * math/libm-test.inc (print_float, issignaling_test): New
6448         functions.
6449         (check_float_internal): Add issignaling checks.
6450         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
6451         default definition.
6452         * sysdeps/powerpc/math-tests.h: New file.
6453         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
6454         tests.
6455         * math/test-snan.c (TEST_FUNC): Likewise.
6456
6457 2013-03-30  David S. Miller  <davem@davemloft.net>
6458
6459         * po/de.po: Update from translation team.
6460
6461 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
6462
6463         [BZ #10357]
6464         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6465         imaginary part less than 1.0 and real part less than 0.5
6466         specially.
6467         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6468         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6469         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
6470         (cacos_test): Add more tests.
6471         (casin_test): Likewise.
6472         (casinh_test): Likewise.
6473         * sysdeps/i386/fpu/libm-test-ulps: Update.
6474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6475
6476 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6477
6478         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
6479         ONE with its value.
6480
6481         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
6482         (__pow_mp): Replace ONE and MONE with their values.
6483         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6484         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
6485         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6486         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
6487         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6488         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6489
6490         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
6491
6492         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
6493         (__pow_mp): Replace ZERO and MZERO with their values.
6494         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
6495         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6496         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6497         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
6498         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6499         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
6500         (__sqr): Likewise.
6501
6502         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
6503
6504         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
6505
6506 2013-03-28  Roland McGrath  <roland@hack.frob.com>
6507
6508         * include/stdlib.h [!SHARED] (__call_tls_dtors):
6509         Declare with __attribute__ ((weak)).
6510         * stdlib/exit.c (__libc_atexit) [!SHARED]:
6511         Call __call_tls_dtors only if it's not NULL.
6512
6513 2013-03-28  Roland McGrath  <roland@hack.frob.com>
6514
6515         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
6516         didn't do it already, then set _dl_phdr and _dl_phnum based on the
6517         magic __ehdr_start linker symbol if it's defined.
6518         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
6519         them up here if it was already done.
6520
6521         * elf/dl-support.c (_dl_phdr): Make pointer to const.
6522         (_dl_aux_init): Use const in cast when setting it.
6523         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
6524         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
6525         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
6526
6527         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
6528         Declare them here.
6529         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
6530         * csu/libc-tls.c: Nor here.
6531         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
6532
6533         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
6534         (__libc_message): Never call vsyslog.
6535
6536 2013-03-28  Alan Modra  <amodra@gmail.com>
6537
6538         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
6539         Define as empty.
6540         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
6541         Likewise.
6542
6543 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6544
6545         [BZ #15214]
6546         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
6547         underflow.
6548         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6549
6550 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6551
6552         [BZ #15304]
6553         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
6554         Don't add gid passed as argument.
6555
6556         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
6557
6558 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
6559
6560         [BZ #15307]
6561         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6562         imaginary part between 1.0 and 1.5 and real part less than 0.5
6563         specially.
6564         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6565         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6566         * math/libm-test.inc (cacos_test): Add more tests.
6567         (casin_test): Likewise.
6568         (casinh_test): Likewise.
6569         * sysdeps/i386/fpu/libm-test-ulps: Update.
6570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6571
6572 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6573
6574         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
6575         constants.
6576         (norm): Likewise.
6577         (denorm): Likewise.
6578         (__dbl_mp): Likewise.
6579         (add_magnitudes): Likewise.
6580         (sub_magnitudes): Likewise.
6581         (__add): Likewise.
6582         (__sub): Likewise.
6583         (__mul): Likewise.
6584         (__sqr): Likewise.
6585         (__inv): Likewise.
6586         (__dvd): Likewise.
6587
6588         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
6589         commented code.
6590         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
6591         (__dubcos): Likewise.
6592         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
6593         (__ieee754_acos): Likewise.
6594         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
6595         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
6596         (__exp1): Likewise.
6597         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6598         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6599         (log1): Likewise.
6600         (my_log2): Likewise.
6601         (checkint): Likewise.
6602         * sysdeps/ieee754/dbl-64/e_remainder.c
6603         (__ieee754_remainder): Likewise.
6604         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6605         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
6606         (bsloww): Likewise.
6607         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6608
6609         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
6610         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
6611         MANTISSA_STORE_T to store computations on mantissa.  Use
6612         macros for rounding and division.
6613         (denorm): Likewise.
6614         (__dbl_mp): Likewise.
6615         (add_magnitudes): Likewise.
6616         (sub_magnitudes): Likewise.
6617         (__mul): Likewise.
6618         (__sqr): Likewise.
6619         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
6620         powers of two in terms of TWOPOW macro.
6621         (mp_no): Make type of mantissa as MANTISSA_T.
6622         [!RADIXI]: Define RADIXI.
6623         [!TWO52]: Define TWO52.
6624         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
6625
6626 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6627
6628         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
6629         llroundl symbol when building for PPC32.
6630
6631 2013-03-24  Mark H Weaver  <mhw@netris.org>
6632
6633         * manual/arith.texi (Normalization Functions): Fix prototypes for
6634         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
6635
6636 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6637
6638         [BZ #13889]
6639         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
6640         high value to check if expl overflow.
6641         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
6642         to check for underflow and overflow.
6643         * math/libm-test.inc: Add exp test.
6644
6645 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
6646
6647         [BZ #11120]
6648         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
6649         with NOT_IN_libc.
6650
6651 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6652
6653         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
6654         symbol.
6655
6656 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6657
6658         * math/gen-libm-test.pl (parse_args, special_functions): Properly
6659         wrap blocks consisting of several statements.
6660
6661         * sysdeps/generic/math-tests.h: New file.
6662         * sysdeps/i386/fpu/math-tests.h: Likewise.
6663         * math/test-snan.c: Include it.
6664         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
6665
6666 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
6667
6668         [BZ #15285]
6669         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
6670         (__ieee754_j0l): Do not improve calculations using cos of twice
6671         input for inputs above LDBL_MAX / 2.0L.
6672         (__ieee754_y0l): Likewise.
6673         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
6674         (__ieee754_j1l): Do not improve calculations using cos of twice
6675         input for inputs above LDBL_MAX / 2.0L.
6676         (__ieee754_y1l): Likewise.
6677         * math/libm-test.inc (j0_test): Add another test.
6678         (j1_test): Likewise.
6679         (y0_test): Likewise.
6680         (y1_test): Likewise.
6681         * sysdeps/i386/fpu/libm-test-ulps: Update.
6682
6683 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6684
6685         * Rules ($(objpfx)bench-%.c): Include code from a C source
6686         file.
6687
6688 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
6689
6690         [BZ #15287]
6691         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6692         imaginary part 1.0 and real part less than 0.5 specially.
6693         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6694         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6695         * math/libm-test.inc (cacos_test): Add more tests.
6696         (casin_test): Likewise.
6697         (casinh_test): Likewise.
6698         * sysdeps/i386/fpu/libm-test-ulps: Update.
6699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6700
6701 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6702
6703         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
6704         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
6705
6706 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
6707
6708         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
6709         * config.make.in (config-cflags-sse4): Remove variable.
6710         (config-cflags-avx): Likewise.
6711         (config-cflags-sse2avx): Likewise.
6712         (config-cflags-novzeroupper): Likewise.
6713         (config-asflags-i686): Likewise.
6714         (have-mfma4): Likewise.
6715         (have-as-vis3): Likewise.
6716         (MIG): Likewise.
6717         * configure.in (MIG): Do not AC_SUBST.
6718         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
6719         (libc_cv_cc_sse4): Do not AC_SUBST.
6720         (libc_cv_cc_avx): Likewise.
6721         (libc_cv_cc_sse2avx): Likewise.
6722         (libc_cv_cc_novzeroupper): Likewise.
6723         (libc_cv_cc_fma4): Likewise.
6724         (libc_cv_as_i686): Likewise.
6725         (libc_cv_sparc_as_vis3): Likewise.
6726         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
6727         LIBC_CONFIG_VAR.
6728         (config-asflags-i686): Likewise.
6729         (config-cflags-avx): Likewise.
6730         (config-cflags-sse2avx): Likewise.
6731         (have-mfma4): Likewise.
6732         (config-cflags-novzeroupper): Likewise.
6733         * sysdeps/mach/configure.in (MIG): Likewise.
6734         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
6735         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
6736         LIBC_CONFIG_VAR.
6737         (config-cflags-avx): Likewise.
6738         (config-cflags-sse2avx): Likewise.
6739         (have-mfma4): Likewise.
6740         (config-cflags-novzeroupper): Likewise.
6741         * configure: Regenerated.
6742         * sysdeps/i386/configure: Likewise.
6743         * sysdeps/mach/configure: Likewise.
6744         * sysdeps/sparc/configure: Likewise.
6745         * sysdeps/x86_64/configure: Likewise.
6746
6747 2013-03-20  Roland McGrath  <roland@hack.frob.com>
6748
6749         [BZ #14812]
6750         * locale/programs/localedef.c (options): Put N_ translation marker
6751         on argument names, not just descriptions.
6752
6753 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6754
6755         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
6756
6757 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
6758
6759         [BZ #14176]
6760         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
6761
6762 2013-03-19  Roland McGrath  <roland@hack.frob.com>
6763
6764         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
6765         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
6766         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
6767         [!BEFORE_ABORT] (before_abort): New function.
6768         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
6769         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
6770         (writev_for_fatal): New function.
6771         (WRITEV_FOR_FATAL): New macro; call that.
6772         (backtrace_and_maps): New function.
6773         (BEFORE_ABORT): New macro; call that.
6774         (struct str_list): Type removed.
6775         (__libc_message, __libc_fatal): Functions removed.
6776         Include <sysdeps/posix/libc_fatal.c> instead.
6777
6778 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
6779
6780         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
6781         constants.
6782         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
6783         double constants.
6784
6785 2013-03-19  Andreas Schwab  <schwab@suse.de>
6786
6787         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
6788         * sysdeps/gnu/configure: Regenerate.
6789
6790         * configure.in: Substitute libc_cv_rtlddir.
6791         * configure: Regenerate.
6792         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
6793         * Makeconfig (rtlddir, inst_rtlddir): New variables.
6794         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
6795         * elf/Makefile (install-others, CFLAGS-interp.c)
6796         (ldso_install, common-ldd-rewrite): Likewise.
6797         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
6798         $(inst_slibdir)/$(rtld-installed-name).
6799         * scripts/rellns-sh: Add -p option.
6800         * Makerules (make-shlib-link): Use rellns-sh to get relative name
6801         for source.
6802
6803 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6804
6805         * manual/nptl.texi: Renamed to ...
6806         * manual/threads.texi: ... this.
6807         * manual/Makefile (chapters): Update.
6808
6809 2013-03-18  Roland McGrath  <roland@hack.frob.com>
6810
6811         [BZ #14812]
6812         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
6813         on argument names, not just descriptions.
6814         * malloc/memusagestat.c (options): Likewise.
6815         * nss/getent.c (options): Likewise.
6816
6817 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
6818
6819         [BZ #14812]
6820         * iconv/iconv_prog.c (options): Put N_ translation marker
6821         on argument names, not just descriptions.
6822         * iconv/iconvconfig.c (options): Likewise.
6823
6824 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
6825
6826         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
6827         implementation which is faster on all x86_64 architectures.
6828         Tested on AMD, Intel Nehalem, SNB, IVB.
6829         * sysdeps/x86_64/strnlen.S: Likewise.
6830
6831         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6832         Remove all multiarch strlen and strnlen versions.
6833         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
6834         Remove strlen and strnlen related parts.
6835
6836         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
6837         Inline strlen part.
6838         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
6839
6840         * sysdeps/x86_64/multiarch/strlen.S: Remove.
6841         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
6842         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
6843         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
6844         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
6845         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
6846
6847 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
6848
6849         * manual/memory.texi (Malloc Tunable Parameters):
6850         Sort parameters alphabetically. Add comments for missing entries.
6851
6852 2013-03-17  David S. Miller  <davem@davemloft.net>
6853
6854         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6855
6856 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
6857
6858         [BZ #15283]
6859         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
6860         for arguments at most half maximum finite value.
6861         * math/libm-test.inc (j0_test): Add more tests.
6862         (j1_test): Likewise.
6863         (y0_test): Likewise.
6864         (y1_test): Likewise.
6865         * sysdeps/i386/fpu/libm-test-ulps: Update.
6866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6867
6868         [BZ #14155]
6869         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
6870         1 / x and functions P and Q for arguments above 0x1p256L.
6871         (__ieee754_y0l): Likewise.
6872         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6873         (__ieee754_y1l): Likewise.
6874         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
6875         (j1_test): Likewise.
6876         (y0_test): Likewise.
6877         (y1_test): Likewise.
6878
6879 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
6880
6881         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
6882         variable.
6883
6884 2013-03-15  Roland McGrath  <roland@hack.frob.com>
6885
6886         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
6887         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
6888         zero since it's initialized to EXEC_PAGESIZE.
6889
6890         * sysdeps/unix/sysv/linux/ldsodefs.h
6891         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
6892         * sysdeps/generic/ldsodefs.h: ... here.
6893
6894 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
6895
6896         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
6897
6898         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
6899         math/test-snan.c.
6900         * math/test-snan.c: Renamed from
6901         sysdeps/powerpc/fpu/test-powerpc-snan.c.
6902         * math/Makefile (tests): Add test-snan.
6903         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
6904         test-powerpc-snan.
6905
6906         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
6907         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
6908         functions.
6909         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
6910         __builtin_nan family of functions.
6911         * math/libm-test.inc (initialize): Initialize qnan_value with
6912         __builtin_nan family of functions.
6913         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
6914         Remove variables.
6915         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
6916         Remove functions.
6917         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
6918         storage class.  Initialize qNaN_var and sNaN_var with
6919         __builtin_nan and __builtin_nans families of functions,
6920         respectively.
6921
6922         * math/libm-test.inc (acosh_test): Also test with qNaN input.
6923         (sqrt_test): Remove duplicate test with qNaN input.
6924         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
6925         (round_test, signbit_test, significand_test): Note missing +/-Inf
6926         as well as qNaN tests.
6927
6928         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
6929         qNaN_var.  Fix a few strings, too.
6930         * math/libm-test.inc (nan_value): Rename to qnan_value.
6931         * math/gen-libm-test.pl (%beautify): Adjust to that.
6932         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
6933         * math/test-misc.c (main): Likewise.
6934         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
6935         to __qnan_bytes, and __qnan_union, respectively.
6936         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
6937         Likewise.
6938         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
6939         and lqnanval, respectively.
6940         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
6941         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
6942         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
6943         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
6944
6945         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
6946         * math/test-misc.c (main) [__x86_64__]: Enable test for long
6947         doubles.
6948
6949         * math/test-misc.c (main): Fix copy'n'pastos.
6950         * misc/tst-efgcvt.c (special): Likewise.
6951
6952         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
6953         Remove declarations.
6954
6955 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6956
6957         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
6958         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
6959         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
6960         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
6961
6962 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6963
6964         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
6965         macro to return vdso values correctly in IFUNC implementations.
6966         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
6967         Optimization by using IFUNC.
6968
6969 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6970             Richard Henderson  <rth@redhat.com>
6971             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6972
6973         * Makefile.in (bench): New target.
6974         * NEWS: Mention the benchmark framework.
6975         * Rules (bench): Likewise.
6976         (binaries-bench): Generate binaries for functions to
6977         benchmark.
6978         * benchtests/Makefile: New makefile for benchmark tests.
6979         * benchtests/bench-skeleton.c: New skeleton file for benchmark
6980         programs.
6981         * benchtests/exp-inputs: New input file for EXP function.
6982         * benchtests/pow-inputs: New input file for POW function.
6983         * scripts/bench.pl: New script to generate source files for
6984         benchmark programs.
6985
6986 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6987
6988         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
6989         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
6990         computations on mantissa.  Use macros for rounding and
6991         division.
6992         (denorm): Likewise.
6993         (__dbl_mp): Likewise.
6994         (add_magnitudes): Likewise.
6995         (sub_magnitudes): Likewise.
6996         (__mul): Likewise.
6997         (__sqr): Likewise.
6998         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
6999         powers of two in terms of TWOPOW macro.
7000         (mp_no): Make type of mantissa as MANTISSA_T.
7001         [!RADIXI]: Define RADIXI.
7002         [!TWO52]: Define TWO52.
7003         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7004
7005         * manual/nptl.texi (cindex): Modify threads to pthreads.
7006
7007 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
7008
7009         * sysdeps/x86_64/preconfigure: Regenerated.
7010
7011 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
7012
7013         [BZ #14155]
7014         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
7015         0x1p28 and above.
7016         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
7017         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
7018         0x1p28 and above.
7019         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
7020         * math/libm-test.inc (j0_test): Do not allow one spurious
7021         underflow exception.
7022         (y1_test): Likewise.
7023
7024 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7025
7026         * manual/Makefile (chapters): Add nptl.
7027         * manual/debug.texi (Debugging Support): Add link to Threads
7028         chapter.
7029         * manual/nptl.texi: New file.
7030
7031         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
7032
7033 2013-03-14  Petr Baudis  <pasky@ucw.cz>
7034
7035         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
7036         for non-NULL pointer before the memory validity test. Pointed
7037         out by Holger Brunck <holger.brunck@keymile.com>.
7038
7039 2013-03-13  Andreas Schwab  <schwab@suse.de>
7040
7041         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
7042         instead of .os.
7043
7044 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
7045
7046         * timezone/zic.c: Update from tzcode 2013b.
7047
7048 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
7049
7050         * manual/install.texi (Configuring and compiling):
7051         Mention i686 and i586.
7052         * INSTALL: Regenerate.
7053
7054 2013-03-12  Roland McGrath  <roland@hack.frob.com>
7055
7056         * sysdeps/init_array/elf-init.c: New file.
7057         * csu/elf-init.c
7058         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
7059         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
7060
7061         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
7062         __gmon_start__ as global, but as static with a .preinit_array pointer.
7063         * sysdeps/init_array/gmon-start.c: New file.  Use that.
7064         * sysdeps/init_array/crti.S: New file, empty except for comments.
7065         * sysdeps/init_array/crtn.S: Likewise.
7066
7067 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
7068
7069         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
7070         definining bcopy.
7071         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7072         Remove Prefer_SSE_for_memop.
7073         * sysdeps/x86_64/multiarch/init-arch.h: Remove
7074         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
7075         HAS_PREFER_SSE_FOR_MEMOP.
7076         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7077         memset-x86-64.
7078         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7079         Remove bzero, memset ifunc support.
7080         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
7081         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
7082         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7083         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7084
7085 2013-03-11  Andreas Schwab  <schwab@suse.de>
7086
7087         [BZ #15234]
7088         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
7089         by SHLIB_COMPAT.
7090         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
7091         (GLIBC_2.16): Remove pthread_atfork.
7092
7093 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
7094
7095         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
7096         (ptestcases.h): Likewise.
7097
7098 2013-03-08  Roland McGrath  <roland@hack.frob.com>
7099
7100         * Makeconfig ($(common-objpfx)config.status): Depend on
7101         sysdeps/*/preconfigure{,.in} too.
7102
7103 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
7104
7105         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
7106         (__free_hook): Use void * instead of __malloc_ptr_t.
7107         (__malloc_hook): Likewise.
7108         (__realloc_hook): Likewise.
7109         (__memalign_hook): Likewise.
7110         (__after_morecore_hook): Likewise.
7111         * malloc/arena.c (save_malloc_hook): Likewise.
7112         (save_free_hook): Likewise.
7113         * malloc/hooks.c (malloc_hook_ini): Likewise.
7114         (realloc_hook_ini): Likewise.
7115         (memalign_hook_ini): Likewise.
7116         * malloc/malloc.c (malloc_hook_ini): Likewise.
7117         (realloc_hook_ini): Likewise.
7118         (memalign_hook_ini): Likewise.
7119         (__free_hook): Likewise.
7120         (__malloc_hook): Likewise.
7121         (__realloc_hook): Likewise.
7122         (__memalign_hook): Likewise.
7123         (__libc_malloc): Likewise.
7124         (__libc_free): Likewise.
7125         (__libc_realloc): Likewise.
7126         (__libc_memalign): Likewise.
7127         (__libc_valloc): Likewise.
7128         (__libc_pvalloc): Likewise.
7129         (__libc_calloc): Likewise.
7130         (__posix_memalign): Likewise.
7131         * malloc/morecore.c (__sbrk): Likewise.
7132         (__default_morecore): Likewise.
7133
7134         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
7135
7136         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
7137         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
7138         __malloc_ptrdiff_t.
7139
7140         * malloc/malloc.h (__malloc_size_t): Remove macro.
7141         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
7142         __malloc_size_t.
7143         (old_memalign_hook): Likewise.
7144         (old_realloc_hook): Likewise.
7145         (struct hdr): Likewise.
7146         (flood): Likewise.
7147         (mallochook): Likewise.
7148         (memalignhook): Likewise.
7149         (reallochook): Likewise.
7150         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
7151         (tr_old_realloc_hook): Likewise.
7152         (tr_old_memalign_hook): Likewise.
7153         (tr_mallochook): Likewise.
7154         (tr_reallochook): Likewise.
7155         (tr_memalignhook): Likewise.
7156
7157 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7158
7159         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
7160         default_ldbl_pack and using as default implementation.
7161         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
7162         implementation.
7163         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
7164         redundant definition.
7165         (ldbl_insert_mantissa): Likewise.
7166         (ldbl_canonicalize): Likewise.
7167         (ldbl_nearbyint): Likewise.
7168         (ldbl_pack): Rename to ldbl_pack_ppc.
7169         (ldbl_unpack): Rename to ldbl_unpack_ppc.
7170         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
7171         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
7172
7173 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
7174
7175         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
7176         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
7177         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
7178         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
7179         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
7180         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
7181         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
7182         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
7183
7184 2013-03-07  Andreas Jaeger  <aj@suse.de>
7185
7186         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7187         bits/mman-linux.h.
7188
7189 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7190
7191         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
7192         Include mpa.h and declare __MPEXP.
7193         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
7194         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7195         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7196         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
7197         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7198         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7199         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
7200
7201         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
7202         (__slowpow): Use long double EXPL and LOGL functions to
7203         compute POW.
7204         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7205         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7206         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
7207         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7208         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7209         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
7210
7211         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
7212         intermediate variable to calculate exponent.
7213         (__sqr): Likewise.
7214         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
7215         Likewise.
7216         (__sqr): Likewise.
7217
7218         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
7219         [!NO__SQR]: Define __sqr.
7220         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
7221         and NO__SQR.  Remove all code except __mul and __sqr.  Include
7222         sysdeps/ieee754/dbl-64/mpa.c.
7223         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7224
7225         [BZ #12723]
7226         * posix/Makefile (tests): Add tst-pathconf.
7227         * posix/tst-pathconf.c: New test case.
7228         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
7229         _PC_PIPE_BUF.
7230         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
7231
7232 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
7233
7234         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
7235
7236 2013-03-06  Andreas Jaeger  <aj@suse.de>
7237
7238         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
7239         definition via __MAP_ANONYMOUS.
7240
7241         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
7242         it's not part of Linux headers.
7243
7244         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
7245         (MAP_HUGE_MASK): Define.
7246
7247         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7248         Define.
7249         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7250         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7251         Define.
7252         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7253         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7254         Define.
7255         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7256         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
7257         Define.
7258         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7259
7260         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
7261         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
7262         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
7263         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
7264         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
7265         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
7266
7267         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
7268         Handle f2fs.
7269
7270         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7271         Handle f2fs and efivarfs.
7272
7273         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
7274         f2fs.
7275
7276         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
7277         (EFIVARFS_MAGIC): Add.
7278         (F2FS_LINK_MAX): Add.
7279
7280 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7281
7282         * stdio-common/vfprintf.c: Replace __builtin_expect with
7283         __glibc_unlikely.
7284
7285 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
7286
7287         [BZ #13550]
7288         * sysdeps/generic/bp-sym.h: Remove file.
7289         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
7290         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
7291         <bp-sym.h> and <bp-asm.h>.
7292         (__longjmp): Don't use BP_SYM.
7293         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
7294         and <bp-asm.h>.
7295         (memcpy): Don't use BP_SYM.
7296         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
7297         <bp-sym.h> and <bp-asm.h>.
7298         (memcpy): Don't use BP_SYM.
7299         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
7300         <bp-asm.h>.
7301         (memcpy): Don't use BP_SYM.
7302         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
7303         <bp-asm.h>.
7304         (memset): Don't use BP_SYM.
7305         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7306         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7307         (__bzero): Don't use BP_SYM.
7308         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7309         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7310         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
7311         <bp-sym.h> and <bp-asm.h>.
7312         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7313         pointers.
7314         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
7315         <bp-sym.h> and <bp-asm.h>.
7316         (memcpy): Don't use BP_SYM.
7317         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
7318         <bp-sym.h> and <bp-asm.h>.
7319         (memset): Don't use BP_SYM.
7320         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7321         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7322         (__bzero): Don't use BP_SYM.
7323         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7324         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7325         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
7326         <bp-sym.h> and <bp-asm.h>.
7327         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7328         pointers.
7329         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
7330         <bp-sym.h> and <bp-asm.h>.
7331         (memcpy): Don't use BP_SYM.
7332         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
7333         <bp-sym.h> and <bp-asm.h>.
7334         (memset): Don't use BP_SYM.
7335         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7336         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7337         (__bzero): Don't use BP_SYM.
7338         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7339         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7340         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
7341         <bp-sym.h> and <bp-asm.h>.
7342         (__memchr): Don't use BP_SYM.
7343         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
7344         <bp-sym.h> and <bp-asm.h>.
7345         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7346         pointers.
7347         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
7348         <bp-sym.h> and <bp-asm.h>.
7349         (memcpy): Don't use BP_SYM.
7350         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
7351         <bp-sym.h> and <bp-asm.h>.
7352         (__mempcpy): Don't use BP_SYM.
7353         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
7354         <bp-sym.h> and <bp-asm.h>.
7355         (__memrchr): Don't use BP_SYM.
7356         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
7357         <bp-sym.h> and <bp-asm.h>.
7358         (memset): Don't use BP_SYM.
7359         (__bzero): Likewise.
7360         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
7361         <bp-sym.h> and <bp-asm.h>.
7362         (__rawmemchr): Don't use BP_SYM.
7363         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
7364         <bp-sym.h> and <bp-asm.h>.
7365         (__STRCMP): Don't use BP_SYM.
7366         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
7367         <bp-sym.h> and <bp-asm.h>.
7368         (strchr): Don't use BP_SYM.
7369         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
7370         <bp-sym.h> and <bp-asm.h>.
7371         (__strchrnul): Don't use BP_SYM.
7372         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
7373         <bp-sym.h> and <bp-asm.h>.
7374         (strlen): Don't use BP_SYM.
7375         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
7376         <bp-sym.h> and <bp-asm.h>.
7377         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7378         pointers.
7379         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
7380         <bp-sym.h> and <bp-asm.h>.
7381         (__strnlen): Don't use BP_SYM.
7382         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
7383         <bp-sym.h> and <bp-asm.h>.
7384         (__GI__setjmp): Don't use BP_SYM.
7385         (_setjmp): Likewise.
7386         (__sigsetjmp): Likewise.
7387         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
7388         (L(start_addresses)): Don't use BP_SYM.
7389         (_start): Likewise.
7390         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
7391         <bp-asm.h>.
7392         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
7393         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
7394         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7395         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7396         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
7397         <bp-asm.h>.
7398         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
7399         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
7400         about bounded pointers.
7401         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7402         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7403         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
7404         <bp-asm.h>.
7405         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
7406         about bounded pointers.  Remove GKM FIXME comments.
7407         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7408         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
7409         <bp-asm.h>.
7410         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
7411         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
7412         Remove GKM FIXME comments.
7413         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7414         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7415         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
7416         <bp-asm.h>.
7417         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
7418         about bounded pointers.  Remove GKM FIXME comment.
7419         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
7420         and <bp-asm.h>.
7421         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7422         pointers.
7423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
7424         <bp-sym.h> and <bp-asm.h>.
7425         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
7426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
7427         <bp-sym.h> and <bp-asm.h>.
7428         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
7429         comment.
7430
7431 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7432
7433         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
7434         call free(NULL).
7435
7436 2013-03-05  David S. Miller  <davem@davemloft.net>
7437
7438         * po/es.po: Update from translation team.
7439
7440 2013-03-05  Andreas Jaeger  <aj@suse.de>
7441
7442         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
7443         <bits/mman-linux.h>.
7444         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7445         is fine.
7446         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
7447         <bits/mman-linux.h> to end of file.
7448         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7449         is fine.
7450         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
7451         <bits/mman-linux.h> to end of file.
7452         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7453         is fine.
7454         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
7455         <bits/mman-linux.h> to end of file.
7456
7457         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
7458         (MCL_CURRENT, MCL_FUTURE): Define here.
7459
7460 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7461
7462         [BZ #15232]
7463         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
7464         attribute_hidden.
7465         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
7466
7467 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7468
7469         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
7470         fourth parameter needed for rt_sigprocmask syscall.
7471         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
7472         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7473         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7474         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7475         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7476         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
7477
7478 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
7479
7480         [BZ #13550]
7481         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
7482         comment about bounded pointers.
7483         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
7484         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
7485
7486 2013-03-04  Andreas Jaeger  <aj@suse.de>
7487
7488         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
7489         common definitions.
7490
7491         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
7492         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
7493         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
7494         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7495         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
7496         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7497
7498 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7499
7500         [BZ #15055]
7501         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
7502         __ieee754_sqrl instead of __sqrl.
7503
7504 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
7505
7506         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
7507         * sysdeps/powerpc/fpu_control.h: ... here.
7508         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
7509         * sysdeps/powerpc/bits/fenvinline.h: ... here.
7510         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
7511         * sysdeps/powerpc/bits/mathinline.h: ... here.
7512
7513 2013-03-01  Roland McGrath  <roland@hack.frob.com>
7514
7515         * elf/dl-hwcaps.c (_dl_important_hwcaps):
7516         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
7517         to just [NEED_DL_SYSINFO_DSO].
7518         * elf/dl-support.c: Likewise.
7519         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
7520         * elf/rtld.c (dl_main): Likewise.
7521         * elf/setup-vdso.h (setup_vdso): Likewise.
7522         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
7523         * sysdeps/unix/sysv/linux/dl-sysdep.c
7524         (_dl_discover_osversion): Likewise.
7525
7526 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
7527
7528         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
7529         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
7530
7531 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
7532
7533         * NEWS: Mention libm performance improvements and non-x86 PI
7534         futex support.
7535
7536         * csu/libc-start.c (__pthread_initialize_minimal): Change
7537         function arguments.
7538         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
7539
7540 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
7541
7542         [BZ #13550]
7543         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
7544         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
7545         <bp-sym.h> and <bp-asm.h>.
7546         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7547         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
7548         and <bp-asm.h>.
7549         (memcpy): Don't use BP_SYM.
7550         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
7551         <bp-asm.h>.
7552         (__mpn_add_n): Don't use BP_SYM.
7553         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
7554         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
7555         and <bp-asm.h>.
7556         (__mpn_addmul_1): Don't use BP_SYM.
7557         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7558         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
7559         <bp-sym.h>.
7560         (_setjmp): Don't use BP_SYM.
7561         (__novmx_setjmp): Likewise.
7562         (__GI__setjmp): Likewise.
7563         (__vmx_setjmp): Likewise.
7564         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
7565         <bp-sym.h>.
7566         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
7567         (__bzero): Don't use BP_SYM.
7568         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7569         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7570         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
7571         <bp-sym.h> and <bp-asm.h>.
7572         (memcpy): Don't use BP_SYM.
7573         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
7574         <bp-sym.h> and <bp-asm.h>.
7575         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7576         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
7577         <bp-sym.h> and <bp-asm.h>.
7578         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7579         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
7580         <bp-asm.h>.
7581         (__mpn_lshift): Don't use BP_SYM.
7582         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7583         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
7584         <bp-asm.h>.
7585         (memset): Don't use BP_SYM.
7586         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7587         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7588         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
7589         <bp-asm.h>.
7590         (__mpn_mul_1): Don't use BP_SYM.
7591         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7592         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
7593         <bp-sym.h> and <bp-asm.h>.
7594         (memcmp): Don't use BP_SYM.
7595         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
7596         <bp-sym.h> and <bp-asm.h>.
7597         (memcpy): Don't use BP_SYM.
7598         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
7599         <bp-sym.h> and <bp-asm.h>.
7600         (memset): Don't use BP_SYM.
7601         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
7602         <bp-sym.h> and <bp-asm.h>.
7603         (strncmp): Don't use BP_SYM.
7604         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
7605         <bp-sym.h> and <bp-asm.h>.
7606         (memcpy): Don't use BP_SYM.
7607         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
7608         <bp-sym.h> and <bp-asm.h>.
7609         (memset): Don't use BP_SYM.
7610         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
7611         <bp-sym.h> and <bp-asm.h>.
7612         (__memchr): Don't use BP_SYM.
7613         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
7614         <bp-sym.h> and <bp-asm.h>.
7615         (memcmp): Don't use BP_SYM.
7616         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
7617         <bp-sym.h> and <bp-asm.h>.
7618         (memcpy): Don't use BP_SYM.
7619         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
7620         <bp-sym.h> and <bp-asm.h>.
7621         (__mempcpy): Don't use BP_SYM.
7622         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
7623         <bp-sym.h> and <bp-asm.h>.
7624         (__memrchr): Don't use BP_SYM.
7625         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
7626         <bp-sym.h> and <bp-asm.h>.
7627         (memset): Don't use BP_SYM.
7628         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
7629         <bp-sym.h> and <bp-asm.h>.
7630         (__rawmemchr): Don't use BP_SYM.
7631         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
7632         <bp-sym.h> and <bp-asm.h>.
7633         (__STRCMP): Don't use BP_SYM.
7634         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
7635         <bp-sym.h> and <bp-asm.h>.
7636         (strchr): Don't use BP_SYM.
7637         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
7638         <bp-sym.h> and <bp-asm.h>.
7639         (__strchrnul): Don't use BP_SYM.
7640         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
7641         <bp-sym.h> and <bp-asm.h>.
7642         (strlen): Don't use BP_SYM.
7643         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
7644         <bp-sym.h> and <bp-asm.h>.
7645         (strncmp): Don't use BP_SYM.
7646         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
7647         <bp-sym.h> and <bp-asm.h>.
7648         (__strnlen): Don't use BP_SYM.
7649         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
7650         <bp-asm.h>.
7651         (__mpn_rshift): Don't use BP_SYM.
7652         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7653         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
7654         <bp-sym.h> and <bp-asm.h>.
7655         (__sigsetjmp): Don't use BP_SYM.
7656         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
7657         (L(start_addresses)): Don't use BP_SYM.
7658         (_start): Likewise.
7659         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
7660         <bp-asm.h>.
7661         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
7662         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7663         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7664         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
7665         <bp-asm.h>.
7666         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
7667         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7668         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7669         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
7670         <bp-asm.h>.
7671         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
7672         comments.
7673         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7674         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
7675         <bp-asm.h>.
7676         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
7677         FIXME comments.
7678         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7679         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7680         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
7681         <bp-asm.h>.
7682         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
7683         comment.
7684         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
7685         and <bp-asm.h>.
7686         (strncmp): Don't use BP_SYM,
7687         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
7688         <bp-asm.h>.
7689         (__mpn_sub_n): Don't use BP_SYM.
7690         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7691         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
7692         and <bp-asm.h>.
7693         (__mpn_submul_1): Don't use BP_SYM.
7694         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/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/powerpc32/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-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7704
7705         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
7706         Use ZK to minimize writes to Z.
7707         (sub_magnitudes): Simplify code a bit.
7708         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
7709         Use ZK to minimize writes to Z.
7710         (sub_magnitudes): Simplify code a bit.
7711
7712 2013-02-27  Roland McGrath  <roland@hack.frob.com>
7713
7714         * csu/gmon-start.c: Add special exception to license text.
7715
7716 2013-02-27  Richard Henderson  <rth@redhat.com>
7717
7718         * scripts/config.guess: Update from config.git.
7719         * scripts/config.sub: Likewise.
7720
7721 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7722
7723         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
7724
7725         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
7726
7727         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
7728
7729         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
7730
7731         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
7732
7733 2013-02-26  Roland McGrath  <roland@hack.frob.com>
7734
7735         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
7736         [$(build-shared = yes].
7737
7738 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7739
7740         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
7741         (__mul): Reduce iterations for calculating mantissa.
7742
7743         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
7744         MPTWO.
7745         (__mpranred): Likewise.
7746
7747         [BZ #15160]
7748         * malloc/memusagestat.c (main): Draw graphs for heap and stack
7749         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
7750
7751 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7752
7753         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
7754         Define __attribute__.
7755
7756 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7757
7758         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
7759         unused.
7760         * posix/regex_internal.h (__attribute): Remove.
7761         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
7762         (re_string_context_at): Likewise.
7763         (bitset_not): Use __attribute__ and mark function as possibly
7764         unused.
7765         (bitset_merge): Likewise.
7766         (bitset_mask): Likewise.
7767         (re_string_char_size_at): Likewise.
7768         (re_string_wchar_at): Likewise.
7769         (re_string_elem_size_at): Likewise.
7770
7771 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7772
7773         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
7774         code.
7775         (cc32): Likewise.
7776
7777         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
7778         (__acr): Likewise.
7779         (__cpy): Likewise.
7780         (norm): Likewise.
7781         (denorm): Likewise.
7782         (__dbl_mp): Likewise.
7783         (add_magnitudes): Likewise.
7784         (sub_magnitudes): Likewise.
7785         (__mul): Likewise.
7786         (__inv): Likewise.
7787
7788         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
7789         style.
7790
7791         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
7792         style.
7793
7794         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
7795         code.
7796
7797         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
7798         up changes with default code.
7799         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
7800         Likewise.
7801
7802 2013-02-24  Allan McRae  <allan@archlinux.org>
7803
7804         * manual/socket.texi (The Internet Namespace): Order menu items
7805         to match that in the file.
7806
7807         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
7808         node listing of the info page menu.
7809
7810 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
7811
7812         [BZ #13550]
7813         * sysdeps/i386/bp-asm.h: Remove file.
7814         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
7815         (PARMS): Do not use macros from bp-asm.h.
7816         (S1): Likewise.
7817         (S2): Likewise.
7818         (SIZE): Likewise.
7819         (__mpn_add_n): Do not use BP_SYM
7820         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
7821         "bp-asm.h".
7822         (PARMS): Do not use macros from bp-asm.h.
7823         (S1): Likewise.
7824         (SIZE): Likewise.
7825         (__mpn_addmul_1): Do not use BP_SYM
7826         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
7827         "bp-asm.h".
7828         (PARMS): Do not use macros from bp-asm.h.
7829         (SIGMSK): Likewise.
7830         (_setjmp): Likewise.  Do not use BP_SYM.
7831         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
7832         "bp-asm.h".
7833         (PARMS): Do not use macros from bp-asm.h.
7834         (SIGMSK): Likewise.
7835         (setjmp): Likewise.  Do not use BP_SYM.
7836         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
7837         "bp-asm.h".
7838         (PARMS): Do not use macros from bp-asm.h.
7839         (__frexp): Do not use BP_SYM.
7840         (frexp): Likewise.
7841         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
7842         "bp-asm.h".
7843         (PARMS): Do not use macros from bp-asm.h.
7844         (__frexpf): Do not use BP_SYM.
7845         (frexpf): Likewise.
7846         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
7847         "bp-asm.h".
7848         (PARMS): Do not use macros from bp-asm.h.
7849         (__frexpl): Do not use BP_SYM.
7850         (frexpl): Likewise.
7851         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
7852         "bp-asm.h".
7853         (PARMS): Do not use macros from bp-asm.h.
7854         (__remquo): Do not use BP_SYM.
7855         (remquo): Likewise.
7856         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
7857         "bp-asm.h".
7858         (PARMS): Do not use macros from bp-asm.h.
7859         (__remquof): Do not use BP_SYM.
7860         (remquof): Likewise.
7861         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
7862         "bp-asm.h".
7863         (PARMS): Do not use macros from bp-asm.h.
7864         (__remquol): Do not use BP_SYM.
7865         (remquol): Likewise.
7866         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
7867         "bp-asm.h".
7868         (PARMS): Do not use macros from bp-asm.h.
7869         (DEST): Likewise.
7870         (SRC): Likewise.
7871         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
7872         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
7873         "bp-asm.h".
7874         (PARMS): Do not use macros from bp-asm.h.
7875         (strlen): Do not use BP_SYM.
7876         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
7877         "bp-asm.h".
7878         (PARMS): Do not use macros from bp-asm.h.
7879         (S1): Likewise.
7880         (S2): Likewise.
7881         (SIZE): Likewise.
7882         (__mpn_add_n): Do not use BP_SYM.
7883         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
7884         "bp-asm.h".
7885         (PARMS): Do not use macros from bp-asm.h.
7886         (S1): Likewise.
7887         (SIZE): Likewise.
7888         (__mpn_addmul_1): Do not use BP_SYM.
7889         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
7890         weak_alias.
7891         (bzero): Likewise.
7892         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
7893         "bp-asm.h".
7894         (PARMS): Do not use macros from bp-asm.h.
7895         (S): Likewise.
7896         (SIZE): Likewise.
7897         (__mpn_lshift): Do not use BP_SYM.
7898         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
7899         "bp-asm.h".
7900         (PARMS): Do not use macros from bp-asm.h.
7901         (DEST): Likewise.
7902         (SRC): Likewise.
7903         (LEN): Likewise.
7904         (memcpy): Likewise.  Do not use BP_SYM.
7905         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
7906         libc_hidden_def and weak_alias.
7907         (mempcpy): Do not use BP_SYM in weak_alias.
7908         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
7909         "bp-asm.h".
7910         (PARMS): Do not use macros from bp-asm.h.
7911         (DEST): Likewise.
7912         (LEN): Likewise.
7913         [!BZERO_P] (CHR): Likewise.
7914         (memset): Likewise.  Do not use BP_SYM.
7915         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
7916         "bp-asm.h".
7917         (PARMS): Do not use macros from bp-asm.h.
7918         (S1): Likewise.
7919         (SIZE): Likewise.
7920         (__mpn_mul_1): Do not use BP_SYM.
7921         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
7922         "bp-asm.h".
7923         (PARMS): Do not use macros from bp-asm.h.
7924         (S): Likewise.
7925         (SIZE): Likewise.
7926         (__mpn_rshift): Do not use BP_SYM.
7927         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
7928         "bp-asm.h".
7929         (PARMS): Do not use macros from bp-asm.h.
7930         (STR): Likewise.
7931         (CHR): Likewise.
7932         (strchr): Likewise.  Do not use BP_SYM.
7933         (index): Do not use BP_SYM in weak_alias.
7934         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
7935         "bp-asm.h".
7936         (PARMS): Do not use macros from bp-asm.h.
7937         (DEST): Likewise.
7938         (SRC): Likewise.
7939         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
7940         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
7941         "bp-asm.h".
7942         (PARMS): Do not use macros from bp-asm.h.
7943         (strlen): Do not use BP_SYM.
7944         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
7945         "bp-asm.h".
7946         (PARMS): Do not use macros from bp-asm.h.
7947         (S1): Likewise.
7948         (S2): Likewise.
7949         (SIZE): Likewise.
7950         (__mpn_sub_n): Do not use BP_SYM.
7951         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
7952         "bp-asm.h".
7953         (PARMS): Do not use macros from bp-asm.h.
7954         (S1): Likewise.
7955         (SIZE): Likewise.
7956         (__mpn_submul_1): Do not use BP_SYM.
7957         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
7958         "bp-asm.h".
7959         (PARMS): Do not use macros from bp-asm.h.
7960         (S1): Likewise.
7961         (S2): Likewise.
7962         (SIZE): Likewise.
7963         (__mpn_add_n): Do not use BP_SYM.
7964         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
7965         weak_alias.
7966         (bzero): Likewise.
7967         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
7968         "bp-asm.h".
7969         (PARMS): Do not use macros from bp-asm.h.
7970         (BLK2): Likewise.
7971         (LEN): Likewise.
7972         (memcmp): Do not use BP_SYM.
7973         (bcmp): Do not use BP_SYM in weak_alias.
7974         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
7975         "bp-asm.h".
7976         (PARMS): Do not use macros from bp-asm.h.
7977         (DEST): Likewise.
7978         (SRC): Likewise.
7979         (LEN): Likewise.
7980         (memcpy): Likewise.  Do not use BP_SYM.
7981         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
7982         "bp-asm.h".
7983         (PARMS): Do not use macros from bp-asm.h.
7984         (DEST): Likewise.
7985         (SRC): Likewise.
7986         (LEN): Likewise.
7987         (memmove): Likewise.  Do not use BP_SYM.
7988         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
7989         "bp-asm.h".
7990         (PARMS): Do not use macros from bp-asm.h.
7991         (DEST): Likewise.
7992         (SRC): Likewise.
7993         (LEN): Likewise.
7994         (__mempcpy): Likewise.  Do not use BP_SYM.
7995         (mempcpy): Do not use BP_SYM in weak_alias.
7996         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
7997         "bp-asm.h".
7998         (PARMS): Do not use macros from bp-asm.h.
7999         (DEST): Likewise.
8000         (LEN): Likewise.
8001         [!BZERO_P] (CHR): Likewise.
8002         (memset): Likewise.  Do not use BP_SYM.
8003         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
8004         "bp-asm.h".
8005         (PARMS): Do not use macros from bp-asm.h.
8006         (STR2): Likewise.
8007         (strcmp): Do not use BP_SYM.
8008         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
8009         "bp-asm.h".
8010         (PARMS): Do not use macros from bp-asm.h.
8011         (STR): Likewise.
8012         (DELIM): Likewise.
8013         [USE_AS_STRTOK_R] (SAVE): Likewise.
8014         (FUNCTION): Likewise.  Do not use BP_SYM.
8015         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
8016         aliases.
8017         (strtok_r): Likewise.
8018         (__GI___strtok_r): Likewise.
8019         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8020         (PARMS): Do not use macros from bp-asm.h.
8021         (S): Likewise.
8022         (SIZE): Likewise.
8023         (__mpn_lshift): Do not use BP_SYM.
8024         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8025         (PARMS): Do not use macros from bp-asm.h.
8026         (STR): Likewise.
8027         (CHR): Likewise.
8028         (__memchr): Do not use BP_SYM.
8029         (memchr): Do not use BP_SYM in weak_alias.
8030         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8031         (PARMS): Do not use macros from bp-asm.h.
8032         (BLK2): Likewise.
8033         (LEN): Likewise.
8034         (memcmp): Do not use BP_SYM.
8035         (bcmp): Do not use BP_SYM in weak_alias.
8036         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
8037         (PARMS): Do not use macros from bp-asm.h.
8038         (S1): Likewise.
8039         (SIZE): Likewise.
8040         (__mpn_mul_1): Do not use BP_SYM.
8041         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
8042         "bp-asm.h".
8043         (PARMS): Do not use macros from bp-asm.h.
8044         (STR): Likewise.
8045         (CHR): Likewise.
8046         (__rawmemchr): Do not use BP_SYM.
8047         (rawmemchr): Do not use BP_SYM in weak_alias.
8048         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8049         (PARMS): Do not use macros from bp-asm.h.
8050         (S): Likewise.
8051         (SIZE): Likewise.
8052         (__mpn_rshift): Do not use BP_SYM.
8053         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8054         (PARMS): Do not use macros from bp-asm.h.
8055         (SIGMSK): Likewise.
8056         (__sigsetjmp): Likewise.  Do not use BP_SYM.
8057         * sysdeps/i386/start.S: Do not include "bp-sym.h".
8058         (_start): Do not use BP_SYM.
8059         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
8060         (PARMS): Do not use macros from bp-asm.h.
8061         (DEST): Likewise.
8062         (SRC): Likewise.
8063         (__stpcpy): Likewise.  Do not use BP_SYM.
8064         (stpcpy): Do not use BP_SYM in weak_alias.
8065         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
8066         "bp-asm.h".
8067         (PARMS): Do not use macros from bp-asm.h.
8068         (DEST): Likewise.
8069         (SRC): Likewise.
8070         (LEN): Likewise.
8071         (__stpncpy): Likewise.  Do not use BP_SYM.
8072         (stpncpy): Do not use BP_SYM in weak_alias.
8073         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8074         (PARMS): Do not use macros from bp-asm.h.
8075         (STR): Likewise.
8076         (CHR): Likewise.
8077         (strchr): Likewise.  Do not use BP_SYM.
8078         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
8079         "bp-asm.h".
8080         (PARMS): Do not use macros from bp-asm.h.
8081         (STR): Likewise.
8082         (CHR): Likewise.
8083         (__strchrnul): Likewise.  Do not use BP_SYM.
8084         (strchrnul): Do not use BP_SYM in weak_alias.
8085         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
8086         "bp-asm.h".
8087         (PARMS): Do not use macros from bp-asm.h.
8088         (STOP): Likewise.
8089         (strcspn): Do not use BP_SYM.
8090         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
8091         "bp-asm.h".
8092         (PARMS): Do not use macros from bp-asm.h.
8093         (STR): Likewise.
8094         (STOP): Likewise.
8095         (strpbrk): Likewise.  Do not use BP_SYM.
8096         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
8097         "bp-asm.h".
8098         (PARMS): Do not use macros from bp-asm.h.
8099         (STR): Likewise.
8100         (CHR): Likewise.
8101         (strrchr): Likewise.  Do not use BP_SYM.
8102         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
8103         (PARMS): Do not use macros from bp-asm.h.
8104         (SKIP): Likewise.
8105         (strspn): Do not use BP_SYM.
8106         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
8107         (PARMS): Do not use macros from bp-asm.h.
8108         (STR): Likewise.
8109         (DELIM): Likewise.
8110         (SAVE): Likewise.
8111         (FUNCTION): Likewise.  Do not use BP_SYM.
8112         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
8113         aliases.
8114         (strtok_r): Likewise.
8115         (__GI___strtok_r): Likewise.
8116         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8117         (PARMS): Do not use macros from bp-asm.h.
8118         (S1): Likewise.
8119         (S2): Likewise.
8120         (SIZE): Likewise.
8121         (__mpn_sub_n): Do not use BP_SYM.
8122         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
8123         "bp-asm.h".
8124         (PARMS): Do not use macros from bp-asm.h.
8125         (S1): Likewise.
8126         (SIZE): Likewise.
8127         (__mpn_submul_1): Do not use BP_SYM.
8128         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
8129         <bp-sym.h>.
8130         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
8131         and <bp-asm.h>.
8132         (PARMS): Do not use macros from bp-asm.h.
8133         (FLAGS): Likewise.
8134         (PTID): Likewise.
8135         (TLS): Likewise.
8136         (CTID): Likewise.
8137         (__clone): Do not use BP_SYM.
8138         (clone): Do not use BP_SYM in weak_alias.
8139         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
8140         and <bp-asm.h>.
8141         (PARMS): Do not use macros from bp-asm.h.
8142         (LEN): Likewise.
8143         (__mmap64): Do not use BP_SYM.
8144         (mmap64): Do not use BP_SYM in weak_alias.
8145         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8146         <bp-sym.h> and <bp-asm.h>.
8147         (PARMS): Do not use macros from bp-asm.h.
8148         (__posix_fadvise64_l64): Do not use BP_SYM.
8149         * sysdeps/unix/sysv/linux/i386/semtimedop.S
8150         (PARMS): Do not use macros from bp-asm.h.
8151         (NSOPS): Likewise.
8152         (semtimedop): Do not use BP_SYM.
8153         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
8154         and <bp-asm.h>.
8155
8156 2013-02-21  Allan McRae  <allan@archlinux.org>
8157
8158         * manual/message.texi (Charset conversion in gettext):
8159         Move @end statement to beginning of line.
8160
8161 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8162
8163         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
8164         static.
8165         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
8166         Likewise.
8167
8168         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
8169         (denorm): Likewise.
8170         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
8171         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
8172
8173 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8174
8175         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
8176         tail-call to the resolved function if pltexit isn't needed.
8177
8178 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8179
8180         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
8181         or Y being zero as being unlikely.
8182         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
8183         Likewise.
8184
8185 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
8186
8187         * manual/nss.texi (System Databases and Name Service Switch):
8188         Remove frobnicate @pxref.
8189
8190 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8191
8192         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8193         __attribute__ ((unused)) to __attribute__ ((__unused__)).
8194
8195 2013-02-20  Petr Machata  <pmachata@redhat.com>
8196
8197         * elf/elf.h (R_ARM_TARGET1): New macro.
8198         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
8199         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
8200         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
8201         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
8202         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
8203         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
8204         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
8205         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
8206         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
8207         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
8208         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
8209         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
8210         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
8211         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
8212         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
8213         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
8214         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
8215         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
8216         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
8217         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
8218         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
8219         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
8220         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
8221         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
8222         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
8223         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
8224         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
8225         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
8226         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
8227         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
8228         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
8229         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
8230         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
8231         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
8232         (R_ARM_THM_GOT_BREL12): Likewise.
8233         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
8234         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
8235         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
8236         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
8237         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
8238         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
8239         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
8240         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
8241         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
8242
8243 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8244
8245         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8246         __attribute_used__ to __attribute__ ((unused)).
8247
8248 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8249
8250         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
8251         powerpc mpa.c.
8252         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
8253         comment formatting.
8254         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
8255
8256 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
8257
8258         [BZ #13550]
8259         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
8260         Remove macro.
8261         (ENTER): Remove both macro definitions.
8262         (LEAVE): Likewise.
8263         (CHECK_BOUNDS_LOW): Likewise.
8264         (CHECK_BOUNDS_HIGH): Likewise.
8265         (CHECK_BOUNDS_BOTH): Likewise.
8266         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
8267         (RETURN_BOUNDED_POINTER): Likewise.
8268         (RETURN_NULL_BOUNDED_POINTER): Likewise.
8269         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
8270         (POP_ERRNO_LOCATION_RETURN): Likewise.
8271         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
8272         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8273         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
8274         macros.
8275         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8276         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
8277         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
8278         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
8279         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
8280         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
8281         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
8282         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
8283         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
8284         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
8285         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
8286         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
8287         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8288         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
8289         removed macros.
8290         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8291         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
8292         macros.
8293         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8294         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
8295         * sysdeps/i386/i586/memset.S (memset): Likewise.
8296         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
8297         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8298         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
8299         macros.
8300         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8301         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
8302         Change uses of L(2) to L(out).
8303         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
8304         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
8305         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
8306         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8307         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
8308         removed macros.
8309         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8310         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
8311         macros.
8312         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8313         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
8314         (RETURN): Do not use macro LEAVE.
8315         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
8316         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
8317         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
8318         * sysdeps/i386/i686/memset.S (memset): Likewise.
8319         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
8320         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
8321         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8322         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
8323         Likewise.
8324         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8325         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
8326         L(1_2) and L(1_3) into L(1).
8327         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8328         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
8329         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8330         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
8331         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8332         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
8333         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
8334         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8335         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
8336         macros.
8337         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
8338         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8339         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
8340         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
8341         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
8342         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8343         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
8344         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
8345         * sysdeps/i386/strcspn.S (strcspn): Likewise.
8346         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
8347         * sysdeps/i386/strrchr.S (strrchr): Likewise.
8348         * sysdeps/i386/strspn.S (strspn): Likewise.
8349         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
8350         conditional code.
8351         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8352         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
8353         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8354         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
8355         L(1_3) into L(1_1).
8356         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
8357         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8358         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
8359         macros.
8360         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8361
8362 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
8363
8364         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
8365         macro.
8366
8367 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
8368
8369         * math/atest-exp.c (exp_mpn): Remove ROUND.
8370         * math/atest-exp2.c (exp_mpn): Likewise.
8371         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
8372
8373         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
8374         * stdlib/tst-tls-atexit-lib.c: Likewise.
8375         * stdlib/tst-tls-atexit.c: Likewise.
8376
8377 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8378
8379         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
8380         and __attribute_alloc_size__.
8381
8382 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8383
8384         * include/programs/xmalloc.h: Change __attribute_alloc_size to
8385         __attribute_alloc_size__.
8386         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
8387         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
8388
8389 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8390
8391         * include/programs/xmalloc.h: New file.
8392         * catgets/gencat.c: Include it.
8393         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
8394         * elf/pldd.c: Likewise.
8395         * iconv/iconv_charmap.c: Likewise.
8396         * iconv/iconvconfig.c: Likewise.
8397         * iconv/strtab.c: Likewise.
8398         * locale/programs/locale.c: Likewise.
8399         * locale/programs/localedef.h: Likewise.
8400         * locale/programs/simple-hash.c: Likewise.
8401         * nscd/nscd.h: Likewise.
8402         * nss/makedb.c: Likewise.
8403         * sysdeps/generic/ldconfig.h: Likewise.
8404
8405 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8406
8407         * Versions.def: Add GLIBC_2.18.
8408         * include/link.h (struct link_map): New member l_tls_dtor_count.
8409         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
8410         (__call_tls_dtors): Likewise.
8411         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
8412         __cxa_thread_atexit_impl.
8413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8414         Likewise.
8415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8416         Likewise.
8417         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8418         Likewise.
8419         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8420         Likewise.
8421         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8422         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
8423         Likewise.
8424         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
8425         Likewise.
8426         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8427         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
8428         Likewise.
8429         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
8430         (tests): Add test case tst-tls-atexit.
8431         (modules-names): Add shared library for tst-tls-atexit.
8432         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
8433         (GLIBC_PRIVATE): Add __call_tls_dtors.
8434         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
8435         for libstdc++.
8436         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
8437         * stdlib/tst-tls-atexit.c: New test case.
8438         * stdlib/tst-tls-atexit-lib.c: New test case.
8439
8440         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
8441
8442         * elf/Versions (ld): Add _dl_find_dso_for_object.
8443         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
8444         * elf/dl-open.c (_dl_find_dso_for_object): New function.
8445         (dl_open_worker): Use _dl_find_dso_for_object.
8446         * elf/dl-sym.c (do_sym): Likewise.
8447         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
8448
8449 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8450
8451         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
8452         Syntactic changes only.
8453         (_dl_runtime_profile): Do a tail-call to the resolved function.
8454
8455 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
8456
8457         [BZ #13550]
8458         * sysdeps/x86_64/bp-asm.h: Remove file.
8459         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
8460         <bp-sym.h> and <bp-asm.h>.
8461         (__clone): Do not use BP_SYM.
8462         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
8463         <bp-sym.h> and <bp-asm.h>.
8464         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8465         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
8466         "bp-asm.h".
8467         (_setjmp): Do not use BP_SYM.
8468         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
8469         "bp-asm.h".
8470         (setjmp): Do not use BP_SYM.
8471         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
8472         libc_hidden_def.
8473         (mempcpy): Do not use BP_SYM in weak_alias.
8474         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
8475         "bp-asm.h".
8476         (strchr): Do not use BP_SYM.
8477         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
8478         "bp-asm.h".
8479         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
8480         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
8481         (_start): Do not use BP_SYM.
8482         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
8483         "bp-asm.h".
8484         (strcat): Do not use BP_SYM.
8485         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
8486         "bp-asm.h".
8487         (STRCMP): Do not use BP_SYM.
8488         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
8489         "bp-asm.h".
8490         (STRCPY): Do not use BP_SYM.
8491         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
8492         "bp-asm.h".
8493         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
8494         "bp-asm.h".
8495         (FUNCTION): Do not use BP_SYM.
8496         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
8497         weak_alias.
8498         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
8499
8500 2013-02-17  Andreas Jaeger  <aj@suse.de>
8501
8502         * time/Versions: Sort entries.
8503         * string/Versions: Likewise.
8504         * resolv/Versions: Likewise.
8505         * posix/Versions: Likewise.
8506         * iconv/Versions: Likewise.
8507         * elf/Versions: Likewise.
8508         * wcsmbs/Versions: Likewise.
8509
8510 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
8511
8512         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
8513         loop termination condition.
8514
8515         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
8516         variable to calculate EZ.
8517         (__sqr): Likewise.
8518
8519         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
8520         the lower precision input.
8521
8522 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
8523
8524         [BZ #13550]
8525         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
8526         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
8527         (run-via-rtld-prefix): Do not handle %-bp tests.
8528         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
8529         (all-object-suffixes): Remove .ob.
8530         (bppfx): Remove variable.
8531         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
8532         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
8533         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
8534         [$(build-bounded) = yes] (libtype.ob): Likewise.
8535         * Makerules (elide-routines.ob): Remove variable.
8536         (do-tests-clean): Do not handle *-bp.out.
8537         (common-mostlyclean): Do not handle *-bp and *-bp.out.
8538         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
8539         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
8540         (tests): Do not include $(tests-bp.out).
8541         (xtests): Do not include $(xtests-bp.out).
8542         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
8543         [$(build-bounded) = yes] ($(addprefix
8544         $(objpfx),$(binaries-bounded))): Remove rule.
8545         ($(objpfx)%-bp.out): Remove rule.
8546         * config.make.in (build-bounded): Remove variable.
8547         * crypt/Makefile [$(build-bounded) = yes]
8548         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
8549         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
8550         append to variable.
8551         [$(build-bounded) = yes] (install-lib): Likewise.
8552         [$(build-bounded) = yes] (generated): Likewise.
8553         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
8554         Remove rule.
8555         * intl/Makefile [$(build-bounded) = yes]
8556         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
8557         * math/Makefile [$(build-bounded) = yes]
8558         ($(tests:%=$(objpfx)%-bp): Likewise.
8559         * misc/Makefile [$(build-bounded) = yes]
8560         ($(objpfx)tst-tsearch-bp): Likewise.
8561         * nptl/Makeconfig (bounded-thread-library): Remove variable.
8562         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
8563         Remove dependency.
8564         * string/Makefile (o-objects.ob): Remove variable.
8565         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
8566         (CFLAGS-.ob): Remove variable.
8567         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
8568         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
8569         both definitions of variable.
8570         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
8571         (ASFLAGS-.ob): Remove variable.
8572
8573 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
8574
8575         [BZ #13550]
8576         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
8577         Remove __BOUNDED_POINTERS__ from condition.
8578         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
8579         * string/bits/string2.h [!__NO_STRING_INLINES &&
8580         !__BOUNDED_POINTERS__]: Likewise.
8581         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
8582         Likewise.
8583         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
8584         Remove conditional code.
8585         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
8586         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
8587         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
8588         condition.
8589
8590         [BZ #13550]
8591         * csu/libc-start.c: Do not include <bp-sym.h>.
8592         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
8593         * elf/dl-open.c: Do not include <bp-sym.h>.
8594         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
8595         * math/fegetenv.c: Do not include <bp-sym.h>.
8596         (fegetenv): Do not use BP_SYM in versioned symbols.
8597         * nptl/sysdeps/pthread/bits/libc-lockP.h
8598         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
8599         <bp-sym.h>.
8600         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8601         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
8602         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8603         (__pthread_mutex_destroy): Likewise.
8604         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8605         (__pthread_mutex_lock): Likewise.
8606         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8607         (__pthread_mutex_trylock): Likewise.
8608         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8609         (__pthread_mutex_unlock): Likewise.
8610         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8611         (__pthread_mutexattr_init): Likewise.
8612         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8613         (__pthread_mutexattr_destroy): Likewise.
8614         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8615         (__pthread_mutexattr_settype): Likewise.
8616         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8617         (__pthread_rwlock_init): Likewise.
8618         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8619         (__pthread_rwlock_destroy): Likewise.
8620         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8621         (__pthread_rwlock_rdlock): Likewise.
8622         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8623         (__pthread_rwlock_tryrdlock): Likewise.
8624         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8625         (__pthread_rwlock_wrlock): Likewise.
8626         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8627         (__pthread_rwlock_trywrlock): Likewise.
8628         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8629         (__pthread_rwlock_unlock): Likewise.
8630         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8631         (__pthread_key_create): Likewise.
8632         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8633         (__pthread_setspecific): Likewise.
8634         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8635         (__pthread_getspecific): Likewise.
8636         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
8637         Likewise.
8638         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8639         (_pthread_cleanup_push_defer): Likewise.
8640         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8641         (_pthread_cleanup_pop_restore): Likewise.
8642         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8643         (pthread_setcancelstate): Likewise.
8644         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
8645         <bp-sym.h>.
8646         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
8647         (memchr): Do not use BP_SYM in weak_alias.
8648         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
8649         (fegetenv): Do not use BP_SYM in versioned symbols.
8650         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
8651         (fesetenv): Do not use BP_SYM in versioned symbols.
8652         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
8653         (feupdateenv): Do not use BP_SYM in versioned symbols.
8654         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
8655         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
8656         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
8657         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
8658         (open64): Do not use BP_SYM in weak_alias.
8659         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
8660         (fegetenv): Do not use BP_SYM in versioned symbols.
8661         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
8662         (fesetenv): Do not use BP_SYM in versioned symbols.
8663         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
8664         (feupdateenv): Do not use BP_SYM in versioned symbols.
8665         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
8666         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
8667         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
8668         (feraiseexcept): Do not use BP_SYM in versioned symbols.
8669         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
8670         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
8671         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
8672         <bp-sym.h>.
8673         (__libc_start_main): Do not use BP_SYM.
8674
8675 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
8676
8677         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
8678         redundant return line.
8679         (norm): Likewise.
8680         (denorm): Likewise.
8681         (dbl_mp): Likewise.
8682         (sub_magnitudes): Likewise.
8683         (__add): Likewise.
8684         (__sub): Likewise.
8685         (__mul): Likewise.
8686         (__inv): Likewise.
8687         (__dvd): Likewise.
8688         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
8689         (norm): Likewise.
8690         (denorm): Likewise.
8691         (dbl_mp): Likewise.
8692         (sub_magnitudes): Likewise.
8693         (__add): Likewise.
8694         (__sub): Likewise.
8695         (__mul): Likewise.
8696         (__inv): Likewise.
8697         (__dvd): Likewise.
8698
8699         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
8700         instead of __mul.
8701         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8702         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
8703         (cc32): Likewise.
8704
8705         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
8706         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
8707         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
8708         of __mul for squares.
8709         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
8710         function
8711         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
8712         Likewise.
8713         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
8714         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8715
8716 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
8717
8718         [BZ #13550]
8719         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
8720         code.
8721         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
8722         prototype or function definition.  Rename ubp_* variables and
8723         parameters.  Remove argv definitions conditional on
8724         [__BOUNDED_POINTERS__].
8725         * debug/backtrace.c (__backtrace): Do not use __unbounded.
8726         * elf/dl-runtime.c (_dl_fixup): Likewise.
8727         * include/set-hooks.h (RUN_HOOK): Likewise.
8728         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
8729         definition.
8730         * string/strcpy.c (strcpy): Do not use __unbounded.
8731         * sysdeps/generic/frame.h (struct layout): Likewise.
8732         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
8733         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
8734         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
8735         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
8736         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
8737         (__backtrace): Likewise.
8738         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
8739         use __ptrvalue.
8740         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
8741         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8742         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8743         Likewise.
8744         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
8745         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
8746         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8747         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8748         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
8749         Do not use __unbounded.
8750         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
8751         Rename __unboundedrlimits parameter to rlimits in prototype.
8752         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
8753         Do not use __unbounded.
8754         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
8755         not use __ptrvalue.
8756         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8757         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
8758         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
8759         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
8760         __ptrvalue or __unbounded.
8761         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
8762         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
8763         use __unbounded.
8764         (__new_msgctl): Do not use __ptrvalue.
8765         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
8766         __unbounded.
8767         (__libc_msgrcv): Do not use __ptrvalue.
8768         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
8769         startup_info): Do not use __unbounded.
8770         (__libc_start_main): Likewise.  Rename ubp_* variables and
8771         parameters.  Remove argv definitions conditional on
8772         [__BOUNDED_POINTERS__].
8773         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
8774         __ptrvalue.
8775         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
8776         use __unbounded.
8777         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
8778         or __ptrvalue.
8779         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
8780         use __unbounded.
8781         (__new_shmctl): Do not use __ptrvalue.
8782         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8783         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8784         Likewise.
8785         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8786         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
8787         (__libc_sigaction): Likewise.
8788         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
8789         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
8790         Likewise.
8791         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
8792
8793 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
8794
8795         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
8796
8797         * string/mempcpy.c: Implement by calling memcpy.
8798
8799 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
8800
8801         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
8802
8803         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
8804         evaluation.
8805
8806         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
8807         values in the mantissa.
8808
8809         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
8810         minimize writes to Z.
8811         (sub_magnitudes): Simplify code a bit.
8812
8813 2013-02-12  Roland McGrath  <roland@hack.frob.com>
8814
8815         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
8816         from the message.  The linker prefixes all warnings with that already.
8817
8818 2013-02-12  Andreas Schwab  <schwab@suse.de>
8819
8820         [BZ #15078]
8821         * posix/regexec.c (extend_buffers): Add parameter min_len.
8822         (check_matching): Pass minimum needed length.
8823         (clean_state_log_if_needed): Likewise.
8824         (get_subexp): Likewise.
8825         * posix/Makefile (tests): Add bug-regex34.
8826         (bug-regex34-ENV): Define.
8827         * posix/bug-regex34.c: New file.
8828
8829         [BZ #11561]
8830         * posix/regcomp.c (parse_bracket_exp): When looking up collating
8831         elements compare against the byte sequence of it, not its name.
8832         * posix/Makefile (tests): Add bug-regex35.
8833         (bug-regex35-ENV): Define.
8834         * posix/bug-regex35.c: New file.
8835
8836 2013-02-11  Tom de Vries  <tom@codesourcery.com>
8837
8838         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
8839         comment.
8840         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
8841         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
8842         (CHECK_EOL): Add undef.
8843
8844 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
8845
8846         * bits/stdlib-bsearch.h: New file.
8847         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
8848         * stdlib/stdlib.h: Likewise.
8849
8850 2013-02-11  Roland McGrath  <roland@hack.frob.com>
8851
8852         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
8853         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
8854         declaration.
8855         * manual/search.texi (Array Search Function): Add missing const in
8856         lfind prototype.
8857         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
8858         declaration to use rlim_t.
8859         (Basic Scheduling Functions): Remove erroneous const from
8860         sched_getparam prototype.  Remove erroneous * from
8861         sched_get_priority_max and sched_get_priority_min prototypes.
8862         (Resource Usage): Fix summary @comment on vtimes to refer to
8863         sys/vtimes.h rather than vtimes.h.
8864         Add missing *s in vtimes prototype.
8865         (Limits on Resources): Fix ulimit prototype to return long int.
8866         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
8867         prototypes to use long int rather than double.
8868         (BSD Random): Fix initstate and setstate to use char *, not void *.
8869         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
8870         prototype to make second argument 'struct aiocb64 *const[]'.
8871         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
8872         (Status of AIO Operations): Remove erroneous const in aio_return and
8873         aio_return64 prototypes.
8874         (Synchronizing I/O): Fix sync prototype to return void.
8875         * manual/startup.texi (Suboptions): Remove an erroneous const in
8876         getsubopt prototype.
8877         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
8878         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
8879         use size_t rather than int.
8880         (Scanning All Users): Likewise for getpwent_r.
8881         (Setting Groups): Add missing const to setgroups prototype.
8882         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
8883         * manual/socket.texi (Host Names): Fix gethostbyaddr and
8884         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
8885         'const void *' rather than 'const char *'.
8886         (Host Address Functions): Likewise for inet_ntop.
8887         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
8888         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
8889         ssize_t for return value.
8890         (Sending Data): Likewise for send, sendto, sendmsg.
8891         (Socket Option Functions): Add a missing const in setsockopt prototype.
8892         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
8893         use wchar_t for the argument.
8894         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
8895         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
8896         take no arguments.
8897         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
8898         double/float/long double for second argument.
8899         Fix return types of significand, significandf, significandl.
8900         * manual/filesys.texi (Setting Permissions): Use mode_t for second
8901         argument in fchmod prototype.
8902         (File Owner): Use uid_t and gid_t in fchown prototype.
8903         (File Times): Add const to utimes, futimes, and lutimes prototypes.
8904         (Making Special Files): Use mode_t and dev_t in mknod prototype.
8905         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
8906         use 'const struct dirent **' as argument types to CMP function pointer
8907         argument.
8908         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
8909         (File Times): Fix summary magic @comment for struct utimbuf and utime
8910         to refer to utime.h, not time.h.
8911         * manual/string.texi (Argz Functions): Add missing const in
8912         argz_extract and argz_next prototypes.
8913         (Finding Tokens in a String): Likewise for basename.
8914         (String/Array Comparison): Fix typo in wcscasecmp prototype.
8915         (Copying and Concatenation): Fix typo in wmemmove prototype.
8916         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
8917         (Signal Stack): Remove erroneous const in sigstack prototype.
8918         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
8919         prototype.
8920         (Simple Calendar Time): Likewise for stime.
8921         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
8922         prototype.
8923         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
8924         say sys/sysctl.h instead.
8925         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
8926         and vsyslog prototypes.
8927
8928 2013-02-11  Tom de Vries  <tom@codesourcery.com>
8929
8930         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
8931         Remove.
8932
8933 2013-02-11  Roland McGrath  <roland@hack.frob.com>
8934
8935         * misc/sys/mman.h: Fix typo in mremap comment.
8936
8937 2013-02-08  Roland McGrath  <roland@hack.frob.com>
8938
8939         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
8940         the '\0' terminator.
8941
8942 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
8943
8944         [BZ #13550]
8945         * debug/segfault.c: Don't include <bp-checks.h>.
8946         * sysdeps/generic/bp-checks.h: Remove file.
8947         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
8948         (__GETDENTS): Don't use CHECK_N.
8949         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
8950         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
8951         (__getgroups): Don't use CHECK_N.
8952         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
8953         (setgroups): Don't use CHECK_N.
8954         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
8955         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8956         (__libc_msgrcv): Don't use CHECK_N.
8957         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
8958         (__libc_msgsnd): Don't use CHECK_N.
8959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
8960         <bp-checks.h>.
8961         (__libc_pread): Don't use CHECK_N.
8962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
8963         include <bp-checks.h>.
8964         (__libc_pread64): Don't use CHECK_N.
8965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
8966         include <bp-checks.h>.
8967         (__libc_pwrite): Don't use CHECK_N.
8968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
8969         include <bp-checks.h>.
8970         (__libc_pwrite64): Don't use CHECK_N.
8971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
8972         <bp-checks.h>.
8973         (__libc_pread): Don't use CHECK_N.
8974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
8975         include <bp-checks.h>.
8976         (__libc_pread64): Don't use CHECK_N.
8977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
8978         include <bp-checks.h>.
8979         (__libc_pwrite): Don't use CHECK_N.
8980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
8981         include <bp-checks.h>.
8982         (__libc_pwrite64): Don't use CHECK_N.
8983         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
8984         (do_pread): Don't use CHECK_N.
8985         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
8986         (do_pread64): Don't use CHECK_N.
8987         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
8988         (do_pwrite): Don't use CHECK_N.
8989         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
8990         (do_pwrite64): Don't use CHECK_N.
8991         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
8992         (__libc_readv): Don't use CHECK_N.
8993         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
8994         (semop): Don't use CHECK_N.
8995         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
8996         <bp-checks.h>.
8997         (semtimedop): Don't use CHECK_N.
8998         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
8999         (__libc_pread): Don't use CHECK_N.
9000         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
9001         <bp-checks.h>.
9002         (__libc_pread64): Don't use CHECK_N.
9003         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
9004         <bp-checks.h>.
9005         (__libc_pwrite): Don't use CHECK_N.
9006         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
9007         <bp-checks.h>.
9008         (__libc_pwrite64): Don't use CHECK_N.
9009         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
9010         <bp-checks.h>.
9011         (__libc_msgrcv): Don't use CHECK_N.
9012         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
9013         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
9014         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
9015         (__libc_writev): Don't use CHECK_N.
9016
9017 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9018
9019         * string/strcpy.c: Removed unused variable.
9020
9021         * Makeconfig (+sysdep-includes): Define with := rather than =.
9022         Use an existing include/ subdir of each sysdeps dir before it.
9023
9024 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9025
9026         * nscd/connection.c (register_traced_file): Comment function.
9027         [HAVE_INOTIFY] (union __inev): Define.
9028         [HAVE_INOTIFY] (inotify_check_files): New function.
9029         [HAVE_INOTIFY] (clear_db_cache): Likewise.
9030         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
9031         clear_db_cache.
9032         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
9033
9034 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9035
9036         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
9037         loaded if not already and that a failure is permanent.
9038
9039 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9040
9041         [BZ #15006]
9042         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
9043         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
9044
9045 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9046
9047         [BZ #13550]
9048         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
9049         (CHECK_1_NULL_OK): Likewise.
9050         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
9051         (__fxstat): Do not use CHECK_1.
9052         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9053         <bp-checks.h>.
9054         (___fxstat64): Do not use CHECK_1.
9055         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
9056         <bp-checks.h>.
9057         (__fxstatat): Do not use CHECK_1.
9058         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
9059         <bp-checks.h>.
9060         (__fxstatat64): Do not use CHECK_1.
9061         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
9062         <bp-checks.h>.
9063         (__fxstat): Do not use CHECK_1.
9064         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
9065         <bp-checks.h>.
9066         (__fxstatat): Do not use CHECK_1.
9067         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
9068         <bp-checks.h>.
9069         (__getresgid): Do not use CHECK_1.
9070         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
9071         <bp-checks.h>.
9072         (__getresuid): Do not use CHECK_1.
9073         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
9074         <bp-checks.h>.
9075         (__lxstat): Do not use CHECK_1.
9076         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
9077         <bp-checks.h>.
9078         (__old_msgctl): Do not use CHECK_1.
9079         (__new_msgctl): Likewise.
9080         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
9081         <bp-checks.h>.
9082         (__new_setrlimit): Do not use CHECK_1.
9083         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
9084         <bp-checks.h>.
9085         (__old_shmctl): Do not use CHECK_1.
9086         (__new_shmctl): Likewise.
9087         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
9088         <bp-checks.h>.
9089         (__xstat): Do not use CHECK_1.
9090         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
9091         (__lxstat): Do not use CHECK_1.
9092         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9093         <bp-checks.h>.
9094         (___lxstat64): Do not use CHECK_1.
9095         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
9096         (__old_msgctl): Do not use CHECK_1.
9097         (__new_msgctl): Likewise.
9098         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
9099         <bp-checks.h>.
9100         (__gettimeofday): Do not use CHECK_1.
9101         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
9102         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
9103         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
9104         <bp-checks.h>.
9105         (__gettimeofday): Do not use CHECK_1.
9106         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
9107         (__old_shmctl): Do not use CHECK_1_NULL_OK.
9108         (__new_shmctl): Do not use CHECK_1.
9109         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
9110         <bp-checks.h>.
9111         (do_sigtimedwait): Do not use CHECK_1.
9112         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
9113         <bp-checks.h>.
9114         (do_sigwaitinfo): Do not use CHECK_1.
9115         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
9116         <bp-checks.h>.
9117         (msgctl): Do not use CHECK_1.
9118         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
9119         <bp-checks.h>.
9120         (shmctl): Do not use CHECK_1.
9121         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
9122         (ustat): Do not use CHECK_1.
9123         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
9124         <bp-checks.h>.
9125         (__fxstat): Do not use CHECK_1.
9126         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
9127         <bp-checks.h>.
9128         (__fxstatat): Do not use CHECK_1.
9129         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
9130         <bp-checks.h>.
9131         (__lxstat): Do not use CHECK_1.
9132         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
9133         <bp-checks.h>.
9134         (__xstat): Do not use CHECK_1.
9135         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
9136         (__xstat): Do not use CHECK_1.
9137         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
9138         (___xstat64): Do not use CHECK_1.
9139
9140         [BZ #13550]
9141         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
9142         definitions.
9143         (CHECK_BOUNDS_HIGH): Likewise.
9144         * string/strcpy.c: Do not include <bp-checks.h>.
9145         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
9146
9147 2013-02-07  Roland McGrath  <roland@hack.frob.com>
9148
9149         * nscd/nscd-client.h (__nscd_drop_map_ref):
9150         Add __attribute__ ((unused)).
9151         * nis/nss-nisplus.h (niserr2nss): Likewise.
9152
9153         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
9154         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
9155
9156         * csu/libc-tls.c (init_static_tls, init_slotinfo):
9157         Remove inline keyword.
9158         * include/rounding-mode.h (round_away): Likewise.
9159         * libio/wfileops.c (adjust_wide_data): Likewise.
9160         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
9161         (__m128i_strloadu_tolower): Likewise.
9162         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
9163         (__m128i_strloadu_tolower): Likewise.
9164         * time/mktime.c (ydhms_diff): Likewise.
9165         * locale/elem-hash.h (elem_hash): Likewise.
9166         * locale/setlocale.c (setdata): Likewise.
9167         * posix/regex_internal.h (re_string_char_size_at): Likewise.
9168         (re_string_wchar_at): Likewise.
9169         (bitset_not, bitset_merge, bitset_mask): Likewise.
9170         [!(__GNUC__ > 3)] (inline): Remove macro.
9171         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
9172         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
9173         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
9174         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9175         * string/memcmp.c (memcmp_bytes): Likewise.
9176         * locale/programs/locarchive.c (compute_hashval): Likewise.
9177         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
9178         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9179         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
9180         * nss/getent.c (print_rpc, print_protocols): Likewise.
9181         (print_passwd, print_group, print_aliases): Likewise.
9182         * nis/nss-nisplus.h (niserr2nss): Likewise.
9183         * nscd/connections.c (restart_p): Likewise.
9184         Change return type to bool.
9185
9186 2013-02-05  Roland McGrath  <roland@hack.frob.com>
9187
9188         * Makeconfig (all-Depend-files): Add existing
9189         $(sorted-subdirs:=/Depend) files.
9190         (all-subdirs): Remove nss.
9191         * sysdeps/unix/inet/Subdirs: Add it here instead.
9192         * hesiod/Depend: New file.
9193
9194         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
9195         instead of calling alloca.
9196
9197         * io/lseek.c (__lseek): Rename to __libc_lseek.
9198         Define __lseek as an alias.
9199
9200         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
9201
9202 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
9203
9204         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
9205         else clause and remove check for non-standard endianness.
9206
9207 2013-02-04  David S. Miller  <davem@davemloft.net>
9208
9209         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9210
9211 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
9212
9213         [BZ #13550]
9214         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
9215         (__ubp_memchr): Remove prototype.
9216         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
9217         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9218         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
9219         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9220         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
9221         Remove alias.
9222         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
9223         (__ubp_memchr): Likewise.
9224         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
9225         (__ubp_memchr): Likewise.
9226         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
9227         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
9228         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
9229         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
9230         CHECK_STRING.
9231         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9232         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
9233         (__getcwd): Do not use CHECK_STRING.
9234         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
9235         <bp-checks.h>.
9236         (__real_chown): Do not use CHECK_STRING.
9237         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
9238         <bp-checks.h>.
9239         (fchownat): Do not use CHECK_STRING.
9240         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
9241         CHECK_STRING.
9242         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
9243         <bp-checks.h>.
9244         (__lchown): Do not use CHECK_STRING.
9245         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9246         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9247         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9248         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
9250         include <bp-checks.h>.
9251         (truncate64): Do not use CHECK_STRING.
9252         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
9253         <bp-checks.h>.
9254         (__real_chown): Do not use CHECK_STRING.
9255         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
9256         <bp-checks.h>.
9257         (__lchown): Do not use CHECK_STRING.
9258         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
9259         <bp-checks.h>.
9260         (__chown): Do not use CHECK_STRING.
9261         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
9262         <bp-checks.h>.
9263         (truncate64): Do not use CHECK_STRING.
9264         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
9265         Likewise.
9266         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
9267         (__xmknod): Do not use CHECK_STRING.
9268         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
9269         <bp-checks.h>.
9270         (__xmknodat): Do not use CHECK_STRING.
9271         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9272         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
9273
9274 2013-02-04  Andreas Schwab  <schwab@suse.de>
9275
9276         [BZ #14142]
9277         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
9278         * include/netdb.h: Likewise for h_errno.
9279         * elf/tst-stackguard1.c: Include <tls.h>.
9280
9281 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9282
9283         * elf/link.h (struct link_map): Extend the l_addr comment.
9284         * include/link.h (struct link_map): Likewise.
9285
9286 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
9287
9288         [BZ #13550]
9289         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
9290         (BOUNDED_1): Remove macro.
9291         * debug/backtrace.c: Don't include <bp-checks.h>.
9292         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
9293         (__backtrace): Likewise.
9294         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
9295         <bp-checks.h>.
9296         (__backtrace): Don't use BOUNDED_1.
9297         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
9298         <bp-checks.h>.
9299         (__backtrace): Don't use BOUNDED_1.
9300         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
9301         (__backtrace): Don't use BOUNDED_1.
9302         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
9303         (shmat): Don't use BOUNDED_N.
9304
9305 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
9306
9307         [BZ #13550]
9308         * sysdeps/generic/bp-start.h: Remove file.
9309         * csu/libc-start.c: Don't include <bp-start.h>.
9310         (LIBC_START_MAIN): Set up __environ directly instead of using
9311         INIT_ARGV_and_ENVIRON.
9312         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
9313         <bp-start.h>.
9314
9315         [BZ #13550]
9316         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
9317         definitions.
9318         (CHECK_FCNTL): Likewise.
9319         (CHECK_N_PAGES): Likewise.
9320
9321         [BZ #13550]
9322         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
9323         definitions.
9324         (CHECK_SIGSET_NULL_OK): Likewise.
9325         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
9326         <bp-checks.h>.
9327         (sigpending): Don't use CHECK_SIGSET.
9328         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
9329         <bp-checks.h>.
9330         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9331         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
9332         <bp-checks.h>.
9333         (do_sigsuspend): Don't use CHECK_SIGSET.
9334         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
9335         use CHECK_SIGSET.
9336         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
9337         (do_sigwait): Don't use CHECK_SIGSET.
9338         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
9339         use CHECK_SIGSET.
9340         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
9341         include <bp-checks.h>.
9342         (sigpending): Don't use CHECK_SIGSET.
9343         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
9344         include <bp-checks.h>.
9345         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9346         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
9347         <bp-checks.h>.
9348         (sigpending): Don't use CHECK_SIGSET.
9349         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
9350         <bp-checks.h>.
9351         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9352
9353         [BZ #13550]
9354         * sysdeps/generic/bp-semctl.h: Remove file.
9355         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
9356         <bp-checks.h> and <bp-semctl.h>.
9357         (__old_semctl): Don't use CHECK_SEMCTL.
9358         (__new_semctl): Likewise.
9359         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
9360         and <bp-semctl.h>.
9361         (__old_semctl): Don't use CHECK_SEMCTL.
9362         (__new_semctl): Likewise.
9363         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
9364         <bp-checks.h> and <bp-semctl.h>.
9365         (__old_semctl): Don't use CHECK_SEMCTL.
9366         (__new_semctl): Likewise.
9367         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
9368         <bp-checks.h> and <bp-semctl.h>.
9369         (semctl): Don't use CHECK_SEMCTL.
9370
9371         [BZ #13550]
9372         * Makerules (elide-bp-thunks): Remove variable.
9373         (elide-routines.oS): Don't use $(elide-bp-thunks).
9374         (elide-routines.os): Likewise.
9375         (elide-routines.o): Likewise.
9376         (elide-routines.op): Likewise.
9377         (elide-routines.og): Likewise.
9378         (objects): Don't use $(bp-thunks).
9379         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
9380         include.
9381         (common-generated): Do not add s-proto-bp.d.
9382         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
9383         (int): Likewise.
9384         (typ): Likewise.
9385         Do not generate makefile rules for bounded-pointer thunks.
9386         * sysdeps/generic/bp-thunks.h: Remove file.
9387         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
9388         * sysdeps/unix/s-proto-bp.S: Likewise.
9389
9390         [BZ #15062]
9391         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
9392         parts of result separately when argument is not close to line from
9393         -i to i and one part of argument is small.
9394         * math/k_casinhf.c (__kernel_casinhf): Likewise.
9395         * math/k_casinhl.c (__kernel_casinhl): Likewise.
9396         * math/libm-test.inc (cacos_test): Add more tests.
9397         (casin_test): Likewise.
9398         (casinh_test): Likewise.
9399         * sysdeps/i386/fpu/libm-test-ulps: Update.
9400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9401
9402 2013-01-31  David S. Miller  <davem@davemloft.net>
9403
9404         * po/de.po: Update from translation team.
9405
9406 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9407
9408         * time/tzfile.c: Include stdint.h for SIZE_MAX.
9409
9410 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
9411
9412         * configure.in (_AC_PROG_CC_C89): New definition.
9413         * configure: Regenerate.
9414
9415         * configure.in (AC_PROG_CPP): New definition.
9416         * configure: Regenerate.
9417
9418 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
9419
9420         * debug/tst-backtrace.h: New file.
9421         * debug/tst-backtrace2.c: Include tst-backtrace.h.
9422         (ret): Remove variable.
9423         (x): Likewise.
9424         (FAIL): Remove macro.
9425         (NO_INLINE): Likewise.
9426         (fn1): Use match function instead of strstr.
9427         * debug/tst-backtrace3.c: Include tst-backtrace.h.
9428         (ret): Remove variable.
9429         (x): Likewise.
9430         (FAIL): Remove macro.
9431         (NO_INLINE): Likewise.
9432         (fn): Use match function instead of strstr.
9433         * debug/tst-backtrace4.c: Include tst-backtrace.h.
9434         (ret): Remove variable.
9435         (x): Likewise.
9436         (FAIL): Remove macro.
9437         (NO_INLINE): Likewise.
9438         (handle_signal): Use match function instead of strstr.
9439         * debug/tst-backtrace5.c: Include tst-backtrace.h.
9440         (ret): Remove variable.
9441         (x): Likewise.
9442         (FAIL): Remove macro.
9443         (NO_INLINE): Likewise.
9444         (handle_signal): Use match function instead of strstr.
9445
9446 2013-01-23  Roland McGrath  <roland@hack.frob.com>
9447
9448         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
9449
9450 2013-01-23  David S. Miller  <davem@davemloft.net>
9451
9452         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
9453         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
9454         argument of CAS if possible.
9455         * sysdeps/sparc/sparc64/bits/atomic.h
9456         (__arch_compare_and_exchange_val_32_acq): Likewise.
9457         (__arch_compare_and_exchange_val_64_acq): Likewise.
9458
9459 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
9460
9461         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
9462         * sysdeps/posix/ulimit.c: ... this.
9463         Include <limits.h>.
9464         * sysdeps/unix/bsd/ulimit.c: Remove file.
9465
9466 2013-01-23  Adam Conrad  <adconrad@0c3.net>
9467
9468         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
9469         (LDFLAGS-tst-array5): Likewise.
9470
9471 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
9472
9473         [BZ #15036]
9474         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
9475         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
9476         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
9477         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
9478
9479 2013-01-21  David S. Miller  <davem@davemloft.net>
9480
9481         * sysdeps/sparc/backtrace.c: New file.
9482         * sysdeps/sparc/sparc32/backtrace.h: New file.
9483         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
9484         * sysdeps/sparc/sparc64/backtrace.h: New file.
9485         * sysdeps/sparc/sparc64/backtrace.c: Delete.
9486         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
9487         -funwind-tables.
9488
9489 2013-01-21  Andreas Schwab  <schwab@suse.de>
9490
9491         [BZ #15020]
9492         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
9493         closed its stdout.
9494
9495 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
9496
9497         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
9498         "mpa2.h".
9499         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9500
9501 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
9502             Mark Mitchell  <mark@codesourcery.com>
9503             Tom de Vries  <tom@codesourcery.com>
9504             Paul Pluzhnikov  <ppluzhnikov@google.com>
9505
9506         * debug/tst-backtrace2.c: New file.
9507         * debug/tst-backtrace3.c: Likewise.
9508         * debug/tst-backtrace4.c: Likewise.
9509         * debug/tst-backtrace5.c: Likewise.
9510         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
9511         (CFLAGS-tst-backtrace3.c): Likewise.
9512         (CFLAGS-tst-backtrace4.c): Likewise.
9513         (CFLAGS-tst-backtrace5.c): Likewise.
9514         (LDFLAGS-tst-backtrace2): Likewise.
9515         (LDFLAGS-tst-backtrace3): Likewise.
9516         (LDFLAGS-tst-backtrace4): Likewise.
9517         (LDFLAGS-tst-backtrace5): Likewise.
9518         (tests): Add new tests tst-backtrace2, tst-backtrace3,
9519         tst-backtrace4 and tst-backtrace5.
9520
9521 2013-01-18  Anton Blanchard  <anton@samba.org>
9522             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9523
9524         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
9525         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
9526         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
9527         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
9528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9529         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
9530         "+r" and remove output regs list as redundant.  Add explicit inline
9531         asm to specify register of return val to work around compiler codegen
9532         bug.  Remove (int) cast on return value.  Add return type parameter to
9533         use in macro so that this macro does not truncate return value for
9534         64-bit values.
9535         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
9536         pass to INTERNAL_VSYSCALL_NCS.
9537         (INLINE_VSYSCALL): Add 'long int' as return type to
9538         INTERNAL_VSYSCALL_NCS macro invocation.
9539         (INTERNAL_VSYSCALL): Add 'long int' as return type to
9540         INTERNAL_VSYSCALL_NCS macro invocation.
9541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9542
9543 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9544
9545         [BZ #14496]
9546         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
9547         Fix application of SIMD FP exception mask.
9548
9549         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
9550         mp_no from a power of two.
9551         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
9552         __mpexp_twomm1.  Use __pow_mp.
9553
9554         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
9555         multiplication.
9556
9557 2013-01-17  David S. Miller  <davem@davemloft.net>
9558
9559         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9560
9561 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
9562
9563         [BZ #15023]
9564         * include/complex.h: Condition contents on [!_COMPLEX_H].
9565         (__kernel_casinhf): New prototype.
9566         (__kernel_casinh): Likewise.
9567         (__kernel_casinhl): Likewise.
9568         * math/Makefile (libm_calls): Add k_casinh.
9569         * math/k_casinh.c: New file.
9570         * math/k_casinhf.c: Likewise.
9571         * math/k_casinhl.c: Likewise.
9572         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
9573         finite nonzero arguments.
9574         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
9575         finite nonzero arguments.
9576         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
9577         finite nonzero arguments.
9578         * math/s_casinh.c: Do not include <float.h>.
9579         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
9580         * math/s_casinhf.c: Do not include <float.h>.
9581         (__casinhf): Move code for finite nonzero arguments to
9582         k_casinhf.c.
9583         * math/s_casinhl.c: Do not include <float.h>.
9584         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
9585         redefine.
9586         (__casinhl): Move code for finite nonzero arguments to
9587         k_casinhl.c.
9588         * math/libm-test.inc (cacos_test): Add more tests.
9589         * sysdeps/i386/fpu/libm-test-ulps: Update.
9590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9591
9592 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
9593
9594         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
9595         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
9596         [!HAVE_MREMAP]: Remove [defined linux] case.
9597         * malloc/arena.c: Do not include <malloc-sysdep.h>.
9598
9599 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9600
9601         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
9602
9603 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9604
9605         * elf/elf.h (R_386_SIZE32): New relocation.
9606         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
9607         R_386_SIZE32.
9608         (elf_machine_rela): Likewise.
9609         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
9610         R_X86_64_SIZE64 and R_X86_64_SIZE32.
9611
9612 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
9613
9614         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
9615         (FP_FAST_FMA): Do not define.
9616         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
9617         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
9618         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
9619         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
9620         !_SOFT_FLOAT]: Likewise.
9621         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
9622         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
9623         value.
9624         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
9625         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
9626         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
9627         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
9628         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
9629         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
9630         file.
9631
9632 2013-01-16  Andreas Schwab  <schwab@suse.de>
9633
9634         [BZ #14327]
9635         * include/stdlib.h (__mktemp): Add declaration.
9636         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
9637         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
9638
9639 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9640
9641         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
9642         definitions.
9643         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
9644         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
9645         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
9646         definitions here.
9647         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
9648         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
9649         definitions.
9650         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
9651         and ONE.
9652         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
9653         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
9654         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
9655         definitions.
9656         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
9657         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
9658         definitions.
9659         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
9660
9661         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
9662
9663 2013-01-15  David S. Miller  <davem@davemloft.net>
9664
9665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9666         trunc{,f} to libm-sysdep_routes.
9667         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
9669         file.
9670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
9671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
9672         file.
9673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
9674         file.
9675         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
9676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
9677         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
9678         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
9679         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
9680         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
9681         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
9682         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
9683
9684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9685         nearbyint{,f} to libm-sysdep_routes.
9686         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
9688         New file.
9689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
9690         file.
9691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
9692         New file.
9693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
9694         file.
9695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
9696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
9697         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
9698         file.
9699         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
9700         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
9701         file.
9702         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
9703         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
9704         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
9705
9706         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
9707         libc_feholdexcept and libc_fesetenv.
9708
9709 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
9710
9711         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
9712
9713 2013-01-14  David S. Miller  <davem@davemloft.net>
9714
9715         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
9716         (SPARC_ASM_VIS2_IFUNC): Likewise.
9717         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
9718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
9719         use of 'siam' instruction.
9720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
9721         Likewise.
9722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
9723         Likewise.
9724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
9725         Likewise.
9726         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
9727         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
9728         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
9729         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
9730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
9731         file.
9732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
9733         file.
9734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
9735         file.
9736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
9737         file.
9738         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
9739         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
9740         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
9741         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
9742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
9743         new VIS2 routines.
9744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9747         Likewise.
9748         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9749         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9750         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9751         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
9753         routines to libm-sysdep_routines.
9754         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9755
9756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9757         fdim/fdimf to libm-sysdep_routines.
9758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
9759         file.
9760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
9761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
9762         file.
9763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
9764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
9765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
9766         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
9767         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
9768         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
9769         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
9770
9771 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
9772
9773         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
9774         to optimize copies.
9775
9776         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
9777         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9778         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9779
9780         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
9781         local variable MPTWO.
9782         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
9783         Likewise.
9784
9785 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9786
9787         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
9788         GLOB_NOESCAPE.
9789
9790 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9791
9792         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
9793
9794 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9795
9796         * manual/pattern.texi (glob_t): Document gl_flags.
9797         (glob64_t): Likewise.
9798
9799 2013-01-11  David S. Miller  <davem@davemloft.net>
9800
9801         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
9802         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
9803         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
9804         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
9805         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
9806         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
9807         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
9808         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
9809         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
9810         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
9811         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
9812         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
9813         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
9814
9815         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
9816         sparc V9 rather than using V8 code.
9817         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
9818         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
9819
9820         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9821         Move to...
9822         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
9823         Here.
9824
9825 2013-01-11  Roland McGrath  <roland@hack.frob.com>
9826
9827         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
9828         not in the main loop.
9829         * configure: Regenerated.
9830
9831 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
9832
9833         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
9834         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
9835         to just #else.
9836         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
9837         [!__GLIBC_HAVE_LONG_LONG] case.
9838         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
9839         condition to just #else.
9840         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
9841         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
9842         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
9843         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
9844         unconditional.
9845         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
9846         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
9847         #elif condition to just #else.
9848         * sysdeps/unix/sysv/linux/sys/sysmacros.h
9849         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
9850         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
9851         #elif condition to just #else.
9852
9853 2013-01-11  Steve Ellcey  <sellcey@mips.com>
9854
9855         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
9856         (EF_MIPS_ARCH_64): Fix value.
9857         (EF_MIPS_ARCH_32R2): New.
9858         (EF_MIPS_ARCH_64R2): New.
9859
9860 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
9861
9862         * Makeconfig (+link-pie-before-libc): New.
9863         (+link-pie-after-libc): Likewise.
9864         (+link-pie-tests): Likewise.
9865         (+link-pie): Rewritten.
9866         (link-before-libc): Remove $(config-LDFLAGS).
9867         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
9868         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
9869         (config-LDFLAGS): Renamed to ...
9870         (rtld-LDFLAGS): This.
9871         (rtld-tests-LDFLAGS): New macro.
9872         (link-libc-rpath-link): Likewise.
9873         (link-libc-tests-rpath-link): Likewise.
9874         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
9875         (link-libc): Prepand $(link-libc-rpath-link).
9876         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
9877         (test-program-prefix): New macro.
9878         (test-via-rtld-prefix): Likewise.
9879         (test-program-cmd): Likewise.
9880         (host-test-program-cmd): Likewise.
9881         * Makefile ($(common-objpfx)testrun.sh): Replace
9882         $(run-program-prefix) with $(test-program-prefix).
9883         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
9884         $(rtld-LDFLAGS).
9885         ($(common-objpfx)shlib.lds): Likewise.
9886         (build-module-helper): Likewise.
9887         ($(common-objpfx)format.lds): Likewise.
9888         * Rules (binaries-pie-tests): New.
9889         (binaries-pie-notests): Likewise.
9890         (binaries-pie): Rewritten.
9891         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
9892         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
9893         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
9894         (make-test-out): Replace $(host-built-program-cmd) with
9895         $(host-test-program-cmd).
9896         * config.make.in (build-hardcoded-path-in-tests): New variable.
9897         * configure.in (--enable-hardcoded-path-in-tests): New configure
9898         option.
9899         (hardcoded_path_in_tests): New AC_SUBST.
9900         * configure: Regenerated.
9901         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
9902         $(built-program-cmd) with $(test-program-cmd).
9903         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
9904         (test_program_cmd): This.
9905         * elf/Makefile ($(objpfx)order.out): Run test with
9906         $(test-program-prefix).
9907         ($(objpfx)order2.out): Likewise.
9908         ($(objpfx)tst-initorder.out): Likewise.
9909         ($(objpfx)tst-initorder2.out): Likewise.
9910         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
9911         $(test-program-cmd).
9912         ($(objpfx)tst-array1-static.out): Likewise.
9913         ($(objpfx)tst-array2.out): Likewise.
9914         ($(objpfx)tst-array3.out): Likewise.
9915         ($(objpfx)tst-array4.out): Likewise.
9916         ($(objpfx)tst-array5.out): Likewise.
9917         ($(objpfx)tst-array5-static.out): Likewise.
9918         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
9919         $(test-program-cmd).
9920         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
9921         $(run-program-prefix) with $(test-program-prefix).
9922         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
9923         (test_program_prefix): This.
9924         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
9925         $(run-program-prefix) with $(test-program-prefix).
9926         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
9927         (test_program_prefix): This.
9928         * iconvdata/tst-tables.sh: Likewise.
9929         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
9930         $(run-program-prefix) with $(test-program-prefix).
9931         ($(objpfx)tst-translit.out): Likewise.
9932         ($(objpfx)tst-gettext2.out): Likewise.
9933         ($(objpfx)tst-gettext4.out): Likewise.
9934         ($(objpfx)tst-gettext6.out): Likewise.
9935         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
9936         (test_program_prefix): This.
9937         * intl/tst-gettext2.sh: Likewise.
9938         * intl/tst-gettext4.sh  Likewise.
9939         * intl/tst-gettext6.sh: Likewise.
9940         * intl/tst-translit.sh: Likewise.
9941         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
9942         with $(test-program-cmd).
9943         * libio/Makefile ($(objpfx)test-freopen.out): Replace
9944         $(run-program-prefix) with $(test-program-prefix).
9945         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
9946         (test_program_prefix): This.
9947         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
9948         $(run-program-prefix) with $(test-program-prefix).
9949         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
9950         (test_program_prefix): This.
9951         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
9952         * posix/Makefile ($(objpfx)globtest.out): Replace
9953         $(run-via-rtld-prefix) and $(test-wrapper) with
9954         $(test-program-prefix) and $(test-via-rtld-prefix).
9955         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
9956         $(test-program-prefix).
9957         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
9958         $(host-test-program-cmd).
9959         (tst-spawn-ARGS): Likewise.
9960         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
9961         $(test-program-prefix).
9962         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
9963         (test_via_rtld_prefix): This.
9964         (test_wrapper): Renamed to ...
9965         (test_program_prefix): This.
9966         (run_program_prefix): Replaced by test_program_prefix.
9967         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
9968         (test_program_prefix): This.
9969         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
9970         with $(host-test-program-cmd).
9971         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
9972         $(run-program-prefix) with $(test-program-prefix).
9973         ($(objpfx)tst-printf.out): Likewise.
9974         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
9975         $(test-program-cmd).
9976         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
9977         (test_program_prefix): This.
9978         * stdio-common/tst-unbputc.sh: Likewise.
9979         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
9980         $(run-program-prefix) with $(test-program-prefix).
9981         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
9982         (test_program_prefix): This.
9983         * string/Makefile ($(objpfx)tst-svc.out):  Replace
9984         $(built-program-cmd) with $(test-program-cmd).
9985
9986 2013-01-11  Andreas Jaeger  <aj@suse.de>
9987
9988         [BZ #15003]
9989         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
9990         value. Sync with Linux 3.7.
9991
9992 2013-01-10  David S. Miller  <davem@davemloft.net>
9993
9994         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
9995         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
9996         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
9997
9998 2013-01-10  Roland McGrath  <roland@hack.frob.com>
9999
10000         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
10001         never set.
10002         * configure: Regenerated.
10003
10004 2013-01-10  David S. Miller  <davem@davemloft.net>
10005
10006         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10007         sparc V9 rather than using V8 code.
10008         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10009         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10010
10011 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10012
10013         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
10014         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
10015         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
10016         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
10017         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
10018         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
10019         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
10020         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
10021         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
10022         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
10023         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
10024         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
10025         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
10026         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
10027         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
10028         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
10029         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
10030         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
10031         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
10032         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
10033         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
10034         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
10035         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
10036         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
10037         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
10038         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
10039         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
10040
10041 2013-01-10  David S. Miller  <davem@davemloft.net>
10042
10043         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10044
10045 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10046
10047         * posix/Makefile (tests-static): New variable.
10048         (tests): Add $(tests-static).
10049         (tst-exec-static-ARGS): New variable.
10050         (tst-spawn-static-ARGS): Likewise.
10051         * posix/tst-exec-static.c: New file.
10052         * posix/tst-spawn-static.c: Likewise.
10053         * posix/tst-exec.c: Support run directly.
10054         * posix/tst-spawn.c: Likewise.
10055
10056 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
10057
10058         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
10059         long.
10060         * math/bits/mathcalls.h (llrint): Likewise.
10061         (llround): Likewise.
10062         * stdlib/stdlib.h (struct drand48_data): Likewise.
10063         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
10064         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
10065         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
10066         Likewise.
10067         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
10068         Likewise.
10069         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
10070         (elf_greg_t): Likewise.
10071         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
10072         (__jmp_buf): Likewise.
10073         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
10074         definitions.
10075         (llrint): Likewise, for all definitions.
10076         (llrintl): Likewise.
10077
10078         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
10079         Remove [__GNUC__] condition.
10080         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
10081         condition to just [__USE_ISOC99].
10082         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
10083
10084 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10085
10086         [BZ #14200]
10087         * sysdeps/unix/sysv/linux/x86/bits/environments.h
10088         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
10089         defined.
10090         (_POSIX_V6_ILP32_OFF32): Likewise.
10091         (_XBS5_ILP32_OFF32): Likewise.
10092         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
10093         (__ILP32_OFFBIG_LDFLAGS): Likewise.
10094
10095 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10096
10097         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
10098
10099         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
10100         doubles __mpexp_twomm1.  Adjust usage.
10101         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
10102         Remove.
10103
10104 2013-01-10  Andreas Schwab  <schwab@suse.de>
10105
10106         [BZ #14964]
10107         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
10108         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
10109
10110 2013-01-09  David S. Miller  <davem@davemloft.net>
10111
10112         [BZ #15003]
10113         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
10114         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
10115         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
10116         TCP_FASTOPEN): Define.
10117         (tcp_repair_opt): New structure.
10118         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
10119         enum values.
10120         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
10121         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
10122         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
10123         (tcp_cookie_transactions): New structure.
10124
10125 2013-01-09  Anton Blanchard  <anton@samba.org>
10126
10127         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
10128         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
10129         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
10130         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
10131
10132 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
10133
10134         * include/features.h (__USE_ANSI): Remove.
10135
10136 2013-01-09  Roland McGrath  <roland@hack.frob.com>
10137
10138         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
10139
10140         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
10141
10142 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
10143
10144         * sysdeps/s390/fpu/libm-test-ulps: Update.
10145
10146         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10147
10148         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
10149         (__acr): Likewise.
10150         (__cpy): Likewise.
10151         (norm): Likewise.
10152         (denorm): Likewise.
10153         (__mp_dbl): Likewise.
10154         (__dbl_mp): Likewise.
10155         (add_magnitudes): Likewise.
10156         (sub_magnitudes): Likewise.
10157         (__add): Likewise.
10158         (__sub): Likewise.
10159         (__mul): Likewise.
10160         (__inv): Likewise.
10161         (__dvd): Likewise.
10162         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
10163         (__acr): Likewise.
10164         (__cpy): Likewise.
10165         (norm): Likewise.
10166         (denorm): Likewise.
10167         (__mp_dbl): Likewise.
10168         (__dbl_mp): Likewise.
10169         (add_magnitudes): Likewise.
10170         (sub_magnitudes): Likewise.
10171         (__add): Likewise.
10172         (__sub): Likewise.
10173         (__mul): Likewise.
10174         (__inv): Likewise.
10175         (__dvd): Likewise.
10176         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
10177         (__acr): Likewise.
10178         (__cpy): Likewise.
10179         (norm): Likewise.
10180         (denorm): Likewise.
10181         (__mp_dbl): Likewise.
10182         (__dbl_mp): Likewise.
10183         (add_magnitudes): Likewise.
10184         (sub_magnitudes): Likewise.
10185         (__add): Likewise.
10186         (__sub): Likewise.
10187         (__mul): Likewise.
10188         (__inv): Likewise.
10189         (__dvd): Likewise.
10190
10191 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
10192
10193         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
10194         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
10195         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
10196         2 && __USE_EXTERN_INLINES]: Likewise.
10197
10198 2013-01-08  Andreas Jaeger  <aj@suse.de>
10199
10200         [BZ# 14985]
10201         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
10202         Remove.
10203         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10204         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10205
10206 2013-01-07  Anton Blanchard  <anton@samba.org>
10207
10208         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
10209         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
10210         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
10211         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
10212         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
10213         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10214         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
10215         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10216         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10217         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10218         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10219         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10220         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10221         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
10222         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
10223         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10224         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10225         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10226         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
10227         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
10228         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
10229         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
10230         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10231         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
10232         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
10233         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
10234         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10235         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
10236         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
10237         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10238         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
10239         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10240         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10241         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10242         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10243         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10244         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
10245         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10246         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
10247         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
10248         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
10249         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10250         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
10251
10252 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
10253
10254         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
10255         (__MALLOC_PMT): Likewise.
10256         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
10257         [__GNUC__], only on [_LIBC].
10258         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10259         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
10260         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10261         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
10262         forward declaration.
10263         (realloc_hook_ini): Likewise.
10264         (memalign_hook_ini): Likewise.
10265         (__libc_memalign): Do not use __MALLOC_PMT in variable
10266         declaration.
10267         (__libc_valloc): Likewise.
10268         (__libc_pvalloc): Likewise.
10269         (__libc_calloc): Likewise.
10270         (__posix_memalign): Likewise.
10271
10272         [BZ #14996]
10273         * math/s_casinh.c: Include <float.h>.
10274         (__casinh): Do not do computation with squaring and square root
10275         for large arguments.
10276         * math/s_casinhf.c: Include <float.h>.
10277         (__casinhf): Do not do computation with squaring and square root
10278         for large arguments.
10279         * math/s_casinhl.c: Include <float.h>.
10280         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
10281         (__casinhl): Do not do computation with squaring and square root
10282         for large arguments.
10283         * math/libm-test.inc (casin_test): Add more tests.
10284         (casinh_test): Likewise.
10285         * sysdeps/i386/fpu/libm-test-ulps: Update.
10286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10287
10288 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10289
10290         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
10291         (__x86_64_raw_data_cache_size): Likewise.
10292         (__x86_64_data_cache_size_half): Likewise.
10293         (__x86_64_raw_data_cache_size_half): Likewise.
10294         (__x86_64_shared_cache_size): Likewise.
10295         (__x86_64_raw_shared_cache_size): Likewise.
10296         (__x86_64_shared_cache_size_half): Likewise.
10297         (__x86_64_raw_shared_cache_size_half): Likewise.
10298         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
10299         to ...
10300         (__x86_data_cache_size): This.
10301         (__x86_64_raw_data_cache_size): Renamed to ...
10302         (__x86_raw_data_cache_size): This.
10303         (__x86_64_data_cache_size_half): Renamed to ...
10304         (__x86_data_cache_size_half): This.
10305         (__x86_64_raw_data_cache_size_half): Renamed to ...
10306         (__x86_raw_data_cache_size_half): This.
10307         (__x86_64_shared_cache_size): Renamed to ...
10308         (__x86_shared_cache_size): This.
10309         (__x86_64_raw_shared_cache_size): Renamed to ...
10310         (__x86_raw_shared_cache_size): This.
10311         (__x86_64_shared_cache_size_half): Renamed to ...
10312         (__x86_shared_cache_size_half): This.
10313         (__x86_64_raw_shared_cache_size_half): Renamed to ...
10314         (__x86_raw_shared_cache_size_half): This.
10315         * sysdeps/x86_64/memcpy.S: Updated.
10316         * sysdeps/x86_64/memset.S: Likewise.
10317         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
10318         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10319         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10320
10321 2013-01-04  David S. Miller  <davem@davemloft.net>
10322
10323         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10324
10325 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
10326
10327         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
10328         1 to avoid redefinition warning.
10329         (__USE_GNU): Don't define.
10330         (init_signaling_nan): Protoize.
10331
10332         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10333
10334 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10335
10336         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
10337         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
10338         (__cpymn): Likewise.
10339         (norm): Remove commented code.
10340         (denorm): Likewise.
10341         (__mp_dbl): Likewise.
10342         (__inv): Likewise.
10343         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
10344         (__cpymn): Likewise.
10345         (norm): Remove commented code.
10346         (denorm): Likewise.
10347         (__mp_dbl): Likewise.
10348         (__inv): Likewise.
10349
10350         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
10351         mp_no value for 1.0 and 2.0.
10352         (norm): Use RADIXI instead of radixi.d.
10353         (denorm): Likewise.
10354         (__mul): Use 0.0 instead of zero.d.
10355         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
10356         mp_no value for 1.0 and 2.0.
10357         (norm): Use RADIXI instead of radixi.d.
10358         (denorm): Likewise.
10359         (__mul): Use 0.0 instead of zero.d.
10360
10361 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
10362
10363         [BZ #14994]
10364         * math/s_casinh.c (__casinh): Reduce finite argument to first
10365         quadrant then set signs of results at the end.
10366         * math/s_casinhf.c (__casinhf): Likewise.
10367         * math/s_casinhl.c (__casinhl): Likewise.
10368         * math/libm-test.inc (casin_test): Add more tests.
10369         (casinh_test): Likewise.
10370         * sysdeps/i386/fpu/libm-test-ulps: Update.
10371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10372
10373 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10374
10375         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
10376
10377         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
10378
10379         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
10380         declarations.
10381         (denorm): Likewise.
10382         (__mp_dbl): Likewise.
10383         (__inv): Likewise.
10384
10385         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
10386         and adjust the header comment.
10387
10388         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
10389         variable name from declaration.
10390
10391 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10392
10393         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10394         Initialize COMMON_CPUID_INDEX_7 element.
10395         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
10396         (CPUID_RTM): Likewise.
10397         (HAS_RTM): Likewise.
10398         (COMMON_CPUID_INDEX_7): New enum.
10399
10400 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
10401
10402         [BZ #14981]
10403         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
10404         size is zero, record memory as freed.
10405
10406 2013-01-03  Andreas Jaeger  <aj@suse.de>
10407
10408         * po/ia.po: Add new Interlingua translation.
10409
10410 2012-01-03  Allan McRae  <allan@archlinux.org>
10411
10412         * locale/programs/localedef.c: Fix description of '--posix' flag.
10413
10414 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
10415
10416         * NEWS: Update dates in second copyright notice.
10417         * README: Update copyright dates in example.
10418         * manual/libc.texinfo: Update copyright dates.
10419         * scripts/test-installation.pl: Update copyright date in --version
10420         output.
10421
10422         * hurd/ctty-input.c: Fix copyright notice formatting.
10423         * hurd/ctty-output.c: Likewise.
10424         * hurd/dtable.c: Likewise.
10425         * hurd/hurd-raise.c: Likewise.
10426         * hurd/hurdprio.c: Likewise.
10427         * hurd/msgportdemux.c: Likewise.
10428         * misc/sys/file.h: Likewise.
10429         * misc/sys/ioctl.h: Likewise.
10430         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
10431         * sysdeps/mach/hurd/chdir.c: Likewise.
10432         * sysdeps/mach/hurd/fchdir.c: Likewise.
10433         * sysdeps/mach/hurd/rename.c: Likewise.
10434         * sysdeps/mach/hurd/rmdir.c: Likewise.
10435         * sysdeps/mach/hurd/seekdir.c: Likewise.
10436         * sysdeps/mach/hurd/setsid.c: Likewise.
10437         * sysdeps/posix/wait3.c: Likewise.
10438
10439         * All files with FSF copyright notices: Update copyright dates
10440         using scripts/update-copyrights.
10441         * intl/plural.c: Regenerated.
10442         * locale/programs/charmap-kw.h: Likewise.
10443         * locale/programs/locfile-kw.h: Likewise.
10444
10445 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10446
10447         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
10448         four values.
10449
10450         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
10451         calculation loop and add branch prediction.
10452
10453         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
10454         check access beyond bounds of m1np.
10455
10456         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
10457         MPTWO.
10458         (__inv): Remove local variable MPTWO to use the global
10459         constant.
10460         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
10461         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
10462         variable MPTWO.
10463         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
10464         MP3HALFS static const.
10465
10466 2013-01-01  David S. Miller  <davem@davemloft.net>
10467
10468         * po/ca.po: Update from translation team.
10469
10470 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
10471
10472         * scripts/update-copyrights: New file.
10473         * Makeconfig: Reformat copyright notice.
10474         * ctype/ctype.h: Likewise.
10475         * debug/swprintf_chk.c: Likewise.
10476         * elf/dl-cache.c: Likewise.
10477         * elf/dl-debug.c: Likewise.
10478         * elf/dl-object.c: Likewise.
10479         * grp/initgroups.c: Likewise.
10480         * hurd/Makefile: Likewise.
10481         * hurd/hurd/signal.h: Likewise.
10482         * hurd/hurdfault.c: Likewise.
10483         * hurd/hurdioctl.c: Likewise.
10484         * hurd/hurdlookup.c: Likewise.
10485         * hurd/intr-msg.c: Likewise.
10486         * iconv/gconv_open.c: Likewise.
10487         * libio/swprintf.c: Likewise.
10488         * locale/lc-ctype.c: Likewise.
10489         * locale/nl_langinfo.c: Likewise.
10490         * mach/Machrules: Likewise.
10491         * mach/Makefile: Likewise.
10492         * malloc/obstack.h: Likewise.
10493         * manual/Makefile: Likewise.
10494         * manual/tsort.awk: Likewise.
10495         * misc/bits/stab.def: Likewise.
10496         * nis/nis_print_group_entry.c: Likewise.
10497         * nis/nis_table.c: Likewise.
10498         * nis/nss_compat/compat-pwd.c: Likewise.
10499         * nis/nss_compat/compat-spwd.c: Likewise.
10500         * po/Makefile: Likewise.
10501         * posix/fnmatch.c: Likewise.
10502         * posix/regex.h: Likewise.
10503         * resolv/Makefile: Likewise.
10504         * resolv/nss_dns/dns-network.c: Likewise.
10505         * resolv/res_hconf.c: Likewise.
10506         * scripts/gen-sorted.awk: Likewise.
10507         * soft-fp/soft-fp.h: Likewise.
10508         * stdio-common/printf.h: Likewise.
10509         * stdlib/monetary.h: Likewise.
10510         * stdlib/random.c: Likewise.
10511         * stdlib/random_r.c: Likewise.
10512         * sysdeps/generic/Makefile: Likewise.
10513         * sysdeps/gnu/Makefile: Likewise.
10514         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10515         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10516         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10517         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10518         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10519         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10520         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10521         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10522         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10523         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10524         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10525         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10526         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
10527         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
10528         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
10529         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
10530         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10531         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10532         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10533         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10534         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10535         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10536         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10537         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
10538         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
10539         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10540         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
10541         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
10542         * sysdeps/mach/hurd/errnos.awk: Likewise.
10543         * sysdeps/mach/hurd/fork.c: Likewise.
10544         * sysdeps/mach/hurd/getcwd.c: Likewise.
10545         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
10546         * sysdeps/mach/hurd/mmap.c: Likewise.
10547         * sysdeps/mach/hurd/utimes.c: Likewise.
10548         * sysdeps/mach/hurd/xmknod.c: Likewise.
10549         * sysdeps/posix/profil.c: Likewise.
10550         * sysdeps/posix/readdir_r.c: Likewise.
10551         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10552         * sysdeps/powerpc/bits/setjmp.h: Likewise.
10553         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
10554         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10556         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10557         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10558         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10559         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10560         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10561         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10562         * sysdeps/pthread/lio_listio.c: Likewise.
10563         * sysdeps/sparc/dl-procinfo.h: Likewise.
10564         * sysdeps/unix/i386/sysdep.S: Likewise.
10565         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
10566         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
10567         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
10568         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
10569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10570         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10571         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10572         * sysdeps/unix/sysv/linux/speed.c: Likewise.
10573         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
10574         * sysdeps/wordsize-32/divdi3.c: Likewise.
10575         * time/sys/time.h: Likewise.
10576         * wcsmbs/Makefile: Likewise.
10577
10578 2013-01-01  David S. Miller  <davem@davemloft.net>
10579
10580         * po/fr.po: Update from translation team.
10581
10582         * catgets/gencat.c: Update copyright year.
10583         * csu/version.c: Likewise.
10584         * debug/catchsegv.sh: Likewise.
10585         * debug/pcprofiledump.c: Likewise.
10586         * debug/xtrace.sh: Likewise.
10587         * elf/ldconfig.c: Likewise.
10588         * elf/ldd.bash.in: Likewise.
10589         * elf/pldd.c: Likewise.
10590         * elf/sotruss.ksh: Likewise.
10591         * elf/sprof.c: Likewise.
10592         * iconv/iconv_prog.c: Likewise.
10593         * iconv/iconvconfig.c: Likewise.
10594         * locale/programs/locale.c: Likewise.
10595         * locale/programs/localedef.c: Likewise.
10596         * login/programs/pt_chown.c: Likewise.
10597         * malloc/memusage.sh: Likewise.
10598         * malloc/memusagestat.c: Likewise.
10599         * malloc/mtrace.pl: Likewise.
10600         * nscd/nscd.c: Likewise.
10601         * nss/getent.c: Likewise.
10602         * nss/makedb.c: Likewise.
10603         * posix/getconf.c: Likewise.
10604
10605 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10606
10607         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
10608         numbers.
10609
10610 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
10611
10612         * math/bits/mathcalls.h (modf): Use __nonnull.
10613
10614 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10615
10616         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
10617         (split): Use macro CN instead of the bare value.
10618         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
10619         could be used.
10620         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
10621         instead of the bare value.
10622         (power1): Likewise.
10623
10624 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10625
10626         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
10627         __ATAN_TWOM.
10628         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10629
10630         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
10631         their values.
10632         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
10633         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10634         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
10635         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
10636
10637 2012-12-28  Andreas Jaeger  <aj@suse.de>
10638
10639         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
10640         values are from Linux 3.7.
10641
10642         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
10643         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
10644
10645 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10646
10647         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
10648         TRUE case.
10649
10650         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
10651         (norm): Likewise.
10652         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
10653         variables with preprocessor constants.
10654         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10655         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
10656         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
10657
10658 2012-12-27  Bruno Haible  <bruno@clisp.org>
10659
10660         [BZ #14317]
10661         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
10662         only if needed.
10663
10664 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
10665
10666         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
10667         and use variable directly.
10668         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
10669
10670         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
10671         MPONE.
10672         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
10673         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
10674         variable MPONE.
10675         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10676         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
10677         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
10678         include directive.  Remove local variable MPONE.
10679         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
10680         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
10681         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10682
10683 2012-12-25  David S. Miller  <davem@davemloft.net>
10684
10685         * version.h (RELEASE): Set to "development".
10686         (VERSION): Set to "2.17.90".
10687         * NEWS: Add 2.18 section.
10688
10689 2012-12-21  David S. Miller  <davem@davemloft.net>
10690
10691         * po/hr.po: Update from translation team.
10692
10693 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10694
10695         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
10696
10697 2012-12-19  Steve Ellcey  <sellcey@mips.com>
10698
10699         * NEWS:  Mention new memcpy for MIPS.
10700
10701 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10702
10703         * manual/contrib.texi (Contributors): Spelling correction.
10704
10705 2012-12-15  David S. Miller  <davem@davemloft.net>
10706
10707         * po/ru.po: Update from translation team.
10708
10709 2012-12-13  David S. Miller  <davem@davemloft.net>
10710
10711         * NEWS: Mention IFUNC testsuite enhancements.
10712
10713         * po/pl.po: Update from translation team.
10714         * po/bg.po: Likewise.
10715
10716         * manual/contrib.texi (Contributors): Update entries for Hongjiu
10717         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
10718
10719 2012-12-11  David S. Miller  <davem@davemloft.net>
10720
10721         * po/sv.po: Update from translation team.
10722
10723         * po/vi.po: Update from translation team.
10724
10725         * po/cs.po: Update from translation team.
10726
10727         * po/de.po: Update from translation team.
10728         * po/eo.po: Likewise.
10729         * po/nl.po: Likewise.
10730
10731 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10732
10733         [BZ #14246]
10734         * manual/argp.texi (Argp Helper Functions): Move node to follow
10735         Argp Parsing State.
10736
10737         [BZ #14872]
10738         * manual/conf.texi (Limits on File System Capacity): Mention if
10739         terminating null is included in the max size.
10740
10741 2012-12-10  Andreas Jaeger  <aj@suse.de>
10742
10743         * po/cs.po: Update from translation team.
10744
10745 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
10746
10747         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
10748         void pointer and cast to uintptr_t.
10749         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
10750         path.
10751         * sysdeps/s390/s390-64/memcpy.S: Likewise.
10752         * sysdeps/s390/s390-64/memset.S: Likewise.
10753
10754 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
10755
10756         [BZ #14833]
10757         * menual/message.texi (Message Translation): Fix typos.
10758         (Helper programs for gettext): Likewise.
10759
10760 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
10761
10762         [BZ #14898]
10763         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
10764         Change to -1.
10765
10766 2012-12-07  David S. Miller  <davem@davemloft.net>
10767
10768         * po/libc.pot: Update.
10769
10770 2012-12-07  Richard Henderson  <rth@redhat.com>
10771
10772         [BZ #10114]
10773         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
10774         normal/normal case to before the switch.
10775         (_FP_DIV): Likewise.
10776
10777 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
10778             Mike Frysinger  <vapier@gentoo.org>
10779
10780         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
10781         check for __NR_fadvise64_64.
10782
10783 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
10784
10785         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
10786         0, not just to plain "0" as a statement.
10787         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
10788         with cw.
10789
10790 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
10791
10792         * NEWS: Use sourceware.org in Bugzilla URL.
10793
10794 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10795
10796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10797         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
10798
10799         * stdio-common/tst-put-error.c (do_test): Add newline to the
10800         padded test to ensure flush.
10801
10802 2012-12-05  Jeff Law  <law@redhat.com>
10803
10804         * sunrpc/etc.rpc (fedfs_admin): Add entry.
10805
10806 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
10807
10808         * README: Don't refer to ports add-on as distributed separately.
10809         Mention AArch64 in list of systems supported in the ports add-on.
10810
10811         * LICENSES: Add more non-FSF copyright and license notices.
10812
10813         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
10814         ((unused)).
10815
10816         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
10817
10818         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
10819         10000 as width of padded output.
10820
10821 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
10822
10823         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
10824
10825         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
10826         variable LX with __attribute__ ((unused)).
10827         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10828         Likewise.
10829         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
10830         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
10831         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
10832         with __attribute__ ((unused)).
10833
10834 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
10835
10836         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
10837
10838 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
10839
10840         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
10841         (CFLAGS-nldbl-acos.c): New variable.
10842         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
10843         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
10844         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
10845         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
10846         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
10847         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
10848         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
10849         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
10850         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
10851         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
10852         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
10853         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
10854         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
10855         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
10856         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
10857         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
10858         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
10859         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
10860         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
10861         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
10862         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
10863         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
10864         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
10865         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
10866         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
10867         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
10868         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
10869         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
10870         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
10871         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
10872         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
10873         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
10874         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
10875         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
10876         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
10877         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
10878         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
10879         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
10880         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
10881         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
10882         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
10883         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
10884         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
10885         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
10886         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
10887         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
10888         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
10889         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
10890         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
10891         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
10892         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
10893         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
10894         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
10895         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
10896         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
10897         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
10898         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
10899         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
10900         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
10901         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
10902         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
10903         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
10904         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
10905         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
10906         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
10907         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
10908         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
10909         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
10910         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
10911         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
10912         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
10913         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
10914         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
10915         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
10916         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
10917         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
10918         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
10919         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
10920         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
10921         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
10922         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
10923         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
10924         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
10925         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
10926         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
10927         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
10928         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
10929         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
10930         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
10931         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
10932         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
10933         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
10934         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
10935         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
10936         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
10937         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
10938         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
10939
10940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10941         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
10942
10943         [BZ #14914]
10944         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
10945         whole low double instead of just low 47 bits when splitting values
10946         into two parts.
10947
10948 2012-12-03  Allan McRae  <allan@archlinux.org>
10949
10950         * manual/stdio.texi (Predefined Printf Handlers): Remove
10951         @hsep and @vsep usage.
10952
10953 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
10954
10955         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
10956         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
10957
10958 2012-12-03  Jeff Law  <law@redhat.com>
10959
10960         * time/sys/time.h (settimeofday): Do not mark TV argument
10961         as __nonnull.
10962
10963 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
10964
10965         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
10966         when currently writing and seek to current position when not.
10967         * libio/Makefile (tests): Remove bug-fclose1.
10968         * libio/bug-fclose1.c: Delete.
10969
10970 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
10971
10972         * manual/arith.texi (feenableexcept): Fix typo.
10973         (fedisableexcept): Likewise.
10974
10975 2012-11-30  Roland McGrath  <roland@hack.frob.com>
10976
10977         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
10978         second, differently-typed declaration, rather than a cast.
10979
10980 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10981
10982         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
10983         * include/rpc/svc.h: ... here.
10984
10985 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
10986
10987         [BZ #13013]
10988         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
10989         depending n and resplen2 to catch cases where answer
10990         equals answerp2.
10991
10992 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
10993
10994         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
10995         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
10996
10997 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
10998
10999         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
11000
11001 2012-11-29  Roland McGrath  <roland@hack.frob.com>
11002
11003         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
11004
11005 2012-11-28  Jeff Law  <law@redhat.com>
11006
11007         [BZ #13761]
11008         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
11009         dataset_temporary.  Track alloca usage into alloca_used.
11010         If dataset is large allocate and release it via malloc/free.
11011
11012 2012-06-04  Florian Weimer  <fweimer@redhat.com>
11013
11014         [BZ #14197]
11015         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
11016
11017 2012-11-28  David S. Miller  <davem@davemloft.net>
11018
11019         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11020
11021 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11022
11023         [BZ #14803]
11024         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
11025         of pi/2 rounded to nearest to 64 bits.
11026         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
11027         nearest to 64 bits.
11028         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
11029         bits.
11030
11031 2012-11-28  Jeff Law <law@redhat.com>
11032             Martin Osvald <mosvald@redhat.com>
11033
11034         [BZ #14889]
11035         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
11036         * sunrpc/svc.c: Include time.h.
11037         (__svc_accept_failed): New function.
11038         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
11039         any reason other than EINTR, call __svc_accept_failed.
11040         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
11041         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
11042
11043 2012-11-28  Andreas Schwab  <schwab@suse.de>
11044
11045         * scripts/abilist.awk: Also handle indirect functions in .opd
11046         section.
11047
11048 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11049
11050         [BZ #13881]
11051         * sysdeps/x86/fpu/powl_helper.c: New file.
11052         * sysdeps/x86/fpu/Makefile: Likewise.
11053         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
11054         (p3): New object.
11055         (__ieee754_powl): Use __powl_helper for finite arguments except
11056         integer exponents below 8.
11057         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
11058         (p3): New object.
11059         (__ieee754_powl): Use __powl_helper for finite arguments except
11060         integer exponents below 8.
11061         * math/libm-test.inc (pow_test): Add more tests and enable some
11062         previously disabled tests.
11063         * sysdeps/i386/fpu/libm-test-ulps: Update.
11064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11065
11066 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11067             Carlos O'Donell  <carlos_odonell@mentor.com>
11068
11069         * nss/makedb.c (is_prime): Assert that input is odd and greater
11070         than 4.  Note that fact in a comment too.
11071         (next_prime): Add 4 to input.
11072
11073 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11074
11075         [BZ #11741]
11076         * libio/Makefile (tests): Add test case tst-fwrite-error.
11077         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
11078         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11079         * libio/tst-fwrite-error.c: New test case.
11080
11081 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
11082
11083         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
11084         before casting to void *.
11085         * include/libc-internal.h (__pointer_type): New macro.
11086         (__integer_if_pointer_type_sub): Likewise.
11087         (__integer_if_pointer_type): Likewise.
11088         (cast_to_integer): Likewise.
11089         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
11090         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
11091         before casting to atomic64_t.
11092         (atomic_exchange_acq): Likewise.
11093         (__arch_exchange_and_add_body): Likewise.
11094         (__arch_add_body): Likewise.
11095         (atomic_add_negative): Likewise.
11096         (atomic_add_zero): Likewise.
11097
11098 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
11099
11100         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
11101         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
11102         (add_fdes): Likewise.
11103         (linear_search_fdes): Likewise.
11104         (binary_search_unencoded_fdes): Likewise.
11105
11106 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
11107
11108         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
11109
11110 2012-11-24  Adam Conrad  <adconrad@0c3.net>
11111
11112         * configure.in: Autodetect C++ header directories.
11113         * configure: Regenerated.
11114
11115 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
11116
11117         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
11118
11119 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
11120
11121         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11122
11123 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
11124
11125         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
11126         LDBL_MANT_DIG == 106]: Disable some tests.
11127         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11128         Likewise.
11129         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11130         Likewise.
11131
11132         [BZ #14871]
11133         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
11134         input for small inputs.  Return +/- pi/2 for large inputs.
11135         * math/libm-test.inc (atan_test): Add more tests.
11136
11137         * sysdeps/generic/unwind-dw2-fde-glibc.c
11138         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
11139         __attribute__ ((unused)).
11140
11141         [BZ #14645]
11142         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
11143         x * y if x and y are nonzero and z is zero.
11144
11145         [BZ #14811]
11146         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
11147         nonzero exponents with absolute value below 0x1p-117 to +/-
11148         0x1p-117.
11149
11150         [BZ #14869]
11151         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
11152         up arguments below 2**-450, not just those below 2**-500.
11153         * math/libm-test.inc (hypot_test): Add another test.
11154
11155         [BZ #14868]
11156         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11157         Return a+b for ratio over 2**120, not 2**60.
11158         * math/libm-test.inc (hypot_test): Add another test.
11159
11160         * math/libm-test.inc (clog_test): Use
11161         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
11162         (clog10_test): Likewise.
11163
11164         [BZ #6778]
11165         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
11166
11167 2012-11-22  Andreas Schwab  <schwab@suse.de>
11168
11169         * sysdeps/i386/fpu/libm-test-ulps: Update.
11170
11171 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
11172
11173         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
11174         printf output with newline.
11175
11176 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11177
11178         [BZ #14865]
11179         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
11180         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
11181         -z nodlopen, -z initfirst and -z execstack support.
11182         * configure: Regenerated.
11183
11184         * elf/elf.h (DF_1_NODIRECT): New macro.
11185         (DF_1_IGNMULDEF): Likewise.
11186         (DF_1_NOKSYMS): Likewise.
11187         (DF_1_NOHDR): Likewise.
11188         (DF_1_EDITED): Likewise.
11189         (DF_1_NORELOC): Likewise.
11190         (DF_1_SYMINTPOSE): Likewise.
11191         (DF_1_GLOBAUDIT): Likewise.
11192         (DF_1_SINGLETON): Likewise.
11193         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
11194         DT_1_SUPPORTED_MASK bits.
11195         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
11196
11197 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
11198
11199         * sysdeps/unix/make-syscalls.sh: Document prefixes.
11200
11201 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
11202
11203         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
11204         macro.
11205
11206         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
11207         (sendmmsg): Move declarations...
11208         * socket/sys/socket.h: ... here.
11209         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
11210         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
11211         include it from...
11212         * socket/recvmmsg.c: ... this new file.
11213         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
11214         (sendmmsg): Rename to __sendmmsg, create weak alias and make
11215         definition of __sendmmsg hidden.
11216         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
11217         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
11218         Move ENOSYS stub into and include it from...
11219         * socket/sendmmsg.c: ... this new file.
11220         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
11221         (sysdep_routines): Move recvmmsg and sendmmsg...
11222         * socket/Makefile (routines): ... here.
11223         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
11224         (GLIBC_PRIVATE): Add __sendmmsg.
11225         * include/sys/socket.h (__sendmmsg): Add declarations.
11226         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
11227         sendmmsg.
11228
11229 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
11230
11231         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
11232         variable I1 with __attribute__ ((unused)).
11233         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11234
11235 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11236
11237         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
11238         DUMMY variables with __attribute__ ((unused)).
11239
11240         * bits/byteswap.h: Include <bits/types.h>.
11241         (__bswap_64): Use __uint64_t instead of unsigned long long int.
11242
11243 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11244
11245         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
11246         string_t.  Do not manually set errno.
11247         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
11248         length with __strnlen.  Make sure to both set errno and return it on
11249         failure.
11250
11251 2012-11-19  David S. Miller  <davem@davemloft.net>
11252
11253         With help from Joseph Myers.
11254         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
11255         very large arguments properly.
11256         * math/libm-test.inc (atan_test): New tests.
11257         (atan2_test): New tests.
11258         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11259         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11260
11261 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11262
11263         [BZ #14856]
11264         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
11265         Define to 3.
11266
11267         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
11268         [POSIX] (EADDRNOTAVAIL): Likewise.
11269         [POSIX] (EAFNOSUPPORT): Likewise.
11270         [POSIX] (EALREADY): Likewise.
11271         [POSIX] (ECONNABORTED): Likewise.
11272         [POSIX] (ECONNREFUSED): Likewise.
11273         [POSIX] (ECONNRESET): Likewise.
11274         [POSIX] (EDESTADDRREQ): Likewise.
11275         [POSIX] (EDQUOT): Likewise.
11276         [POSIX] (EHOSTUNREACH): Likewise.
11277         [POSIX] (EIDRM): Likewise.
11278         [POSIX] (EISCONN): Likewise.
11279         [POSIX] (ELOOP): Likewise.
11280         [POSIX] (EMULTIHOP): Likewise.
11281         [POSIX] (ENETDOWN): Likewise.
11282         [POSIX] (ENETUNREACH): Likewise.
11283         [POSIX] (ENOBUFS): Likewise.
11284         [POSIX] (ENODATA): Likewise.
11285         [POSIX] (ENOLINK): Likewise.
11286         [POSIX] (ENOMSG): Likewise.
11287         [POSIX] (ENOPROTOOPT): Likewise.
11288         [POSIX] (ENOSR): Likewise.
11289         [POSIX] (ENOSTR): Likewise.
11290         [POSIX] (ENOTCONN): Likewise.
11291         [POSIX] (ENOTSOCK): Likewise.
11292         [POSIX] (EOPNOTSUPP): Likewise.
11293         [POSIX] (EOVERFLOW): Likewise.
11294         [POSIX] (EPROTO): Likewise.
11295         [POSIX] (EPROTONOSUPPORT): Likewise.
11296         [POSIX] (EPROTOTYPE): Likewise.
11297         [POSIX] (ESTALE): Likewise.
11298         [POSIX] (ETIME): Likewise.
11299         [POSIX] (ETXTBSY): Likewise.
11300         [POSIX] (EWOULDBLOCK): Likewise.
11301         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
11302         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
11303         [POSIX] (SEEK_CUR): Likewise.
11304         [POSIX] (SEEK_END): Likewise.
11305         [POSIX || UNIX98] (mode_t): Do not require.
11306         [POSIX] (off_t): Likewise.
11307         [POSIX] (pid_t): Likewise.
11308         [POSIX] (sys/stat.h): Do not allow header.
11309         [POSIX] (unistd.h): Likewise.
11310         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
11311         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
11312         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
11313         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
11314         require.
11315         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
11316         sigevent): Specify elements.
11317         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
11318         entry.
11319         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
11320         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
11321
11322         * conform/data/cpio.h-data [POSIX]: Disable whole file.
11323         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
11324         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
11325         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
11326         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
11327         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
11328         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
11329         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
11330         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
11331         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
11332         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
11333         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
11334         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
11335         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
11336         Likewise.
11337         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
11338         Likewise.
11339         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
11340         Likewise.
11341         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
11342         Likewise.
11343         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
11344         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
11345         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
11346         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
11347         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
11348         Specify lower bound on value.
11349         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
11350         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
11351         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
11352         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
11353         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
11354         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
11355         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
11356         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
11357         value.
11358         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
11359         as optional.
11360         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
11361         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
11362         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
11363         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
11364         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
11365         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
11366         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
11367         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
11368         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
11369         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
11370         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
11371         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
11372         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
11373         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
11374         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
11375         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
11376         entry.
11377         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
11378         optional.
11379         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
11380         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
11381         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
11382         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
11383         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
11384         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
11385         Likewise.
11386         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
11387         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
11388         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
11389         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
11390         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
11391         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
11392         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
11393         as optional.
11394         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
11395         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
11396         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
11397         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
11398         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
11399         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
11400         specify as optional.
11401         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
11402         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
11403         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
11404         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
11405         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
11406         [XPG3] (NL_LANGMAX): Likewise.
11407         [POSIX || XPG3] (NL_MSGMAX): Likewise.
11408         [POSIX || XPG3] (NL_NMAX): Likewise.
11409         [POSIX || XPG3] (NL_SETMAX): Likewise.
11410         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
11411         [XPG3] (NZERO): Likewise.
11412         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
11413         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
11414         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
11415         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
11416         (REG_ERANGE): Expect.
11417         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
11418         optional-constant.
11419         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
11420         Use (void) in prototype.
11421         [POSIX] (*_t): Allow.
11422         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
11423         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
11424         (WRDE_BADVAL): Expect.
11425
11426         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
11427         expect.
11428         [XPG3 || XPG4] (O_RSYNC): Likewise.
11429         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
11430         Likewise.
11431         [XPG3 || XPG4] (pthread_sigmask): Likewise.
11432         [XPG3 || XPG4] (sigqueue): Likewise.
11433         [XPG3 || XPG4] (sigtimedwait): Likewise.
11434         [XPG3 || XPG4] (sigwaitinfo): Likewise.
11435         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
11436         [XPG3 || XPG4] (vsnprintf): Likewise.
11437         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
11438         Likewise.
11439         [XPG3 || XPG4] (blksize_t): Likewise.
11440         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
11441         Likewise.
11442         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
11443         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
11444         [XPG3 || XPG4] (struct itimerspec): Likewise.
11445         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
11446         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
11447         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
11448         [XPG3 || XPG4] (clockid_t): Likewise.
11449         [XPG3 || XPG4] (timer_t): Likewise.
11450         [XPG3 || XPG4] (clock_getres): Likewise.
11451         [XPG3 || XPG4] (clock_gettime): Likewise.
11452         [XPG3 || XPG4] (clock_settime): Likewise.
11453         [XPG3 || XPG4] (nanosleep): Likewise.
11454         [XPG3 || XPG4] (timer_create): Likewise.
11455         [XPG3 || XPG4] (timer_delete): Likewise.
11456         [XPG3 || XPG4] (timer_gettime): Likewise.
11457         [XPG3 || XPG4] (timer_getoverrun): Likewise.
11458         [XPG3 || XPG4] (timer_settime): Likewise.
11459         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
11460         [XPG3 || XPG4] (getlogin_r): Likewise.
11461         [XPG3 || XPG4] (pread): Likewise.
11462         [XPG3 || XPG4] (pthread_atfork): Likewise.
11463         [XPG3 || XPG4] (pwrite): Likewise.
11464
11465         [BZ #14835]
11466         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
11467         <bits/siginfo.h>.
11468
11469 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11470
11471         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
11472         finalizing MALLSTREAM.
11473
11474         * sysdeps/mach/hurd/syncfs.c: New file.
11475
11476 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11477
11478         [BZ #14719]
11479         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
11480         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
11481         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
11482         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
11483         (_nss_dns_gethostbyname4_r): Likewise.
11484         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
11485         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
11486
11487 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
11488
11489         [BZ #13763]
11490         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
11491
11492 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
11493
11494         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
11495         * elf/cache.c (print_entry): Print ",AArch64" for
11496         FLAG_AARCH64_LIB64
11497
11498         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
11499         * elf/cache.c (print_entry): Print ",hard-float" for
11500         FLAG_ARM_LIBHF.
11501
11502 2012-11-18  David S. Miller  <davem@davemloft.net>
11503
11504         With help from Joseph Myers.
11505         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
11506         cutoff to 2**-13.
11507         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
11508         cutoff to 2**-25.
11509         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
11510         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
11511         small.
11512         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
11513         * math/libm-test.inc (y0_test): New tests.
11514         (y1_test): New tests.
11515         * sysdeps/i386/fpu/libm-test-ulps: Update.
11516         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11517         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11518
11519 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
11520
11521         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
11522         64-bit targets.
11523         * configure: Regenerated.
11524
11525 2012-11-17  David S. Miller  <davem@davemloft.net>
11526
11527         [BZ #14811]
11528         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
11529         nonzero exponents with absolute value below 0x1p-128 to +/-
11530         0x1p-128.
11531
11532 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
11533
11534         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
11535
11536         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
11537
11538         * posix/getconf-speclist.c: New file.
11539         * posix/posix-envs.def: Likewise.
11540         * posix/confstr.c (START_ENV_GROUP): New macro.
11541         (END_ENV_GROUP): Likewise.
11542         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
11543         (KNOWN_PRESENT_ENV_STRING): Likewise.
11544         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
11545         (UNKNOWN_ENVIRONMENT): Likewise.
11546         (confstr): Include posix-envs.def instead of handling
11547         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
11548         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
11549         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
11550         (END_ENV_GROUP): Likewise.
11551         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
11552         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
11553         (UNKNOWN_ENVIRONMENT): Likewise.
11554         (__sysconf): Include posix-envs.def instead of handling associated
11555         cases directly here.
11556         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
11557         preprocessing getconf-speclist.c rather than running getconf or
11558         generating empty file.
11559
11560 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
11561
11562         * scripts/check-local-headers.sh: Ignore 'mach' headers.
11563
11564 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
11565
11566         [BZ #14672]
11567         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
11568
11569 2012-11-16  David S. Miller  <davem@davemloft.net>
11570
11571         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
11572         smaller than LDBL_EPSILON/2.0L, just return xm1.
11573
11574 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
11575
11576         * elf/tst-array1.c (init): Set constructor priority to 1000.
11577         (fini): Set destructor priority to 1000.
11578         * elf/tst-array2dep.c: Likewise.
11579
11580 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11581
11582         [BZ #11741]
11583         * libio/fileops.c (_IO_new_file_write): Correctly return error.
11584         (_IO_new_file_xsputn): Also return EOF if none of the input
11585         data was written when overflow failed.
11586         * libio/iopadn.c (_IO_padn): Likewise.
11587         * libio/iowpadn.c (_IO_wpadn): Likewise.
11588         * stdio-common/tst-put-error.c: Add copyright notice.
11589         (do_test): Add case for printing padded string.
11590         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
11591         _IO_padn returned error.
11592         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
11593         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
11594         return EOF.
11595
11596 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11597
11598         * libio/libioP.h: Add comment note that the references to C++
11599         bits are now obsolete.
11600
11601 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11602
11603         * math/libm-test.inc (check_complex): Use asprintf.
11604
11605 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
11606
11607         * debug/pcprofiledump.c (print_version): Update copyright year.
11608         * malloc/memusagestat.c (print_version): Likewise.
11609
11610 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
11611
11612         [BZ #14831]
11613         * elf/Makefile (tests): Add tst-audit8.
11614         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
11615         ($(objpfx)tst-audit8.out): New target.
11616         (tst-audit8-ENV): New variable.
11617         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
11618         audit if l_reloc_result is NULL.
11619         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
11620         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
11621         * elf/tst-audit8.c: New file.
11622
11623 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11624
11625         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
11626         * misc/Makefile (CFLAGS-select.c): Define.
11627         * posix/Makefile (CFLAGS-pause.c): Define.
11628
11629 2012-11-13  David S. Miller  <davem@davemloft.net>
11630
11631         * crypt/Makefile: Move test targets after toplevel Rules
11632         inclusion.  Grab any necessary sysdep routines when linking.
11633         * crypt/md5.c (md5_process_block): Remove define, we will always
11634         name it __md5_process_block.
11635         (md5_finish_ctx): Update md5_process_block call.
11636         (md5_stream): Likewise.
11637         (md5_process_bytes): Likewise.
11638         (md5_process_block): Rename to __md5_process_block and move to ...
11639         * crypt/md5-block.c: ... here.
11640         * crypt/sha256.c (sha256_process_block): Move to ...
11641         * crypt/sha256-block.c: ... here.
11642         * crypt/sha512.c (sha512_process_block): Move to ...
11643         * crypt/sha512-block.c: ... here.
11644         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
11645         path.
11646         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
11647         * sysdeps/sparc/sparc64/multiarch/Makefile
11648         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
11649         crypt subdir.
11650         (localedef-aux): Add md5 crypto assembler when in locale subdir.
11651         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
11652         multiarch changes.
11653         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
11654         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
11655         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
11656         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
11657         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
11658         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
11659         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
11660         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
11661         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
11662         file.
11663         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
11664         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
11665         file.
11666         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
11667
11668 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
11669
11670         * timezone/tzselect.ksh: Update from tzcode git revision
11671         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
11672         * timezone/zdump.c: Likewise.
11673         * timezone/zic.c: Likewise.
11674         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
11675         in TZVERSION setting, not $(PKGVERSION).
11676         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
11677         REPORT_BUGS_TO settings.
11678
11679         [BZ #14838]
11680         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
11681         macro.
11682
11683 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11684
11685         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
11686         detection to immediately after _FP_ROUND().
11687         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
11688         bits are 0.
11689
11690 2012-11-11  David S. Miller  <davem@davemloft.net>
11691
11692         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
11693         inttypes.h
11694         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
11695         __close rather than their public counterparts.
11696
11697 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
11698
11699         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
11700         file.
11701         [UNIX98] (sem_timedwait): Do not expect.
11702         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
11703         [XPG4 || UNIX98] (sockatmark): Do not expect.
11704         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
11705         (clock_getcpuclockid): Do not expect.
11706         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
11707         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
11708         Do not expect.
11709         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
11710         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
11711         [UNIX98] (vwscanf): Likewise.
11712         [UNIX98] (vswscanf): Likewise.
11713
11714 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
11715
11716         * timezone/version.h: Remove file.
11717         * timezone/README: Do not refer to version.h.
11718         * timezone/Makefile ($(objpfx)zic.o): New dependency on
11719         $(objpfx)version.h.
11720         ($(objpfx)zdump.o): Likewise.
11721         ($(objpfx)version.h): New target.
11722
11723         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
11724         2012i.
11725         * timezone/README: Don't mention modification to tzselect.ksh.
11726         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
11727         work on unmodified tzselect.ksh.  Substitute version numbers in
11728         tzselect.ksh.
11729
11730         * Makefile (format-me): Remove.
11731         (INSTALL): Adjust indentation.  Use commands directly instead of
11732         using $(format-me).
11733
11734         * aclocal.m4 (ACX_PKGVERSION): New macro.
11735         (ACX_BUGURL): Likewise.
11736         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
11737         (PKGVERSION): New AC_DEFINE_UNQUOTED.
11738         (REPORT_BUGS_TO): Likewise.
11739         * configure: Regenerated.
11740         * config.h.in (PKGVERSION): New macro.
11741         (REPORT_BUGS_TO): Likewise.
11742         * config.make.in (PKGVERSION): New variable.
11743         (PKGVERSION_TEXI): Likewise.
11744         (REPORT_BUGS_TO): Likewise.
11745         (REPORT_BUGS_TEXI): Likewise.
11746         * Makefile (format-me): Use -I$(common-objpfx)manual.
11747         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
11748         ($(common-objpfx)manual/%): New target.
11749         (manual/%): Remove target.
11750         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
11751         (print_version): Use PKGVERSION.
11752         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
11753         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
11754         and REPORT_BUGS_TO.
11755         ($(objpfx)xtrace): Likewise.
11756         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
11757         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
11758         (print_version): Use PKGVERSION.
11759         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
11760         (do_version): Use PKGVERSION.
11761         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
11762         REPORT_BUGS_TO.
11763         (common-ldd-rewrite): Likewise.
11764         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
11765         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
11766         (print_version): Use PKGVERSION.
11767         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
11768         * elf/pldd.c (argp_program_bug_address): Remove variable.
11769         (more_help): New function.
11770         (argp): Use more_help.
11771         (print_version): Use PKGVERSION.
11772         * elf/sln.c (main): Use PKGVERSION.
11773         (usage): Use REPORT_BUGS_TO.
11774         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
11775         (top level): Use PKGVERSION.
11776         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
11777         (print_version): Use PKGVERSION.
11778         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
11779         (print_version): Use PKGVERSION.
11780         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
11781         (print_version): Use PKGVERSION.
11782         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
11783         (print_version): Use PKGVERSION.
11784         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
11785         (print_version): Use PKGVERSION.
11786         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
11787         (print_version): Use PKGVERSION.
11788         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
11789         and BUGURL.
11790         ($(objpfx)memusage): Likewise.
11791         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
11792         (do_version): Use PKGVERSION.
11793         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
11794         (print_version): Use PKGVERSION.
11795         * malloc/mtrace.pl ($PACKAGE): Remove variable.
11796         ($PKGVERSION): New variable.
11797         ($REPORT_BUGS_TO): Likewise.
11798         (usage): Use $REPORT_BUGS_TO.
11799         (top level): Use $PKGVERSION.
11800         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
11801         ($(objpfx)pkgvers.texi): New rule.
11802         ($(objpfx)stamp-pkgvers): Likewise.
11803         * manual/install.texi: Include pkgvers.texi.
11804         (--with-pkgversion): Document new configure option.
11805         (--with-bugurl): Likewise.
11806         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
11807         than necessarily for this particular distribution.  Use
11808         REPORT_BUGS_TO for where to report bugs.
11809         * INSTALL: Regenerated.
11810         * manual/libc.texinfo: Include pkgvers.texi.
11811         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
11812         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
11813         (print_version): Use PKGVERSION.
11814         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
11815         (print_version): Use PKGVERSION.
11816         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
11817         (print_version): Use PKGVERSION.
11818         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
11819         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
11820         macro.
11821         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
11822         (print_version): Use PKGVERSION.
11823         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
11824         (print_version): Use PKGVERSION.
11825         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
11826         and PKGVERSION.
11827
11828         * timezone/checktab.awk: Update from tzcode 2012i.
11829         * timezone/ialloc.c: Likewise.
11830         * timezone/private.h: Likewise.
11831         * timezone/scheck.c: Likewise.
11832         * timezone/tzfile.h: Likewise.
11833         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
11834         (TZVERSION): Hardcode tzcode version number.
11835         * timezone/zdump.c: Update from tzcode 2012i.
11836         * timezone/zic.c: Likewise.
11837         * timezone/version.h: New file.
11838         * timezone/README: Describe version.h.  Update upstream location.
11839
11840         [BZ #14824]
11841         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
11842         (mktemp): Enable declaration.
11843         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
11844         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
11845         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
11846         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
11847         Likewise.
11848         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
11849         Likewise.
11850         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
11851         Likewise.
11852         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
11853         Likewise.
11854         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
11855         Likewise.
11856         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
11857         Likewise.
11858
11859         [BZ #14821]
11860         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
11861         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
11862         for copies of such integer values.
11863         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11864         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11865
11866 2012-11-09  Andreas Jaeger  <aj@suse.de>
11867
11868         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
11869         definitions and declarations that are provided by
11870         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
11871
11872 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11873
11874         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
11875         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
11876         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
11877         definition.
11878
11879 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11880
11881         * elf/elf.h: Update comment before AArch64 relocations.
11882
11883 2012-11-07  David S. Miller  <davem@davemloft.net>
11884
11885         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
11886         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11887         (__start_context): Declare.
11888         (__makecontext_ret): Delete.
11889         (__makecontext): Hook up __start_context instead of
11890         __makecontext_ret.
11891         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11892         (sysdep_routines): Add __start_context when in stdlib.
11893
11894 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11895
11896         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
11897         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
11898         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
11899         hardcoded "nm".
11900         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
11901         (READELF): New variable.  Use it instead of hardcoded "readelf".
11902
11903 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11904
11905         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
11906         * sysdeps/x86/Makefile: Here.
11907         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
11908         * sysdeps/x86/tst-xmmymm.sh: This.
11909
11910 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11911
11912         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
11913         expectations.
11914         [UNIX98] (pthread_barrier_t): Do not expect.
11915         [UNIX98] (pthread_barrierattr_t): Likewise.
11916         [UNIX98] (pthread_spinlock_t): Likewise.
11917         [UNIX98] (pthread_barrier_destroy): Likewise.
11918         [UNIX98] (pthread_barrier_init): Likewise.
11919         [UNIX98] (pthread_barrier_wait): Likewise.
11920         [UNIX98] (pthread_barrierattr_destroy): Likewise.
11921         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
11922         [UNIX98] (pthread_barrierattr_init): Likewise.
11923         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
11924         [UNIX98] (pthread_getcpuclockid): Likewise.
11925         [UNIX98] (pthread_mutex_timedlock): Likewise.
11926         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
11927         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
11928         [UNIX98] (pthread_sigmask): Likewise.
11929         [UNIX98] (pthread_spin_destroy): Likewise.
11930         [UNIX98] (pthread_spin_init): Likewise.
11931         [UNIX98] (pthread_spin_lock): Likewise.
11932         [UNIX98] (pthread_spin_trylock): Likewise.
11933         [UNIX98] (pthread_spin_unlock): Likewise.
11934         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
11935         Do not expect.
11936         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
11937         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
11938         [XPG3 || XPG4] (pthread_cond_t): Likewise.
11939         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
11940         [XPG3 || XPG4] (pthread_key_t): Likewise.
11941         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
11942         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
11943         [XPG3 || XPG4] (pthread_once_t): Likewise.
11944         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
11945         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
11946         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
11947         [XPG3 || XPG4] (pthread_t): Likewise.
11948
11949         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
11950         not expect.
11951         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
11952
11953         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
11954         Change function return type to int.
11955
11956         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
11957         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
11958         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
11959         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
11960         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
11961         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
11962         [!POSIX] (posix_madvise): Likewise.
11963         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
11964         && !UNIX98].
11965         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
11966         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
11967         (mode_t): Likewise.
11968         (posix_mem_offset): Likewise.
11969         (posix_typed_mem_get_info): Likewise.
11970         (posix_typed_mem_open): Likewise.
11971
11972         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
11973         Change condition to [XOPEN2K8].
11974
11975         * conform/conformtest.pl: Preprocess allow-header data with -x c
11976         instead of from stdin.
11977         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
11978         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
11979         [C99-based standards] (cerfc): Likewise.
11980         [C99-based standards] (cexp2): Likewise.
11981         [C99-based standards] (cexpm1): Likewise.
11982         [C99-based standards] (clog10): Likewise.
11983         [C99-based standards] (clog1p): Likewise.
11984         [C99-based standards] (clog2): Likewise.
11985         [C99-based standards] (clgamma): Likewise.
11986         [C99-based standards] (ctgamma): Likewise.
11987         [C99-based standards] (cerff): Likewise.
11988         [C99-based standards] (cerfcf): Likewise.
11989         [C99-based standards] (cexp2f): Likewise.
11990         [C99-based standards] (cexpm1f): Likewise.
11991         [C99-based standards] (clog10f): Likewise.
11992         [C99-based standards] (clog1pf): Likewise.
11993         [C99-based standards] (clog2f): Likewise.
11994         [C99-based standards] (clgammaf): Likewise.
11995         [C99-based standards] (ctgammaf): Likewise.
11996         [C99-based standards] (cerfl): Likewise.
11997         [C99-based standards] (cerfcl): Likewise.
11998         [C99-based standards] (cexp2l): Likewise.
11999         [C99-based standards] (cexpm1l): Likewise.
12000         [C99-based standards] (clog10l): Likewise.
12001         [C99-based standards] (clog1pl): Likewise.
12002         [C99-based standards] (clog2l): Likewise.
12003         [C99-based standards] (clgammal): Likewise.
12004         [C99-based standards] (ctgammal): Likewise.
12005         * conform/data/inttypes.h-data [C99-based standards]: Include
12006         stdint.h-data.  Remove all expectations for stdint.h contents.
12007         [C99-based standards] (PRI*): Do not allow.
12008         [C99-based standards] (SCN*): Likewise.
12009         [C99-based standards] (*_t): Likewise.
12010         [C99-based-standards] (PRId8): Expect macro.
12011         [C99-based-standards] (PRIi8): Likewise.
12012         [C99-based-standards] (PRIo8): Likewise.
12013         [C99-based-standards] (PRIu8): Likewise.
12014         [C99-based-standards] (PRIx8): Likewise.
12015         [C99-based-standards] (PRIX8): Likewise.
12016         [C99-based-standards] (SCNd8): Likewise.
12017         [C99-based-standards] (SCNi8): Likewise.
12018         [C99-based-standards] (SCNo8): Likewise.
12019         [C99-based-standards] (SCNu8): Likewise.
12020         [C99-based-standards] (SCNx8): Likewise.
12021         [C99-based-standards] (PRIdLEAST8): Likewise.
12022         [C99-based-standards] (PRIiLEAST8): Likewise.
12023         [C99-based-standards] (PRIoLEAST8): Likewise.
12024         [C99-based-standards] (PRIuLEAST8): Likewise.
12025         [C99-based-standards] (PRIxLEAST8): Likewise.
12026         [C99-based-standards] (PRIXLEAST8): Likewise.
12027         [C99-based-standards] (SCNdLEAST8): Likewise.
12028         [C99-based-standards] (SCNiLEAST8): Likewise.
12029         [C99-based-standards] (SCNoLEAST8): Likewise.
12030         [C99-based-standards] (SCNuLEAST8): Likewise.
12031         [C99-based-standards] (SCNxLEAST8): Likewise.
12032         [C99-based-standards] (PRIdFAST8): Likewise.
12033         [C99-based-standards] (PRIiFAST8): Likewise.
12034         [C99-based-standards] (PRIoFAST8): Likewise.
12035         [C99-based-standards] (PRIuFAST8): Likewise.
12036         [C99-based-standards] (PRIxFAST8): Likewise.
12037         [C99-based-standards] (PRIXFAST8): Likewise.
12038         [C99-based-standards] (SCNdFAST8): Likewise.
12039         [C99-based-standards] (SCNiFAST8): Likewise.
12040         [C99-based-standards] (SCNoFAST8): Likewise.
12041         [C99-based-standards] (SCNuFAST8): Likewise.
12042         [C99-based-standards] (SCNxFAST8): Likewise.
12043         [C99-based-standards] (PRId16): Likewise.
12044         [C99-based-standards] (PRIi16): Likewise.
12045         [C99-based-standards] (PRIo16): Likewise.
12046         [C99-based-standards] (PRIu16): Likewise.
12047         [C99-based-standards] (PRIx16): Likewise.
12048         [C99-based-standards] (PRIX16): Likewise.
12049         [C99-based-standards] (SCNd16): Likewise.
12050         [C99-based-standards] (SCNi16): Likewise.
12051         [C99-based-standards] (SCNo16): Likewise.
12052         [C99-based-standards] (SCNu16): Likewise.
12053         [C99-based-standards] (SCNx16): Likewise.
12054         [C99-based-standards] (PRIdLEAST16): Likewise.
12055         [C99-based-standards] (PRIiLEAST16): Likewise.
12056         [C99-based-standards] (PRIoLEAST16): Likewise.
12057         [C99-based-standards] (PRIuLEAST16): Likewise.
12058         [C99-based-standards] (PRIxLEAST16): Likewise.
12059         [C99-based-standards] (PRIXLEAST16): Likewise.
12060         [C99-based-standards] (SCNdLEAST16): Likewise.
12061         [C99-based-standards] (SCNiLEAST16): Likewise.
12062         [C99-based-standards] (SCNoLEAST16): Likewise.
12063         [C99-based-standards] (SCNuLEAST16): Likewise.
12064         [C99-based-standards] (SCNxLEAST16): Likewise.
12065         [C99-based-standards] (PRIdFAST16): Likewise.
12066         [C99-based-standards] (PRIiFAST16): Likewise.
12067         [C99-based-standards] (PRIoFAST16): Likewise.
12068         [C99-based-standards] (PRIuFAST16): Likewise.
12069         [C99-based-standards] (PRIxFAST16): Likewise.
12070         [C99-based-standards] (PRIXFAST16): Likewise.
12071         [C99-based-standards] (SCNdFAST16): Likewise.
12072         [C99-based-standards] (SCNiFAST16): Likewise.
12073         [C99-based-standards] (SCNoFAST16): Likewise.
12074         [C99-based-standards] (SCNuFAST16): Likewise.
12075         [C99-based-standards] (SCNxFAST16): Likewise.
12076         [C99-based-standards] (PRId32): Likewise.
12077         [C99-based-standards] (PRIi32): Likewise.
12078         [C99-based-standards] (PRIo32): Likewise.
12079         [C99-based-standards] (PRIu32): Likewise.
12080         [C99-based-standards] (PRIx32): Likewise.
12081         [C99-based-standards] (PRIX32): Likewise.
12082         [C99-based-standards] (SCNd32): Likewise.
12083         [C99-based-standards] (SCNi32): Likewise.
12084         [C99-based-standards] (SCNo32): Likewise.
12085         [C99-based-standards] (SCNu32): Likewise.
12086         [C99-based-standards] (SCNx32): Likewise.
12087         [C99-based-standards] (PRIdLEAST32): Likewise.
12088         [C99-based-standards] (PRIiLEAST32): Likewise.
12089         [C99-based-standards] (PRIoLEAST32): Likewise.
12090         [C99-based-standards] (PRIuLEAST32): Likewise.
12091         [C99-based-standards] (PRIxLEAST32): Likewise.
12092         [C99-based-standards] (PRIXLEAST32): Likewise.
12093         [C99-based-standards] (SCNdLEAST32): Likewise.
12094         [C99-based-standards] (SCNiLEAST32): Likewise.
12095         [C99-based-standards] (SCNoLEAST32): Likewise.
12096         [C99-based-standards] (SCNuLEAST32): Likewise.
12097         [C99-based-standards] (SCNxLEAST32): Likewise.
12098         [C99-based-standards] (PRIdFAST32): Likewise.
12099         [C99-based-standards] (PRIiFAST32): Likewise.
12100         [C99-based-standards] (PRIoFAST32): Likewise.
12101         [C99-based-standards] (PRIuFAST32): Likewise.
12102         [C99-based-standards] (PRIxFAST32): Likewise.
12103         [C99-based-standards] (PRIXFAST32): Likewise.
12104         [C99-based-standards] (SCNdFAST32): Likewise.
12105         [C99-based-standards] (SCNiFAST32): Likewise.
12106         [C99-based-standards] (SCNoFAST32): Likewise.
12107         [C99-based-standards] (SCNuFAST32): Likewise.
12108         [C99-based-standards] (SCNxFAST32): Likewise.
12109         [C99-based-standards] (PRId64): Likewise.
12110         [C99-based-standards] (PRIi64): Likewise.
12111         [C99-based-standards] (PRIo64): Likewise.
12112         [C99-based-standards] (PRIu64): Likewise.
12113         [C99-based-standards] (PRIx64): Likewise.
12114         [C99-based-standards] (PRIX64): Likewise.
12115         [C99-based-standards] (SCNd64): Likewise.
12116         [C99-based-standards] (SCNi64): Likewise.
12117         [C99-based-standards] (SCNo64): Likewise.
12118         [C99-based-standards] (SCNu64): Likewise.
12119         [C99-based-standards] (SCNx64): Likewise.
12120         [C99-based-standards] (PRIdLEAST64): Likewise.
12121         [C99-based-standards] (PRIiLEAST64): Likewise.
12122         [C99-based-standards] (PRIoLEAST64): Likewise.
12123         [C99-based-standards] (PRIuLEAST64): Likewise.
12124         [C99-based-standards] (PRIxLEAST64): Likewise.
12125         [C99-based-standards] (PRIXLEAST64): Likewise.
12126         [C99-based-standards] (SCNdLEAST64): Likewise.
12127         [C99-based-standards] (SCNiLEAST64): Likewise.
12128         [C99-based-standards] (SCNoLEAST64): Likewise.
12129         [C99-based-standards] (SCNuLEAST64): Likewise.
12130         [C99-based-standards] (SCNxLEAST64): Likewise.
12131         [C99-based-standards] (PRIdFAST64): Likewise.
12132         [C99-based-standards] (PRIiFAST64): Likewise.
12133         [C99-based-standards] (PRIoFAST64): Likewise.
12134         [C99-based-standards] (PRIuFAST64): Likewise.
12135         [C99-based-standards] (PRIxFAST64): Likewise.
12136         [C99-based-standards] (PRIXFAST64): Likewise.
12137         [C99-based-standards] (SCNdFAST64): Likewise.
12138         [C99-based-standards] (SCNiFAST64): Likewise.
12139         [C99-based-standards] (SCNoFAST64): Likewise.
12140         [C99-based-standards] (SCNuFAST64): Likewise.
12141         [C99-based-standards] (SCNxFAST64): Likewise.
12142         [C99-based-standards] (PRIdMAX): Likewise.
12143         [C99-based-standards] (PRIiMAX): Likewise.
12144         [C99-based-standards] (PRIoMAX): Likewise.
12145         [C99-based-standards] (PRIuMAX): Likewise.
12146         [C99-based-standards] (PRIxMAX): Likewise.
12147         [C99-based-standards] (PRIXMAX): Likewise.
12148         [C99-based-standards] (SCNdMAX): Likewise.
12149         [C99-based-standards] (SCNiMAX): Likewise.
12150         [C99-based-standards] (SCNoMAX): Likewise.
12151         [C99-based-standards] (SCNuMAX): Likewise.
12152         [C99-based-standards] (SCNxMAX): Likewise.
12153         [C99-based-standards] (PRIdPTR): Likewise.
12154         [C99-based-standards] (PRIiPTR): Likewise.
12155         [C99-based-standards] (PRIoPTR): Likewise.
12156         [C99-based-standards] (PRIuPTR): Likewise.
12157         [C99-based-standards] (PRIxPTR): Likewise.
12158         [C99-based-standards] (PRIXPTR): Likewise.
12159         [C99-based-standards] (SCNdPTR): Likewise.
12160         [C99-based-standards] (SCNiPTR): Likewise.
12161         [C99-based-standards] (SCNoPTR): Likewise.
12162         [C99-based-standards] (SCNuPTR): Likewise.
12163         [C99-based-standards] (SCNxPTR): Likewise.
12164         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
12165         allow.
12166         * conform/data/stdint.h-data: Update comments to clarify
12167         requirements.
12168         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
12169         type.
12170         [C99-based standards] (INT8_MAX): Likewise.
12171         [C99-based standards] (INT16_MIN): Likewise.
12172         [C99-based standards] (INT16_MAX): Likewise.
12173         [C99-based standards] (INT32_MIN): Likewise.
12174         [C99-based standards] (INT32_MAX): Likewise.
12175         [C99-based standards] (INT64_MIN): Likewise.
12176         [C99-based standards] (INT64_MAX): Likewise.
12177         [C99-based standards] (UINT8_MAX): Likewise.
12178         [C99-based standards] (UINT16_MAX): Likewise.
12179         [C99-based standards] (UINT32_MAX): Likewise.
12180         [C99-based standards] (UINT64_MAX): Likewise.
12181         [C99-based standards] (INT_LEAST8_MIN): Likewise.
12182         [C99-based standards] (INT_LEAST8_MAX): Likewise.
12183         [C99-based standards] (INT_LEAST16_MIN): Likewise.
12184         [C99-based standards] (INT_LEAST16_MAX): Likewise.
12185         [C99-based standards] (INT_LEAST32_MIN): Likewise.
12186         [C99-based standards] (INT_LEAST32_MAX): Likewise.
12187         [C99-based standards] (INT_LEAST64_MIN): Likewise.
12188         [C99-based standards] (INT_LEAST64_MAX): Likewise.
12189         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
12190         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
12191         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
12192         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
12193         [C99-based standards] (INT_FAST8_MIN): Likewise.
12194         [C99-based standards] (INT_FAST8_MAX): Likewise.
12195         [C99-based standards] (INT_FAST16_MIN): Likewise.
12196         [C99-based standards] (INT_FAST16_MAX): Likewise.
12197         [C99-based standards] (INT_FAST32_MIN): Likewise.
12198         [C99-based standards] (INT_FAST32_MAX): Likewise.
12199         [C99-based standards] (INT_FAST64_MIN): Likewise.
12200         [C99-based standards] (INT_FAST64_MAX): Likewise.
12201         [C99-based standards] (UINT_FAST8_MAX): Likewise.
12202         [C99-based standards] (UINT_FAST16_MAX): Likewise.
12203         [C99-based standards] (UINT_FAST32_MAX): Likewise.
12204         [C99-based standards] (UINT_FAST64_MAX): Likewise.
12205         [C99-based standards] (INTPTR_MIN): Likewise.
12206         [C99-based standards] (INTPTR_MAX): Likewise.
12207         [C99-based standards] (UINTPTR_MAX): Likewise.
12208         [C99-based standards] (INTMAX_MIN): Likewise.
12209         [C99-based standards] (INTMAX_MAX): Likewise.
12210         [C99-based standards] (UINTMAX_MAX): Likewise.
12211         [C99-based standards] (PTRDIFF_MIN): Likewise.
12212         [C99-based standards] (PTRDIFF_MAX): Likewise.
12213         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
12214         [C99-based standards] (SIZE_MAX): Likewise.
12215         [C99-based standards] (WCHAR_MAX): Likewise.
12216         [C99-based standards] (WINT_MAX): Likewise.
12217         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
12218         constraint on value.
12219         [C99-based standards] (WCHAR_MIN): Likewise.
12220         [C99-based standards] (WINT_MIN): Likewise.
12221         [C99-based standards] (*_t): Allow.
12222         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
12223         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
12224         Include math.h-data and complex.h-data.  Remove all expectations
12225         of math.h and complex.h contents.
12226         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
12227         at end of line.
12228         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
12229         (struct tm): Expect tag.
12230         [C99-based-standards] (wcstof): Expect function.
12231         [C99-based-standards] (wcstold): Likewise.
12232         [C99-based-standards] (wcstoll): Likewise.
12233         [C99-based-standards] (wcstoull): Likewise.
12234         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
12235         macro-int-constant.  Specify type.
12236         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
12237         constraint on value.
12238         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12239         Specify type.
12240         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
12241         Specify value.
12242         [ISO C standards]: Do not allow headers.
12243         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
12244         wcs[abcdefghijklmnopqrstuvwxyz]*.
12245         [ISO C standards] (*_t): Do not allow.
12246         * conform/data/wctype.h-data [C99-based standards] (iswblank):
12247         Expect function.
12248         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
12249         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12250         Specify type.
12251         [ISO C standards]: Do not allow headers.
12252         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
12253         is[abcdefghijklmnopqrstuvwxyz]*.
12254         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
12255         to[abcdefghijklmnopqrstuvwxyz]*.
12256         [ISO C standards] (*_t): Do not allow.
12257         * conform/data/stdalign.h-data: New file.
12258         * conform/data/stdbool.h-data: Likewise.
12259         * conform/data/stdnoreturn.h-data: Likewise.
12260
12261 2012-11-07  Roland McGrath  <roland@hack.frob.com>
12262
12263         [BZ #14815]
12264         * manual/filesys.texi (Directory Entries): Typo fix.
12265         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
12266
12267 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12268
12269         * elf/elf.h (EM_AARCH64): New macro.
12270         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
12271         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
12272         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
12273         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
12274         (R_AARCH64_TLSDESC): Likewise.
12275         (NT_ARM_TLS): Likewise.
12276         (NT_ARM_HW_BREAK): Likewise.
12277         (NT_ARM_HW_WATCH): Likewise.
12278
12279 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12280
12281         [BZ #14811]
12282         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
12283         (__ieee754_powl): Saturate nonzero exponents with absolute value
12284         below 0x1p-79 to +/- 0x1p-79.
12285         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
12286         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
12287         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
12288         nonzero exponents with absolute value below 0x1p-32 to +/-
12289         0x1p-32.
12290         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
12291         (__ieee754_powl): Saturate nonzero exponents with absolute value
12292         below 0x1p-79 to +/- 0x1p-79.
12293         * math/libm-test.inc (pow_test): Add more tests.
12294
12295 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12296
12297         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
12298         _dl_s390_cap_flags with kernel. Increase string length.
12299         (_dl_s390_platforms): Add z196 and zEC12.
12300
12301 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12302
12303         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
12304         Change XOPEN21K to XOPEN2K.
12305
12306 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12307
12308         * string/memmove.c: Use memcpy when possible.
12309
12310 2012-11-06  Andreas Jaeger  <aj@suse.de>
12311
12312         * po/eo.po: Update from translation team.
12313
12314 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
12315
12316         [BZ #14793]
12317         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
12318         exponent and small x and y exponents, scale x or y up.  Increase
12319         by 2 the exponent used in scaling up.
12320         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12321         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12322         * math/libm-test.inc (fma_test): Add more tests.
12323         (fma_test_towardzero): Likewise.
12324         (fma_test_downward): Likewise.
12325         (fma_test_upward): Likewise.
12326
12327 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
12328
12329         [BZ #14805]
12330         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
12331         fenv_t *.
12332
12333         [BZ #14801]
12334         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
12335         namespace for names of struct fields.
12336         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
12337         fenv_t fields.
12338         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
12339         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
12340
12341 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12342
12343         [BZ #3665]
12344         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
12345
12346 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
12347
12348         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
12349         PTR_DEMANGLE.
12350
12351         [BZ #5246]
12352         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
12353         PTR_DEMANGLE.
12354
12355 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
12356
12357         [BZ #14797]
12358         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
12359         definitely overflow as x * y not x * y + z.
12360         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12361         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12362         * math/libm-test.inc (fma_test): Add more tests.
12363         (fma_test_towardzero): Likewise.
12364         (fma_test_downward): Likewise.
12365         (fma_test_upward): Likewise.
12366
12367 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
12368
12369         [BZ #157]
12370
12371         * include/stub-tag.h: Remove file.
12372         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
12373         '#include' of it.
12374         * manual/maint.texi (Porting): Don't reference it.
12375         * Makerules ($(objpfx)stubs): Likewise.
12376         * dirent/closedir.c: Don't include <stub-tag.h>.
12377         * dirent/dirfd.c: Likewise.
12378         * dirent/fdopendir.c: Likewise.
12379         * dirent/getdents.c: Likewise.
12380         * dirent/getdents64.c: Likewise.
12381         * dirent/opendir.c: Likewise.
12382         * dirent/readdir.c: Likewise.
12383         * dirent/readdir64.c: Likewise.
12384         * dirent/readdir64_r.c: Likewise.
12385         * dirent/readdir_r.c: Likewise.
12386         * dirent/rewinddir.c: Likewise.
12387         * dirent/seekdir.c: Likewise.
12388         * dirent/telldir.c: Likewise.
12389         * gmon/profil.c: Likewise.
12390         * grp/setgroups.c: Likewise.
12391         * inet/if_index.c: Likewise.
12392         * io/access.c: Likewise.
12393         * io/chdir.c: Likewise.
12394         * io/chmod.c: Likewise.
12395         * io/chown.c: Likewise.
12396         * io/close.c: Likewise.
12397         * io/dup.c: Likewise.
12398         * io/dup2.c: Likewise.
12399         * io/dup3.c: Likewise.
12400         * io/euidaccess.c: Likewise.
12401         * io/faccessat.c: Likewise.
12402         * io/fchdir.c: Likewise.
12403         * io/fchmod.c: Likewise.
12404         * io/fchmodat.c: Likewise.
12405         * io/fchown.c: Likewise.
12406         * io/fchownat.c: Likewise.
12407         * io/fcntl.c: Likewise.
12408         * io/flock.c: Likewise.
12409         * io/fstatfs.c: Likewise.
12410         * io/fstatfs64.c: Likewise.
12411         * io/fstatvfs.c: Likewise.
12412         * io/fstatvfs64.c: Likewise.
12413         * io/futimens.c: Likewise.
12414         * io/fxstat.c: Likewise.
12415         * io/fxstat64.c: Likewise.
12416         * io/fxstatat.c: Likewise.
12417         * io/fxstatat64.c: Likewise.
12418         * io/getcwd.c: Likewise.
12419         * io/isatty.c: Likewise.
12420         * io/lchmod.c: Likewise.
12421         * io/lchown.c: Likewise.
12422         * io/link.c: Likewise.
12423         * io/linkat.c: Likewise.
12424         * io/lseek.c: Likewise.
12425         * io/lseek64.c: Likewise.
12426         * io/lxstat64.c: Likewise.
12427         * io/mkdir.c: Likewise.
12428         * io/mkdirat.c: Likewise.
12429         * io/mkfifo.c: Likewise.
12430         * io/mkfifoat.c: Likewise.
12431         * io/open.c: Likewise.
12432         * io/open64.c: Likewise.
12433         * io/openat.c: Likewise.
12434         * io/openat64.c: Likewise.
12435         * io/pipe.c: Likewise.
12436         * io/pipe2.c: Likewise.
12437         * io/poll.c: Likewise.
12438         * io/posix_fadvise.c: Likewise.
12439         * io/posix_fadvise64.c: Likewise.
12440         * io/posix_fallocate.c: Likewise.
12441         * io/posix_fallocate64.c: Likewise.
12442         * io/read.c: Likewise.
12443         * io/readlink.c: Likewise.
12444         * io/readlinkat.c: Likewise.
12445         * io/rmdir.c: Likewise.
12446         * io/sendfile.c: Likewise.
12447         * io/sendfile64.c: Likewise.
12448         * io/statfs.c: Likewise.
12449         * io/statfs64.c: Likewise.
12450         * io/statvfs.c: Likewise.
12451         * io/statvfs64.c: Likewise.
12452         * io/symlink.c: Likewise.
12453         * io/symlinkat.c: Likewise.
12454         * io/ttyname.c: Likewise.
12455         * io/ttyname_r.c: Likewise.
12456         * io/umask.c: Likewise.
12457         * io/unlink.c: Likewise.
12458         * io/unlinkat.c: Likewise.
12459         * io/utime.c: Likewise.
12460         * io/utimensat.c: Likewise.
12461         * io/write.c: Likewise.
12462         * io/xmknod.c: Likewise.
12463         * io/xmknodat.c: Likewise.
12464         * io/xstat.c: Likewise.
12465         * io/xstat64.c: Likewise.
12466         * login/getpt.c: Likewise.
12467         * login/grantpt.c: Likewise.
12468         * login/unlockpt.c: Likewise.
12469         * math/e_acoshl.c: Likewise.
12470         * math/e_acosl.c: Likewise.
12471         * math/e_asinl.c: Likewise.
12472         * math/e_atan2l.c: Likewise.
12473         * math/e_atanhl.c: Likewise.
12474         * math/e_coshl.c: Likewise.
12475         * math/e_expl.c: Likewise.
12476         * math/e_fmodl.c: Likewise.
12477         * math/e_gammal_r.c: Likewise.
12478         * math/e_hypotl.c: Likewise.
12479         * math/e_j0l.c: Likewise.
12480         * math/e_j1l.c: Likewise.
12481         * math/e_jnl.c: Likewise.
12482         * math/e_lgammal_r.c: Likewise.
12483         * math/e_log10l.c: Likewise.
12484         * math/e_log2l.c: Likewise.
12485         * math/e_logl.c: Likewise.
12486         * math/e_powl.c: Likewise.
12487         * math/e_rem_pio2l.c: Likewise.
12488         * math/e_sinhl.c: Likewise.
12489         * math/e_sqrtl.c: Likewise.
12490         * math/fclrexcpt.c: Likewise.
12491         * math/fedisblxcpt.c: Likewise.
12492         * math/feenablxcpt.c: Likewise.
12493         * math/fegetenv.c: Likewise.
12494         * math/fegetexcept.c: Likewise.
12495         * math/fegetround.c: Likewise.
12496         * math/feholdexcpt.c: Likewise.
12497         * math/fesetenv.c: Likewise.
12498         * math/fesetround.c: Likewise.
12499         * math/feupdateenv.c: Likewise.
12500         * math/fgetexcptflg.c: Likewise.
12501         * math/fraiseexcpt.c: Likewise.
12502         * math/fsetexcptflg.c: Likewise.
12503         * math/ftestexcept.c: Likewise.
12504         * math/k_cosl.c: Likewise.
12505         * math/k_rem_pio2l.c: Likewise.
12506         * math/k_sinl.c: Likewise.
12507         * math/k_tanl.c: Likewise.
12508         * math/s_asinhl.c: Likewise.
12509         * math/s_atanl.c: Likewise.
12510         * math/s_cbrtl.c: Likewise.
12511         * math/s_erfl.c: Likewise.
12512         * math/s_expm1l.c: Likewise.
12513         * math/s_log1pl.c: Likewise.
12514         * math/s_tanhl.c: Likewise.
12515         * misc/acct.c: Likewise.
12516         * misc/brk.c: Likewise.
12517         * misc/chflags.c: Likewise.
12518         * misc/chroot.c: Likewise.
12519         * misc/fchflags.c: Likewise.
12520         * misc/fgetxattr.c: Likewise.
12521         * misc/flistxattr.c: Likewise.
12522         * misc/fremovexattr.c: Likewise.
12523         * misc/fsetxattr.c: Likewise.
12524         * misc/fsync.c: Likewise.
12525         * misc/ftruncate.c: Likewise.
12526         * misc/futimes.c: Likewise.
12527         * misc/futimesat.c: Likewise.
12528         * misc/getdomain.c: Likewise.
12529         * misc/getdtsz.c: Likewise.
12530         * misc/gethostid.c: Likewise.
12531         * misc/gethostname.c: Likewise.
12532         * misc/getloadavg.c: Likewise.
12533         * misc/getpagesize.c: Likewise.
12534         * misc/getsysstats.c: Likewise.
12535         * misc/getxattr.c: Likewise.
12536         * misc/gtty.c: Likewise.
12537         * misc/ioctl.c: Likewise.
12538         * misc/lgetxattr.c: Likewise.
12539         * misc/listxattr.c: Likewise.
12540         * misc/llistxattr.c: Likewise.
12541         * misc/lremovexattr.c: Likewise.
12542         * misc/lsetxattr.c: Likewise.
12543         * misc/lutimes.c: Likewise.
12544         * misc/madvise.c: Likewise.
12545         * misc/mincore.c: Likewise.
12546         * misc/mlock.c: Likewise.
12547         * misc/mlockall.c: Likewise.
12548         * misc/mmap.c: Likewise.
12549         * misc/mprotect.c: Likewise.
12550         * misc/msync.c: Likewise.
12551         * misc/munlock.c: Likewise.
12552         * misc/munlockall.c: Likewise.
12553         * misc/munmap.c: Likewise.
12554         * misc/preadv.c: Likewise.
12555         * misc/preadv64.c: Likewise.
12556         * misc/ptrace.c: Likewise.
12557         * misc/pwritev.c: Likewise.
12558         * misc/pwritev64.c: Likewise.
12559         * misc/readv.c: Likewise.
12560         * misc/reboot.c: Likewise.
12561         * misc/remap_file_pages.c: Likewise.
12562         * misc/removexattr.c: Likewise.
12563         * misc/revoke.c: Likewise.
12564         * misc/select.c: Likewise.
12565         * misc/setdomain.c: Likewise.
12566         * misc/setegid.c: Likewise.
12567         * misc/seteuid.c: Likewise.
12568         * misc/sethostid.c: Likewise.
12569         * misc/sethostname.c: Likewise.
12570         * misc/setregid.c: Likewise.
12571         * misc/setreuid.c: Likewise.
12572         * misc/setxattr.c: Likewise.
12573         * misc/sstk.c: Likewise.
12574         * misc/stty.c: Likewise.
12575         * misc/swapoff.c: Likewise.
12576         * misc/swapon.c: Likewise.
12577         * misc/sync.c: Likewise.
12578         * misc/syncfs.c: Likewise.
12579         * misc/syscall.c: Likewise.
12580         * misc/truncate.c: Likewise.
12581         * misc/ualarm.c: Likewise.
12582         * misc/usleep.c: Likewise.
12583         * misc/ustat.c: Likewise.
12584         * misc/utimes.c: Likewise.
12585         * misc/vhangup.c: Likewise.
12586         * misc/writev.c: Likewise.
12587         * posix/_exit.c: Likewise.
12588         * posix/alarm.c: Likewise.
12589         * posix/execve.c: Likewise.
12590         * posix/fexecve.c: Likewise.
12591         * posix/fork.c: Likewise.
12592         * posix/fpathconf.c: Likewise.
12593         * posix/getaddrinfo.c: Likewise.
12594         * posix/getegid.c: Likewise.
12595         * posix/geteuid.c: Likewise.
12596         * posix/getgid.c: Likewise.
12597         * posix/getgroups.c: Likewise.
12598         * posix/getlogin.c: Likewise.
12599         * posix/getlogin_r.c: Likewise.
12600         * posix/getpgid.c: Likewise.
12601         * posix/getpid.c: Likewise.
12602         * posix/getppid.c: Likewise.
12603         * posix/getresgid.c: Likewise.
12604         * posix/getresuid.c: Likewise.
12605         * posix/getsid.c: Likewise.
12606         * posix/getuid.c: Likewise.
12607         * posix/glob64.c: Likewise.
12608         * posix/nanosleep.c: Likewise.
12609         * posix/pathconf.c: Likewise.
12610         * posix/pause.c: Likewise.
12611         * posix/posix_madvise.c: Likewise.
12612         * posix/pread.c: Likewise.
12613         * posix/pread64.c: Likewise.
12614         * posix/pwrite.c: Likewise.
12615         * posix/pwrite64.c: Likewise.
12616         * posix/sched_getaffinity.c: Likewise.
12617         * posix/sched_getp.c: Likewise.
12618         * posix/sched_gets.c: Likewise.
12619         * posix/sched_primax.c: Likewise.
12620         * posix/sched_primin.c: Likewise.
12621         * posix/sched_rr_gi.c: Likewise.
12622         * posix/sched_setaffinity.c: Likewise.
12623         * posix/sched_setp.c: Likewise.
12624         * posix/sched_sets.c: Likewise.
12625         * posix/sched_yield.c: Likewise.
12626         * posix/setgid.c: Likewise.
12627         * posix/setlogin.c: Likewise.
12628         * posix/setpgid.c: Likewise.
12629         * posix/setresgid.c: Likewise.
12630         * posix/setresuid.c: Likewise.
12631         * posix/setsid.c: Likewise.
12632         * posix/setuid.c: Likewise.
12633         * posix/sleep.c: Likewise.
12634         * posix/spawni.c: Likewise.
12635         * posix/sysconf.c: Likewise.
12636         * posix/times.c: Likewise.
12637         * posix/wait.c: Likewise.
12638         * posix/wait3.c: Likewise.
12639         * posix/wait4.c: Likewise.
12640         * posix/waitpid.c: Likewise.
12641         * resolv/gai_sigqueue.c: Likewise.
12642         * resource/getpriority.c: Likewise.
12643         * resource/getrlimit.c: Likewise.
12644         * resource/getrusage.c: Likewise.
12645         * resource/nice.c: Likewise.
12646         * resource/setpriority.c: Likewise.
12647         * resource/setrlimit.c: Likewise.
12648         * resource/ulimit.c: Likewise.
12649         * rt/aio_cancel.c: Likewise.
12650         * rt/aio_fsync.c: Likewise.
12651         * rt/aio_read.c: Likewise.
12652         * rt/aio_sigqueue.c: Likewise.
12653         * rt/aio_suspend.c: Likewise.
12654         * rt/aio_write.c: Likewise.
12655         * rt/clock_getres.c: Likewise.
12656         * rt/clock_gettime.c: Likewise.
12657         * rt/clock_nanosleep.c: Likewise.
12658         * rt/clock_settime.c: Likewise.
12659         * rt/lio_listio.c: Likewise.
12660         * rt/mq_close.c: Likewise.
12661         * rt/mq_getattr.c: Likewise.
12662         * rt/mq_notify.c: Likewise.
12663         * rt/mq_open.c: Likewise.
12664         * rt/mq_receive.c: Likewise.
12665         * rt/mq_send.c: Likewise.
12666         * rt/mq_setattr.c: Likewise.
12667         * rt/mq_timedreceive.c: Likewise.
12668         * rt/mq_timedsend.c: Likewise.
12669         * rt/mq_unlink.c: Likewise.
12670         * rt/shm_open.c: Likewise.
12671         * rt/shm_unlink.c: Likewise.
12672         * rt/timer_create.c: Likewise.
12673         * rt/timer_delete.c: Likewise.
12674         * rt/timer_getoverr.c: Likewise.
12675         * rt/timer_gettime.c: Likewise.
12676         * rt/timer_settime.c: Likewise.
12677         * setjmp/__longjmp.c: Likewise.
12678         * setjmp/setjmp.c: Likewise.
12679         * signal/kill.c: Likewise.
12680         * signal/killpg.c: Likewise.
12681         * signal/raise.c: Likewise.
12682         * signal/sigaction.c: Likewise.
12683         * signal/sigaltstack.c: Likewise.
12684         * signal/sigblock.c: Likewise.
12685         * signal/sigignore.c: Likewise.
12686         * signal/sigintr.c: Likewise.
12687         * signal/signal.c: Likewise.
12688         * signal/sigpause.c: Likewise.
12689         * signal/sigpending.c: Likewise.
12690         * signal/sigqueue.c: Likewise.
12691         * signal/sigreturn.c: Likewise.
12692         * signal/sigset.c: Likewise.
12693         * signal/sigsetmask.c: Likewise.
12694         * signal/sigstack.c: Likewise.
12695         * signal/sigsuspend.c: Likewise.
12696         * signal/sigtimedwait.c: Likewise.
12697         * signal/sigvec.c: Likewise.
12698         * signal/sigwait.c: Likewise.
12699         * signal/sigwaitinfo.c: Likewise.
12700         * signal/sysv_signal.c: Likewise.
12701         * socket/accept.c: Likewise.
12702         * socket/accept4.c: Likewise.
12703         * socket/bind.c: Likewise.
12704         * socket/connect.c: Likewise.
12705         * socket/getpeername.c: Likewise.
12706         * socket/getsockname.c: Likewise.
12707         * socket/getsockopt.c: Likewise.
12708         * socket/isfdtype.c: Likewise.
12709         * socket/listen.c: Likewise.
12710         * socket/recv.c: Likewise.
12711         * socket/recvfrom.c: Likewise.
12712         * socket/recvmsg.c: Likewise.
12713         * socket/send.c: Likewise.
12714         * socket/sendmsg.c: Likewise.
12715         * socket/sendto.c: Likewise.
12716         * socket/setsockopt.c: Likewise.
12717         * socket/shutdown.c: Likewise.
12718         * socket/sockatmark.c: Likewise.
12719         * socket/socket.c: Likewise.
12720         * socket/socketpair.c: Likewise.
12721         * stdio-common/ctermid.c: Likewise.
12722         * stdio-common/cuserid.c: Likewise.
12723         * stdio-common/remove.c: Likewise.
12724         * stdio-common/rename.c: Likewise.
12725         * stdio-common/renameat.c: Likewise.
12726         * stdio-common/tempname.c: Likewise.
12727         * stdlib/getcontext.c: Likewise.
12728         * stdlib/makecontext.c: Likewise.
12729         * stdlib/setcontext.c: Likewise.
12730         * stdlib/swapcontext.c: Likewise.
12731         * stdlib/system.c: Likewise.
12732         * streams/fattach.c: Likewise.
12733         * streams/fdetach.c: Likewise.
12734         * streams/getmsg.c: Likewise.
12735         * streams/getpmsg.c: Likewise.
12736         * streams/putmsg.c: Likewise.
12737         * streams/putpmsg.c: Likewise.
12738         * sysdeps/unix/bsd/getpt.c: Likewise.
12739         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
12740         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
12741         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
12742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
12743         Likewise.
12744         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
12745         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
12746         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
12747         * sysvipc/msgctl.c: Likewise.
12748         * sysvipc/msgget.c: Likewise.
12749         * sysvipc/msgrcv.c: Likewise.
12750         * sysvipc/msgsnd.c: Likewise.
12751         * sysvipc/semctl.c: Likewise.
12752         * sysvipc/semget.c: Likewise.
12753         * sysvipc/semop.c: Likewise.
12754         * sysvipc/semtimedop.c: Likewise.
12755         * sysvipc/shmat.c: Likewise.
12756         * sysvipc/shmctl.c: Likewise.
12757         * sysvipc/shmdt.c: Likewise.
12758         * sysvipc/shmget.c: Likewise.
12759         * termios/tcdrain.c: Likewise.
12760         * termios/tcflow.c: Likewise.
12761         * termios/tcflush.c: Likewise.
12762         * termios/tcgetattr.c: Likewise.
12763         * termios/tcgetpgrp.c: Likewise.
12764         * termios/tcsendbrk.c: Likewise.
12765         * termios/tcsetattr.c: Likewise.
12766         * termios/tcsetpgrp.c: Likewise.
12767         * time/adjtime.c: Likewise.
12768         * time/clock.c: Likewise.
12769         * time/getitimer.c: Likewise.
12770         * time/gettimeofday.c: Likewise.
12771         * time/setitimer.c: Likewise.
12772         * time/settimeofday.c: Likewise.
12773         * time/stime.c: Likewise.
12774         * time/time.c: Likewise.
12775
12776 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
12777
12778         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
12779         /usr/old/bin.
12780
12781         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
12782         instead of spaces.
12783         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
12784
12785 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
12786
12787         [BZ #14796]
12788         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
12789         FE_TONEAREST before applying Dekker multiplication and Knuth
12790         addition.  Clear inexact exceptions and check for exact zero
12791         results afterwards.
12792         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12793         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
12794         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12795         * math/libm-test.inc (fma_test): Add more tests.
12796         (fma_test_towardzero): Likewise.
12797         (fma_test_downward): Likewise.
12798         (fma_test_upward): Likewise.
12799         * sysdeps/generic/math_private.h (default_libc_fesetround): New
12800         function.
12801         (libc_fesetround): New macro.
12802         (libc_fesetroundf): Likewise.
12803         (libc_fesetroundl): Likewise.
12804         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
12805         function.
12806         (libc_fesetround_387): Likewise.
12807         (libc_fesetroundf): New macro.
12808         (libc_fesetround): Likewise.
12809         (libc_fesetroundl): Likewise.
12810         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
12811         function.
12812         (libc_fesetroundf): New macro.
12813         (libc_fesetround): Likewise.
12814         (libc_fesetroundl): Likewise.
12815         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
12816         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
12817         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
12818         libm_hidden_ver.
12819         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
12820         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
12821         libm_hidden_def.
12822         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
12823         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
12824         libm_hidden_ver.
12825         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
12826         libm_hidden_def.
12827
12828         [BZ #3439]
12829         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
12830         integer constant usable in #if and use that to give value to enum
12831         constant.
12832         (FE_DIVBYZERO): Likewise.
12833         (FE_UNDERFLOW): Likewise.
12834         (FE_OVERFLOW): Likewise.
12835         (FE_INVALID): Likewise.
12836         (FE_INVALID_SNAN): Likewise.
12837         (FE_INVALID_ISI): Likewise.
12838         (FE_INVALID_IDI): Likewise.
12839         (FE_INVALID_ZDZ): Likewise.
12840         (FE_INVALID_IMZ): Likewise.
12841         (FE_INVALID_COMPARE): Likewise.
12842         (FE_INVALID_SOFTWARE): Likewise.
12843         (FE_INVALID_SQRT): Likewise.
12844         (FE_INVALID_INTEGER_CONVERSION): Likewise.
12845         (FE_TONEAREST): Likewise.
12846         (FE_TOWARDZERO): Likewise.
12847         (FE_UPWARD): Likewise.
12848         (FE_DOWNWARD): Likewise.
12849         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
12850         (FE_DIVBYZERO): Likewise.
12851         (FE_OVERFLOW): Likewise.
12852         (FE_UNDERFLOW): Likewise.
12853         (FE_INEXACT): Likewise.
12854         (FE_TONEAREST): Likewise.
12855         (FE_DOWNWARD): Likewise.
12856         (FE_UPWARD): Likewise.
12857         (FE_TOWARDZERO): Likewise.
12858         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
12859         (FE_UNDERFLOW): Likewise.
12860         (FE_OVERFLOW): Likewise.
12861         (FE_DIVBYZERO): Likewise.
12862         (FE_INVALID): Likewise.
12863         (FE_TONEAREST): Likewise.
12864         (FE_TOWARDZERO): Likewise.
12865         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
12866         (FE_OVERFLOW): Likewise.
12867         (FE_UNDERFLOW): Likewise.
12868         (FE_DIVBYZERO): Likewise.
12869         (FE_INEXACT): Likewise.
12870         (FE_TONEAREST): Likewise.
12871         (FE_TOWARDZERO): Likewise.
12872         (FE_UPWARD): Likewise.
12873         (FE_DOWNWARD): Likewise.
12874         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
12875         (FE_DIVBYZERO): Likewise.
12876         (FE_OVERFLOW): Likewise.
12877         (FE_UNDERFLOW): Likewise.
12878         (FE_INEXACT): Likewise.
12879         (FE_TONEAREST): Likewise.
12880         (FE_DOWNWARD): Likewise.
12881         (FE_UPWARD): Likewise.
12882         (FE_TOWARDZERO): Likewise.
12883
12884 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
12885
12886         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
12887
12888 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
12889
12890         * scripts/cross-test-ssh.sh (command): Use newlines to separate
12891         commands.  Quote $PWD.
12892         (blacklist_exports): Don't use remove_newlines.  Replace "declare
12893         -x" by "export".
12894         (remove_newlines): Remove.
12895
12896 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
12897
12898         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
12899         * stdlib/stdlib.h (atof): Moved to ...
12900         * include/bits/stdlib-float.h: Here.  New file.
12901         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
12902         * stdlib/bits/stdlib-float.h: New file.
12903         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
12904         -mno-sse -mno-mmx.
12905         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
12906         <xmmintrin.h>.
12907
12908 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
12909
12910         * conform/conformtest.pl (@headers): Add fenv.h.
12911         * conform/data/fenv.h-data: New file.
12912         * include/fenv.h [_ISOMAC]: Disable all contents of file except
12913         include of <math/fenv.h>.
12914
12915         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
12916         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
12917         && !UNIX98].  Enables tests for XOPEN2K8.
12918         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
12919         POSIX2008]: Likewise.
12920
12921         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
12922         (struct rusage): Do not expect type or its members.
12923
12924         [BZ #3439]
12925         * math/math.h (FP_NAN): Define macro to integer constant usable in
12926         #if and use that to give value to enum constant.
12927         (FP_INFINITE): Likewise.
12928         (FP_ZERO): Likewise.
12929         (FP_SUBNORMAL): Likewise.
12930         (FP_NORMAL): Likewise.
12931
12932 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
12933
12934         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
12935         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
12936         arguments.
12937
12938 2012-11-02  Roland McGrath  <roland@hack.frob.com>
12939
12940         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
12941         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
12942         autoconf-time if not.
12943         * configure.in: Remove AC_PREREQ.
12944
12945 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12946
12947         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
12948         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
12949         of the internal implementation.
12950
12951 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
12952
12953         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
12954         except include of <misc/sys/syslog.h>.
12955
12956 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12957
12958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
12959         function returns with a NULL context exit with zero.
12960
12961 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12962
12963         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
12964
12965 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
12966
12967         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
12968         (run_program_cmd): This.
12969         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
12970         (tst_langinfo): New variable.  Use it.
12971
12972 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
12973
12974         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
12975         floating point opcodes.
12976
12977 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
12978
12979         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
12980         variable.
12981
12982         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
12983
12984         * sysdeps/mach/hurd/powerpc: Remove directory.
12985         * sysdeps/mach/powerpc: Likewise.
12986
12987 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12988
12989         * scripts/check-local-headers.sh: Ignore c++ headers.
12990
12991 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
12992
12993         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
12994         __libc_cleanup_region_start argument.
12995
12996 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
12997
12998         [BZ #14784]
12999         [BZ #14785]
13000         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
13001         x * y using scaling, not as x * y + z.
13002         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13003         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13004         * math/libm-test.inc (fma_test): Add more tests.
13005         (fma_test_towardzero): Likewise.
13006         (fma_test_downward): Likewise.
13007         (fma_test_upward): Likewise.
13008
13009 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13010
13011         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
13012
13013 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13014
13015         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
13016         New variable.
13017
13018 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
13019
13020         * rt/tst-shm.c (worker): Correct checking for mmap failure.
13021
13022 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13023
13024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13025         Fix sort order.
13026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13027         Likewise.
13028
13029 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13030
13031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13032         Fix the order of the list for glibc 2.17.
13033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13034         Likewise.
13035
13036 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13037
13038         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13039
13040 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13041
13042         [BZ #14610]
13043         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
13044         for low part of x being zero before using __atanl (y).
13045         * math/libm-test.inc (atan2_test): Add another test.
13046
13047         * manual/install.texi (Configuring and compiling): Document
13048         general use of test-wrapper and test-wrapper-env.
13049         * INSTALL: Regenerated.
13050
13051         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
13052         (__fma): Do not extract and scale down low bits on after-rounding
13053         systems when result rounded to normal precision would have normal
13054         exponent.
13055         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
13056         (__fmal): Do not extract and scale down low bits on after-rounding
13057         systems when result rounded to normal precision would have normal
13058         exponent.
13059         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
13060         (__fmal): Do not extract and scale down low bits on after-rounding
13061         systems when result rounded to normal precision would have normal
13062         exponent.
13063         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
13064         macro.
13065         (fma_test): Add more tests.
13066         (fma_test_towardzero): Likewise.
13067         (fma_test_downward): Likewise.
13068         (fma_test_upward): Likewise.
13069
13070 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
13071
13072         * sysdeps/i386/tininess.h: Renamed to ...
13073         * sysdeps/x86/tininess.h: This.
13074         * sysdeps/x86_64/tininess.h: Removed.
13075
13076 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13077
13078         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
13079         input.  Use $(build-program-cmd).
13080         ($(objpfx)tst-array1-static.out): Likewise.
13081         ($(objpfx)tst-array2.out): Likewise.
13082         ($(objpfx)tst-array3.out): Likewise.
13083         ($(objpfx)tst-array4.out): Likewise.
13084         ($(objpfx)tst-array5.out): Likewise.
13085         ($(objpfx)tst-array5-static.out): Likewise.
13086
13087 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
13088
13089         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
13090         if defined.
13091
13092         * nss/nsswitch.h (nss_interface_function): Provide new
13093         macro for use with NSS functions.
13094         * grp/initgroups.c: Use new macro.
13095         * nss/getXXbyYY.c: Likewise.
13096         * nss/getXXbyYY_r.c: Likewise.
13097         * nss/getXXent.c: Likewise.
13098         * nss/getXXent_r.c: Likewise.
13099         * sysdeps/posix/getaddrinfo.c: Likewise.
13100
13101 2012-10-30  Andreas Jaeger  <aj@suse.de>
13102
13103         * po/ru.po: Update Russion translation from translation project.
13104
13105 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13106
13107         [BZ #14152]
13108         [BZ #14783]
13109         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
13110         result and shift together with sticky bit instead of replicating
13111         round-to-nearest rounding.
13112         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13113         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13114         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
13115         missing underflow exceptions.
13116         (fma_test_towardzero): Add more tests.
13117         (fma_test_downward): Likewise.
13118         (fma_test_upward): Likewise.
13119
13120         [BZ #14047]
13121         * sysdeps/generic/tininess.h: New file.
13122         * sysdeps/i386/tininess.h: Likewise.
13123         * sysdeps/sh/tininess.h: Likewise.
13124         * sysdeps/x86_64/tininess.h: Likewise.
13125         * stdlib/tst-strtod-underflow.c: Likewise.
13126         * stdlib/tst-tininess.c: Likewise.
13127         * stdlib/strtod_l.c: Include <tininess.h>.
13128         (round_and_return): Do not set errno for exact underflow cases.
13129         Force an underflow exception when setting errno for underflow.
13130         Determine underflow based on rounding to normal precision if
13131         TININESS_AFTER_ROUNDING.
13132         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
13133         ERANGE for exact underflow cases.
13134         * stdlib/Makefile (tests): Add tst-tininess and
13135         tst-strtod-underflow.
13136         ($(objpfx)tst-tininess): Use $(link-libm).
13137         ($(objpfx)tst-strtod-underflow): Likewise.
13138
13139 2012-10-30  Andreas Jaeger  <aj@suse.de>
13140
13141         [BZ#14767]
13142         * elf/Makefile (tests): Remove conditional for have-initfini-array
13143         since this is now always required and the variable does not exist
13144         anymore.
13145         (tests-static): Likewise.
13146         (modules-names): Likewise.
13147
13148         * po/eo.po: Add Esperanto translation from translation project.
13149
13150         * elf/tst-array1.c (fini_array): Make writeable so that it can be
13151         merged with constructor/destructor.
13152         (init_array): Likewise.
13153         * elf/tst-array2dep.c (fini_array): Likewise.
13154         (init_array): Likewise.
13155
13156 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
13157
13158         * manual/message.texi: Delete @cartouche tags.
13159
13160 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
13161
13162         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
13163         EOPNOTSUPP.
13164         * sysdeps/mach/hurd/fsync.c: Likewise.
13165
13166         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
13167         [_POSIX_REALTIME_SIGNALS]: Change condition to
13168         [_POSIX_REALTIME_SIGNALS > 0].
13169
13170 2012-10-27  Andreas Jaeger  <aj@suse.de>
13171
13172         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
13173         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
13174         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
13175         [__WORDSIZE != 64]: Likewise.
13176
13177 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
13178
13179         *  iconvdata/tst-table.sh: Remove ${SHELL}.
13180         *  iconvdata/tst-tables.sh: Likewise.
13181
13182 2012-10-25  David S. Miller  <davem@davemloft.net>
13183
13184         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13185         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
13186         of strtoull.
13187
13188         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
13189         ifunc-impl-list.c
13190         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13191         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
13192         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
13193         file.
13194
13195 2012-10-25  Roland McGrath  <roland@hack.frob.com>
13196
13197         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13198         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
13199         __getdirentries.
13200
13201 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13202             Jim Blandy  <jimb@codesourcery.com>
13203
13204         * scripts/cross-test-ssh.sh: New file.
13205         * manual/install.texi (Configuring and compiling): Document use of
13206         cross-test-ssh.sh.
13207         * INSTALL: Regenerated.
13208
13209 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
13210
13211         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
13212         EOPNOTSUPP.
13213
13214 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13215
13216         * Makeconfig (run-program-prefix): Fix comment.
13217
13218 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13219             Jim Blandy  <jimb@codesourcery.com>
13220
13221         * Makeconfig (test-wrapper): New variable,
13222         (test-wrapper-env): Likewise.
13223         [$(cross-compiling) = yes && $(test-wrapper) != ""]
13224         (run-built-tests): Define to yes.
13225         (run-program-prefix): Use $(test-wrapper).
13226         (built-program-cmd): Likewise.
13227         * Rules (make-test-out): Use $(test-wrapper-env) and
13228         $(host-built-program-cmd).
13229         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
13230         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
13231         tst-pathopt.sh.
13232         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
13233         $(test-wrapper-env) to tst-rtld-load-self.sh.
13234         ($(objpfx)order2.out): Use $(test-wrapper).
13235         ($(objpfx)tst-initorder.out): Likewise.
13236         ($(objpfx)tst-initorder2.out): Likewise.
13237         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
13238         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
13239         (test_wrapper_env): New variable.  Use it to run ld.so.
13240         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
13241         Use it to run ld.so.
13242         (test_wrapper_env): Likewise.
13243         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
13244         $(test-wrapper) to run-iconv-test.sh.
13245         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
13246         (ICONV): Use $test_wrapper.
13247         * posix/Makefile ($(objpfx)globtest.out): Pass
13248         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
13249         globtest.sh, not $(run-program-prefix).
13250         * posix/globtest.sh (run_via_rtld_prefix): New variable.
13251         (test_wrapper): Likewise.
13252         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
13253         set together with run_via_rtld_prefix.
13254         (run_program_prefix): Define in terms of test_wrapper and
13255         run_via_rtld_prefix.
13256
13257 2012-10-24  Roland McGrath  <roland@hack.frob.com>
13258
13259         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
13260         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
13261         Targets removed.
13262
13263         [BZ #14743]
13264         * include/time.h: Remove librt_hidden_proto (clock_gettime).
13265         Declare __clock_getres, __clock_gettime, __clock_settime,
13266         __clock_nanosleep, and __clock_getcpuclockid.
13267         * rt/clock_gettime.c: Define __clock_gettime as an alias.
13268         Remove librt_hidden_def (clock_gettime).
13269         * sysdeps/unix/clock_gettime.c: Likewise.
13270         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
13271         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
13272         * rt/clock_getres.c: Define __clock_getres as an alias.
13273         * sysdeps/posix/clock_getres.c: Likewise.
13274         * rt/clock_settime.c: Define __clock_settime as an alias.
13275         * sysdeps/unix/clock_settime.c: Likewise.
13276         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
13277         * sysdeps/unix/clock_nanosleep.c: Likewise.
13278         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
13279         * rt/clock-compat.c: New file.
13280         * rt/Makefile (librt-routines): Add clock-compat and move
13281         $(clock-routines) to ...
13282         (routines): ... here, new variable.
13283         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
13284         Don't add get_clockfreq here.
13285         * rt/Versions (libc: GLIBC_2.17): New version set.
13286         Add clock_* symbols here.
13287         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
13288         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
13289         (GLIBC_2.17): Add clock_* symbols.
13290         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
13291         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
13292         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13294         Likewise.
13295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13296         Likewise.
13297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
13299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
13300         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
13301         * NEWS: Mention the move.
13302
13303         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
13304         Use __open, __read, __close rather than their public counterparts.
13305         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13306         (__get_clockfreq_via_cpuinfo): Likewise.
13307         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
13308         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
13309
13310         * config.h.in (HAVE_IFUNC): New #undef.
13311         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
13312         was successful.
13313         * configure: Regenerated.
13314
13315 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13316
13317         * configure.in: Move READELF check to start of file.
13318         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
13319         libc_cv_asm_gnu_indirect_function in the process.
13320         * configure: Regenerated.
13321
13322 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13323
13324         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
13325         send the output to /dev/null.
13326         (libc_cv_cc_with_libunwind): Likewise.
13327         (libc_cv_as_noexecstack): Likewise.
13328         * configure: Regenerate.
13329
13330 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13331
13332         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
13333
13334         * posix/globtest.sh (TMPDIR): Do not set.
13335         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
13336         (testout): Likewise.
13337
13338 2012-10-24  Andreas Jaeger  <aj@suse.de>
13339
13340         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
13341         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
13342         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
13343         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
13344         posix_fadvise64, posix_fallocate64.
13345
13346         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
13347         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
13348         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
13349         Likewise.
13350         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
13351         Likewise.
13352         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
13353
13354         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
13355         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
13356         <bits/fcntl-linux.h>.
13357         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
13358
13359         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
13360         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
13361         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
13362         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
13363         [__WORDSIZE != 64]: Likewise.
13364
13365 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
13366
13367         * Makeconfig (run-built-tests): New variable.
13368         * Rules [$(cross-compiling) = yes]: Change condition to
13369         [$(run-built-tests) = no].
13370         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
13371         to [$(run-built-tests) = yes].
13372         * elf/Makefile [$(cross-compiling) = no]: Likewise
13373         * grp/Makefile [$(cross-compiling) = no]: Likewise.
13374         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
13375         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
13376         * intl/Makefile [$(cross-compiling) = no]: Likewise.
13377         * io/Makefile [$(cross-compiling) = no]: Likewise.
13378         * libio/Makefile [$(cross-compiling) = no]: Likewise.
13379         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
13380         * misc/Makefile [$(cross-compiling) = no]: Likewise.
13381         * posix/Makefile [$(cross-compiling) = no]: Likewise.
13382         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
13383         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
13384         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
13385         * string/Makefile [$(cross-compiling) = no]: Likewise.
13386
13387         * posix/Makefile ($(objpfx)globtest.out): Pass
13388         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
13389         $(rtld-installed-name).
13390         * posix/globtest.sh (elf_objpfx): Remove variable.
13391         (rtld_installed_name): Likewise.
13392         (library_path): Likewise.
13393         (run_program_prefix): New variable.  Use for running globtest
13394         binary.
13395
13396 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
13397             Joseph Myers  <joseph@codesourcery.com>
13398
13399         * Makeconfig (host-built-program-cmd): New variable.
13400         * elf/Makefile (tst-stackguard1-ARGS): Use
13401         $(host-built-program-cmd).
13402         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
13403         (tst-spawn-ARGS): Likewise.
13404         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
13405
13406 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
13407             Jim Blandy  <jimb@codesourcery.com>
13408
13409         * Makeconfig (run-via-rtld-prefix): New variable.
13410         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
13411         (built-program-cmd): Likewise.
13412
13413 2012-10-22  Andreas Jaeger  <aj@suse.de>
13414
13415         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
13416         __O_RSYNC if it exists, otherwise to O_SYNC.
13417
13418 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
13419             Joseph Myers  <joseph@codesourcery.com>
13420
13421         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
13422         /dev/null.
13423         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
13424         from /dev/null
13425         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
13426         /dev/null.
13427
13428 2012-10-22  Andreas Jaeger  <aj@suse.de>
13429
13430         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
13431         Define always.
13432         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
13433
13434         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13435         bits/fcntl-linux.h.
13436
13437         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
13438         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
13439
13440         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
13441         to __O_LARGEFILE.
13442         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
13443         to __O_LARGEFILE.
13444
13445 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
13446             Joseph Myers  <joseph@codesourcery.com>
13447
13448         * config.make.in (NM): New variable.
13449
13450 2012-10-21  Andreas Jaeger  <aj@suse.de>
13451
13452         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
13453         definitions and declarations that are provided by
13454         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
13455
13456 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13457
13458         [BZ #14683]
13459         * elf/Makefile (tests-static): Add tst-leaks1-static.
13460         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
13461         ($(objpfx)tst-leaks1-static): New rule.
13462         ($(objpfx)tst-leaks1-static-mem): Likewise.
13463         (tst-leaks1-static-ENV): New macro.
13464         * elf/dl-open.c (dl_open_worker): Check the main application
13465         only if SHARED is defined.
13466         * elf/tst-leaks1-static.c: New file.
13467
13468 2012-10-20  Andreas Jaeger  <aj@suse.de>
13469
13470         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
13471         generic values for Linux.
13472         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
13473         and declarations that are provided by <bits/fcntl-linux.h> and
13474         include <bits/fcntl-linux.h>.
13475         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13476         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13477
13478 2012-10-20  Roland McGrath  <roland@hack.frob.com>
13479
13480         * io/fcntl.h: Move include of <bits/types.h> to the top and
13481         include it unconditionally.
13482
13483 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13484
13485         * wcsmbs/Makefile (tests-ifunc): New variable.
13486         (tests): Add $(tests-ifunc).
13487         * wcsmbs/test-wcschr-ifunc.c: New file.
13488         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
13489         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
13490         * wcsmbs/test-wcslen-ifunc.c: Likewise.
13491         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
13492         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
13493
13494         * string/Makefile (tests-ifunc): New variable.
13495         (tests): Add $(tests-ifunc).
13496         * string/test-memccpy.c (TEST_NAME): New macro.
13497         * string/test-memchr.c (TEST_NAME): Likewise.
13498         * string/test-memcmp.c (TEST_NAME): Likewise.
13499         * string/test-memcpy.c (TEST_NAME): Likewise.
13500         * string/test-memmem.c (TEST_NAME): Likewise.
13501         * string/test-memmove.c (TEST_NAME): Likewise.
13502         * string/test-memset.c (TEST_NAME): Likewise.
13503         * string/test-rawmemchr.c (TEST_NAME): Likewise.
13504         * string/test-stpcpy.c (TEST_NAME): Likewise.
13505         * string/test-stpncpy.c (TEST_NAME): Likewise.
13506         * string/test-strcasecmp.c (TEST_NAME): Likewise.
13507         * string/test-strcasestr.c (TEST_NAME): Likewise.
13508         * string/test-strcat.c (TEST_NAME): Likewise.
13509         * string/test-strchr.c (TEST_NAME): Likewise.
13510         * string/test-strcmp.c(TEST_NAME): Likewise.
13511         * string/test-strcpy.c (TEST_NAME): Likewise.
13512         * string/test-strcspn.c (TEST_NAME): Likewise.
13513         * string/test-strlen.c (TEST_NAME): Likewise.
13514         * string/test-strncasecmp.c (TEST_NAME): Likewise.
13515         * string/test-strncmp.c (TEST_NAME): Likewise.
13516         * string/test-strncpy.c (TEST_NAME): Likewise.
13517         * string/test-strnlen.c (TEST_NAME): Likewise.
13518         * string/test-strpbrk.c (TEST_NAME): Likewise.
13519         * string/test-strrchr.c (TEST_NAME): Likewise.
13520         * string/test-strspn.c (TEST_NAME): Likewise.
13521         * string/test-strstr.c (TEST_NAME): Likewise.
13522         * string/test-bcopy-ifunc.c: New file.
13523         * string/test-bzero-ifunc.c: Likewise.
13524         * string/test-memccpy-ifunc.c: Likewise.
13525         * string/test-memchr-ifunc.c: Likewise.
13526         * string/test-memcmp-ifunc.c: Likewise.
13527         * string/test-memcpy-ifunc.c: Likewise.
13528         * string/test-memmem-ifunc.c: Likewise.
13529         * string/test-memmove-ifunc.c: Likewise.
13530         * string/test-mempcpy-ifunc.c: Likewise.
13531         * string/test-memset-ifunc.c: Likewise.
13532         * string/test-rawmemchr-ifunc.c: Likewise.
13533         * string/test-stpcpy-ifunc.c: Likewise.
13534         * string/test-stpncpy-ifunc.c: Likewise.
13535         * string/test-strcasecmp-ifunc.c: Likewise.
13536         * string/test-strcasestr-ifunc.c: Likewise.
13537         * string/test-strcat-ifunc.c: Likewise.
13538         * string/test-strchr-ifunc.c: Likewise.
13539         * string/test-strchrnul-ifunc.c: Likewise.
13540         * string/test-strcmp-ifunc.c: Likewise.
13541         * string/test-strcpy-ifunc.c: Likewise.
13542         * string/test-strcspn-ifunc.c: Likewise.
13543         * string/test-strlen-ifunc.c: Likewise.
13544         * string/test-strncasecmp-ifunc.c: Likewise.
13545         * string/test-strncat-ifunc.c: Likewise.
13546         * string/test-strncmp-ifunc.c: Likewise.
13547         * string/test-strncpy-ifunc.c: Likewise.
13548         * string/test-strnlen-ifunc.c: Likewise.
13549         * string/test-strpbrk-ifunc.c: Likewise.
13550         * string/test-strrchr-ifunc.c: Likewise.
13551         * string/test-strspn-ifunc.c: Likewise.
13552         * string/test-strstr-ifunc.c: Likewise.
13553
13554         * debug/Makefile (tests-ifunc): New variable.
13555         (tests): Add $(tests-ifunc).
13556         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
13557         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
13558         * debug/test-stpcpy_chk-ifunc.c: New file.
13559         * debug/test-strcpy_chk-ifunc.c: Likewise.
13560
13561 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13562
13563         [BZ #13601]
13564         * elf/dl-load.c (open_verify): Retry read if the entire ELF
13565         header is not read in.
13566
13567 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
13568
13569         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
13570         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
13571         directly.  Pass built executable to script as
13572         $(built-program-cmd).
13573         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
13574         $testprogram without using LD_LIBRARY_PATH and $ldso.
13575
13576         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
13577         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
13578         $(rtld-installed-name).
13579         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
13580         (rtld_installed_name): Likewise.
13581         (library_path): Likewise.
13582         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
13583         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
13584         $(run-program-prefix) to tst-tables.sh.
13585         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
13586         it to run tst-table-from and tst-table-to.
13587         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
13588         Pass it to tst-table.sh.
13589         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
13590         $(run-program-prefix) to tst-gettext.sh.
13591         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
13592         tst-translit.sh.
13593         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
13594         tst-gettext2.sh.
13595         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
13596         to run tst-gettext.
13597         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
13598         to run tst-gettext2.
13599         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
13600         to run tst-translit.
13601         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
13602         $(run-program-prefix) to tst-mtrace.sh.
13603         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
13604         to run tst-mtrace.
13605         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
13606         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
13607         $(rtld-installed-name).
13608         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
13609         (rtld_installed_name): Likewise.
13610         (run_program_prefix): New variable.  Use it to run wordexp-test.
13611
13612         * Makeconfig (ARCH): Remove all definitions.
13613         (machine): Likewise.
13614         [ARCH]: Remove conditional code.
13615         [!objdir]: Give error.
13616         [!objdir] (objpfx): Remove.
13617         [!objdir] (common-objpfx): Likewise.
13618         [!objdir] (common-objdir): Likewise.
13619         * configure.in (config_makefile): Remove.  Hardcode Makefile in
13620         AC_CONFIG_FILES call.
13621         * configure: Regenerated.
13622
13623         [BZ #13888]
13624         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
13625         or TMPDIR.
13626         (testout): Likewise.
13627
13628         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
13629         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
13630         $(rtld-installed-name).
13631         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
13632         (rtld_installed_name): Likwise.
13633         (runit): Remove function.
13634         (run_getconf): New variable,  Use it for running getconf binary.
13635
13636 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
13637
13638         [BZ #14716]
13639         * string/test-memmem.c (check_result): New function.
13640         (do_one_test): Use it.
13641         (check1): New function.
13642         (test_main): Use it.
13643
13644 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13645
13646         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
13647
13648 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
13649
13650         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
13651         (_G_LSEEK64): Likewise.
13652         (_G_MMAP64): Likewise.
13653         (_G_FSTAT64): Likewise.
13654         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
13655         (_G_LSEEK64): Likewise.
13656         (_G_MMAP64): Likewise.
13657         (_G_FSTAT64): Likewise.
13658         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
13659         unconditional.  Call __mmap64 directly.
13660         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
13661         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
13662         __lseek64 directly.
13663         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
13664         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
13665         __mmap64 directly.
13666         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
13667         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
13668         __lseek64 directly.
13669         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
13670         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
13671         __lseek64 directly.
13672         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
13673         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
13674         __lseek64 directly.
13675         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
13676         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
13677         __fxstat64 directly.
13678         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
13679         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
13680         unconditional.
13681         (freopen64) [!_G_OPEN64]: Remove conditional code.
13682         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
13683         unconditional.
13684         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
13685         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
13686         unconditional.
13687         (ftello64) [!_G_LSEEK64]: Remove conditional code.
13688         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
13689         unconditional.
13690         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
13691         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
13692         unconditional.
13693         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
13694         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
13695         unconditional.
13696         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
13697         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
13698         unconditional.
13699         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
13700         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
13701         unconditional.
13702         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
13703
13704 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13705
13706         [BZ #12140]
13707         * manual/memory.texi (Malloc Tunable Parameters): Add note
13708         about free list pointers overwriting some perturb bytes.
13709         Wording suggested by Roland McGrath.
13710
13711 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
13712
13713         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
13714         (lgamma_test): Likewise.
13715         (tgamma_test): Likewise.
13716
13717 2012-10-16  Florian Weimer  <fweimer@redhat.com>
13718
13719         [BZ #14700]
13720         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
13721         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
13722
13723 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
13724
13725         * NEWS: Mention BZ #14716.
13726         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
13727         when removing AVAILABLE1_USES_J macro.
13728
13729 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
13730
13731         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
13732         (__bswap_64): __uint64_t for unsigned 64-bit int.
13733
13734 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
13735
13736         * include/string.h (memmem): Declare libc hidden alias.
13737         * string/memmem.c (memmem): Define libc hidden alias.
13738         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
13739         __read, __close instead of open, read, close.
13740
13741 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
13742
13743         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
13744         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
13745         global and hidden.
13746         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
13747         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
13748         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
13749         Likewise.
13750         (__rawmemchr_sse2): Likewise.
13751         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
13752         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
13753         (__strchr_sse2): Likewise.
13754         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
13755         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
13756         (__strcasecmp_sse2): Likewise.
13757         (__strncasecmp_sse2): Likewise.
13758         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
13759         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
13760         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
13761         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
13762         (__strrchr_sse2): Likewise.
13763         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
13764         ifunc-impl-list.c.
13765         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13766         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13767         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13768         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13769         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13770         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13771         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13772         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13773         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
13774         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
13775         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
13776         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
13777         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
13778         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13779         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13780         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13781         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13782         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13783         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
13784         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
13785         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
13786         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
13787         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
13788         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
13789         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
13790         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13791         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13792         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
13793         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13794         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13795
13796         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
13797         global and hidden.
13798         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
13799         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
13800         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
13801         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
13802         Likewise.
13803         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
13804         Likewise.
13805         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
13806         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
13807         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
13808         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
13809         ifunc-impl-list.c.
13810         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13811         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13812         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13813         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13814         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13815         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13816         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13817         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13818         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13819         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13820         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13821         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13822         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13823         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
13824         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
13825         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13826         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
13827         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
13828         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13829         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13830         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13831         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13832         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13833         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13834         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13835         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
13836         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
13837         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
13838         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
13839         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13840         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
13841         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13842         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13843         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
13844         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13845         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13846         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13847         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13848         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13849         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13850         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
13851
13852         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
13853         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
13854         * include/ifunc-impl-list.h: New file.
13855         * misc/ifunc-impl-list.c: Likewise.
13856         * misc/Makefile (routines): Add ifunc-impl-list.
13857         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
13858         * string/test-string.h: Include <ifunc-impl-list.h>.
13859         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
13860         impl_array): New variables.
13861         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
13862         are defined.
13863         (test_init): Call __libc_ifunc_impl_list to initialize
13864         func_list if TEST_IFUNC and TEST_NAME are defined.
13865
13866         * string/Makefile (strop-tests): Add bcopy and bzero.
13867         * string/test-bcopy.c: New file.
13868         * string/test-bzero.c: Likewise.
13869         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
13870         defined.
13871         * string/test-memset.c: Support bzero test if TEST_BZERO is
13872         defined.
13873         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
13874         __libc_memmove.
13875         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
13876         __libc_memset.
13877         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
13878         of memset.
13879
13880 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
13881
13882         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
13883         * configure: Regenerated.
13884
13885         * Makeconfig (+link-static-before-libc): Don't include
13886         $(link-static-libc).
13887
13888         * libio/libio.h (_IO_pos_t): Remove.
13889
13890 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13891
13892         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
13893         McGrath.
13894
13895 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13896
13897         * crypt/crypt-entry.c: Include fips-private.h.
13898         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
13899         * crypt/md5c-test.c (main): Tolerate disabled MD5.
13900         * sysdeps/unix/sysv/linux/fips-private.h: New file.
13901         * sysdeps/generic/fips-private.h: New file, dummy fallback.
13902
13903 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13904
13905         * crypt/crypt-private.h: Include stdbool.h.
13906         (_ufc_setup_salt_r): Return bool.
13907         * crypt/crypt-entry.c: Include errno.h.
13908         (__crypt_r): Return NULL with EINVAL for bad salt.
13909         * crypt/crypt_util.c (bad_for_salt): New.
13910         (_ufc_setup_salt_r): Check that salt is long enough and within
13911         the specified alphabet.
13912         * crypt/badsalttest.c: New file.
13913         * crypt/Makefile (tests): Add it.
13914         ($(objpfx)badsalttest): New.
13915
13916 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13917
13918         * NEWS: Add entry for BZ #14602.
13919
13920 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
13921
13922         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
13923         type-generic.
13924         * math/libm-test.inc: Update comment listing what functions and
13925         macros are tested.
13926         (isgreater_test): New function.
13927         (isgreaterequal_test): Likewise.
13928         (isless_test): Likewise.
13929         (islessequal_test): Likewise.
13930         (islessgreater_test): Likewise.
13931         (isunordered_test): Likewise.
13932         (main): Call the new functions.
13933
13934 2012-10-09  Roland McGrath  <roland@hack.frob.com>
13935
13936         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
13937         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
13938         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
13939         * sysdeps/i386/configure: Regenerated.
13940         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
13941         * sysdeps/mach/configure: Regenerated.
13942         * sysdeps/mach/hurd/configure: Regenerated.
13943         * sysdeps/powerpc/configure: Regenerated.
13944         * sysdeps/powerpc/powerpc32/configure: Regenerated.
13945         * sysdeps/powerpc/powerpc64/configure: Regenerated.
13946         * sysdeps/s390/s390-32/configure: Regenerated.
13947         * sysdeps/s390/s390-64/configure: Regenerated.
13948         * sysdeps/sh/configure: Regenerated.
13949         * sysdeps/sparc/configure: Regenerated.
13950         * sysdeps/unix/sysv/linux/configure: Regenerated.
13951         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
13952         * sysdeps/x86_64/configure: Regenerated.
13953
13954         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
13955         defined.  Don't check if MAP is NULL.
13956
13957 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
13958
13959         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
13960         (_G_stat64): Likewise.
13961         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
13962         (_G_stat64): Likewise.
13963         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
13964         instead of struct _G_stat64.
13965         * libio/fileops.c (mmap_remap_check): Likewise.
13966         (decide_maybe_mmap): Likewise.
13967         (_IO_new_file_seekoff): Likewise.
13968         (_IO_file_stat): Likewise.
13969         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
13970         _G_off64_t.
13971         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
13972         instead of struct _G_stat64.
13973         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
13974
13975 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
13976
13977         [BZ #14602]
13978         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13979         Replace with ...
13980         (CHECK_EOL): New macro.
13981         (two_way_short_needle): Check beginning of haystack for EOL.  Use
13982         CHECK_EOL.
13983         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13984         Replace with CHECK_EOL.
13985         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13986         Replace with CHECK_EOL.
13987
13988 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
13989
13990         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
13991         type-generic.
13992         * math/libm-test.inc: Update comment listing what functions and
13993         macros are tested.
13994         (finite_test): New function.
13995         (isinf_test): Likewise.
13996         (isnan_test): Likewise.
13997         (fpclassify_test): Test subnormal input.
13998         (isfinite_test): Likewise.
13999         (isnormal_test): Likewise.
14000         (main): Call the new functions.
14001
14002 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
14003
14004         [BZ #14660]
14005         * Makerules (%.dynsym): Force C locale when running
14006         $(OBJDUMP) --dynamic-syms.
14007
14008 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
14009
14010         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
14011         <stdint.h>.
14012
14013 2012-10-06  David S. Miller  <davem@davemloft.net>
14014
14015         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
14016         upper 32-bits of the length value in %o2 since we use branch-on-register
14017         tests which consider the entire 64-bit register.
14018
14019 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
14020
14021         * string/test-strstr.c (check2): Add a test for page boundary.
14022
14023 2012-10-05  David S. Miller  <davem@davemloft.net>
14024
14025         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
14026         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
14027         file.
14028         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14029         sysdep_routines.
14030         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14031         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
14032         and bzero when HWCAP_SPARC_CRYPTO is present.
14033
14034 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
14035
14036         [BZ #14602]
14037         * string/test-strstr.c (check2): New function.
14038         (test_main): Call check2.
14039
14040         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
14041         and bug-strchr1.
14042         * string/bug-strcasestr1.c (do_test): Moved to ...
14043         * string/test-strcasestr.c (check1): Here.  New function.
14044         (do_one_test): Break out result checking code into ...
14045         (check_result): This.  New function.
14046         (do_one_test): Call check_result.
14047         (test_main): Call check1.
14048         * string/bug-strchr1.c (do_test): Moved to ...
14049         * string/test-strchr.c (check1): Here.  New function.
14050         (do_one_test): Break out result checking code into ...
14051         (check_result): This.  New function.
14052         (do_one_test): Call check_result.
14053         (test_main): Call check1.
14054         * string/bug-strstr1.c (main): Moved to ...
14055         * string/test-strstr.c (check1): Here.  New function.
14056         (do_one_test): Break out result checking code into ...
14057         (check_result): This.  New function.
14058         (do_one_test): Call check_result.
14059         (test_main): Call check1.
14060         * string/bug-strcasestr1.c: Removed.
14061         * string/bug-strchr1.c: Likewise.
14062         * string/bug-strstr1.c: Likewise.
14063
14064         * elf/Makefile (dl-routines): Add hwcaps.
14065         * elf/dl-support.c (_dl_important_hwcaps): Removed.
14066         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
14067         (_dl_important_hwcaps): Moved to ...
14068         * elf/dl-hwcaps.c: Here.  New file.
14069         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
14070
14071         [BZ #14557]
14072         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
14073         if IS_IN_rtld isn't defined.
14074
14075         * elf/dl-support.c (_dl_sysinfo_map): New.
14076         Include "get-dynamic-info.h" and "setup-vdso.h".
14077         (_dl_non_dynamic_init): Call setup_vdso.
14078         * elf/dynamic-link.h: Don't include <assert.h>.
14079         (elf_get_dynamic_info): Moved to ...
14080         * elf/get-dynamic-info.h: Here.  New file.
14081         * elf/dynamic-link.h: Include "get-dynamic-info.h".
14082         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
14083         * elf/setup-vdso.h: Here.  New file.
14084         * elf/rtld.c: Include "setup-vdso.h".
14085         (dl_main): Call setup_vdso.
14086
14087 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
14088
14089         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
14090         creal in comment listing functions tested.  List finite, isinf,
14091         isnan, isless, islessequal, isgreater, isgreaterequal,
14092         islessgreater, isunordered, lgamma_r and pow10 as functions and
14093         macros not tested.  Mention which functions not tested are aliases
14094         for other functions.  Fix typo.  Note that signs of NaNs are not
14095         tested.
14096
14097         * scripts/config.guess: Update from config.git.
14098         * scripts/config.sub: Likewise.
14099
14100 2012-10-04  Roland McGrath  <roland@hack.frob.com>
14101
14102         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
14103         * misc/madvise.c (madvise): Renamed to __madvise.
14104         Make madvise a weak alias.
14105         * include/sys/mman.h: Declare __madvise.
14106         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
14107         * sysdeps/unix/syscalls.list
14108         (madvise): Make __madvise the strong name, and madvise a weak alias.
14109         * sysdeps/unix/sysv/linux/syscalls.list
14110         (madvise, mmap): Remove redundant entries.
14111         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
14112         * malloc/malloc.c (mtrim): Likewise.
14113         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
14114
14115 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14116
14117         * sysdeps/mach/hurd/dl-cache.c: File removed.
14118         * config.h.in (USE_LDCONFIG): New #undef.
14119         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
14120         * configure: Regenerated.
14121         * elf/Makefile (dl-routines): Add dl-cache only under
14122         [$(use-ldconfig) = yes].
14123         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
14124         cache on [USE_LDCONFIG].
14125         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
14126         [USE_LDCONFIG].
14127         * elf/rtld.c (dl_main): Likewise.
14128
14129 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
14130
14131         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
14132         _SC_LEVEL4_CACHE_LINESIZE.
14133
14134 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14135
14136         * sysdeps/unix/bsd/confstr.h: File removed.
14137
14138 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
14139
14140         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
14141         sys/sdt-config.h.
14142
14143 2012-10-02  Roland McGrath  <roland@hack.frob.com>
14144
14145         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
14146         Make 'mapoff' field ElfW(Off) rather than off_t.
14147
14148 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
14149
14150         * nscd/Makefile: Remove nscd-cflags and all its users.
14151         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
14152         (CFLAGS-nonlib): Add compiler flags for nscd modules.
14153
14154         [BZ #10631]
14155         * malloc.c (malloc_printerr): Clarify error message.
14156
14157 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
14158
14159         [BZ #14648]
14160         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14161         Set bit_FMA_Usable if FMA is supported.
14162         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
14163         macro.
14164         (bit_FMA4_Usable): Updated.
14165         (index_FMA_Usable): New macro.
14166         (CPUID_FMA): Likewise
14167         (HAS_FMA): Defined with bit_FMA_Usable.
14168
14169 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14170
14171         * bits/types.h (__swblk_t): Type removed.
14172         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
14173         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
14174         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14175         (__SWBLK_T_TYPE): Likewise.
14176         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14177         (__SWBLK_T_TYPE): Likewise.
14178         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14179         (__SWBLK_T_TYPE): Likewise.
14180         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14181         (__SWBLK_T_TYPE): Likewise.
14182
14183 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
14184             Honza Horak <hhorak@redhat.com>
14185
14186         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
14187         (xdr_mapname): Use YPMAXMAP as maxsize.
14188         (xdr_peername): Use YPMAXPEER as maxsize.
14189         (xdr_keydat): Use YPAXRECORD as maxsize.
14190         (xdr_valdat): Use YPMAXRECORD as maxsize.
14191
14192 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14193
14194         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
14195
14196         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
14197         * csu/init-first.c: ... here.
14198         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
14199         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
14200         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
14201         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
14202         * sysdeps/i386/init-first.c: File removed.
14203         * sysdeps/sh/init-first.c: File removed.
14204
14205 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
14206
14207         [BZ #14645]
14208         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
14209         if x * y might underflow to zero and z is zero.
14210         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14211         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14212         * math/libm-test.inc (min_subnorm_value): New variable.
14213         (fma_test): Add more tests.
14214         (fma_test_towardzero): Likewise.
14215         (fma_test_downward): Likewise
14216         (fma_test_upward): Likewise.
14217         (initialize): Set min_subnorm_value.
14218
14219 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
14220
14221         [BZ #14638]
14222         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
14223         0 + 0.
14224         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
14225         mode for addition resulting in exact zero.
14226         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
14227         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
14228         exact 0 + 0.
14229         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
14230         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14231         * math/libm-test.inc (fma_test): Add more tests.
14232         (fma_test_towardzero): New function.
14233         (fma_test_downward): Likewise.
14234         (fma_test_upward): Likewise.
14235         (main): Call the new functions.
14236
14237 2012-09-28  David S. Miller  <davem@davemloft.net>
14238
14239         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
14240
14241 2012-09-28  Roland McGrath  <roland@hack.frob.com>
14242
14243         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
14244         instead of SIGALRM.
14245
14246         * sysdeps/gnu/_G_config.h: Moved to ...
14247         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
14248         * sysdeps/mach/hurd/_G_config.h: Moved to ...
14249         * sysdeps/generic/_G_config.h: ... here.
14250
14251         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
14252
14253         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
14254
14255         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
14256         Conditionalize target on [libnss_test1.so-version].
14257
14258         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
14259
14260         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
14261         (elfobjdir): Move out of conditionals.
14262
14263         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
14264         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
14265         (__nss_lookup_function): Conditionalize label remove_from_tree on
14266         [!DO_STATIC_NSS || SHARED], matching its only use.
14267
14268 2012-09-28  David S. Miller  <davem@davemloft.net>
14269
14270         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
14271         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
14272         file.
14273         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14274         sysdep_routines.
14275         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14276         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
14277         when HWCAP_SPARC_CRYPTO is present.
14278
14279 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14280
14281         * io/tst-mknodat.c: Create a FIFO instead of a socket.
14282
14283 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
14284
14285         [BZ #6530]
14286         * stdio-common/vfprintf.c (process_string_arg): Revert
14287         2000-07-22 change.
14288
14289 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
14290
14291         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
14292         for testcase.
14293         * stdio-common/tst-sprintf.c: Include <locale.h>
14294         (main): Test sprintf's handling of incomplete multibyte
14295         characters.
14296
14297 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
14298
14299         * elf/dl-runtime.c (VERSYMIDX): Removed.
14300         * elf/dl-version.c (VERSYMIDX): Likewise.
14301         * elf/do-rel.h (VERSYMIDX): Likewise.
14302         (VALIDX): Likewise.
14303         * elf/dynamic-link.h (VERSYMIDX): Likewise.
14304         * elf/rtld.c (VALIDX): Likewise.
14305         (ADDRIDX): Likewise.
14306         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
14307         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
14308         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
14309         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
14310         (VALIDX): Likewise.
14311         (ADDRIDX): Likewise.
14312
14313 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14314
14315         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
14316
14317 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
14318
14319         [BZ #11438]
14320         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
14321         to global scope.
14322         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
14323         addresses are in the same scope as 192.0.2/24.
14324         * posix/gai.conf: Document new scope table defaults.
14325
14326 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14327
14328         [BZ #5298]
14329         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
14330         for ftell.  Compute offsets from write pointers instead.
14331         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14332
14333 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14334
14335         [BZ #14543]
14336         * libio/Makefile (tests): New test case tst-fseek.
14337         * libio/tst-fseek.c: New test case to verify that fseek/ftell
14338         combination works in wide mode.
14339         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
14340         state when the external buffer state changes.
14341
14342 2012-09-27  David S. Miller  <davem@davemloft.net>
14343
14344         [BZ #14376]
14345         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
14346         pass reloc->r_addend in as the 'high' argument to
14347         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
14348
14349         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14350
14351 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14352
14353         * rt/tst-aio2.c: Include <pthread.h>.
14354         * rt/tst-aio3.c: Likewise.
14355
14356 2012-09-27  Steve Ellcey  <sellcey@mips.com>
14357
14358         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
14359
14360 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
14361
14362         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
14363         contents on [SHARED].
14364
14365 2012-09-26  Marek Polacek  <polacek@redhat.com>
14366
14367         [BZ #14530]
14368         [BZ #13741]
14369         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
14370         for C++ and GCC <4.3 as well as for non GCC compilers.
14371
14372 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14373
14374         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14375
14376 2012-09-25  Roland McGrath  <roland@hack.frob.com>
14377
14378         * Makefile.in (all, install): Declare with .PHONY.
14379         Reported by Michael Hope <michael.hope@linaro.org>.
14380
14381 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14382
14383         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
14384         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
14385         system header.
14386         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
14387         Likewise.
14388         (sydep_routines): Add the new and the internal functions.
14389         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
14390         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
14391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
14392         (GLIBC_2.17): Add the new function.
14393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
14394         (GLIBC_2.17): Likewise.
14395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14396         (GLIBC_2.17): Likewise.
14397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
14398         (GLIBC_2.17): Likewise.
14399         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
14400
14401 2012-09-25  Alan Modra  <amodra@gmail.com>
14402
14403         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
14404         Add release barrier before setting once_control to say
14405         initialisation is done.  Add hints on lwarx.  Use macro in
14406         place of isync.
14407         (clear_once_control): Add release barrier.
14408
14409 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
14410
14411         [BZ #13629]
14412         * math/s_clog.c (__clog): Handle more values close to |z| = 1
14413         specially.
14414         * math/s_clog10.c (__clog10): Likewise.
14415         * math/s_clog10f.c (__clog10f): Likewise.
14416         * math/s_clog10l.c (__clog10l): Likewise.
14417         * math/s_clogf.c (__clogf): Likewise.
14418         * math/s_clogl.c (__clogl): Likewise.
14419         * math/Makefile (libm-calls): Add x2y2m1.
14420         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
14421         (__x2y2m1): Likewise.
14422         (__x2y2m1l): Likewise.
14423         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
14424         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
14425         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
14426         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
14427         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
14428         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
14429         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
14430         * sysdeps/i386/fpu/libm-test-ulps: Update.
14431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14432
14433         [BZ #14621]
14434         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
14435         int as type of variable DEPTH.
14436         (glob): Use size_t instead of int as type of variables NEWCOUNT
14437         and OLD_PATHC.
14438
14439 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14440
14441         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
14442         Add s_sincosf-sse2.
14443         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
14444         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
14445         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
14446         macros for using routine as __sincosf_ia32.
14447         Use macro for function declaration and weak_alias.
14448         * sysdeps/i386/fpu/libm-test-ulps: Update.
14449
14450         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
14451         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14452
14453         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
14454         subnormal argument.
14455         * math/s_cexpf.c (__cexpf): Likewise.
14456         * math/s_csinf.c (__csinf): Likewise.
14457         * math/s_csinhf.c (__csinhf): Likewise.
14458         * math/s_ctanf.c (__ctanf): Likewise.
14459         * math/s_ctanhf.c (__ctanhf): Likewise.
14460         * math/s_ccosh.c (__ccoshf): Likewise.
14461         * math/s_cexp.c (__cexpl): Likewise.
14462         * math/s_csin.c (__csin): Likewise.
14463         * math/s_csinh.c (__csinh): Likewise.
14464         * math/s_ctan.c (__ctan): Likewise.
14465         * math/s_ctanh.c (ctanh): Likewise.
14466         * math/s_ccoshl.c (__ccoshl): Likewise.
14467         * math/s_cexpl.c (__cexpl): Likewise.
14468         * math/s_csinl.c (__csinl): Likewise.
14469         * math/s_csinhl.c (__csinhl): Likewise.
14470         * math/s_ctanl.c (__ctanl): Likewise.
14471         * math/s_ctanhl.c (__ctanhl): Likewise.
14472
14473 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
14474
14475         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
14476         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
14477         (_IO_off_t): Define to __off_t, not _G_off_t.
14478         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
14479         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
14480         (_IO_wint_t): Define to wint_t, not _G_wint_t.
14481         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
14482         type of __dummy and __dummy2 fields.
14483         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
14484         (_G_ssize_t): Likewise.
14485         (_G_off_t): Likewise.
14486         (_G_pid_t): Likewise.
14487         (_G_uid_t): Likewise.
14488         (_G_wchar_t): Likewise.
14489         (_G_wint_t): Likewise.
14490         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
14491         (_G_ssize_t): Likewise.
14492         (_G_off_t): Likewise.
14493         (_G_pid_t): Likewise.
14494         (_G_uid_t): Likewise.
14495         (_G_wchar_t): Likewise.
14496         (_G_wint_t): Likewise.
14497         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
14498         (_G_ssize_t): Likewise.
14499         (_G_off_t): Likewise.
14500         (_G_pid_t): Likewise.
14501         (_G_uid_t): Likewise.
14502         (_G_wchar_t): Likewise.
14503         (_G_wint_t): Likewise.
14504
14505 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14506
14507         * malloc/arena.c: Include malloc-sysdep.h.
14508         (shrink_heap): Use check_may_shrink_heap to decide if madvise
14509         is sufficient to shrink the heap or an unmap is needed.
14510         * sysdeps/generic/malloc-sysdep.h: New file.  Define
14511         new function check_may_shrink_heap.
14512         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
14513         new function check_may_shrink_heap.
14514
14515 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14516
14517         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
14518         comments.
14519
14520 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
14521
14522         * catgets/test-gencat.sh: Add "set -e".
14523         * elf/tst-pathopt.sh: Likewise.
14524         * grp/tst_fgetgrent.sh: Likewise.
14525         * iconvdata/run-iconv-test.sh: Likewise.
14526         * intl/tst-gettext.sh: Likewise.
14527         * intl/tst-gettext2.sh: Likewise.
14528         * intl/tst-gettext4.sh: Likewise.
14529         * intl/tst-gettext6.sh: Likewise.
14530         * intl/tst-translit.sh: Likewise.
14531         * io/ftwtest-sh: Likewise.
14532         * libio/test-freopen.sh: Likewise.
14533         * malloc/tst-mtrace.sh: Likewise.
14534         * posix/globtest.sh: Likewise.
14535         * posix/tst-getconf.sh: Likewise.
14536         * posix/wordexp-tst.sh: Likewise.
14537         * stdio-common/tst-printf.sh: Likewise.
14538         * stdio-common/tst-unbputc.sh: Likewise.
14539         * stdlib/tst-fmtmsg.sh: Likewise.
14540         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
14541         * catgets/Makefile: Do not specify -e option when running
14542         testsuite shell scripts.
14543         * elf/Makefile: Likewise.
14544         * grp/Makefile: Likewise.
14545         * iconvdata/Makefile: Likewise.
14546         * intl/Makefile: Likewise.
14547         * io/Makefile: Likewise.
14548         * libio/Makefile: Likewise.
14549         * malloc/Makefile: Likewise.
14550         * posix/Makefile: Likewise.
14551         * stdio-common/Makefile: Likewise.
14552         * stdlib/Makefile: Likewise.
14553         * sysdeps/x86_64/Makefile: Likewise.
14554
14555         * io/ftwtest-sh: Add copyright header.
14556         * posix/globtest.sh: Likewise.
14557         * posix/tst-getconf.sh: Likewise.
14558         * posix/wordexp-tst.sh: Likewise.
14559         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
14560
14561 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
14562
14563         [BZ #13679]
14564         * Makeconfig (+link): Defined as $(+link-static) if
14565         $(build-shared) isn't yes.
14566         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
14567         isn't yes.
14568         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
14569
14570         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
14571
14572         [BZ #14562]
14573         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
14574         new chunk size with MALLOC_ALIGN_MASK.
14575
14576 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
14577
14578         [BZ #5044]
14579         * stdio-common/printf_fphex.c: Include <stdbool.h> and
14580         <rounding-mode.h>.
14581         (__printf_fphex): Determine rounding using get_rounding_mode and
14582         round_away.
14583         * stdio-common/tst-printf-round.c (struct hex_test): New
14584         structure.
14585         (hex_tests): New variable.
14586         (test_hex_in_one_mode): New function.
14587         (do_test): Also run tests for hex float output.
14588
14589 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
14590
14591         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
14592         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
14593         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
14594         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
14595         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
14596         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
14597         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
14598         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
14599
14600 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
14601
14602         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
14603         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
14604         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
14605         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
14606
14607 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
14608
14609         [BZ #14579]
14610         * elf/rtld.c (dl_main): Limit the check for self loading to normal
14611         mode only.
14612         * elf/tst-rtld-load-self.sh: New test.
14613         * elf/Makefile: Run it.
14614
14615 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
14616
14617         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
14618         (tst-writev-ENV): Remove.
14619         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
14620
14621 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
14622
14623         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
14624
14625 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
14626
14627         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
14628         unconditional.
14629         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
14630         Likewise.
14631         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
14632         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
14633         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
14634         Likewise.
14635
14636 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14637
14638         [BZ #14587]
14639         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
14640         * config.make.in (have-cpp-asm-debuginfo): Removed.
14641         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
14642         * configure: Regenerated.
14643
14644 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
14645
14646         [BZ #5044]
14647         * stdio-common/printf_fp.c: Include <stdbool.h> and
14648         <rounding-mode.h>.
14649         (___printf_fp): Determine rounding using get_rounding_mode and
14650         round_away.
14651         * stdio-common/tst-printf-round.c: New file.
14652         * stdio-common/Makefile (tests): Add tst-printf-round.
14653         (link-libm): New variable.
14654         ($(objpfx)tst-printf-round): Depend in $(link-libm).
14655
14656 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
14657
14658         [BZ #14576]
14659         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
14660         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
14661         Likewise.
14662         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
14663         Likewise.
14664
14665 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
14666
14667         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
14668         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14669         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14670         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14671
14672 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
14673
14674         [BZ #14518]
14675         * include/rounding-mode.h: New file.
14676         * sysdeps/generic/get-rounding-mode.h: Likewise.
14677         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
14678         * stdlib/strtod_l.c: Include <rounding-mode.h>.
14679         (MAX_VALUE): New macro.
14680         (MIN_VALUE): Likewise.
14681         (overflow_value): New function.
14682         (underflow_value): Likewise.
14683         (round_and_return): Use overflow_value and underflow_value to
14684         determine return values in overflow and underflow cases.  Use
14685         round_away to determine rounding depending on rounding mode.
14686         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
14687         determine return values in overflow and underflow cases.
14688         * stdlib/tst-strtod-round.c: Include <fenv.h>.
14689         (struct test_results): New structure.
14690         (struct test): Use struct test_results to store expected results
14691         for all rounding modes.
14692         (TEST): Include expected results for all rounding modes.
14693         (test_in_one_mode): New function.
14694         (do_test): Use test_in_one_mode to compute and check results.
14695         Check results for all rounding modes.
14696         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
14697         $(link-libm).
14698
14699 2012-12-09  Allan McRae  <allan@archlinux.org>
14700
14701         * sysdeps/i386/fpu/libm-test-ulps: Update
14702
14703 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
14704
14705         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
14706         (_G_int32_t): Likewise.
14707         (_G_uint16_t): Likewise.
14708         (_G_uint32_t): Likewise.
14709         (_G_HAVE_BOOL): Likewise.
14710         (_G_HAVE_ATEXIT): Likewise.
14711         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14712         (_G_HAVE_IO_FILE_OPEN): Likewise.
14713         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
14714         (_G_int32_t): Likewise.
14715         (_G_uint16_t): Likewise.
14716         (_G_uint32_t): Likewise.
14717         (_G_HAVE_BOOL): Likewise.
14718         (_G_HAVE_ATEXIT): Likewise.
14719         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14720         (_G_HAVE_IO_FILE_OPEN): Likewise.
14721         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
14722         (_G_int32_t): Likewise.
14723         (_G_uint16_t): Likewise.
14724         (_G_uint32_t): Likewise.
14725         (_G_HAVE_BOOL): Likewise.
14726         (_G_HAVE_ATEXIT): Likewise.
14727         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14728         (_G_HAVE_IO_FILE_OPEN): Likewise.
14729
14730 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
14731
14732         * csu/libc-tls.c: Update copyright years.
14733
14734 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
14735
14736         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
14737         [!_G_USING_THUNKS]: Remove conditional code.
14738         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
14739         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
14740
14741         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
14742         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
14743         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14744         (_G_VTABLE_LABEL_PREFIX): Likewise.
14745         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14746         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14747         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14748         (_G_VTABLE_LABEL_PREFIX): Likewise.
14749         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
14750         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14751         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14752         (_G_VTABLE_LABEL_PREFIX): Likewise.
14753         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
14754
14755 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
14756
14757         * libio/Makefile: Include ../Makeconfig before tests.
14758         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
14759         only if $(build-shared) is yes.
14760
14761         * iconv/gconv_db.c: Update copyright years.
14762
14763 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14764
14765         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
14766         unwind info if defined PIC. Fix special cases description.
14767         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
14768
14769         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
14770         DP_HI_MASK entry.
14771         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
14772
14773 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
14774
14775         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
14776
14777         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
14778         is NULL.
14779
14780         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
14781         (LDLIBS-tst-chk4): This.
14782         (LDFLAGS-tst-chk5): Renamed to ...
14783         (LDLIBS-tst-chk5): This.
14784         (LDFLAGS-tst-chk6): Renamed to ...
14785         (LDLIBS-tst-chk6): This.
14786         (LDFLAGS-tst-lfschk4): Renamed to ...
14787         (LDLIBS-tst-lfschk4): This.
14788         (LDFLAGS-tst-lfschk5): Renamed to ...
14789         (LDLIBS-tst-lfschk5): This.
14790         (LDFLAGS-tst-lfschk6): Renamed to ...
14791         (LDLIBS-tst-lfschk6): This.
14792
14793         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
14794         on $(common-objpfx)soversions.mk.
14795
14796 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
14797
14798         [BZ #10014]
14799         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
14800         example host name.
14801
14802 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
14803
14804         * malloc/arena.c (arena_get_retry): New function that gets
14805         another arena for the caller to try its request on.
14806         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
14807         current arena cannot fulfill the request.
14808         (__libc_memalign): Likewise.
14809         (__libc_memalign): Likewise.
14810         (__libc_pvalloc): Likewise.
14811         (__libc_calloc): Likewise.
14812
14813 2012-09-05  John Tobey  <john.tobey@gmail.com>
14814
14815         [BZ #13542]
14816         * manual/arith.texi (Operations on Complex): Fix description
14817         of carg branch cut.
14818
14819 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
14820
14821         [BZ #10014]
14822         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
14823         host name.
14824
14825         [BZ #10038]
14826         * manual/memory.texi (Memory): Make order of menu items match
14827         order of sections.
14828
14829 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14830
14831         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
14832         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
14833         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
14834
14835 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14836
14837         * csu/libc-tls.c (static_dtv): Renamed to ...
14838         (_dl_static_dtv): This.  Make it global.
14839         (_dl_initial_dtv): Removed.
14840         (__libc_setup_tls): Updated.
14841         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
14842         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
14843         DL_INITIAL_DTV.
14844
14845 2012-09-06  Petr Machata  <pmachata@redhat.com>
14846
14847         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
14848         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
14849         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
14850         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
14851
14852 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14853
14854         [BZ #14545]
14855         * csu/libc-tls.c (_dl_initial_dtv): New variable.
14856         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
14857         freeing dtv[-1].
14858
14859 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14860
14861         [BZ #14544]
14862         * Makeconfig (link-static-before-libc): Replace $(+prector)
14863         with $(+prectorT).
14864         (link-static-after-libc): Replace $(+postctor) with
14865         $(+postctorT).
14866         (link-bounded): Replace $(+prector)/$(+postctor) with
14867         $(+prectorT)/$(+postctorT).
14868         (+prectorT): New macro.
14869         (+postctorT): Likewise.
14870
14871 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
14872
14873         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
14874         (round_str): Handle values above the maximum for IBM long double
14875         as inexact.
14876         * stdlib/tst-strtod-round.c (tests): Regenerated.
14877
14878 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14879
14880         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
14881         assembler flag.
14882         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
14883         zarch_nohighgprs around the zarch optimized routines.
14884         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
14885         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
14886         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
14887         for zarch.
14888
14889 2012-09-05  David S. Miller  <davem@davemloft.net>
14890
14891         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14892
14893         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
14894         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
14895         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
14896         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
14897         entries.
14898
14899 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14900
14901         * malloc/arena.c: Fold copyright years.
14902         * malloc/mcheck.c, malloc/memusage.c: Likewise.
14903
14904 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14905
14906         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
14907
14908 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14909
14910         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
14911
14912 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14913
14914         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
14915         change internal state upon failure.
14916
14917 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14918
14919         * malloc/mcheck.c (mcheck_check_all): Fix typo.
14920         * malloc/memusage.c (mmap): Likewise.
14921         (mmap64, mremap): Likewise.  Adjust name in comment.
14922
14923 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14924
14925         * libio/fileops.c: Fix typos in comments.
14926         * libio/oldfileops.c: Likewise.
14927         * libio/wfileops.c: Likewise.
14928
14929 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14930
14931         [BZ #1349]
14932         * malloc/Makefile (tests): Add tst-malloc-usable test case.
14933         (tst-malloc-usable-ENV): Set environment for test case.
14934         * malloc/hooks.c (malloc_check_get_size): New function to get
14935         requested size.
14936         * malloc/malloc.c (musable): Use malloc_check_get_size.
14937         * malloc/tst-malloc-usable.c: New test case.
14938
14939 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14940
14941         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
14942
14943 2012-09-05  Allan McRae  <allan@archlinux.org>
14944
14945         [BZ #13966]
14946         * configure.in (CXX_SYSINCLUDES): Use compiler output to
14947         determine header location.
14948         * configure: Regenerated.
14949
14950 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14951
14952         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
14953         float format.
14954         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
14955         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
14956         format.
14957         (test): Regenerate.
14958
14959 2012-09-04  David S. Miller  <davem@davemloft.net>
14960
14961         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
14962         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
14963         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
14964
14965 2012-09-04  Florian Weimer  <fweimer@redhat.com>
14966
14967         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
14968         failures.
14969
14970         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
14971
14972 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
14973
14974         [BZ #9914]
14975         * libio/iogetdelim.c: Include <limits.h>.
14976         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
14977         + len + 1 would overflow.
14978
14979 2012-09-03  Andreas Jaeger  <aj@suse.de>
14980
14981         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14982         * sysdeps/i386/fpu/libm-test-ulps: Update.
14983
14984 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14985
14986         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
14987         Add s_sinf-sse2, s_conf-sse2.
14988
14989         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
14990         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
14991         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
14992         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
14993
14994         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
14995         for using routine as __sinf_ia32.
14996         Use macro for function declaration and weak_alias.
14997         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
14998         for using routine as __cosf_ia32.
14999         Use macro for function declaration and weak_alias.
15000
15001         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
15002         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
15003
15004         * sysdeps/x86_64/fpu/s_sinf.S: New file.
15005         * sysdeps/x86_64/fpu/s_cosf.S: New file.
15006         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15007
15008         * math/libm-test.inc (cos_test): Add more test cases.
15009         (sin_test): Likewise.
15010         (sincos_test): Likewise.
15011
15012 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15013
15014         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
15015         (IFUNC_RESOLVE): Make pointers to the specialized implementations
15016         hidden.
15017         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
15018
15019 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
15020
15021         [BZ #14538]
15022         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
15023         first element of the GOT.
15024         (elf_machine_load_address): Return the difference between
15025         the runtime address of _DYNAMIC and elf_machine_dynamic ().
15026
15027 2012-09-01  Allan McRae  <allan@archlinux.org>
15028
15029         [BZ #13412]
15030         * configure.in (AWK): Require gawk version 3.0 or later.
15031         * configure: Regenerated.
15032
15033 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
15034
15035         * sysdeps/unix/sysv/linux/kernel-features.h
15036         (__ASSUME_POSIX_CPU_TIMERS): Remove.
15037         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15038         [__NR_clock_getres]: Make code unconditional.
15039         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
15040         (clock_getcpuclockid): Remove code left unreachable by removal of
15041         conditionals.
15042         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
15043         code unconditional.
15044         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15045         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15046         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
15047         Make code unconditional.
15048         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15049         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15050         * sysdeps/unix/sysv/linux/clock_settime.c
15051         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
15052         conditional code.
15053         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
15054         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15055
15056 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
15057
15058         [BZ #14476]
15059         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
15060         scripts/test-installation.pl.
15061
15062         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
15063         and $ld_so_version if it is set.
15064
15065 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15066
15067         [BZ #14516]
15068         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
15069         failure if reading from procfs failed.
15070         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
15071
15072 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15073
15074         * sysdeps/unix/sysv/linux/kernel-features.h
15075         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
15076         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15077         Remove conditional code.
15078         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15079         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
15080         Remove conditional code.
15081         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15082         * sysdeps/unix/sysv/linux/i386/fxstat.c
15083         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15084         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15085         * sysdeps/unix/sysv/linux/i386/fxstatat.c
15086         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15087         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15088         * sysdeps/unix/sysv/linux/i386/lxstat.c
15089         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15090         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15091         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
15092         Remove conditional code.
15093         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15094         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15095         Remove conditional code.
15096         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15097         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
15098         <kernel-features.h>.
15099         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
15100         Remove.
15101         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
15102         Remove conditional code.
15103         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15104         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
15105         Remove conditional.
15106
15107 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
15108
15109         [BZ #5400]
15110         * NEWS: Add fixed bug number.
15111
15112 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15113
15114         [BZ #14519]
15115         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
15116         underflowing exponent in case of negative sign.
15117         * stdlib/tst-strtod-round-data: Add more tests.
15118         * stdlib/tst-strtod-round.c (tests): Regenerated.
15119
15120         [BZ #3479]
15121         * stdlib/strtod_l.c (NDIG): Remove.
15122         (HEXNDIG): Likewise.
15123         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
15124         smallest representable value.
15125         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
15126         lie within an exact representation of 1/2 ulp of the result.
15127         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
15128         unconditionally.
15129         (TENS_P9_IDX): Define unconditionally.
15130         (TENS_P9_SIZE): Likewise.
15131         (TENS_P10_IDX): Likewise.
15132         (TENS_P10_SIZE): Likewise.
15133         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
15134         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
15135         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
15136         entries for 10^2^13 and 10^2^14.
15137         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
15138         (TENS_P13_IDX): Define.
15139         (TENS_P13_SIZE): Likewise.
15140         (TENS_P14_IDX): Likewise.
15141         (TENS_P14_SIZE): Likewise.
15142         (_fpioconst_pow10): Change array size to
15143         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
15144         unconditional.
15145         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
15146         1024]: Add entries for 10^2^13 and 10^2^14.
15147         [LAST_POW10 > _LAST_POW10]: Remove #error.
15148         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
15149         (_fpioconst_pow10): Change array size to
15150         FPIOCONST_POW10_ARRAY_SIZE.
15151         * stdlib/gen-fpioconst.c: New file.
15152         * stdlib/gen-tst-strtod-round.c: Likewise.
15153         * stdlib/tst-strtod-round-data: Likewise.
15154         * stdlib/tst-strtod-round.c: Likewise.
15155         * stdlib/Makefile (tests): Add tst-strtod-round.
15156
15157         [BZ #14459]
15158         * stdlib/strtod_l.c: Include <stdint.h>.
15159         (NDEBUG): Do not define.
15160         (round_and_return): Change EXPONENT parameter to type intmax_t.
15161         Rearrange calculations to avoid internal overflow possibilities.
15162         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
15163         Rearrange calculations to avoid internal overflow possibilities.
15164         Assert that number fits inside MPNSIZE limbs.
15165         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
15166         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
15167         calculations and add assertions to avoid internal overflow
15168         possibilities.  Add casts to avoid signed/unsigned operations.
15169         * stdlib/tst-strtod-overflow.c: New file.
15170         * stdlib/Makefile (tests): Add tst-strtod-overflow.
15171
15172 2012-08-25  Marek Polacek  <polacek@redhat.com>
15173
15174         * time/time.h: Fix some typos in comments.
15175
15176 2012-08-23  Roland McGrath  <roland@hack.frob.com>
15177
15178         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
15179         * posix/tst-rfc3484-2.c: Likewise.
15180         * posix/tst-rfc3484-3.c: Likewise.
15181
15182 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
15183
15184         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
15185         (EF_ARM_ABI_FLOAT_HARD): Likewise.
15186
15187 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
15188
15189         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
15190         #include of fxstatat64.c.
15191
15192 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15193
15194         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
15195         * shadow/getspent_r.c: Likewise.
15196         * shadow/getspnam.c: Likewise.
15197         * shadow/getspnam_r.c: Likewise.
15198         * gshadow/getsgent.c: Likewise.
15199         * gshadow/getsgent_r.c: Likewise.
15200         * gshadow/getsgnam.c: Likewise.
15201         * gshadow/getsgnam_r.c: Likewise.
15202         * inet/getnetbyad.c: Likewise.
15203         * inet/getnetbyad_r.c: Likewise.
15204         * inet/getnetbynm.c: Likewise.
15205         * inet/getnetbynm_r.c: Likewise.
15206         * inet/getnetent.c: Likewise.
15207         * inet/getnetent_r.c: Likewise.
15208         * inet/getproto.c: Likewise.
15209         * inet/getproto_r.c: Likewise.
15210         * inet/getprtent.c: Likewise.
15211         * inet/getprtent_r.c: Likewise.
15212         * inet/getprtname.c: Likewise.
15213         * inet/getprtname_r.c: Likewise.
15214         * inet/getrpcbyname.c: Likewise.
15215         * inet/getrpcbyname_r.c: Likewise.
15216         * inet/getrpcbynumber.c: Likewise.
15217         * inet/getrpcbynumber_r.c: Likewise.
15218         * inet/getrpcent.c: Likewise.
15219         * inet/getrpcent_r.c: Likewise.
15220         * inet/getaliasent.c: Likewise.
15221         * inet/getaliasent_r.c: Likewise.
15222         * inet/getaliasname.c: Likewise.
15223         * inet/getaliasname_r.c: Likewise.
15224         * nscd/getgrgid_r.c: Likewise.
15225         * nscd/getgrnam_r.c: Likewise.
15226         * nscd/gethstbyad_r.c: Likewise.
15227         * nscd/gethstbynm3_r.c: Likewise.
15228         * nscd/getpwnam_r.c: Likewise.
15229         * nscd/getpwuid_r.c: Likewise.
15230         * nscd/getsrvbynm_r.c: Likewise.
15231         * nscd/getsrvbypt_r.c: Likewise.
15232         * nscd/gai.c: Likewise.
15233
15234         * configure.in (build_nscd): New substituted variable, set
15235         by --disable-build-nscd and defaults to $use_nscd.
15236         * configure: Regenerated.
15237         * config.make.in (build-nscd): New substituted variable.
15238         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
15239         Change conditional to require [$(build-nscd) = yes] as well.
15240         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
15241
15242         [BZ# 13696]
15243         * configure.in (use_nscd): New substituted variable, set by
15244         --disable-nscd.  If enabled, define USE_NSCD.
15245         * configure: Regenerated.
15246         * config.h.in: Add USE_NSCD.
15247         * config.make.in (use-nscd): New substituted variable.
15248         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15249         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
15250         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
15251         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
15252         (CFLAGS-getgrnam_r.c): Likewise.
15253         (CFLAGS-initgroups.c): Likewise.
15254         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
15255         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
15256         Variables removed.
15257         * inet/getnetgrent_r.c
15258         (nscd_setnetgrent): New function, broken out of ...
15259         (setnetgrent): ... here.  Call it.
15260         (innetgr): Conditionalize nscd bits on [USE_NSCD].
15261         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
15262         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
15263         * nscd/Makefile (routines, aux): Move definitions after include of
15264         Makeconfig.  Conditionalize on [$(use-nscd) != no].
15265         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
15266         Conditionalize on [USE_NSCD].
15267         (is_nscd, nscd_init_cb): Likewise.
15268         (nss_load_library): Conditionalize init callback on [USE_NSCD].
15269         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
15270         * nss/nss_db/db-init.c: Likewise.
15271         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
15272         [USE_NSCD].
15273         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
15274         (make_request): Use it.
15275         (cache_valid_p): New function.
15276         (__check_pf): Use it.
15277         * NEWS: Add item for --disable-nscd.
15278
15279 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
15280
15281         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
15282         to support sed >= 4.2.1-20-ga9bf076.
15283         * configure: Regenerated.
15284
15285 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15286
15287         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
15288         Conditionalize whole body on [IREL].
15289
15290 2012-08-22  Jeff Law <law@redhat.com>
15291
15292         [BZ #14505]
15293         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
15294         if the family is PF_UNSPEC.
15295
15296 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
15297
15298         * Makerules (lib-version): Rename from V.
15299         (install-lib-nosubdir): Change V to lib-version.
15300
15301 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
15302
15303         [BZ #14252]
15304         * powerpc32/power6/wcschr.c: New file.
15305         * powerpc32/power6/wcscpy.c: New file.
15306         * powerpc32/power6/wcsrchr.c: New file.
15307         * powerpc64/power6/wcschr.c: New file.
15308         * powerpc64/power6/wcscpy.c: New file.
15309         * powerpc64/power6/wcsrchr.c: New file.
15310
15311 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15312
15313         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
15314         (two_way_short_needle): Use it.
15315         * string/strstr.c (AVAILABLE1_USES_J): Define.
15316         * string/strcasestr.c: Likewise.
15317
15318         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
15319         array references.
15320         * string/strcasestr.c (TOLOWER): Make side-effect safe.
15321
15322         [BZ #11607]
15323         * NEWS: Add an entry.
15324         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
15325         define their defaults.
15326         (two_way_short_needle): Detect end-of-string on-the-fly.
15327         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
15328         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
15329         * string/bug-strcasestr1.c: New test.
15330         * string/Makefile: Run it.
15331
15332 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15333
15334         [BZ #11607]
15335         * string/str-two-way.h (two_way_short_needle): Optimize matching of
15336         the first character.
15337
15338 2012-08-21  Roland McGrath  <roland@hack.frob.com>
15339
15340         * csu/elf-init.c (__libc_csu_irel): Function removed.
15341         * csu/libc-start.c (apply_irel): New function.
15342         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
15343
15344 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
15345
15346         * sysdeps/unix/sysv/linux/kernel-features.h
15347         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
15348         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
15349         <kernel-features.h>.
15350         [__NR_fadvise64_64]: Make code unconditional.
15351         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
15352         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
15353         !__NR_fadvise64_64)]: Likewise.
15354         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
15355         !__NR_fadvise64_64))]: Likewise.
15356         [__NR_fadvise64]: Make code unconditional.
15357         [!__NR_fadvise64]: Remove conditional code.
15358         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
15359         <kernel-features.h>.
15360         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15361         unconditional.
15362         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15363         conditional code.
15364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
15365         not include <kernel-features.h>.
15366         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15367         unconditional.
15368         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15369         conditional code.
15370         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
15371         include <kernel-features.h>.
15372         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15373         unconditional.
15374         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15375         conditional code.
15376
15377 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15378
15379         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
15380         slight instruction rearrangements per scrollpipe analysis.
15381         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
15382
15383 2012-08-20  Roland McGrath  <roland@hack.frob.com>
15384
15385         * manual/syslog.texi (syslog; vsyslog, closelog):
15386         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
15387         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
15388
15389         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
15390         DSOCAPS to match condition on defining it.
15391
15392 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
15393
15394         * sysdeps/unix/sysv/linux/kernel-features.h
15395         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
15396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
15397         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15398         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
15400         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15401         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
15403         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15404         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15405
15406         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
15407         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
15408
15409         * sysdeps/unix/sysv/linux/kernel-features.h
15410         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
15411         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
15412         unconditional.
15413         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15414         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
15415         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
15416         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15417         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
15418         Make code unconditional.
15419         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15420         (__mmap64) [!__NR_mmap2]: Likewise.
15421         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
15422         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
15423         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15424         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
15425         [__NR_mmap2]: Make code unconditional.
15426         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15427         (__mmap64) [!__NR_mmap2]: Likewise.
15428
15429 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15430
15431         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
15432
15433 2012-08-18  Andreas Jaeger  <aj@suse.de>
15434
15435         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
15436
15437 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
15438
15439         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
15440         * include/unistd.h (__have_sock_cloexec): Likewise.
15441         (__have_pipe2): Likewise.
15442         (__have_dup3): Likewise.
15443
15444 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
15445
15446         [BZ #9685]
15447         * include/unistd.h (__have_pipe2): Change define into an extern int.
15448         (__have_dup3): Likewise.
15449         * socket/have_sock_cloexec.c: Include fcntl.h.
15450         (__have_pipe2): New variable.
15451         (__have_dup3): Likewise.
15452
15453 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
15454
15455         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
15456
15457 2012-08-17  Marek Polacek  <polacek@redhat.com>
15458
15459         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
15460         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
15461
15462 2012-08-17  Roland McGrath  <roland@hack.frob.com>
15463
15464         * configure.in: Add AC_SUBST for sysheaders.
15465         * configure: Regenerated.
15466         * config.make.in (sysheaders): New substituted variable.
15467
15468         * sysdeps/unix/mkfifo.c: Moved ...
15469         * sysdeps/posix/mkfifo.c: ... here.
15470         * sysdeps/unix/mkfifoat.c: Moved ...
15471         * sysdeps/posix/mkfifoat.c: ... here.
15472
15473         * sysdeps/unix/utime.c: Moved ...
15474         * sysdeps/posix/utime.c: ... here.
15475
15476         * sysdeps/unix/time.c: Moved ...
15477         * sysdeps/posix/time.c: ... here.
15478         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
15479         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
15480
15481         * sysdeps/unix/nice.c: Moved ...
15482         * sysdeps/posix/nice.c: ... here.
15483
15484         * sysdeps/unix/alarm.c: Moved ...
15485         * sysdeps/posix/alarm.c: ... here.
15486
15487         * intl/Makefile ($(codeset_mo)): Depend on the input file.
15488
15489 2012-08-17  Jeff Law <law@redhat.com>
15490
15491         * intl/Makefile (codeset_mo): New variable.
15492         ($(codeset_mo)): New target.
15493         (tst-codeset.out): Depend on that.  Remove explicit rule.
15494         (tst-gettext3.out, tst-gettext5.out): Likewise.
15495         (LOCPATH-ENV, tst-codeset-ENV): New variables.
15496         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
15497         * intl/tst-codeset.sh: Remove.
15498         * intl/tst-gettext3.sh: Likewise.
15499         * intl/tst-gettext5.sh: Likewise.
15500
15501 2012-08-17  Roland McGrath  <roland@hack.frob.com>
15502
15503         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
15504         * sysdeps/unix/syscalls.list: ... here.
15505
15506         * sysdeps/posix/getaddrinfo.c
15507         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
15508         (gaiconf_init, gaiconf_reload): Use them.
15509         [!_STATBUF_ST_NSEC]
15510         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
15511         Define using time_t rather than struct timespec.
15512
15513         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
15514         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
15515         Macros removed.
15516         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
15517         [!NO_THREADS].
15518         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
15519         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
15520         Likewise.
15521
15522         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
15523         __libc_cleanup_push argument.
15524
15525         * bits/param.h: New file.
15526         * misc/sys/param.h: New file.
15527         * include/sys/param.h: New file.
15528         * misc/Makefile (headers): Add bits/param.h.
15529         * sysdeps/generic/sys/param.h: File removed.
15530         * sysdeps/unix/sysv/linux/bits/param.h: New file.
15531         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
15532         * sysdeps/mach/hurd/bits/param.h: New file.
15533         * sysdeps/mach/hurd/sys/param.h: File removed.
15534
15535         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
15536         last change.
15537
15538         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
15539         [_IO_MTSAFE_IO].
15540         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
15541         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
15542         New macros.
15543
15544         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
15545         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
15546         rather than -D_IO_MTSAFE_IO conditionally.
15547         * stdio-common/Makefile (CPPFLAGS): Likewise.
15548         * wcsmbs/Makefile (CPPFLAGS): Likewise.
15549         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
15550         Use $(libio-mtsafe).
15551         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
15552         of -D_IO_MTSAFE_IO.
15553         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
15554         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
15555         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
15556         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
15557         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
15558         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
15559         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
15560         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
15561         (CFLAGS-fread_u_chk.c): Likewise.
15562         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
15563         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
15564         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
15565         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
15566         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
15567         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
15568         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
15569         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
15570         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
15571
15572         * libio/Makefile: Test [$(libc-reentrant) = yes]
15573         instead of [$(filter %REENTRANT, $(defines)) nonempty].
15574
15575         * Makeconfig
15576         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
15577         * sysdeps/pthread/configure: File removed.
15578         * sysdeps/pthread/Makeconfig: New file.
15579         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
15580         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
15581
15582 2012-08-16  Gary Benson  <gbenson@redhat.com>
15583
15584         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
15585         unmapping the first object in a namespace.
15586
15587 2012-08-16  Roland McGrath  <roland@hack.frob.com>
15588
15589         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
15590         (__internal_setnetgrent): ... this.  Add internal_function to
15591         definition.  Add libc_hidden_def.
15592         (setnetgrent): Update caller.
15593         (internal_endnetgrent): Renamed to ...
15594         (__internal_endnetgrent): ... this.  Add internal_function to
15595         definition.  Add libc_hidden_def.
15596         (endnetgrent): Update caller.
15597         (internal_getnetgrent_r): Renamed to ...
15598         (__internal_getnetgrent_r): ... this.  Add internal_function to
15599         definition.  Add libc_hidden_def.
15600         (__getnetgrent_r): Update caller.
15601         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
15602
15603 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
15604
15605         * stdlib/longlong.h: Update from GCC.
15606
15607 2012-08-16  Roland McGrath  <roland@hack.frob.com>
15608
15609         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
15610         on _QL, which is set by umul_ppmm but never used.
15611         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
15612         variables, which are set by GMP macros but never used.
15613         * stdio-common/_itowa.c (_itowa): Likewise.
15614         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
15615         * stdlib/mod_1.c (mpn_mod_1): Likewise.
15616
15617 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
15618
15619         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
15620         struct La_sh_regs is not constant.
15621         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
15622         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
15623         and struct La_sparc64_regs are not constant.
15624
15625 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
15626
15627         * sysdeps/unix/sysv/linux/kernel-features.h
15628         (__ASSUME_POSIX_TIMERS): Remove.
15629         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15630         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15631         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
15632         Make code unconditional.
15633         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15634         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
15635         Make code unconditional.
15636         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15637         * sysdeps/unix/sysv/linux/clock_nanosleep.c
15638         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
15639         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15640         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
15641         Make code unconditional.
15642         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15643         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
15644         (__libc_missing_posix_timers): Remove.
15645
15646 2012-08-15  Roland McGrath  <roland@hack.frob.com>
15647
15648         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
15649         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
15650
15651         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
15652
15653         * elf/dl-sym.c: Include <stdlib.h>.
15654
15655         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
15656         constants, which avoids warnings in 32-bit builds.
15657
15658         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
15659         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
15660
15661         * misc/lseek.c: File moved to ...
15662         * io/lseek.c: ... here.
15663
15664         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
15665
15666         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
15667         shifting LEN more than 31 bits at once.
15668
15669 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15670
15671         [BZ #14195]
15672         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
15673         segmentation fault for a case of two empty input strings.
15674         * string/test-strncasecmp.c (check1): Renamed to...
15675         (bz12205): ...this.
15676         (bz14195): Add new testcase for two empty input strings and N > 0.
15677         (test_main): Call new testcase, adapt for renamed function.
15678
15679 2012-08-15  Andreas Jaeger  <aj@suse.de>
15680
15681         [BZ #14090]
15682         * crypt/md5test2.c: New test, based on test supplied by Serge
15683         Belyshev <belyshev@depni.sinp.msu.ru>.
15684         * crypt/Makefile (xtests): Add md5test-giant..
15685         * crypt/Makefile ($(objpfx)md5test-giant): Add.
15686
15687 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15688
15689         [BZ #14090]
15690         * crypt/md5.c (md5_process_block): Don't assume the buffer
15691         length is less than 2**32.
15692         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
15693         length is less than 2**64.
15694
15695 2012-08-15  Roland McGrath  <roland@hack.frob.com>
15696
15697         * string/str-two-way.h: Include <sys/param.h>.
15698         (MAX): Macro removed.
15699
15700         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
15701         Move #define and #undef of memmove to just before and after
15702         including <string.h>.
15703
15704         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
15705         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
15706         and after including <string.h>.  Move declarations of
15707         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
15708         to before #include "string/memmove.c".
15709
15710         * include/dirent.h: Declare __getdirentries.
15711
15712         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
15713         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
15714
15715 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
15716
15717         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
15718         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
15719         * sysdeps/i386/configure: Regenerated.
15720         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
15721         STABS_CURRENT_FILE, and STABS_FUN.
15722         (END): Remove call to STABS_FUN_END.
15723         (STABS_CURRENT_FILE1): Delete.
15724         (STABS_CURRENT_FILE): Likewise.
15725         (STABS_FUN): Likewise.
15726         (STABS_FUN_END): Likewise.
15727         (STABS_FUN2): Likewise.
15728         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
15729         * sysdeps/x86_64/configure: Regenerated.
15730
15731 2012-08-14  Roland McGrath  <roland@hack.frob.com>
15732
15733         * elf/dl-open.c: Include <atomic.h>.
15734         * elf/dl-lookup.c: Likewise.
15735
15736 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
15737
15738         * sysdeps/unix/sysv/linux/kernel-features.h
15739         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
15740         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
15741         unconditionally.
15742         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
15743         unconditionally.
15744         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
15745         condition on __ASSUME_CLONE_THREAD_FLAGS.
15746
15747 2012-08-14  Andreas Jaeger  <aj@suse.de>
15748
15749         * sysdeps/i386/fpu/libm-test-ulps: Update.
15750
15751 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
15752
15753         * include/atomic.h (atomic_exchange_and_add): Split into ...
15754         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
15755         New atomic macros.
15756
15757 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
15758
15759         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15760
15761 2012-08-13  Jeff Law <law@redhat.com>
15762
15763         * manual/stdio.texi (snprintf): Clarify handling of the trailing
15764         null byte in the output string.
15765
15766 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
15767
15768         * sysdeps/unix/sysv/linux/kernel-features.h
15769         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
15770         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
15771         (__ASSUME_ARG_MAX_STACK_BASED): Define.
15772         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
15773         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
15774         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
15775         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
15776
15777 2012-08-09  Jeff Law <law@redhat.com>
15778
15779         [BZ #13939]
15780         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
15781         When avoid_arena is set, don't retry in the that arena.  Pick the
15782         next one, whatever it might be.
15783         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
15784         (arena_lock): Pass in new parameter to arena_get2.
15785         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
15786         arena_get2.
15787         (__libc_malloc): Unify retrying after main arena failure with
15788         __libc_memalign version.
15789         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
15790
15791 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15792
15793         [BZ #14166]
15794         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
15795         to __redirect_strstr.
15796         (__strstr_sse42): Use typeof __redirect_strstr.
15797         (__strstr_ia32): Likewise.
15798         (__libc_strstr): New prototype.
15799         (strstr): Renamed to ...
15800         (__libc_strstr): This.
15801         (strstr): New strong alias of __libc_strstr.
15802         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
15803         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
15804         __redirect_time.
15805         Include <time.h>.
15806         (__libc_time): New prototype.
15807         (time_ifunc): Replace time with __libc_time.
15808         (time): New strong alias and hidden definition of __libc_time.
15809         (__GI_time): Remove strong alias.
15810         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
15811         Include <stddef.h>.
15812         (memmove): Redefined to __redirect_memmove.
15813         (__memmove_sse2): Use typeof __redirect_memmove.
15814         (__memmove_ssse3): Likewise.
15815         (__memmove_ssse3_back): Likewise.
15816         (__libc_memmove): New prototype.
15817         (memmove): Renamed to ...
15818         (__libc_memmove): This.
15819         (memmove): New strong alias of __libc_memmove.
15820
15821 2012-08-08  Mark Salter  <msalter@redhat.com>
15822
15823         * elf/elf.h
15824         (R_MN10300_TLS_GD): Define.
15825         (R_MN10300_TLS_LD): Likewise.
15826         (R_MN10300_TLS_LDO): Likewise.
15827         (R_MN10300_TLS_GOTIE): Likewise.
15828         (R_MN10300_TLS_IE): Likewise.
15829         (R_MN10300_TLS_LE): Likewise.
15830         (R_MN10300_TLS_DTPMOD): Likewise.
15831         (R_MN10300_TLS_DTPOFF): Likewise.
15832         (R_MN10300_TLS_TPOFF): Likewise.
15833         (R_MN10300_SYM_DIFF): Likewise.
15834         (R_MN10300_ALIGN): Likewise.
15835         (R_MN10300_NUM): Update.
15836
15837 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
15838
15839         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
15840         Remove.
15841
15842 2012-08-08  Roland McGrath  <roland@hack.frob.com>
15843
15844         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
15845
15846         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
15847         sysdeps/unix -> sysdeps/posix move.
15848         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15849
15850 2012-08-07      Allan McRae     <allan@archlinux.org>
15851
15852         [BZ #14303]
15853         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
15854         (SUNOS_CPP): Likewise.
15855         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
15856         not found.
15857         (open_input): Call CPP using execvp.
15858
15859 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
15860
15861         * sysdeps/unix/sysv/linux/kernel-features.h
15862         (__ASSUME_PROT_GROWSUPDOWN): Remove.
15863         (__ASSUME_NO_CLONE_DETACHED): Likewise.
15864         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
15865         (__ASSUME_WAITID_SYSCALL): Likewise.
15866         * sysdeps/unix/sysv/linux/dl-execstack.c
15867         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
15868         code unconditional.
15869         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
15870         conditional code.
15871         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
15872         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
15873         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
15874         code.
15875         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
15876         unconditional.
15877         [__ASSUME_WAITID_SYSCALL]: Likewise.
15878         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
15879
15880 2012-08-07  Roland McGrath  <roland@hack.frob.com>
15881
15882         * sysdeps/unix/closedir.c: Renamed to ...
15883         * sysdeps/posix/closedir.c: ... here.
15884         * sysdeps/unix/dirfd.c: Renamed to ...
15885         * sysdeps/posix/dirfd.c: ... here.
15886         * sysdeps/unix/dirstream.h: Renamed to ...
15887         * sysdeps/posix/dirstream.h: ... here.
15888         * sysdeps/unix/fdopendir.c: Renamed to ...
15889         * sysdeps/posix/fdopendir.c: ... here.
15890         * sysdeps/unix/opendir.c: Renamed to ...
15891         * sysdeps/posix/opendir.c: ... here.
15892         * sysdeps/unix/readdir.c: Renamed to ...
15893         * sysdeps/posix/readdir.c: ... here.
15894         * sysdeps/unix/readdir_r.c: Renamed to ...
15895         * sysdeps/posix/readdir_r.c: ... here.
15896         * sysdeps/unix/rewinddir.c: Renamed to ...
15897         * sysdeps/posix/rewinddir.c: ... here.
15898         * sysdeps/unix/seekdir.c: Renamed to ...
15899         * sysdeps/posix/seekdir.c: ... here.
15900         * sysdeps/unix/telldir.c: Renamed to ...
15901         * sysdeps/posix/telldir.c: ... here.
15902         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
15903         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
15904         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15905         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15906
15907         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
15908         * bits/fcntl.h: ... here.
15909
15910         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
15911         not 0.
15912         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
15913         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
15914         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
15915         (struct flock): Move l_start, l_len to the beginning.
15916         Use __pid_t for l_pid.
15917         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
15918         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
15919         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
15920         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
15921         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
15922         [__USE_LARGEFILE64] (struct flock64): New type.
15923         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
15924
15925         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
15926         * bits/dirent.h: ... here.
15927
15928         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
15929         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
15930
15931 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
15932
15933         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
15934         Change from 2.6.0 to 2.6.16.
15935         * sysdeps/unix/sysv/linux/configure: Regenerated.
15936         * sysdeps/unix/sysv/linux/kernel-features.h
15937         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
15938         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
15939         version.
15940         (__ASSUME_UTIMES): Likewise.
15941         (__ASSUME_CLONE_STOPPED): Remove.
15942         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
15943         architectures, not kernel version.
15944         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
15945         (__ASSUME_NO_CLONE_DETACHED): Likewise.
15946         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
15947         (__ASSUME_WAITID_SYSCALL): Likewise.
15948         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
15949         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
15950         * README: State 2.6.16 as minimum Linux kernel version.  Do not
15951         refer to older versions.
15952
15953 2012-08-06  Roland McGrath  <roland@hack.frob.com>
15954
15955         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
15956         Define alphasort64 as an alias.
15957         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
15958         Define versionsort64 as an alias.
15959         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
15960         Define scandir64 as an alias.
15961         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
15962         Define scandirat64 as an alias.
15963         * dirent/alphasort64.c (alphasort64):
15964         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
15965         * dirent/versionsort64.c: Likewise.
15966         * dirent/scandir64.c: Likewise.
15967         * dirent/scandirat64.c: Likewise.
15968         * sysdeps/wordsize-64/alphasort.c: File removed.
15969         * sysdeps/wordsize-64/alphasort64.c: File removed.
15970         * sysdeps/wordsize-64/scandir.c: File removed.
15971         * sysdeps/wordsize-64/scandir64.c: File removed.
15972         * sysdeps/wordsize-64/scandirat.c: File removed.
15973         * sysdeps/wordsize-64/scandirat64.c: File removed.
15974         * sysdeps/wordsize-64/versionsort.c: File removed.
15975         * sysdeps/wordsize-64/versionsort64.c: File removed.
15976         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
15977         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
15978         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
15979         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
15980         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
15981         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
15982         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
15983         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
15984
15985         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
15986         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
15987         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
15988         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15989         [defined __arch64__ || defined __sparcv9]
15990         (__INO_T_MATCHES_INO64_T): New macro.
15991         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
15992         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
15993         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
15994         * sysdeps/unix/sysv/linux/bits/dirent.h
15995         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
15996         (_DIRENT_MATCHES_DIRENT64): New macro.
15997
15998         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
15999         Define lockf64 as an alias.
16000         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
16001         Define fseeko64 as an alias.
16002         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
16003         Define ftello64 as an alias.
16004         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
16005         Define _IO_fgetpos64 and fgetpos64 as aliases.
16006         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
16007         Define _IO_fsetpos64 and fsetpos64 as aliases.
16008         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
16009         Conditionalize body on this.
16010         * libio/fseeko64.c: Likewise.
16011         * libio/ftello64.c: Likewise.
16012         * libio/iofgetpos64.c: Likewise.
16013         * libio/iofsetpos64.c: Likewise.
16014         * sysdeps/wordsize-64/lockf.c: File removed.
16015         * sysdeps/wordsize-64/lockf64.c: File removed.
16016         * sysdeps/wordsize-64/fseeko.c: File removed.
16017         * sysdeps/wordsize-64/fseeko64.c: File removed.
16018         * sysdeps/wordsize-64/ftello.c: File removed.
16019         * sysdeps/wordsize-64/ftello64.c: File removed.
16020         * sysdeps/wordsize-64/iofgetpos.c: File removed.
16021         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
16022         * sysdeps/wordsize-64/iofsetpos.c: File removed.
16023         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
16024         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
16025         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
16026         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
16027         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
16028         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
16029         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
16030         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
16031         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
16032         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
16033         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
16034
16035         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16036         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16037         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
16038         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16039         [defined __arch64__ || defined __sparcv9]
16040         (__OFF_T_MATCHES_OFF64_T): New macro.
16041         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16042         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16043         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16044         (__OFF_T_MATCHES_OFF64_T): New macro.
16045
16046 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16047
16048         * stdlib/secure-getenv.c (__secure_getenv): Replace
16049         GLIBC_2_16 with GLIBC_2_17.
16050
16051 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16052
16053         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
16054         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
16055
16056 2012-08-03  David S. Miller  <davem@davemloft.net>
16057
16058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16059
16060 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16061
16062         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
16063         Remove.
16064         (__ASSUME_CORRECT_SI_PID): Likewise.
16065         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
16066         (__ASSUME_TMPFS_NAME): Likewise.
16067         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
16068         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
16069         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
16070         (HAVE_AUX_SECURE): Make definition unconditional.
16071         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
16072         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
16073
16074 2012-08-03  Roland McGrath  <roland@hack.frob.com>
16075
16076         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
16077         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
16078         * sysdeps/mach/hurd/eloop-threshold.h: New file.
16079         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16080         __eloop_threshold instead of SYMLOOP_MAX.
16081
16082         * sysdeps/generic/eloop-threshold.h: New file.
16083         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
16084         of MAXSYMLINKS.
16085         * elf/chroot_canon.c (chroot_canon): Likewise.
16086
16087 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16088
16089         [BZ #13717]
16090         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16091         Change to 2.6.0 everywhere.
16092         * sysdeps/unix/sysv/linux/configure: Regenerated.
16093         * sysdeps/unix/sysv/linux/kernel-features.h
16094         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
16095         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
16096         kernel versions.
16097         (__ASSUME_POSIX_TIMERS): Define unconditionally.
16098         (__ASSUME_FUTEX_REQUEUE): Remove.
16099         (__ASSUME_STATFS64): Define unconditionally.
16100         (__ASSUME_AT_SECURE): Likewise.
16101         (__ASSUME_CORRECT_SI_PID): Likewise.
16102         (__ASSUME_TGKILL): Define without depending on kernel version for
16103         i386.
16104         (__ASSUME_UTIMES): Likewise.
16105         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
16106         kernel version.
16107         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
16108         (__ASSUME_TMPFS_NAME): Likewise.
16109         * README: Update reference to Linux kernel versions.
16110
16111 2012-08-02  Marek Polacek  <polacek@redhat.com>
16112
16113         [BZ# 14150]
16114         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
16115         libc_cv_asm_type_prefix with %.
16116         * configure: Regenerated.
16117         * include/libc-symbols.h: Remove comment about
16118         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16119         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
16120         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
16121         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
16122         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
16123         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16124         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
16125         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
16126         * elf/tst-unique2mod1.c: Likewise.
16127         * elf/tst-unique1mod2.c: Likewise.
16128         * elf/tst-unique1mod1.c: Likewise.
16129         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
16130         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
16131         Replace ASM_TYPE_DIRECTIVE with .type.
16132         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16133         * sysdeps/i386/sysdep.h: Likewise.
16134         * sysdeps/x86_64/sysdep.h: Likewise.
16135         * sysdeps/sh/sysdep.h: Likewise.
16136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16137         Do not define ASM_TYPE_DIRECTIVE.
16138         * sysdeps/powerpc/sysdep.h: Likewise.
16139         * sysdeps/powerpc/powerpc32/sysdep.h:
16140         Replace ASM_TYPE_DIRECTIVE with .type.
16141         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
16142         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16143         * sysdeps/i386/fpu/e_powf.S: Likewise.
16144         * sysdeps/i386/fpu/e_expl.S: Likewise.
16145         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16146         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16147         * sysdeps/i386/fpu/e_pow.S: Likewise.
16148         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
16149         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16150         * sysdeps/i386/fpu/s_expm1.S: Likewise.
16151         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
16152         * sysdeps/i386/fpu/e_log2.S: Likewise.
16153         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16154         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16155         * sysdeps/i386/fpu/e_powl.S: Likewise.
16156         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16157         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
16158         * sysdeps/i386/fpu/e_logl.S: Likewise.
16159         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
16160         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
16161         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
16162         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16163         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16164         * sysdeps/i386/fpu/e_log.S: Likewise.
16165         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16166         * sysdeps/i386/fpu/e_logf.S: Likewise.
16167         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16168         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16169         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
16170         * sysdeps/i386/fpu/e_log10.S: Likewise.
16171         * sysdeps/i386/fpu/s_frexp.S: Likewise.
16172         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16173         * sysdeps/i386/fpu/s_asinh.S: Likewise.
16174         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
16175         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16176         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
16177         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
16178         * sysdeps/i386/i686/strtok.S: Likewise.
16179         * sysdeps/i386/i386-mcount.S: Likewise.
16180         * sysdeps/i386/strtok.S: Likewise.
16181         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
16182         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16183         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16184         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16185         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16186         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16187         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
16188         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
16189         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16190         * sysdeps/x86_64/_mcount.S: Likewise.
16191         * sysdeps/x86_64/strtok.S: Likewise.
16192         * sysdeps/sh/_mcount.S: Likewise.
16193
16194 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16195
16196         * libio/iofopen.c: Include <fcntl.h>.
16197         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
16198         (_IO_fopen64, fopen64): Define as aliases.
16199         * libio/iofopen64.c: Include <fcntl.h>.
16200         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
16201         Conditionalize body on this.
16202         * sysdeps/wordsize-64/iofopen.c: File removed.
16203         * sysdeps/wordsize-64/iofopen64.c: File removed.
16204
16205 2012-08-01  Marek Polacek  <polacek@redhat.com>
16206
16207         * libc/Makeconfig: Use elf in place of binfmt-subdir.
16208         Use dlfcn directly instead of a variable.
16209         (binfmt-subdir): Do not define.
16210         (dlfcn): Likewise.
16211
16212 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
16213
16214         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
16215         Remove all definitions.
16216         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
16217         <kernel-features.h>.
16218         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16219         (miss_F_GETOWN_EX): Remove all definitions.
16220         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
16221         macro definition.
16222         [!__ASSUME_FCNTL64]: Remove conditional code.
16223         [__ASSUME_FCNTL64]: Make code unconditional.
16224         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
16225         <kernel-features.h>.
16226         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16227         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
16228         (lockf64) [__NR_fcntl64]: Make code unconditional.
16229         (lockf64) [__ASSUME_FCNTL64]: Likewise.
16230
16231         * sysdeps/unix/sysv/linux/kernel-features.h
16232         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
16233         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
16234         Make code unconditional.
16235         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16236         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
16238         [__NR_vfork]: Make code unconditional.
16239         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16240         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
16242         [__NR_vfork]: Make code unconditional.
16243         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16244         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16245
16246 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16247
16248         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
16249         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
16250
16251         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16252         Define mkstemp64 as an alias.
16253         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16254         Define mkstemps64 as an alias.
16255         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16256         Define mkostemp64 as an alias.
16257         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16258         Define mkostemps64 as an alias.
16259         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
16260         Conditionalize body on this.
16261         * misc/mkostemp64.c: Likewise.
16262         * misc/mkostemps64.c: Likewise.
16263         * misc/mkstemps64.c: Likewise.
16264         * sysdeps/wordsize-64/mkstemp64.c: File removed.
16265         * sysdeps/wordsize-64/mkostemp64.c: File removed.
16266         * sysdeps/wordsize-64/mkostemp.c: File removed.
16267         * sysdeps/wordsize-64/mkstemp.c: File removed.
16268         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
16269         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
16270         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
16271         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
16272
16273         [BZ #14138]
16274         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
16275         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
16276         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
16277         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
16278
16279         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
16280         compat_symbol macros from <shlib-compat.h> rather than the underlying
16281         default_symbol_version and symbol_version macros, so that DEFAULT
16282         lines in shlib-versions are respected.
16283         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
16284
16285 2012-08-01  Florian Weimer  <fweimer@redhat.com>
16286
16287         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
16288         Declare with warn_unused_result.
16289         (setgid, setregid, setegid, setresgid): Likewise.
16290         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
16291         Likewise.
16292         * WUR-REPORT: Remove set*id functions.
16293
16294 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
16295
16296         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
16297
16298 2012-07-31  Roland McGrath  <roland@hack.frob.com>
16299
16300         [BZ #10191]
16301         * include/sys/socket.h (__libc_accept, __libc_accept4):
16302         Add attribute_hidden.
16303         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
16304
16305         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
16306         use of PTR_MANGLE.
16307         * inet/getnetgrent_r.c (setup): Likewise.
16308
16309         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
16310
16311 2012-07-31  David S. Miller  <davem@davemloft.net>
16312
16313         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16314
16315 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
16316
16317         [BZ #13629]
16318         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
16319         value between 1.0 and 2.0 and smaller part has absolute value less
16320         than 1.0.
16321         * math/s_clog10.c (__clog10): Likewise.
16322         * math/s_clog10f.c (__clog10f): Likewise.
16323         * math/s_clog10l.c (__clog10l): Likewise.
16324         * math/s_clogf.c (__clogf): Likewise.
16325         * math/s_clogl.c (__clogl): Likewise.
16326         * math/libm-test.inc (clog_test): Add more tests.
16327         (clog10_test): Likewise.
16328         * sysdeps/i386/fpu/libm-test-ulps: Update.
16329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16330
16331 2012-07-31  Florian Weimer  <fweimer@redhat.com>
16332
16333         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
16334         Exit with zero in case no suitable GID is found, and write a
16335         message to standard error.
16336
16337 2012-07-30  Roland McGrath  <roland@hack.frob.com>
16338
16339         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
16340         rather than to 1.
16341         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
16342         (MAXPATHLEN): Removed.
16343         (NOGROUP, NODEV): New macros.
16344         (setbit, clrbit, isset, isclr): New macros.
16345         (howmany, roundup, powerof2): New macros.
16346         (DEV_BSIZE): New macro.
16347
16348         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
16349         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
16350
16351         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
16352         definition on [!__NO_LONG_DOUBLE_MATH].
16353
16354         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
16355         PTR_MANGLE and PTR_DEMANGLE.
16356
16357         * socket/accept4.c (accept4): Rename to __libc_accept4.
16358         Define accept4 as a weak alias.
16359
16360         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
16361         on [_DIRENT_HAVE_D_TYPE].
16362         * io/ftw.c (ftw_dir): Likewise.
16363
16364         * io/xmknod.c (__xmknod): Don't check PATH for being null.
16365
16366         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
16367
16368         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
16369         Use the BSD numbers rather than the arbitrary ones we had.
16370         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
16371         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
16372         (SIGXCPU, SIGXFSZ): New macros.
16373         (_NSIG): Now 32.
16374
16375         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
16376         initializer on [_LIBC_REENTRANT].
16377
16378         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
16379         definitions inside [_POSIX_MAPPED_FILES].
16380
16381         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
16382
16383         * dirent/opendir.c: Include <fcntl.h>.
16384
16385         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
16386         (__libc_getspecific): Likewise.
16387         (__libc_key_create): Likewise.
16388
16389         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
16390         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
16391         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
16392         (tmpfile64): Define as alias.
16393         * sysdeps/wordsize-64/tmpfile.c: File removed.
16394         * sysdeps/wordsize-64/tmpfile64.c: File removed.
16395         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
16396         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
16397
16398         * stdio-common/vfscanf.c: Include <stdbool.h>.
16399         * nss/makedb.c: Likewise.
16400         * stdio-common/_i18n_number.h: Likewise.
16401         * argp/argp-help.c: Likewise.
16402         * posix/wordexp.c: Likewise.
16403         * sysdeps/posix/spawni.c: Likewise.
16404         * nss/nss_files/files-initgroups.c: Likewise.
16405         * stdio-common/reg-modifier.c: Include <stdlib.h>.
16406         * nss/nss_files/files-initgroups.c: Likewise.
16407         * nss/nss_db/db-netgrp.c: Likewise.
16408         * nss/nss_db/db-initgroups.c: Likewise.
16409         * io/fchmodat.c: Include <sys/stat.h>.
16410
16411         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
16412         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
16413
16414         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
16415         [HAVE_MMAP].
16416
16417         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
16418         Add multiple inclusion protection.
16419
16420 2012-07-27  David S. Miller  <davem@davemloft.net>
16421
16422         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16423
16424 2012-07-27  Gary Benson  <gbenson@redhat.com>
16425
16426         [BZ #14298]
16427         * elf/rtld.c: Include <stap-probe.h>.
16428         (dl_main): Added static probes "init_start" and "init_complete".
16429         * elf/dl-load.c: Include <stap-probe.h>.
16430         (lose): Take new parameter "nsid".
16431         Added static probe "map_failed".
16432         (_dl_map_object_from_fd): Pass namespace id to lose.
16433         Added static probe "map_start".
16434         (open_verify): Pass namespace id to lose.
16435         * elf/dl-open.c: Include <stap-probe.h>.
16436         (dl_open_worker) Added static probes "map_complete", "reloc_start"
16437         and "reloc_complete".
16438         * elf/dl-close.c: Include <stap-probe.h>.
16439         (_dl_close_worker): Added static probes "unmap_start" and
16440         "unmap_complete".
16441         * elf/rtld-debugger-interface.txt: New file documenting the above.
16442
16443 2012-07-26  Roland McGrath  <roland@hack.frob.com>
16444
16445         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
16446         rather than a string variable.
16447         * sunrpc/rpc_main.c (h_output): Likewise.
16448         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
16449
16450 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
16451
16452         * inet/check_native.c: New file.
16453
16454 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
16455
16456         [BZ #13629]
16457         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
16458         if larger part has absolute value 1.0.
16459         * math/s_clog10.c (__clog10): Likewise.
16460         * math/s_clog10f.c (__clog10f): Likewise.
16461         * math/s_clog10l.c (__clog10l): Likewise.
16462         * math/s_clogf.c (__clogf): Likewise.
16463         * math/s_clogl.c (__clogl): Likewise.
16464         * math/libm-test.inc (clog_test): Add more tests.
16465         (clog10_test): Likewise.
16466         * sysdeps/i386/fpu/libm-test-ulps: Update.
16467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16468
16469         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
16470         (pltexit): Likewise.
16471         (La_regs): Likewise.
16472         (La_retval): Likewise.
16473         (int_retval): Likewise.
16474         Update #error for removed macros to refer only to definitions in
16475         tst-audit.h.
16476         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
16477         macro.
16478         (pltexit): Likewise.
16479         (La_regs): Likewise.
16480         (La_retval): Likewise.
16481         (int_retval): Likewise.
16482         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
16483         macro.
16484         (pltexit): Likewise.
16485         (La_regs): Likewise.
16486         (La_retval): Likewise.
16487         (int_retval): Likewise.
16488         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
16489         macro.
16490         (pltexit): Likewise.
16491         (La_regs): Likewise.
16492         (La_retval): Likewise.
16493         (int_retval): Likewise.
16494         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
16495         macro.
16496         (pltexit): Likewise.
16497         (La_regs): Likewise.
16498         (La_retval): Likewise.
16499         (int_retval): Likewise.
16500         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
16501         macro.
16502         (pltexit): Likewise.
16503         (La_regs): Likewise.
16504         (La_retval): Likewise.
16505         (int_retval): Likewise.
16506         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
16507         macro.
16508         (pltexit): Likewise.
16509         (La_regs): Likewise.
16510         (La_retval): Likewise.
16511         (int_retval): Likewise.
16512         * sysdeps/generic/tst-audit.h: Update comment to refer only to
16513         macro definitions in tst-audit.h.
16514         * sysdeps/i386/tst-audit.h: New file.
16515         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
16516         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
16517         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
16518         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
16519         * sysdeps/sh/tst-audit.h: Likewise.
16520         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
16521         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
16522         * sysdeps/x86_64/tst-audit.h: Likewise.
16523
16524 2012-07-26  Andreas Jaeger  <aj@suse.de>
16525
16526         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
16527         ptrace.
16528
16529         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
16530         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
16531         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
16532         PTRACE_O_MASK.
16533         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
16534         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
16535         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
16536
16537         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
16538         value.
16539
16540         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
16541         _sigsys.
16542         (si_call_addr, si_syscall, si_arch): Define new macro.
16543         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
16544         _sigsys.
16545         (si_call_addr, si_syscall, si_arch): Define new marcro.
16546         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
16547         _sigsys.
16548         (si_call_addr, si_syscall, si_arch): Define new macro.
16549         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
16550         _sigsys.
16551         (si_call_addr, si_syscall, si_arch): Define new macro.
16552
16553 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
16554
16555         [BZ #13717]
16556         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16557         Change to 2.4.21 where previously 2.4.1.
16558         * sysdeps/unix/sysv/linux/configure: Regenerated.
16559         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
16560         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
16561         Linux kernel version.
16562         (__ASSUME_STD_AUXV): Remove.
16563         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
16564         kernel version.
16565         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
16566         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
16567         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
16568         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
16569         (__ASSUME_NETLINK_SUPPORT): Likewise.
16570         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
16571         (__no_netlink_support): Remove conditional definition.
16572         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
16573         Remove.
16574         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
16575         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
16576         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
16577         (if_nameindex_ioctl): Remove.
16578         (if_nameindex_netlink): Do not handle __no_netlink_support.
16579         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
16580         code.
16581         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
16582         Remove conditional code.
16583         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
16584         code.
16585         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
16586         unconditional.
16587         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
16588         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
16589         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
16590         Remove.
16591         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
16592         [!__ASSUME_STD_AUXV]: Remove conditional code.
16593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
16594         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
16595         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
16596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
16597         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
16598         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
16599         code.
16600         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
16601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
16602         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
16603         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
16604         conditional code.
16605         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
16606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
16607         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
16608         code.
16609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
16610         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
16611         conditional code.
16612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
16613         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16614         code unconditional.
16615         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16616         conditional code.
16617         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16618         unconditional.
16619         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16620         conditional code.
16621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16622         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16623         unconditional.
16624         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16625         conditional code.
16626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
16627         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16628         code unconditional.
16629         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16630         conditional code.
16631         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16632         unconditional.
16633         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16634         conditional code.
16635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
16636         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16637         code unconditional.
16638         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16639         conditional code.
16640         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16641         unconditional.
16642         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16643         conditional code.
16644
16645 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
16646
16647         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
16648         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
16649         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
16650         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
16651         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
16652         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
16653         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16654         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16655         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
16656         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
16657         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
16658         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
16659         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
16660         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
16661         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
16662         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
16663         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
16664         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
16665         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
16666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
16667         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
16668         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
16669         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16670
16671 2012-07-25  Florian Weimer  <fweimer@redhat.com>
16672
16673         * Versions.def: Add GLIBC_2.17.
16674         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
16675         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
16676         Introduce __libc_secure_getenv.
16677         * stdlib/Versions (2.17): Add secure_getenv
16678         (GLIBC_PRIVATE): Add __libc_secure_getenv.
16679         * stdlib/secure-getenv.c: Rename __secure_getenv to
16680         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
16681         symbol __secure_getenv for GLIBC_2.0.
16682         * stdlib/tst-secure-getenv.c: New.
16683         * stdlib/Makefile (tests): Add testcase.
16684         * manual/startup.texi (Environment Access): Document
16685         secure_getenv.
16686         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
16687         __libc_secure_getenv.
16688         * inet/ruserpass.c (ruserpass): Likewise.
16689         * malloc/mtrace.c (mtrace): Likewise.
16690         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
16691         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
16692         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
16693         * sysdeps/posix/tempname.c: Likewise.  Evaluate
16694         HAVE_SECURE_GETENV.
16695         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
16696         __secure_getenv to __libc_secure_getenv.
16697         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
16698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16699         Likewise.
16700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16701         Likewise.
16702         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
16703         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
16704         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
16705         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
16706         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
16707         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
16708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
16709
16710 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
16711
16712         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
16713         (struct La_i86_retval): Likewise.
16714         (struct La_x86_64_regs): Likewise.
16715         (struct La_x86_64_retval): Likewise.
16716         (struct La_x32_regs): Likewise.
16717         (struct La_x32_retval): Likewise.
16718         (struct La_ppc32_regs): Likewise.
16719         (struct La_ppc32_retval): Likewise.
16720         (struct La_ppc64_regs): Likewise.
16721         (struct La_ppc64_retval): Likewise.
16722         (struct La_sh_regs): Likewise.
16723         (struct La_sh_retval): Likewise.
16724         (struct La_s390_32_regs): Likewise.
16725         (struct La_s390_32_retval): Likewise.
16726         (struct La_s390_64_regs): Likewise.
16727         (struct La_s390_64_retval): Likewise.
16728         (struct La_sparc32_regs): Likewise.
16729         (struct La_sparc32_retval): Likewise.
16730         (struct La_sparc64_regs): Likewise.
16731         (struct La_sparc64_retval): Likewise.
16732         (struct audit_ifaces): Remove architecture-specific pltenter and
16733         pltexit members.
16734         * sysdeps/i386/ldsodefs.h: New file.
16735         * sysdeps/powerpc/ldsodefs.h: Likewise.
16736         * sysdeps/s390/ldsodefs.h: Likewise.
16737         * sysdeps/sh/ldsodefs.h: Likewise.
16738         * sysdeps/sparc/ldsodefs.h: Likewise.
16739         * sysdeps/x86_64/ldsodefs.h: Likewise.
16740
16741 2012-07-25  Marek Polacek  <polacek@redhat.com>
16742
16743         [BZ #6808]
16744         * math/libm-test.inc (yn_test): Add another test.
16745         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
16746         to ERANGE when the result is +-Inf.
16747         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
16748         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
16749         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
16750         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
16751
16752 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
16753
16754         * conform/data/time.h-data (NULL): Use macro-constant.  Require
16755         equal to 0.
16756         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
16757         clock_t.
16758         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
16759
16760 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
16761
16762         * configure.in <sysdeps resolving>: Correct printing
16763         Implies_before.
16764         * configure: Regenerate.
16765
16766 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
16767
16768         * math/w_ilogb.c: Include <limits.h>.
16769         * math/w_ilogbl.c: Likewise.
16770
16771 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
16772
16773         * manual/lang.texi (__va_copy): Document primarily as ISO C99
16774         va_copy.  Document allowing for unavailable va_copy only as
16775         pre-C99 compatibility.
16776         * manual/string.texi (Copying and Concatenation): Use va_copy
16777         instead of __va_copy in concat example.
16778
16779 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
16780
16781         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
16782         (__sendto): Use create_address_port.  Initialize APORT and deallocate
16783         it if not null.
16784
16785         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
16786         with O_NOLINK passed to __file_name_lookup.
16787
16788         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
16789         with O_NOLINK passed to __file_name_lookup.
16790
16791         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
16792         negative N or less than NGIDS.
16793
16794         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
16795         type to string_t.  Set ERANGE as errno and return it if NAME is not big
16796         enough.  Use memcpy instead of strncpy.
16797
16798 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
16799
16800         * elf/Makefile (check-data): Remove.
16801         (localplt.data): New vpath directive.
16802         ($(objpfx)check-localplt.out): Use localplt.data from vpath
16803         instead of $(check-data).
16804         * scripts/data/localplt-generic.data: Move to ...
16805         * sysdeps/generic/localplt.data: ... here.
16806         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
16807         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
16808         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
16809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
16810         ... here.
16811         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
16812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
16813         ... here.
16814         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
16815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
16816         ... here.
16817         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
16818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
16819         ... here.
16820         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
16821         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
16822         ... here.
16823         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
16824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
16825         ... here.
16826
16827 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16828
16829         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
16830         PPC32 and PPC64 files.
16831         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
16832         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
16833
16834 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16835
16836         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
16837         __makecontext_ret to ...
16838         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
16839         ... here and call exit if uc_link is NULL.  New file.
16840         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
16841         __makecontext_ret.S.
16842         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
16843         __makecontext_ret to ...
16844         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
16845         ... here and call exit if uc_link is NULL.  New file.
16846         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
16847         __makecontext_ret.S.
16848
16849 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16850
16851         * elf/elf.h (R_390_IRELATIVE): New definition.
16852         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
16853         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
16854         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
16855         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16856         (elf_machine_lazy_rel): Likewise.
16857         * sysdeps/s390/dl-irel.h: New file.
16858         * sysdeps/s390/s390-64/memcpy.S: New asm code.
16859         * sysdeps/s390/s390-64/memset.S: New asm code.
16860         * sysdeps/s390/s390-64/memcmp.S: New asm code.
16861         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
16862         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
16863         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
16864         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
16865         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
16866         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
16867         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
16868         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
16869         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
16870         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
16871         * sysdeps/s390/s390-32/memcpy.S: New asm code.
16872         * sysdeps/s390/s390-32/memset.S: New asm code.
16873         * sysdeps/s390/s390-32/memcmp.S: New asm code.
16874
16875 2012-07-17  Marek Polacek  <polacek@redhat.com>
16876
16877         [BZ #14349]
16878         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
16879         * sysdeps/s390/s390-64/configure.in: Likewise.
16880         * sysdeps/sparc/configure.in: Likewise.
16881         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
16882         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
16883         * sysdeps/i386/configure.in: Likewise.
16884         * sysdeps/x86_64/configure.in: Likewise.
16885         * sysdeps/sh/configure.in: Likewise.
16886         * sysdeps/s390/s390-32/configure: Regenerated.
16887         * sysdeps/s390/s390-64/configure: Likewise.
16888         * sysdeps/x86_64/configure: Likewise.
16889         * sysdeps/sh/configure: Likewise.
16890         * sysdeps/powerpc/powerpc64/configure: Likewise.
16891         * sysdeps/powerpc/powerpc32/configure: Likewise.
16892         * sysdeps/sparc/configure: Likwise.
16893         * sysdeps/i386/configure: Likewise.
16894
16895         * elf/dl-open.c: Comment fixes.
16896
16897 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
16898
16899         * Makefile [CXX] (check-data): Remove.
16900         [CXX] (c++-types.data): New vpath directive.
16901         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
16902         vpath.  Do not allow for C++ type data being missing.
16903         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
16904         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
16905         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
16906         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
16907         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
16908         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
16909         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
16910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
16911         ... here.
16912         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
16913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
16914         ... here.
16915         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
16916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
16917         ... here.
16918         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
16919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
16920         ... here.
16921         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
16922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
16923         ... here.
16924         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
16925         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
16926         ... here.
16927         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
16928         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
16929         ... here.
16930         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
16931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
16932
16933         * elf/tls-macros.h (TLS_LE): Move architecture-specific
16934         definitions to architecture-specific files.
16935         (TLS_IE): Likewise.
16936         (TLS_LD): Likewise.
16937         (TLS_GD): Likewise.
16938         * sysdeps/i386/tls-macros.h: New file.
16939         * sysdeps/powerpc/tls-macros.h: Likewise.
16940         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
16941         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
16942         * sysdeps/sh/tls-macros.h: Likewise.
16943         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
16944         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
16945         * sysdeps/x86_64/tls-macros.h: Likewise.
16946
16947 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
16948
16949         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
16950         zero value for regular exit case.
16951
16952         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
16953         (__start_context): Preserve zero value for regular exit case.
16954
16955 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
16956             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16957
16958         * manual/setjmp.texi (setcontext): Clarify normal process
16959         termination when uc_link is the null pointer.
16960         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
16961         exit call.
16962
16963 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
16964
16965         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
16966         preprocessor.  Test for each exception mask separately.
16967
16968 2012-07-16  Andreas Jaeger  <aj@suse.de>
16969
16970         * po/ru.po: Update from translation team.
16971
16972 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
16973
16974         * conform/data/string.h-data (NULL): Use macro-constant.  Require
16975         equal to 0.
16976         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
16977         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
16978         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
16979         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
16980         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16981
16982 2012-07-13  Andreas Jaeger  <aj@suse.de>
16983
16984         * po/fr.po: Update from translation team.
16985
16986 2012-07-12  Marek Polacek  <polacek@redhat.com>
16987
16988         [BZ #14173]
16989         * math/libm-test.inc (yn_test): Add test for BZ #14173.
16990         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
16991         loop condition.
16992
16993 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
16994
16995         [BZ #13717]
16996         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16997         Change to 2.4.1 where previously 2.4.0.
16998         * sysdeps/unix/sysv/linux/configure: Regenerated.
16999         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
17000         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
17001         version.
17002         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
17003         (__ASSUME_AT_CLKTCK): Remove.
17004         (__ASSUME_AT_PAGESIZE): Likewise.
17005         (__ASSUME_AT_XID): Likewise.
17006         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
17007         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
17008         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
17009         unconditionally.
17010         (HAVE_AUX_PAGESIZE): Likewise.
17011         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
17012         [__ASSUME_AT_CLKTCK]: Make code unconditional.
17013         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
17014
17015 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
17016
17017         [BZ #14307]
17018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
17019         the temporary buffer used to invoke __gethostbyname2_r,
17020         __gethostbyaddr_r and gethostbyname4_r to make room for struct
17021         host_data / struct gaih_addrtuple.
17022         * resolv/nss_dns/dns-host.c (global scope): Move definition of
17023         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
17024         header file nss/nsswitch.h.
17025         * nss/nsswitch.h (global scope): Add definition of implementation
17026         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
17027         resolv/nss_dns/dns-host.c).
17028
17029 2012-07-11  Andreas Jaeger  <aj@suse.de>
17030
17031         * po/fr.po: Update from translation team.
17032
17033         * po/sv.po: Update from translation team
17034         * po/fr.po: Another update from translation team.
17035
17036 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17037
17038         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
17039         for subnormals or multiply small sinh result by itself.
17040         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17042
17043 2012-07-11  David S. Miller  <davem@davemloft.net>
17044
17045         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17046
17047 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
17048
17049         [BZ #14347]
17050         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
17051         (INTERNAL_MARK): Shift it here.
17052
17053 2012-07-10  Marek Polacek  <polacek@redhat.com>
17054
17055         [BZ #14151]
17056         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
17057         libc_cv_asm_global_directive with .globl.
17058         * configure: Regenerated.
17059         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
17060         with .globl.
17061         * sysdeps/i386/configure: Regenerated.
17062         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
17063         with .globl.
17064         * sysdeps/x86_64/configure: Regenerated.
17065         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
17066         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
17067         * elf/tst-unique2mod2.c: Likewise.
17068         * elf/tst-unique2mod1.c: Likewise.
17069         * elf/tst-unique1mod2.c: Likewise.
17070         * elf/tst-unique1mod1.c: Likewise.
17071         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17072         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17073         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17074         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17075         * sysdeps/mach/sysdep.h: Likewise.
17076         * sysdeps/i386/sysdep.h: Likewise.
17077         * sysdeps/i386/i386-mcount.S: Likewise.
17078         * sysdeps/x86_64/_mcount.S: Likewise.
17079         * sysdeps/x86_64/sysdep.h: Likewise.
17080         * sysdeps/sh/_mcount.S: Likewise.
17081         * sysdeps/sh/sysdep.h: Likewise.
17082         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
17083         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
17084         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
17085         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
17086         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
17087         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
17088         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
17089         * locale/localeinfo.h: Likewise.
17090         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
17091         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
17092
17093 2012-07-09  Roland McGrath  <roland@hack.frob.com>
17094
17095         [BZ #14336]
17096         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
17097         system".
17098         * manual/message.texi (The Uniforum approach): Likewise.
17099         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
17100         (glibc iconv Implementation): Likewise.
17101
17102 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
17103
17104         [BZ #14337]
17105         * math/s_clog.c (__clog): Avoid scaling a value down where that
17106         could result in underflow.
17107         * math/s_clog10.c (__clog10): Likewise.
17108         * math/s_clog10f.c (__clog10f): Likewise.
17109         * math/s_clog10l.c (__clog10l): Likewise.
17110         * math/s_clogf.c (__clogf): Likewise.
17111         * math/s_clogl.c (__clogl): Likewise.
17112         * math/libm-test.inc (clog_test): Add more tests.
17113         (clog10_test): Likewise.
17114         * sysdeps/i386/fpu/libm-test-ulps: Update.
17115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17116
17117 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
17118
17119         [BZ #14283]
17120         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
17121         by 7 not 8 to examine high bit of fractional part.
17122
17123         [BZ #14042]
17124         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
17125         for call to __mcount_internal.
17126         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
17127         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
17128         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
17129
17130 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
17131
17132         [BZ #14154]
17133         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
17134         approximation for values within 0x1p-13f of an odd multiple of
17135         pi/4.
17136         * math/libm-test.inc (tan_test): Do not allow spurious underflow
17137         exception.  Add more tests.
17138         * sysdeps/i386/fpu/libm-test-ulps: Update.
17139
17140         [BZ #6778]
17141         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
17142         inputs and return -1 for them.  Do not check for +Inf in case not
17143         reachable for +Inf.
17144         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
17145         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
17146         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17147         and return -1 for them.  Do not check for +Inf in case not
17148         reachable for +Inf.
17149         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
17150         define.
17151         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17152         and return -1 for them.  Do not check for +Inf in case not
17153         reachable for +Inf.
17154         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
17155         spurious underflow.
17156         * sysdeps/i386/fpu/libm-test-ulps: Update.
17157         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17158
17159 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
17160
17161         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
17162
17163 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
17164
17165         [BZ #14157]
17166         [BZ #14331]
17167         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
17168         could result in spurious underflow.  Scale down values above
17169         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
17170         * math/s_csqrtf.c (__csqrtf): Likewise.
17171         * math/s_csqrtl.c (__csqrtl): Likewise.
17172         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
17173         spurious underflow.
17174         * sysdeps/i386/fpu/libm-test-ulps: Update.
17175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17176
17177 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
17178
17179         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
17180         xopen-msg.sed.
17181         * catgets/xopen-msg.awk: New file.
17182         * catgets/xopen-msg.sed: Removed.
17183
17184         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
17185         po2text.sed.
17186         * intl/po2test.awk: New file.
17187         * intl/po2test.sed: Removed.
17188
17189 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
17190
17191         [BZ #14328]
17192         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
17193         or multiply small sinh result by itself.
17194         * math/s_ctanf.c (__ctanf): Likewise.
17195         * math/s_ctanh.c (__ctanh): Likewise.
17196         * math/s_ctanhf.c (__ctanhf): Likewise.
17197         * math/s_ctanhl.c (__ctanhl): Likewise.
17198         * math/s_ctanl.c (__ctanl): Likewise.
17199         * math/libm-test.inc (ctan_test_tonearest): New function.
17200         (ctan_test_towardzero): Likewise.
17201         (ctan_test_downward): Likewise.
17202         (ctan_test_upward): Likewise.
17203         (ctanh_test_tonearest): Likewise.
17204         (ctanh_test_towardzero): Likewise.
17205         (ctanh_test_downward): Likewise.
17206         (ctanh_test_upward): Likewise.
17207         (main): Call these new functions.
17208         * sysdeps/i386/fpu/libm-test-ulps: Update.
17209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17210
17211 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
17212
17213         * .gitignore: Delete /ports entry.
17214
17215 2012-07-03  Andreas Jaeger  <aj@suse.de>
17216
17217         * po/bg.po: Update from translation team.
17218         * po/cs.po: Likewise.
17219         * po/de.po: Likewise.
17220         * po/hr.po: Likewise.
17221         * po/nl.pl: Likewise.
17222         * po/pl.po: Likewise.
17223         * po/vi.po: Likewise.
17224
17225 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
17226
17227         * Makeconfig [!+link] (+link-before-libc): New variable.
17228         [!+link] (+link-after-libc): Likewise.
17229         [!+link] (+link-tests): Likewise.
17230         [!+link] (+link): Define in terms of $(+link-before-libc) and
17231         $(+link-after-libc).
17232         [!+link-static] (+link-static-before-libc): New variable.
17233         [!+link-static] (+link-static-after-libc): Likewise.
17234         [!+link-static] (+link-static-tests): Likewise.
17235         [!+link-static] (+link-static): Define in terms of
17236         $(+link-static-before-libc) and $(+link-static-after-libc).
17237         [build-shared] (link-libc-before-gnulib): New variable.
17238         [build-shared] (link-libc-tests): Likewise.
17239         [build-shared] (link-libc): Define in terms of
17240         $(link-libc-before-gnulib).
17241         [!build-shared] (link-libc-tests): New variable.
17242         (link-libc-static-tests): New variable.
17243         [!gnulib] (gnulib-arch): New variable.
17244         [!gnulib] (gnulib-tests): Likewise.
17245         [!gnulib] (static-gnulib-arch): Likewise.
17246         [!gnulib] (static-gnulib-tests): Likewise.
17247         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
17248         Define with "=" instead of ":=".
17249         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
17250         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
17251         * Rules (binaries-all-notests): New variable.
17252         (binaries-all-tests): Likewise.
17253         (binaries-static-notests): Likewise.
17254         (binaries-static-tests): Likewise.
17255         (binaries-all): Define using $(binaries-all-notests) and
17256         $(binaries-all-tests).
17257         (binaries-static): Define using $(binaries-static-notests) and
17258         $(binaries-static-tests).
17259         (binaries-shared-tests): New variable.
17260         (binaries-shared-notests): Likewise.
17261         (binaries-shared): Remove variable.
17262         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
17263         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
17264         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
17265         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
17266         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
17267         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
17268         * elf/Makefile (sln-modules): New variable.
17269         (extra-objs): Add $(sln-modules:=.o).
17270         (ldconfig-modules): Add static-stubs.
17271         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
17272         * elf/static-stubs.c: New file.
17273
17274         [BZ #14283]
17275         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
17276         by 7 not 8 to examine high bit of fractional part.  Use volatile
17277         variables when splitting into final array of floats if
17278         __FLT_EVAL_METHOD__ != 0.
17279         * math/libm-test.inc (cos_test): Add another test.
17280         (sin_test): Likewise.
17281         * sysdeps/i386/fpu/libm-test-ulps: Update.
17282
17283         [BZ #14273]
17284         * math/libm-test.inc (cosh_test): Add more tests.
17285
17286         * version.h (RELEASE): Set to "development".
17287         (VERSION): Set to "2.16.90".
17288
17289 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
17290
17291         * NEWS: Update copyright. Remove last-updated date.
17292         Mention math library bug fixes and timezone data changes.
17293         * README: Mention GNU/Hurd, x32, and HPPA support status.
17294
17295 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
17296
17297         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
17298
17299 2012-06-27  Andreas Jaeger  <aj@suse.de>
17300
17301         * manual/contrib.texi (Contributors): Add Samuel Thibault.
17302
17303 2012-06-25  Andreas Jaeger  <aj@suse.de>
17304
17305         * sysdeps/s390/fpu/libm-test-ulps: Update.
17306
17307 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
17308             Thomas Schwinge  <thomas@codesourcery.com>
17309
17310         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
17311         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
17312         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
17313         fanotify_mark.
17314
17315 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
17316
17317         * sysdeps/mach/start.c: Remove file.
17318         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
17319         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
17320         * sysdeps/sh/init-first.c: Likewise.
17321
17322         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
17323         registers for frame unwinding purposes, add CFI directives.
17324         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17325         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
17326         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
17327         Likewise.
17328
17329         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
17330         __fortify_fail returning.
17331         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17332
17333         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
17334         sysdeps/sh/____longjmp_chk.S.
17335         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
17336         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
17337         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
17338         (gen-as-const-headers): Append sigaltstack-offsets.sym.
17339
17340         * sysdeps/sh/abort-instr.h: New file.
17341         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
17342         process in case exit returns.
17343
17344         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
17345         initialize the GOT register before use.
17346
17347         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
17348         calculation of ARGC > 4.
17349
17350         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
17351         meaningful names to some local labels.
17352
17353 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17354             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17355
17356         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
17357         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
17358         (__arch_compare_and_exchange_val_16_acq): Likewise.
17359         (__arch_compare_and_exchange_val_32_acq): Likewise.
17360         (atomic_exchange_and_add): Fix gUSA sequence.
17361         (atomic_add): Likewise.
17362         (atomic_add_negative): Likewise.
17363         (atomic_add_zero): Likewise.
17364         (atomic_bit_test_set): Likewise.
17365
17366 2012-06-22  Andreas Schwab  <schwab@redhat.com>
17367
17368         [BZ #13579]
17369         * include/link.h (struct link_map): Add l_free_initfini.
17370         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
17371         l_initfini.
17372         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
17373         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
17374         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
17375         set.
17376
17377 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
17378
17379         * configure.in: Use AC_LANG_SOURCE.
17380         * configure: Regenerate.
17381
17382 2012-06-22  Roland McGrath  <roland@hack.frob.com>
17383
17384         * configure.in (libc_cv_localstatedir): New substituted variable.
17385         * configure: Regenerated.
17386         * config.make.in (localstatedir): New variable, substituted from
17387         libc_cv_localstatedir.
17388         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
17389         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
17390         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
17391         * sysdeps/gnu/configure: Regenerated.
17392
17393 2012-06-21  Jeff Law  <law@redhat.com>
17394
17395         [BZ #14277]
17396         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
17397         free.  Simplify list management for _LIBC case.
17398
17399 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
17400
17401         [BZ #14273]
17402         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
17403         Clear sign bit of 64-bit integer value before comparing against
17404         overflow value.
17405
17406         * sysdeps/mach/configure: Regenerated.
17407
17408 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
17409
17410         [BZ #14278]
17411         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
17412
17413 2012-06-21  Jeff Law  <law@redhat.com>
17414
17415         [BZ #13882]
17416         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
17417         uint16_t for elements in the "seen" array to avoid char overflows.
17418         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17419         * elf/dl-open.c (dl_open_worker): Likewise.
17420
17421 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
17422
17423         * scripts/list-sources.sh: Scan PORTS for translations.
17424         * po/libc.pot: Regenerated.
17425
17426 2012-06-21  Andreas Jaeger  <aj@suse.de>
17427
17428         [BZ #12194]
17429         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
17430         warning.
17431         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
17432         * bits/byteswap-16.h (__bswap_16): Likewise.
17433         * bits/byteswap.h (__bswap_constant_16): Likewise.
17434
17435 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17436
17437         [BZ #14117]
17438         * sysdeps/i386/fpu_control.h: Removed.
17439         * sysdeps/x86_64/fpu_control.h: Moved to ...
17440         * sysdeps/x86/fpu_control.h: Here.
17441
17442         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
17443         (_FPU_SETCW): Likewise.
17444
17445 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
17446
17447         [BZ #14117]
17448         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
17449         * sysdeps/x86/fpu/bits/mathinline.h: This.
17450         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
17451
17452         [BZ #14050]
17453         [BZ #14117]
17454         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
17455         functions if __x86_64__ is defined.
17456
17457 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
17458
17459         * string/endian.h: Add !__ASSEMBLER__ condition for including
17460         conversion interfaces.
17461
17462 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
17463
17464         [BZ #14241]
17465         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
17466         of ABS(x) in calculating zero to negative powers other than odd
17467         integers.
17468         * math/libm-test.inc (pow_test): Add more tests.
17469
17470 2012-06-15  Andreas Jaeger  <aj@suse.de>
17471
17472         * manual/contrib.texi (Contributors): Update entry of Liubov
17473         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
17474         Machado Filho.
17475
17476 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
17477
17478         * string/string.h: Add __wur to GNU version of strerror_r.
17479
17480 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
17481
17482         [BZ #14229]
17483         * string/Makefile (tests): Add tst-strtok_r.
17484         * string/tst-strtok_r.c: New file.
17485         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
17486         RAX_LP/RDX_LP on SAVE_PTR.
17487
17488 2012-06-14  Roland McGrath  <roland@hack.frob.com>
17489
17490         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
17491
17492 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
17493
17494         * libm_test.inc (csqrt_test): Allow more spurious underflow
17495         exceptions.
17496         (j0_test): Likewise.
17497         (j1_test): Likewise.
17498         (y0_test): Likewise.
17499         (y1_test): Likewise.
17500
17501 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
17502
17503         * po/Makefile (libc.pot): Use UTF-8 charset.
17504
17505 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
17506
17507         [BZ #14210]
17508         Suppress sign-conversion warning from FD_SET.
17509         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
17510         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
17511         not unsigned long int.
17512         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
17513
17514 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
17515
17516         [BZ #14050]
17517         [BZ #14117]
17518         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
17519         __extern_always_inline instead of __extern_inline.
17520         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
17521         (__signbit): Likewise.
17522         (__signbitl): Support C++ namespace.
17523         (lrintf): New inline function.
17524         (lrint): Likewise.
17525         (llrintf): Likewise.
17526         (llrint): Likewise.
17527         (fmaxf): Likewise.
17528         (fmax): Likewise.
17529         (fminf): Likewise.
17530         (fmin): Likewise.
17531         (rint): Likewise.
17532         (rintf): Likewise.
17533         (ceil): Likewise.
17534         (ceilf): Likewise.
17535         (floor): Likewise.
17536         (floorf): Likewise.
17537         (nearbyint): Likewise.
17538         (nearbyintf): Likewise.
17539
17540 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
17541
17542         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
17543         non-default versions.
17544
17545 2012-06-11  Roland McGrath  <roland@hack.frob.com>
17546
17547         [BZ #14218]
17548         * manual/argp.texi (Argp): Reword argp_parse description slightly.
17549
17550 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
17551
17552         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
17553         (FE_UPWARD, FE_DOWNWARD): Don't define.
17554         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
17555         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
17556
17557         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
17558         reading it.
17559         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
17560         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17561
17562 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17563
17564         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17565         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
17566         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
17567         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
17568
17569 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
17570
17571         [BZ #14117]
17572         * sysdeps/i386/fpu/bits/fenv.h: Removed.
17573         * sysdeps/i386/fpu/Implies: New file.
17574         * sysdeps/x86_64/fpu/Implies: Likewise.
17575         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
17576         * sysdeps/x86/fpu/bits/fenv.h: This.
17577
17578         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
17579         __SSE_MATH__.
17580
17581 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
17582
17583         [BZ #14134]
17584         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
17585         character 0xffff that matches the last element of the
17586         conversion table.
17587
17588 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17589
17590         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
17591         fmodl commit.
17592
17593 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17594
17595         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
17596         values higher than 25.6283.
17597
17598 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17599
17600         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
17601         subnormal exponent extraction and add some __builtin_expect.
17602         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
17603         Fix for subnormal mantissa calculation.
17604
17605 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
17606
17607         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
17608         cpu2 is -1 and errno is not ENOSYS.
17609
17610 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
17611
17612         [BZ #14117]
17613         * sysdeps/i386/i486/bits/string.h: Renamed to ...
17614         * sysdeps/x86/bits/string.h: This.
17615         * sysdeps/x86_64/bits/string.h: Removed.
17616
17617         * sysdeps/i386/i486/bits/string.h: Define inline functions only
17618         if not compiling for x86-64, but compiling for >= i486.
17619
17620         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
17621         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
17622
17623         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
17624         New macro from Linux kernel 3.4.0.
17625         (FP_XSTATE_MAGIC2): Likewise.
17626         (FP_XSTATE_MAGIC2_SIZE): Likewise.
17627         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
17628         (struct _fpx_sw_bytes): New struct.
17629         (struct _xsave_hdr): Likewise.
17630         (struct _ymmh_state): Likewise.
17631         (struct _xstate): Likewise.
17632
17633         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
17634         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
17635         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
17636         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
17637         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
17638         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
17639
17640         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
17641         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
17642         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
17643         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
17644         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
17645         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
17646
17647 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17648
17649         [BZ #13743]
17650         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
17651         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
17652         (sysdep_headers): Include sys/platform/ppc.h.
17653         * sysdeps/powerpc/test-gettimebase.c: Test for
17654         __ppc_get_timebase() to catch future ISA opcode/insn changes.
17655         * manual/Makefile (appendices): Include platform.texi.
17656         * manual/contrib.texi (Contributors): Update @node pointers.
17657         * manual/maint.texi (Maintenance): Likewise.
17658         (Platform): New node.
17659         * manual/platform.texi: New file.  Document the new features.
17660
17661 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
17662             Jakub Jelinek  <jakub@redhat.com>
17663
17664         [BZ #14188]
17665         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
17666         where __builtin_expect is unavailable.
17667
17668 2012-06-03  David S. Miller  <davem@davemloft.net>
17669
17670         * stdlib/longlong.h: Updated from GCC.
17671
17672 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
17673
17674         [BZ #14042]
17675         * sysdeps/powerpc/powerpc32/mcount.c: New file.
17676         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
17677         __mcount_internal.
17678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
17679         (GLIBC_2.16): Likewise.
17680
17681 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17682
17683         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
17684
17685 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
17686
17687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
17688         (default-abi): New variable.
17689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
17690         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
17691         variable.
17692         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
17693         Likewise.
17694         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
17695         Likewise.
17696         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
17697         Likewise.
17698
17699         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
17700         definition.  Document in comment.
17701
17702 2012-06-01  David S. Miller  <davem@davemloft.net>
17703
17704         * stdlib/longlong.h: Updated from GCC.
17705
17706 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17707
17708         [BZ #14117]
17709         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
17710         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
17711         sys/debugreg.h sys/io.h here.
17712         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
17713         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
17714         sys/io.h.
17715         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
17716         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
17717         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
17718         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
17719         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
17720         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
17721
17722         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
17723         Define only if __x86_64__ is defined.
17724
17725 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
17726
17727         [BZ #14048]
17728         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
17729         Use int64_t for variable i.
17730         * math/libm-test.inc (fmod_test): Add more tests.
17731
17732         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
17733         z computation is not scheduled after fetestexcept.
17734         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
17735         Use math_force_eval instead of asm to ensure calculation scheduled
17736         before exception test.
17737         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
17738         Ensure a1 + u.d computation is not scheduled after fetestexcept.
17739
17740 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
17741
17742         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
17743         computation is not scheduled after fetestexcept.
17744
17745 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17746
17747         [BZ #14117]
17748         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
17749         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
17750
17751 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17752
17753         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
17754         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
17755
17756 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
17757
17758         [BZ #14117]
17759         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
17760         <bits/wordsize.h>.
17761         (__WCHAR_MIN): Support __WORDSIZE == 64.
17762         (__WCHAR_MAX): Likewise.
17763
17764         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
17765         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
17766
17767         [BZ #14183]
17768         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
17769         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
17770
17771         [BZ #14117]
17772         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
17773         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
17774
17775         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
17776         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
17777
17778         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
17779         Defined to 1 if __x86_64__ isn't defined.
17780         (_STAT_VER_LINUX_OLD): New.
17781         (st_atime): Remove duplicate.
17782         (st_mtime): Likewise.
17783         (st_ctime): Likewise.
17784
17785 2012-05-31  David S. Miller  <davem@davemloft.net>
17786
17787         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
17788         entries.
17789
17790 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
17791
17792         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
17793         gen-libm-test.pl.
17794
17795         [BZ #14132]
17796         * elf/dl-reloc.c: Include <_itoa.h>.
17797         (_dl_reloc_bad_type): Remove use of INTUSE.
17798         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
17799         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
17800         * stdio-common/psiginfo.c (psiginfo): Likewise.
17801         * stdio-common/psignal.c (psignal): Likewise.
17802         * string/strsignal.c (strsignal): Likewise.
17803         * include/signal.h (_sys_siglist): Declare hidden proto.
17804         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
17805         INTVARDEF with libc_hidden_data_def.
17806         * stdio-common/itoa-udigits.c: Likewise.
17807         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
17808         (_itoa_lower_digits_internal): Remove declaration.
17809         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
17810         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
17811         (_sys_sigabbrev_internal): Remove aliases.
17812         (_sys_siglist): Define hidden alias.
17813
17814 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
17815
17816         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17817         bits/sysctl.h.
17818
17819 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
17820
17821         [BZ #14117]
17822         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
17823         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
17824
17825         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
17826         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
17827         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
17828         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
17829         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
17830         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
17831
17832         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
17833         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
17834         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
17835
17836         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
17837         with __addr.
17838         (insw): Likewise.
17839         (insl): Likewise.
17840         (outsb): Likewise.
17841         (outsw): Likewise.
17842         (outsl): Likewise.
17843
17844         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
17845         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
17846         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
17847
17848         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
17849         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
17850         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
17851         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
17852         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
17853         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
17854
17855         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
17856         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
17857
17858         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
17859         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
17860
17861         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
17862         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
17863         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
17864
17865         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
17866         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
17867         to ...
17868         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
17869
17870         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
17871         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
17872         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
17873
17874         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
17875         for x86-64.
17876         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
17877
17878 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
17879
17880         * math/math.h (M_El): Use two more decimal places.
17881         (M_LOG2El): Likewise.
17882         (M_LOG10El): Likewise.
17883         (M_LN2l): Likewise.
17884         (M_LN10l): Likewise.
17885         (M_PIl): Likewise.
17886         (M_PI_2l): Likewise.
17887         (M_PI_4l): Likewise.
17888         (M_1_PIl): Likewise.
17889         (M_2_PIl): Likewise.
17890         (M_2_SQRTPIl): Likewise.
17891         (M_SQRT2l): Likewise.
17892         (M_SQRT1_2l): Likewise.
17893
17894 2012-05-31  David S. Miller  <davem@davemloft.net>
17895
17896         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
17897         values between float registers.
17898         * sysdeps/sparc/sparc64/memset.S: Likewise.
17899         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17900
17901 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
17902
17903         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
17904         -D_FORTIFY_SOURCE=1.
17905         (CPPFLAGS-tst-longjmp_chk.c): Define.
17906         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
17907         (CPPFLAGS-tst-longjmp_chk2.c): Define.
17908         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
17909         CFLAGS-tst-wchar-h.c.
17910
17911 2012-05-31  Marek Polacek  <polacek@redhat.com>
17912
17913         [BZ #14132]
17914         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
17915         __endmntent_internal): Remove declaration.
17916         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
17917         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
17918         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
17919
17920 2012-05-30  David S. Miller  <davem@davemloft.net>
17921
17922         * sysdeps/sparc/sparc32/soft-fp/q_util.c
17923         (___Q_simulate_exceptions): Use real FP ops rather than writing
17924         into the %fsr.
17925         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
17926         Likewise.
17927
17928 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17929
17930         [BZ #14117]
17931         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
17932         * sysdeps/x86/bits/xtitypes.h: This.
17933
17934         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
17935         * sysdeps/x86/bits/wordsize.h: This.
17936
17937         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
17938         * sysdeps/x86/bits/huge_vall.h: This.
17939
17940         * sysdeps/i386/bits/select.h: Removed.
17941         * sysdeps/x86_64/bits/select.h: Renamed to ...
17942         * sysdeps/x86/bits/select.h: This.
17943
17944         * sysdeps/i386/bits/setjmp.h: Removed.
17945         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
17946         * sysdeps/x86/bits/setjmp.h: This.
17947
17948         * sysdeps/i386/bits/mathdef.h: Removed.
17949         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
17950         * sysdeps/x86/bits/mathdef.h: This.
17951
17952 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
17953
17954         [BZ #14132]
17955         * include/sys/socket.h (__connect_internal)
17956         (__libc_sa_len_internal): Remove declaration.
17957         (__connect, __libc_sa_len): Declare hidden_proto.
17958         (SA_LEN): Remove use of INTUSE.
17959         * socket/connect.c: Add libc_hidden_def.
17960         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
17961         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
17962         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
17963         alias.
17964         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
17965         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
17966         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
17967         of adding _internal alias.
17968
17969 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17970
17971         [BZ #14117]
17972         * sysdeps/i386/bits/link.h: Removed.
17973         * sysdeps/i386/bits/linkmap.h: Likewise.
17974         * sysdeps/x86_64/bits/link.h: Renamed to ...
17975         * sysdeps/x86/bits/link.h: This.
17976         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
17977         * sysdeps/x86/bits/linkmap.h: This.
17978
17979         * sysdeps/i386/bits/endian.h: Removed.
17980         * sysdeps/x86_64/bits/endian.h: Renamed to ...
17981         * sysdeps/x86/bits/endian.h: This.
17982
17983         * sysdeps/i386/bits/byteswap.h: Removed.
17984         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17985         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
17986         * sysdeps/x86/bits/byteswap.h: This.
17987         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
17988         * sysdeps/x86/bits/byteswap-16.h: This.
17989         * sysdeps/i386/Implies: Add x86.
17990         * sysdeps/x86_64/Implies: Likewise.
17991
17992 2012-05-30  David S. Miller  <davem@davemloft.net>
17993
17994         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
17995         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
17996         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
17997         (FP_TRAPPING_EXCEPTIONS): Define.
17998         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
17999         (FP_TRAPPING_EXCEPTIONS): Define.
18000         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
18001         subnormals only when inexact has been signalled or underflow
18002         exceptions are enabled.
18003         (_FP_PACK_CANONICAL): Likewise.
18004
18005 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18006
18007         [BZ #14183]
18008         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
18009         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
18010
18011 2012-05-30  Richard Henderson  <rth@twiddle.net>
18012
18013         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
18014         with #ifndef NOT_IN_libc.
18015
18016         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
18017         marked to avoid plt entry.
18018
18019 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18020
18021         [BZ #14112]
18022         * Makeconfig (default-abi): New macro.
18023         (abi-includes): Likewise.
18024         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
18025         $(abi-$(default-abi)-lib-soname) for soname if defined.
18026         ($(common-objpfx)gnu/lib-names.stmp): Generate from
18027         abi-variants.
18028         * Makefile (installed-stubs): Likewise.
18029         * include/stubs-biarch.h: Removed.
18030         * scripts/lib-names.awk: Only handle one library at a time.
18031         * scripts/soversions.awk: Remove WORDSIZE support.
18032         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
18033         entries.
18034         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
18035         Removed.
18036         (syscall-list-default-condition): Likewise.
18037         (syscall-list-default-condition): Likewise.
18038         (syscall-list-includes): Likewise.
18039         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
18040         syscall-list-* with abi-*.  Handle undefined abi-variants.
18041         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
18042         * sysdeps/unix/sysv/linux/i386/Implies: New file.
18043         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
18044         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
18045         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
18046         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
18047         Removed.
18048         (syscall-list-32-options): Likewise.
18049         (syscall-list-32-condition): Likewise.
18050         (syscall-list-64-options): Likewise.
18051         (syscall-list-64-condition): Likewise.
18052         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
18053         macro.
18054         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
18055         Renamed to ...
18056         (abi-*): This.
18057         (abi-64-ld-soname): New macro.
18058         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
18059         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
18060         Renamed to ...
18061         (abi-*): This.
18062         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
18063         * sysdeps/x86_64/x32/shlib-versions: Likewise.
18064
18065 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
18066
18067         * sysdeps/unix/sysv/linux/kernel-features.h
18068         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
18069         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
18070         include <kernel-features.h>.
18071         [!__NR_ftruncate64]: Remove conditional code.
18072         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18073         [__NR_ftruncate64]: Make code unconditional.
18074         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18075         * sysdeps/unix/sysv/linux/truncate64.c: Do not
18076         include <kernel-features.h>.
18077         [!__NR_ftruncate64]: Remove conditional code.
18078         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18079         [__NR_ftruncate64]: Make code unconditional.
18080         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
18082         include <kernel-features.h>.
18083         [!__NR_ftruncate64]: Remove conditional code.
18084         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18085         [__NR_ftruncate64]: Make code unconditional.
18086         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
18088         include <kernel-features.h>.
18089         [!__NR_ftruncate64]: Remove conditional code.
18090         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18091         [__NR_ftruncate64]: Make code unconditional.
18092         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18093
18094         * configure.in (libc_cv_fpie): Weaken to a compile test using
18095         LIBC_TRY_CC_OPTION.
18096         * configure: Regenerated.
18097
18098 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18099
18100         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
18101         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
18102         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
18103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
18104         Refreshed.
18105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
18106         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
18107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
18108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
18109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
18110         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
18111         Refreshed.
18112
18113 2012-05-27  David S. Miller  <davem@davemloft.net>
18114
18115         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
18116         (___Q_zero): New.
18117         (__Q_simulate_exceptions): Return void.  Change to simulate
18118         exceptions by writing into the %fsr.
18119         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
18120         (__Qp_handle_exceptions): Likewise.
18121         (numbers): Delete.
18122         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
18123         __Qp_handle_exceptions.
18124         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
18125         __Qp_handle_exceptions.
18126         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18127         as unused and give dummy FP_RND_NEAREST initializer.
18128         (FP_INHIBIT_RESULTS): Define.
18129         (___Q_simulate_exceptions): Update declaration.
18130         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
18131         formatting.
18132         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18133         as unused and give dummy FP_RND_NEAREST initializer.
18134         (__Qp_handle_exceptions): Update declaration.
18135         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
18136         formatting.
18137
18138 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
18139
18140         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
18141         the temporary FPU control word.
18142         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
18143         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
18144         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
18145         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18146         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
18147         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
18148         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
18149         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18150         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
18151         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
18152         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18153
18154 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18155
18156         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
18157         fields.
18158
18159 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
18160
18161         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
18162         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
18163         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
18164         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
18165         Likewise.
18166         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
18167         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
18168         Likewise.
18169
18170 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
18171
18172         * po/h.po: Update from translation team.
18173
18174 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
18175
18176         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
18177
18178         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
18179         handling of denormals.
18180         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
18181         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
18182         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
18183         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
18184         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
18185         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
18186         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
18187         Likewise.
18188
18189 2012-05-26  Marek Polacek  <polacek@redhat.com>
18190
18191         [BZ #14152]
18192         * math/libm-test.inc (fma_test): Don't always expect underflow
18193         exception.
18194
18195 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18196
18197         [BZ #12416]
18198         * elf/tst-execstack.c: Include stackinfo.h.
18199         (do_test): Adjust test case to ensure that pthread_getattr_np
18200         behaviour remains the same after marking stack executable.
18201
18202 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18203
18204         * sysdeps/unix/sysv/linux/kernel-features.h
18205         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
18206         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
18207         kernel-features.h.
18208         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18209         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18210         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
18211         kernel-features.h.
18212         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18213         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18214
18215 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
18216
18217         * configure.in: Define the default includes to being none.
18218         * configure: Regenerated.
18219
18220 2012-05-25  Roland McGrath  <roland@hack.frob.com>
18221
18222         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
18223         * sysdeps/x86_64/setjmp.S: Likewise.
18224         * sysdeps/i386/bsd-setjmp.S: Likewise.
18225         * sysdeps/i386/bsd-_setjmp.S: Likewise.
18226         * sysdeps/i386/setjmp.S: Likewise.
18227         * sysdeps/i386/__longjmp.S: Likewise.
18228         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
18229         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
18230
18231         * include/stap-probe.h: New file.
18232         * configure.in: Handle --enable-systemtap.
18233         * configure: Regenerated.
18234         * config.h.in (USE_STAP_PROBE): New #undef.
18235         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
18236         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
18237         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
18238
18239 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18240
18241         [BZ #13717]
18242         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
18243         to 2.4.0 where earlier.
18244         * sysdeps/unix/sysv/linux/configure: Regenerated.
18245         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
18246         <kernel-features.h>.
18247         [__ASSUME_32BITUIDS]: Make code unconditional.
18248         [!__ASSUME_32BITUIDS]: Remove conditional code.
18249         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
18250         <kernel-features.h>.
18251         [__ASSUME_32BITUIDS]: Make code unconditional.
18252         [!__ASSUME_32BITUIDS]: Remove conditional code.
18253         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
18254         [__ASSUME_32BITUIDS]: Make code unconditional.
18255         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
18256         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
18257         <kernel-features.h>.
18258         [__ASSUME_32BITUIDS]: Make code unconditional.
18259         [!__ASSUME_32BITUIDS]: Remove conditional code.
18260         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
18261         <kernel-features.h>.
18262         [__ASSUME_32BITUIDS]: Make code unconditional.
18263         [!__ASSUME_32BITUIDS]: Remove conditional code.
18264         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
18265         <kernel-features.h>.
18266         [__ASSUME_32BITUIDS]: Make code unconditional.
18267         [!__ASSUME_32BITUIDS]: Remove conditional code.
18268         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
18269         <kernel-features.h>.
18270         [__ASSUME_32BITUIDS]: Make code unconditional.
18271         [!__ASSUME_32BITUIDS]: Remove conditional code.
18272         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
18273         <kernel-features.h>.
18274         [__ASSUME_32BITUIDS]: Make code unconditional.
18275         [!__ASSUME_32BITUIDS]: Remove conditional code.
18276         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
18277         <kernel-features.h>.
18278         [__ASSUME_32BITUIDS]: Make code unconditional.
18279         [!__ASSUME_32BITUIDS]: Remove conditional code.
18280         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
18281         <kernel-features.h>.
18282         [__ASSUME_32BITUIDS]: Make code unconditional.
18283         [!__ASSUME_32BITUIDS]: Remove conditional code.
18284         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
18285         <kernel-features.h>.
18286         [__ASSUME_32BITUIDS]: Make code unconditional.
18287         [!__ASSUME_32BITUIDS]: Remove conditional code.
18288         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
18289         <kernel-features.h>.
18290         [__ASSUME_32BITUIDS]: Make code unconditional.
18291         [!__ASSUME_32BITUIDS]: Remove conditional code.
18292         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
18293         <kernel-features.h>.
18294         [__ASSUME_32BITUIDS]: Make code unconditional.
18295         [!__ASSUME_32BITUIDS]: Remove conditional code.
18296         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
18297         <kernel-features.h>.
18298         [__NR_setresgid] (__setresgid): Do not declare.
18299         [__ASSUME_32BITUIDS]: Make code unconditional.
18300         [!__ASSUME_32BITUIDS]: Remove conditional code.
18301         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
18302         <kernel-features.h>.
18303         [__NR_setresuid] (__setresuid): Do not declare.
18304         [__ASSUME_32BITUIDS]: Make code unconditional.
18305         [!__ASSUME_32BITUIDS]: Remove conditional code.
18306         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
18307         <kernel-features.h>.
18308         [__ASSUME_32BITUIDS]: Make code unconditional.
18309         [!__ASSUME_32BITUIDS]: Remove conditional code.
18310         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
18311         <kernel-features.h>.
18312         [__ASSUME_32BITUIDS]: Make code unconditional.
18313         [!__ASSUME_32BITUIDS]: Remove conditional code.
18314         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
18315         <kernel-features.h>.
18316         [__ASSUME_32BITUIDS]: Make code unconditional.
18317         [!__ASSUME_32BITUIDS]: Remove conditional code.
18318         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
18319         <kernel-features.h>.
18320         [__ASSUME_32BITUIDS]: Make code unconditional.
18321         [!__ASSUME_32BITUIDS]: Remove conditional code.
18322         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
18323         <kernel-features.h>.
18324         [__ASSUME_32BITUIDS]: Make code unconditional.
18325         [!__ASSUME_32BITUIDS]: Remove conditional code.
18326         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
18327         <kernel-features.h>.
18328         [__ASSUME_32BITUIDS]: Make code unconditional.
18329         [!__ASSUME_32BITUIDS]: Remove conditional code.
18330         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
18331         <kernel-features.h>.
18332         [__ASSUME_32BITUIDS]: Make code unconditional.
18333         [!__ASSUME_32BITUIDS]: Remove conditional code.
18334         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
18335         <kernel-features.h>.
18336         [__ASSUME_32BITUIDS]: Make code unconditional.
18337         [!__ASSUME_32BITUIDS]: Remove conditional code.
18338         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
18339         <kernel-features.h>.
18340         [__ASSUME_32BITUIDS]: Make code unconditional.
18341         [!__ASSUME_32BITUIDS]: Remove conditional code.
18342         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
18343         <kernel-features.h>.
18344         [__ASSUME_32BITUIDS]: Make code unconditional.
18345         [!__ASSUME_32BITUIDS]: Remove conditional code.
18346         * sysdeps/unix/sysv/linux/kernel-features.h
18347         (__ASSUME_SETRESUID_SYSCALL): Remove.
18348         (__ASSUME_SETRESGID_SYSCALL): Likewise.
18349         (__ASSUME_32BITUIDS): Likewise.
18350         (__ASSUME_LDT_WORKS): Likewise.
18351         (__ASSUME_O_DIRECTORY): Likewise.
18352         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
18353         architecture but not kernel version.
18354         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
18355         (__ASSUME_MMAP2_SYSCALL): Likewise.
18356         (__ASSUME_STAT64_SYSCALL): Likewise.
18357         (__ASSUME_IPC64): Likewise.
18358         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
18359         <kernel-features.h>.
18360         [__ASSUME_32BITUIDS]: Make code unconditional.
18361         [!__ASSUME_32BITUIDS]: Remove conditional code.
18362         * sysdeps/unix/sysv/linux/opendir.c: Do not include
18363         <kernel-features.h>.
18364         [__ASSUME_O_DIRECTORY]: Make code unconditional.
18365         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
18366         132096]: Remove conditional code.
18367         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
18368         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
18369         <kernel-features.h>.
18370         [__ASSUME_32BITUIDS]: Make code unconditional.
18371         [!__ASSUME_32BITUIDS]: Remove conditional code.
18372         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
18373         <kernel-features.h>.
18374         [__ASSUME_32BITUIDS]: Make code unconditional.
18375         [!__ASSUME_32BITUIDS]: Remove conditional code.
18376         * sysdeps/unix/sysv/linux/setegid.c: Do not include
18377         <kernel-features.h>.
18378         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
18379         unconditional.
18380         (__setresgid): Do not declare.
18381         [__ASSUME_32BITUIDS]: Make code unconditional.
18382         [!__ASSUME_32BITUIDS]: Remove conditional code.
18383         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
18384         <kernel-features.h>.
18385         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
18386         unconditional.
18387         (__setresuid): Do not declare.
18388         [__ASSUME_32BITUIDS]: Make code unconditional.
18389         [!__ASSUME_32BITUIDS]: Remove conditional code.
18390         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
18391         <kernel-features.h>.
18392         [__ASSUME_32BITUIDS]: Make code unconditional.
18393         [!__ASSUME_32BITUIDS]: Remove conditional code.
18394         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
18395         <kernel-features.h>.
18396         [__ASSUME_32BITUIDS]: Make code unconditional.
18397         [!__ASSUME_32BITUIDS]: Remove conditional code.
18398
18399 2012-05-25  Richard Henderson  <rth@twiddle.net>
18400
18401         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
18402         dl_hwcap to ifunc resolver.
18403         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
18404         elf_ifunc_invoke.
18405         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
18406         dl_hwcap to ifunc resolver.
18407         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
18408
18409 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18410
18411         [BZ #14153]
18412         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
18413         for |x| <= 2**-26, not 2**-57.
18414         * math/libm-test.inc (acos_test): Do not allow spurious underflow
18415         exception.
18416
18417 2012-05-24  Jeff Law  <law@redhat.com>
18418
18419         * stdio-common/Makefile (tests): Add bug25.
18420         * stdio-common/bug25.c: New test.
18421
18422 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18423
18424         [BZ #13576]
18425         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
18426         multiple of MALLOC_ALIGNMENT in size.
18427         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
18428
18429 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18430
18431         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
18432         Require >= 256.
18433         (FILENAME_MAX): Use macro-int-constant.
18434         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
18435         (_IOFBF): Use macro-int-constant.
18436         (_IOLBF): Likewise.
18437         (_IONBF): Likewise.
18438         (SEEK_CUR): Likewise.
18439         (SEEK_END): Likewise.
18440         (SEEK_SET): Likewise.
18441         (TMP_MAX): Likewise.
18442         (EOF): Use macro-int-constant.  Require < 0.
18443         (NULL): Use macro-constant.  Require == 0.
18444         (stdin): Require type to be FILE *.
18445         (stdout): Likewise.
18446         (stderr): Likewise.
18447         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
18448         macro-int-constant.
18449         (EXIT_SUCCESS): Likewise.
18450         (NULL): Use macro-constant.  Require == 0.
18451         (RAND_MAX): Use macro-int-constant.
18452         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
18453         [C99-based standards] (strtof): Require function.
18454         [C99-based standards] (strtold): Likewise.
18455         [C99-based standards] (strtoll): Likewise.
18456         [C99-based standards] (strtoull): Likewise.
18457         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
18458         [ISO || ISO99 || ISO11] (limits.h): Likewise.
18459         [ISO || ISO99 || ISO11] (math.h): Likewise.
18460         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
18461         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
18462         [ISO || ISO99 || ISO11] (*_t): Do not allow.
18463
18464 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
18465
18466         [BZ #14132]
18467         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
18468         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
18469         * intl/dgettext.c (DCGETTEXT): Likewise.
18470         * intl/gettext.c (DCGETTEXT): Likewise.
18471         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
18472         * posix/regex_internal.h (gettext): Likewise.
18473         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
18474         Remove declaration.
18475         * include/argz.h (__argz_count_internal)
18476         (__argz_stringify_internal): Remove declaration.
18477         (__argz_count, __argz_stringify): Declare hidden proto.
18478         * intl/dcgettext.c: Remove use of INTDEF.
18479         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
18480         * string/argz-stringify.c: Likewise.
18481         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
18482         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
18483         Declare hidden proto.
18484         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
18485         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
18486         Declare hidden proto.
18487         * include/stdio.h (__asprintf_internal): Don't declare.
18488         (__asprintf): Don't define as macro.  Declare hidden proto.
18489         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
18490         (__fsetlocking): Declare hidden proto.
18491         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
18492         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
18493         hidden proto.
18494         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
18495         (_IO_setlinebuf): Remove use of INTUSE.
18496         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
18497         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
18498         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
18499         Remove declaration.
18500         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
18501         (_IO_do_flush): Remove use of INTUSE.
18502         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
18503         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
18504         (_IO_adjust_column, _IO_least_wmarker)
18505         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
18506         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
18507         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
18508         (_IO_default_doallocate, _IO_wdefault_doallocate)
18509         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
18510         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
18511         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
18512         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
18513         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
18514         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
18515         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
18516         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
18517         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
18518         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
18519         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
18520         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
18521         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
18522         proto.
18523         (_IO_flush_all_internal, _IO_adjust_column_internal)
18524         (_IO_default_uflow_internal, _IO_default_finish_internal)
18525         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
18526         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
18527         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
18528         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
18529         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
18530         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
18531         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
18532         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
18533         (_IO_file_close_internal, _IO_file_close_it_internal)
18534         (_IO_file_underflow_internal, _IO_file_overflow_internal)
18535         (_IO_file_init_internal, _IO_file_attach_internal)
18536         (_IO_file_fopen_internal, _IO_file_read_internal)
18537         (_IO_file_sync_internal, _IO_file_seek_internal)
18538         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
18539         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
18540         (_IO_str_underflow_internal, _IO_str_overflow_internal)
18541         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
18542         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
18543         (_IO_list_all_internal, _IO_link_in_internal)
18544         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
18545         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
18546         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
18547         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
18548         (_IO_do_write_internal, _IO_padn_internal)
18549         (_IO_getline_info_internal, _IO_getline_internal)
18550         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
18551         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
18552         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
18553         (_IO_vfscanf_internal, _IO_vfprintf_internal)
18554         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
18555         (_IO_init_internal, _IO_un_link_internal): Don't declare.
18556         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
18557         with libc_hidden_ver, remove use of INTUSE.
18558         * libio/genops.c: Likewise.
18559         * libio/freopen.c: Likewise.
18560         * libio/freopen64.c: Likewise.
18561         * libio/iofclose.c: Likewise.
18562         * libio/iofdopen.c: Likewise.
18563         * libio/iofflush.c: Likewise.
18564         * libio/iofflush_u.c: Likewise.
18565         * libio/iofgets.c: Likewise.
18566         * libio/iofgets_u.c: Likewise.
18567         * libio/iofopen.c: Likewise.
18568         * libio/iofopncook.c: Likewise.
18569         * libio/iofread.c: Likewise.
18570         * libio/iofread_u.c: Likewise.
18571         * libio/ioftell.c: Likewise.
18572         * libio/iofwrite.c: Likewise.
18573         * libio/iogetline.c: Likewise.
18574         * libio/iogets.c: Likewise.
18575         * libio/iogetwline.c: Likewise.
18576         * libio/iopadn.c: Likewise.
18577         * libio/iopopen.c: Likewise.
18578         * libio/ioseekoff.c: Likewise.
18579         * libio/ioseekpos.c: Likewise.
18580         * libio/iosetbuffer.c: Likewise.
18581         * libio/iosetvbuf.c: Likewise.
18582         * libio/ioungetc.c: Likewise.
18583         * libio/ioungetwc.c: Likewise.
18584         * libio/iovdprintf.c: Likewise.
18585         * libio/iovsprintf.c: Likewise.
18586         * libio/iovsscanf.c: Likewise.
18587         * libio/memstream.c: Likewise.
18588         * libio/obprintf.c: Likewise.
18589         * libio/oldfileops.c: Likewise.
18590         * libio/oldiofclose.c: Likewise.
18591         * libio/oldiofdopen.c: Likewise.
18592         * libio/oldiofopen.c: Likewise.
18593         * libio/oldiopopen.c: Likewise.
18594         * libio/oldstdfiles.c: Likewise.
18595         * libio/putc.c: Likewise.
18596         * libio/setbuf.c: Likewise.
18597         * libio/setlinebuf.c: Likewise.
18598         * libio/stdfiles.c: Likewise.
18599         * libio/strops.c: Likewise.
18600         * libio/vasprintf.c: Likewise.
18601         * libio/vscanf.c: Likewise.
18602         * libio/vsnprintf.c: Likewise.
18603         * libio/vswprintf.c: Likewise.
18604         * libio/wfiledoalloc.c: Likewise.
18605         * libio/wfileops.c: Likewise.
18606         * libio/wgenops.c: Likewise.
18607         * libio/wmemstream.c: Likewise.
18608         * libio/wstrops.c: Likewise.
18609         * libio/__fpurge.c: Likewise.
18610         * libio/__fsetlocking.c: Likewise.
18611         * assert/assert.c: Likewise.
18612         * debug/fgets_chk.c: Likewise.
18613         * debug/fgets_u_chk.c: Likewise.
18614         * debug/fread_chk.c: Likewise.
18615         * debug/fread_u_chk.c: Likewise.
18616         * debug/gets_chk.c: Likewise.
18617         * debug/obprintf_chk.c: Likewise.
18618         * debug/vasprintf_chk.c: Likewise.
18619         * debug/vdprintf_chk.c: Likewise.
18620         * debug/vsnprintf_chk.c: Likewise.
18621         * debug/vsprintf_chk.c: Likewise.
18622         * malloc/mtrace.c: Likewise.
18623         * misc/error.c: Likewise.
18624         * misc/syslog.c: Likewise.
18625         * stdio-common/asprintf.c: Likewise.
18626         * stdio-common/fxprintf.c: Likewise.
18627         * stdio-common/getw.c: Likewise.
18628         * stdio-common/isoc99_fscanf.c: Likewise.
18629         * stdio-common/isoc99_scanf.c: Likewise.
18630         * stdio-common/isoc99_vfscanf.c: Likewise.
18631         * stdio-common/isoc99_vscanf.c: Likewise.
18632         * stdio-common/isoc99_vsscanf.c: Likewise.
18633         * stdio-common/printf-prs.c: Likewise.
18634         * stdio-common/printf_fp.c: Likewise.
18635         * stdio-common/printf_fphex.c: Likewise.
18636         * stdio-common/printf_size.c: Likewise.
18637         * stdio-common/putw.c: Likewise.
18638         * stdio-common/scanf.c: Likewise.
18639         * stdio-common/sprintf.c: Likewise.
18640         * stdio-common/tmpfile.c: Likewise.
18641         * stdio-common/vfprintf.c: Likewise.
18642         * stdio-common/vfscanf.c: Likewise.
18643         * stdlib/strfmon_l.c: Likewise.
18644         * sunrpc/openchild.c: Likewise.
18645         * sunrpc/xdr_stdio.c: Likewise.
18646         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18647         * sysdeps/mach/hurd/tmpfile.c: Likewise.
18648
18649 2012-05-24  Roland McGrath  <roland@hack.frob.com>
18650
18651         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
18652
18653         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
18654         in the third column, to generate for the shared library an IFUNC
18655         that uses _dl_vdso_vsym.
18656         * Makerules (COMPILE.c, compile-stdin.c): New variables.
18657         * Makeconfig (object-suffixes-noshared): New variable.
18658
18659         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
18660         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
18661         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
18662         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
18663
18664         [BZ #14132]
18665         * include/sys/time.h (__gettimeofday): Remove macro.
18666         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
18667         * time/gettimeofday.c (__gettimeofday): Remove #undef.
18668         Remove INTDEF.
18669         (__gettimeofday): Add libc_hidden_def.
18670         (gettimeofday): Add libc_hidden_weak.
18671         * sysdeps/mach/gettimeofday.c: Likewise.
18672         * sysdeps/posix/gettimeofday.c: Likewise.
18673         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18674         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
18675         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
18676         (__gettimeofday_internal): Remove strong_alias.
18677         (__gettimeofday): Add libc_hidden_def.
18678         (gettimeofday): Add libc_hidden_weak.
18679         * sysdeps/unix/syscalls.list (gettimeofday):
18680         Remove __gettimeofday_internal alias.
18681
18682 2012-05-24  Daniel Jacobowitz  <drow@false.org>
18683             H.J. Lu  <hongjiu.lu@intel.com>
18684
18685         [BZ #12495]
18686         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
18687         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
18688         (largebin_index_32_big): New.
18689         (largebin_index): Use it for 16-byte alignment.
18690         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
18691         correction with front_misalign.
18692
18693 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18694
18695         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
18696         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
18697         Likewise.
18698         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
18699         Likewise.
18700         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
18701         Likewise.
18702         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
18703         Likewise.
18704         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
18705         Likewise.
18706         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
18707         Likewise.
18708         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
18709         Likewise.
18710         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
18711         Likewise.
18712         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
18713         Likewise.
18714         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
18715         Likewise.
18716         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
18717         Likewise.
18718         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
18719         Likewise.
18720
18721         * scripts/data/c++-types-x32-linux-gnu.data: New file.
18722         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
18723
18724 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18725
18726         [BZ #10846]
18727         [BZ #14036]
18728         * math/libm-test.inc (exp_test): Add test from bug 14036.
18729         (pow_test): Add test from bug 10846.
18730
18731         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
18732         and other flags.
18733         (special_function): Do not include flags in test name.
18734         (parse_args): Likewise.
18735         * sysdeps/i386/fpu/libm-test-ulps: Update.
18736         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18737         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
18738         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
18739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18740
18741         * math/gen-libm-test.pl (%beautify): Add entries for underflow
18742         exceptions.
18743         * math/libm-test.inc ("Philosophy"): Update comment about
18744         exception testing.
18745         (UNDERFLOW_EXCEPTION): New macro.
18746         (UNDERFLOW_EXCEPTION_OK): Likewise.
18747         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
18748         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
18749         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
18750         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
18751         (INVALID_EXCEPTION_OK): Update value.
18752         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18753         (OVERFLOW_EXCEPTION_OK): Likewise.
18754         (IGNORE_ZERO_INF_SIGN): Likewise.
18755         (test_exceptions): Handle underflow exceptions.
18756         (acos_test): Update for underflow exception expectations.
18757         (cexp_test): Likewise.
18758         (clog_test): Likewise.
18759         (clog10_test): Likewise.
18760         (csqrt_test): Likewise.
18761         (ctan_test): Likewise.
18762         (ctanh_test): Likewise.
18763         (exp_test): Likewise.
18764         (exp10_test): Likewise.
18765         (exp2_test): Likewise.
18766         (expm1_test): Likewise.
18767         (fma_test): Likewise.
18768         (j0_test): Likewise.
18769         (jn_test): Likewise.
18770         (nexttoward_test): Likewise.
18771         (pow_test): Likewise.
18772         (scalbn_test): Likewise.
18773         (scalbln_test): Likewise.
18774         (tan_test): Likewise.
18775         (y1_test): Likewise.
18776         * sysdeps/i386/fpu/libm-test-ulps: Update.
18777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18778
18779 2012-05-23  David S. Miller  <davem@davemloft.net>
18780
18781         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
18782         (__libc_sigaction): Remove unused local variables.
18783
18784 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18785
18786         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
18787
18788 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18789
18790         mktime: avoid signed integer overflow
18791         * time/mktime.c (__mktime_internal): Do not mishandle the case
18792         where diff == INT_MIN.
18793
18794         mktime: simplify computation of average
18795         * time/mktime.c (ranged_convert): Use new time_t_avg function
18796         instead of rolling our own (probably-slower) code.
18797
18798         mktime: do not assume signed right shift propagates sign bit
18799         * time/mktime.c (isdst_differ): New static function.
18800         (__mktime_internal): No need to normalize tm_isdst now.
18801         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
18802         tm_isdst values.
18803
18804         mktime: merge another wrapv change from gnulib
18805         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
18806         from some compilers.
18807
18808         mktime: remove incorrect attempt at unusual arithmetics
18809         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
18810         The code didn't really work on such machines anyway.
18811         (TYPE_MINIMUM): Assume two's complement.
18812         (twos_complement_arithmetic): Verify that long_int and time_t
18813         are two's complement (or unsigned, in the latter case).
18814
18815         mktime: check signed shifts on long_int and time_t, too
18816         * time/mktime.c (SHR): Check that shifts work as desired
18817         on the types long_int and time_t too, as SHR is used on
18818         such types.
18819
18820         mktime: do not assume 'long' is wide enough
18821         * time/mktime.c (verify): Move decl up.
18822         (long_int): New type.
18823         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
18824         to remove assumption in the code that 'long' is wide enough to
18825         store year values.  This assumption is not true on x32 and on
18826         some non-glibc platforms.
18827
18828         mktime: merge wrapv change from gnulib
18829         * time/mktime.c (WRAPV): New macro.
18830         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
18831         (guess_time_tm, __mktime_internal): Do not assume that signed
18832         integer overflow wraps around; modern compilers generate code
18833         where this assumption is no longer valid.
18834
18835 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18836
18837         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
18838         Replace "jmp L(pseudo_end)" with "ret".
18839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
18840         Likewise.
18841
18842 2012-05-23  Andreas Jaeger  <aj@suse.de>
18843
18844         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
18845         * sysdeps/unix/sysv/linux/poll.c: Remove file.
18846
18847 2012-05-23  Andreas Jaeger  <aj@suse.de>
18848             Maximilian Attems  <max@stro.at>
18849
18850         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
18851         New macros.
18852
18853 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18854
18855         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
18856         code so that pseudo_end is just ret and the stack pointer is
18857         correct also for static library in error case.
18858
18859 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
18860
18861         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
18862         move to syscalls.list.
18863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
18864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
18865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
18866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
18867
18868         * manual/install.texi (Running make install): Do not mention Linux
18869         kernel version for which pt_chown is not needed.
18870         (Linux): Do not mention problems with nscd with 2.0 kernels.
18871         * INSTALL: Regenerated.
18872
18873 2012-05-23  Andreas Jaeger  <aj@suse.de>
18874
18875         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
18876         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
18877         macro.
18878         * sysdeps/unix/sysv/linux/s390/bits/mman.h
18879         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18880         * sysdeps/unix/sysv/linux/sh/bits/mman.h
18881         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18882         * sysdeps/unix/sysv/linux/i386/bits/mman.h
18883         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18884         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
18885         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18886         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
18887         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18888         * sysdeps/unix/sysv/linux/bits/in.h
18889         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
18890
18891 2012-05-22  Roland McGrath  <roland@hack.frob.com>
18892
18893         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
18894         (PREPARE_VERSION): Just use assert instead, it will be elided
18895         under [NDEBUG] anyway.
18896
18897 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18898
18899         * sysdeps/unix/sysv/linux/Makefile: Include
18900         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
18901         (sysdep_routines): Remove sysctl.
18902         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
18903         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
18904         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
18905         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
18906         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
18907
18908 2012-05-22  Andreas Jaeger  <aj@suse.de>
18909
18910         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
18911         that pseudo_end is just ret and the stack pointer is correct also
18912         for static library in error case.
18913
18914 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
18915
18916         [BZ #14122]
18917         * nss/nsswitch.c (defconfig_entries): New variable.
18918         (__nss_database_lookup): Don't leak defconfig entries.
18919         (nss_parse_service_list): Don't leak on error paths.
18920         (free_database_entries): New function.
18921         (free_defconfig): New function.
18922         (free_mem): Move common code to free_database_entries.
18923
18924 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18925
18926         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
18927         Add arch_prctl.
18928         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
18929
18930         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18931         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
18932         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
18933         New macro.
18934         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
18935         (INTERNAL_SYSCALL_TYPES): Likewise.
18936         (LOAD_ARGS_TYPES_[1-6]): Likewise.
18937         (LOAD_REGS_TYPES_[1-6]): Likewise.
18938         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
18939         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
18940
18941 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18942
18943         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
18944         copysignl for GLIBC_2_0.
18945         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
18946         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
18947         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
18948         logbl for GLIBC_2_0.
18949         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
18950         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
18951
18952 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18953
18954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
18955         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
18956
18957         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
18958         Use "neg %eax".
18959
18960         * time/mktime.c: Update copyright years.
18961
18962 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18963
18964         mktime: merge comment-quoting-style change from gnulib
18965         * time/mktime.c: Quote 'like this' in comments.
18966         The GNU coding standards suggest that we no longer quote `like this',
18967         as "`" and "'" are typically rendered asymmetrically nowadays.
18968         The typical gnulib style is to quote 'like this' when quoting
18969         code, and "like this" when quoting English.
18970
18971         * time/mktime.c (compile-command): Add "-I.".
18972
18973         mktime: merge mktime-internal.h change from gnulib
18974         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
18975
18976         mktime: merge time_r change from gnulib
18977         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
18978
18979         mktime: merge DEBUG change from gnulib
18980         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
18981         case system <time.h> has a #define.
18982
18983         mktime: merge <sys/types.h> change from gnulib
18984         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
18985         since <time.t> is now guaranteed to define time_t.
18986
18987         mktime: merge HAVE_CONFIG_H change from gnulib
18988         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
18989
18990 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18991
18992         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
18993         Use "neg %eax".
18994
18995         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
18996         __rlim_t cast.
18997         (struct rusage): Use anonymous union to pad each field to
18998         __syscall_slong_t.
18999
19000 2012-05-21  David S. Miller  <davem@davemloft.net>
19001
19002         * Makefules (o-iterator): Remove .s cases.
19003         (compile-command.s): Delete.
19004         (COMPILE.s): Delete.
19005         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
19006
19007 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
19008
19009         * configure.in (libc_cv_predef_stack_protector): Only consider
19010         "foobar" and "__stack_chk_fail" lines in libc_undefs.
19011         * configure: Regenerated.
19012
19013 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19014
19015         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19016         New macro.  Use R*LP on int and pointer.
19017         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
19018         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
19019         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
19020         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
19021
19022         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
19023         [__WORDSIZE_TIME64_COMPAT32] instead of
19024         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
19025         (struct utmp): Likewise.
19026         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
19027         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
19028         Renamed to ...
19029         (__WORDSIZE_TIME64_COMPAT32): This.
19030         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
19031         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
19032         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
19033         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
19034         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
19035         (__WORDSIZE_TIME64_COMPAT32): New macro.
19036
19037 2012-05-21  Andreas Jaeger  <aj@suse.de>
19038
19039         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
19040         only if [SHARED]. Add prototype for __wcschr_ia32.
19041
19042 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19043
19044         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
19045         of %rbp unmolested in the jmp_buf while mangling the low bits.
19046         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
19047         unmolested high bits of %rbp while demangling the low bits.
19048         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
19049
19050 2012-05-21  Andreas Jaeger  <aj@suse.de>
19051
19052         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
19053         * sunrpc/svc_simple.c: Use it for registerrpc.
19054         * sunrpc/xcrypt.c: Use it for passwd2des.
19055
19056         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
19057
19058 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19059
19060         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
19061         Don't define if [__SYSCALL_WORDSIZE != 32].
19062         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
19063         New macro.
19064
19065 2012-05-21  Bruno Haible  <bruno@clisp.org>
19066             Andreas Jaeger  <aj@suse.de>
19067
19068         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
19069         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
19070         inptr and inend for must_buffer_ch.
19071         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
19072         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
19073         * stdio-common/Makefile (tests): Remove bug15.
19074         (bug15-ENV): Remove macro.
19075         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
19076         anymore.
19077
19078 2012-05-19  Andreas Jaeger  <aj@suse.de>
19079             Roland McGrath  <roland@hack.frob.com>
19080
19081         * manual/contrib.texi: Completely rewritten. It contains now an
19082         alphabetical list of contributors and their contributions.
19083
19084 2012-05-21  Richard Henderson  <rth@twiddle.net>
19085
19086         * misc/getauxval.c (__getauxval): Use unsigned long int.
19087         * misc/sys/auxv.h: Include <sys/cdefs.h>.
19088         (getauxval): Use unsigned long int.
19089
19090 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19091
19092         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19093
19094 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19095
19096         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
19097         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
19098         __alignof__ (long double).
19099
19100 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19101
19102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19103
19104 2012-05-20  Richard Henderson  <rth@twiddle.net>
19105
19106         * misc/getauxval.c: New file.
19107         * misc/sys/auxv.h: New file.
19108         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
19109         (routines): Add getauxval.
19110         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
19111         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
19112         * elf/dl-sysdep.c (_dl_auxv): Remove.
19113         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
19114         * elf/dl-support.c (_dl_auxv): New variable.
19115         (_dl_aux_init): Initialize it.
19116         * manual/startup.texi (Auxiliary Vector): New node.
19117         * sysdeps/generic/bits/hwcap.h: New file.
19118         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
19119         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
19120         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
19121         * sysdeps/sparc/sysdep.h: ... here.  Include it.
19122         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
19123         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
19124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19125         Update.
19126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
19127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
19128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
19129         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
19130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19131         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19132         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
19133         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
19134
19135 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19136
19137         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19138
19139 2012-05-19  David S. Miller  <davem@davemloft.net>
19140
19141         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19142
19143 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19144
19145         [BZ #14123]
19146         * math/s_ccosh.c: Include <float.h>
19147         (__ccosh): Avoid internal overflow calculating sinh and cosh
19148         values before multiplying by sin and cos values.
19149         * math/s_ccoshf.c: Likewise.
19150         * math/s_ccoshl.c: Likewise.
19151         * math/s_csin.c: Likewise.
19152         * math/s_csinf.c: Likewise.
19153         * math/s_csinl.c: Likewise.
19154         * math/s_csinh.c: Likewise.
19155         * math/s_csinhf.c: Likewise.
19156         * math/s_csinhl.c: Likewise.
19157         * math/libm-test.inc (ccos_test): Add more tests.
19158         (ccosh_test): Likewise.
19159         (csin_test): Likewise.
19160         (csinh_test): Likewise.
19161         * sysdeps/i386/fpu/libm-test-ulps: Update.
19162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19163
19164 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19165
19166         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
19167         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
19168
19169         * sysdeps/x86_64/x32/_itoa.h: Add comment.
19170
19171 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19172
19173         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
19174         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
19175         * sysdeps/powerpc/soft-fp/Versions: Likewise.
19176         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
19177         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
19178         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
19179         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
19180         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
19181         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
19182         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
19183         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
19184         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
19185         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
19186         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
19187         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
19188         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
19189         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
19190         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
19191         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
19192         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
19193         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
19194         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
19195         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
19196         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
19197         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
19198         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
19199         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
19200         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
19201         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
19202         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
19203         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
19204
19205 2012-05-18  Andreas Jaeger  <aj@suse.de>
19206
19207         * csu/.gitignore: Delete.
19208
19209 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19210
19211         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
19212         (timex): Use __syscall_slong_t.
19213
19214 2012-05-18  Andreas Jaeger  <aj@suse.de>
19215             Carlos O'Donell  <carlos_odonell@mentor.com>
19216
19217         * manual/install.texi (Configuring and compiling): Update
19218         description about files modified in the source directory.
19219         * INSTALL: Regenerated.
19220
19221 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19222
19223         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
19224         value.  Use "or" to set return value to -1.
19225         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
19226         negate return value.
19227
19228 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19229
19230         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
19231         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
19232         failure if the compiler has Graphite support disabled.
19233         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
19234         Likewise.
19235         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
19236         CFLAGS-memmove.c): Likewise.
19237         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
19238         Likewise.
19239
19240 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19241
19242         * sysdeps/x86_64/x32/_itoa.h: New file.
19243
19244         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
19245         getdents system call only if kernel and user dirents have the
19246         same d_ino and d_off.
19247
19248         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19249         LLONG_MAX != LONG_MAX.
19250         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19251         (_fitoa_word): Likewise.
19252
19253         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
19254         years.
19255         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
19256         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
19257         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
19258
19259         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
19260         include <bits/wordsize.h>.  Check __x86_64__ instead of
19261         __WORDSIZE.
19262         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
19263         if __x86_64__ is defined.  Use anonymous union on fpstate.
19264
19265         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
19266         anonymous union.
19267
19268 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
19269
19270         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
19271         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
19272         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
19273         Refer to _rtld_local_ro instead of _rtld_global_ro.
19274         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
19275         Likewise.
19276         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
19277         Likewise.
19278         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
19279         Likewise.
19280         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
19281         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
19282         of _rtld_global, and rtld_progname instead of _dl_argv[0].
19283
19284         * sysdeps/powerpc/powerpc32/dl-machine.c
19285         (__elf_machine_runtime_setup) [PROF]: Don't reference
19286         _dl_prof_resolve.
19287
19288 2012-05-18  Andreas Jaeger  <aj@suse.de>
19289
19290         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
19291         function only available for GCCs before 3.4 since GCC 3.4
19292         introduced a builtin.
19293         (lrint): Likewise.
19294         (llrintf): Likewise.
19295         (llrint): Likewise.
19296         (fmaxf): Likewise.
19297         (fmax): Likewise.
19298         (fminf): Likewise.
19299         (fmin): Likewise.
19300         (rint): Likewise.
19301         (rintf): Likewise.
19302         (nearbyint): Likewise.
19303         (nearbyintf): Likewise.
19304         (ceil): Likewise.
19305         (ceilf): Likewise.
19306         (floor): Likewise.
19307         (floorf): Likewise.
19308
19309 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19310
19311         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
19312         on both fields and cast pointer to __syscall_ulong_t.
19313
19314         * bits/types.h (__fsword_t): New type.
19315         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
19316         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
19317         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19318         (__FSWORD_T_TYPE): Likewise.
19319         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19320         (__FSWORD_T_TYPE): Likewise.
19321         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19322         (__FSWORD_T_TYPE): Likewise.
19323         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
19324         (__FSWORD_T_TYPE): Likewise.
19325         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
19326         __SWORD_TYPE with __fsword_t.
19327         (statfs64): Likewise.
19328
19329 2012-05-17  David S. Miller  <davem@davemloft.net>
19330
19331         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
19332
19333 2012-05-17  Andreas Jaeger  <aj@suse.de>
19334
19335         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
19336         warning.
19337
19338 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19339
19340         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
19341
19342 2012-05-17  Andreas Jaeger  <aj@suse.de>
19343
19344         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
19345         when it is used.
19346
19347 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
19348
19349         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
19350
19351 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19352
19353         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
19354         * sysdeps/x86_64/tst-mallocalign1.c: New file.
19355
19356 2012-05-17  Andreas Jaeger  <aj@suse.de>
19357             Carlos O'Donell  <carlos_odonell@mentor.com>
19358
19359         [BZ #14059]
19360         * sysdeps/x86_64/multiarch/init-arch.h
19361         (bit_YMM_Usable): Rename to...
19362         (bit_AVX_Usable): ... this.
19363         (bit_FMA4_Usable): New macro.
19364         (bit_XMM_state): New macro.
19365         (bit_YMM_state): New macro.
19366         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
19367         [__ASSEMBLER__] (index_AVX_Usable): ... this.
19368         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
19369         (CPUID_OSXSAVE): New macro.
19370         (CPUID_AVX): New macro.
19371         (CPUID_FMA4): New macro.
19372         (index_YMM_Usable): Rename to...
19373         (index_AVX_Usable): ... this.
19374         (HAS_AVX): Use HAS_ARCH_FEATURE.
19375         (HAS_FMA4): Likewise.
19376         (HAS_YMM_USABLE): Remove.
19377         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19378         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
19379         are present.
19380         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
19381         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
19382         * sysdeps/x86_64/multiarch/Makefile: Likewise.
19383         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
19384         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
19385
19386 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
19387
19388         * math/libm-test.c: Support platforms without multiple rounding modes.
19389         * math/bug-nextafter.c: Support platforms without FP exceptions.
19390         * math/bug-nexttoward.c: Likewise.
19391         * math/test-fenv.c: Likewise.
19392         * math/test-misc.c: Likewise.
19393         * stdlib/bug-getcontext.c: Likewise.
19394
19395 2012-05-17  Andreas Jaeger  <aj@suse.de>
19396
19397         * manual/examples/search.c (critter_cmp): Change signature to
19398         avoid warnings.
19399         * manual/string.texi (Collation Functions): Likewise.
19400
19401 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19402
19403         * bits/types.h: Fold copyright years.
19404         * bits/typesizes.h: Likewise.
19405         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
19406         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
19407         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
19408         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
19409         * time/time.h: Likewise.
19410
19411 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
19412
19413         [BZ #208]
19414         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
19415         in instead of returning them.  Return void.
19416         (__libc_mallinfo): Accumulate over all arenas.
19417         (__malloc_stats): Adjust for change in int_mallinfo interface.
19418
19419 2012-05-16  Roland McGrath  <roland@hack.frob.com>
19420
19421         [BZ #10375]
19422         * configure.in (NM): Add AC_CHECK_TOOL for it.
19423         (libc_extra_cflags): New substituted variable.
19424         Check for -fstack-protector being used implicitly.
19425         * configure: Regenerated.
19426         * config.make.in (config-extra-cflags): New variable,
19427         gets @libc_extra_cflags@.
19428         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
19429
19430         [BZ #10375]
19431         * configure.in: Check for _FORTIFY_SOURCE being predefined.
19432         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
19433         * configure: Regenerated.
19434         * config.make.in (CPPUNDEFS): New substituted variable.
19435         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
19436         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
19437         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
19438
19439 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19440
19441         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
19442         (mq_attr): Use __syscall_slong_t.
19443
19444 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19445
19446         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
19447         Check __x86_64__ instead of __WORDSIZE.
19448         (_STAT_VER_LINUX): Likewise.
19449         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
19450         __syscall_ulong_t and __syscall_slong_t.
19451         (stat64): Likewise.
19452
19453 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19454
19455         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
19456
19457 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19458
19459         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
19460
19461 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19462
19463         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
19464         __syscall_ulong_t.
19465
19466         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
19467         include <bits/wordsize.h>.  Check __x86_64__ instead of
19468         __WORDSIZE.
19469         (greg_t): Use "__extension__ long long int" if __x86_64__ is
19470         defined.
19471         (mcontext_t): Replace "unsigned long" with "unsigned long long".
19472
19473         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
19474         include <bits/wordsize.h>.  Check __x86_64__ instead of
19475         __WORDSIZE.
19476         (user_regs_struct): Use "__extension__ unsigned long long"
19477         instead of "unsigned long" if __x86_64__ is defined.
19478         (user): Likewise.  Pad after pointer field if __ILP32__ is
19479         defined.
19480
19481 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
19482
19483         * configure.in (makeinfo): Require version 4.5 or later.  Allow
19484         versions 5 to 9.
19485         * configure: Regenerated.
19486         * manual/install.texi (texinfo): Increase version requirement to
19487         4.5 or later.
19488         * INSTALL: Regenerated.
19489
19490         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
19491
19492 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19493
19494         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
19495
19496         * sysdeps/x86_64/x32/ffs.c: New file.
19497
19498         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
19499         __syscall_ulong_t.
19500         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
19501         defined.  Use __syscall_ulong_t.
19502         (shminfo): Use __syscall_ulong_t.
19503         (shm_info): Likewise.
19504
19505         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
19506         __syscall_ulong_t.
19507
19508         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
19509         <bits/wordsize.h>.
19510         (msgqnum_t): Use __syscall_ulong_t.
19511         (msglen_t): Likewise.
19512         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
19513         __syscall_ulong_t.
19514
19515         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
19516         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19517
19518         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
19519
19520         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
19521         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
19522
19523         * sysvipc/sys/msg.h (msgbuf): Replace long int with
19524         __syscall_slong_t.
19525
19526         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
19527         include <bits/wordsize.h>.  Check __x86_64__ instead of
19528         __WORDSIZE.
19529
19530         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
19531         "unsigned long long int" if __x86_64__ is defined.
19532         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
19533
19534         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
19535         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19536         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
19537
19538         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
19539         <stdint.h>.
19540         (GET_PC): Cast to uintptr_t first.
19541         (GET_FRAME): Likewise.
19542         (GET_STACK): Likewise.
19543
19544         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
19545         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
19546         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
19547         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
19548         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
19549         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
19550         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
19551         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
19552         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
19553         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
19554         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
19555         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
19556         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
19557         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
19558         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
19559         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
19560         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
19561         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
19562         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
19563         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
19564         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
19565         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
19566         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
19567         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
19568         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
19569         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
19570         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
19571         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
19572         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
19573
19574 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
19575
19576         * Makerules (+depfiles): Also collect depfiles from .oS in
19577         $(extra-objs).
19578         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
19579         .oS, $(libnldbl-routines)).
19580
19581         * Makerules (native-compile-mkdep-flags): Define.
19582         * sunrpc/Makefile (extra-objs): Add $(addprefix
19583         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
19584         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
19585         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
19586         calling $(make-target-directory).
19587
19588 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19589
19590         * bits/types.h (__snseconds_t): Removed.
19591         * time/time.h (struct timespec): Replace __snseconds_t with
19592         __syscall_slong_t.
19593         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
19594         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
19595         Likewise.
19596         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19597         (__SNSECONDS_T_TYPE): Likewise.
19598         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19599         (__SNSECONDS_T_TYPE): Likewise.
19600         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19601         (__SNSECONDS_T_TYPE): Likewise.
19602
19603 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19604
19605         * sysdeps/mach/hurd/bits/typesizes.h
19606         (__SYSCALL_SLONG_TYPE): New macro.
19607         (__SYSCALL_ULONG_TYPE): Likewise.
19608
19609 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19610
19611         * bits/types.h (__syscall_slong_t): New type.
19612         (__syscall_ulong_t): Likewise.
19613
19614         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
19615         (__SYSCALL_ULONG_TYPE): Likewise.
19616         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19617         (__SYSCALL_SLONG_TYPE): Likewise.
19618         (__SYSCALL_ULONG_TYPE): Likewise.
19619         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19620         (__SYSCALL_SLONG_TYPE): Likewise.
19621         (__SYSCALL_ULONG_TYPE): Likewise.
19622         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19623         (__SYSCALL_SLONG_TYPE): Likewise.
19624         (__SYSCALL_ULONG_TYPE): Likewise.
19625
19626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19627
19628         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
19629         Add sigaltstack-offsets.sym.
19630         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
19631         <sigaltstack-offsets.h>.
19632         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
19633         longjmp_msg pointer.
19634         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
19635         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
19636         signal stack.
19637         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
19638
19639 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
19640
19641         * elf/stackguard-macros.h: Remove file.
19642         * sysdeps/generic/stackguard-macros.h: New file.
19643         * sysdeps/i386/stackguard-macros.h: Likewise.
19644         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
19645         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
19646         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
19647         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
19648         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
19649         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
19650         * sysdeps/x86_64/stackguard-macros.h: Likewise.
19651         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
19652         <elf/stackguard-macros.h>.
19653
19654         [BZ #14109]
19655         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
19656         __aligned__ in attribute.
19657         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
19658         (gregset_t): Likewise.
19659
19660 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19661
19662         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
19663         * sysdeps/x86_64/64/Implies-after: Here.  New file.
19664         * sysdeps/x86_64/x32/Implies-after: New file.
19665
19666 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19667
19668         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
19669         and access return value for _dl_profile_fixup.  Use R10_LP to
19670         load frame size.
19671
19672 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19673
19674         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
19675
19676 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19677
19678         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
19679         * sysdeps/x86_64/x32/sysdep.h: New file.
19680
19681 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19682
19683         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
19684         * sysdeps/x86_64/setjmp.S: Likewise.
19685
19686 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19687
19688         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
19689         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
19690         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
19691         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
19692         remove unused global constant.
19693
19694 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
19695
19696         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
19697         include of <not-cancel.h>.
19698
19699 2012-05-15  Roland McGrath  <roland@hack.frob.com>
19700
19701         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
19702
19703 2012-05-15  Jeff Law  <law@redhat.com>
19704             Andreas Jaeger  <aj@suse.de>
19705
19706         [BZ #13594]
19707         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
19708         out from...
19709         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
19710         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
19711         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
19712         code changing __hst_map_handle.map.
19713
19714 2012-05-15  Roland McGrath  <roland@hack.frob.com>
19715
19716         * configure.in (sysnames): Look for Implies-before and Implies-after
19717         files.
19718         * configure: Regenerated.
19719
19720 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19721
19722         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
19723         8-byte data alignment with LP_SIZE alignment.
19724
19725 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19726
19727         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
19728         into R10_LP.
19729
19730 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19731
19732         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
19733
19734 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19735
19736         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
19737         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
19738         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
19739         Likewise.
19740         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
19741
19742 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19743
19744         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
19745         (stackinfo_sub_sp): Likewise.
19746
19747 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19748
19749         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
19750         RAX_LP.
19751
19752 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19753
19754         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
19755         into R*_LP.
19756
19757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19758
19759         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
19760         sizes into R*_LP.
19761
19762 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19763
19764         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
19765
19766 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19767
19768         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
19769         into R11_LP and load __x86_64_shared_cache_size_half into
19770         R8_LP.
19771
19772 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19773
19774         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
19775         R8_LP.
19776
19777 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19778
19779         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
19780         logb for POWER7.
19781         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
19782         logbf for POWER7.
19783         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
19784         logbl for POWER7.
19785         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
19786         powerpc32/power7/fpu/s_logb.c via #include.
19787         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
19788         powerpc32/power7/fpu/s_logbf.c via #include.
19789         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
19790         powerpc32/power7/fpu/s_logbl.c via #include.
19791
19792 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
19793
19794         * README.libm: Remove file.
19795
19796 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19797
19798         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
19799         count for x32.  Use R*_LP and omit operand-size suffix.
19800
19801 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19802
19803         * shlib-versions: Move x86_64-.*-linux.* entries to ...
19804         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
19805         * sysdeps/x86_64/x32/shlib-versions: New file.
19806
19807 2012-05-14  Roland McGrath  <roland@hack.frob.com>
19808
19809         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
19810         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
19811         Use _dl_fatal_printf instead.
19812
19813 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
19814
19815         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
19816         set if not set by the user.  Do not allow for being unset.
19817         * sysdeps/unix/sysv/linux/configure: Regenerated.
19818
19819 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19820
19821         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
19822         the `q' suffix from lea and replace .quad with ASM_ADDR.
19823
19824 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19825
19826         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
19827         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
19828         instead of $17.
19829         (PTR_DEMANGLE): Likewise.
19830
19831 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19832
19833         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
19834         (LP_OP): Likewise.
19835         (ASM_ADDR): Likewise.
19836         (RAX_LP): Likewise.
19837         (RBP_LP): Likewise.
19838         (RBX_LP): Likewise.
19839         (RCX_LP): Likewise.
19840         (RDI_LP): Likewise.
19841         (RSI_LP): Likewise.
19842         (RSP_LP): Likewise.
19843         (R8_LP): Likewise.
19844         (R9_LP): Likewise.
19845         (R10_LP): Likewise.
19846         (R10_LP): Likewise.
19847         (R11_LP): Likewise.
19848         (R12_LP): Likewise.
19849         (R13_LP): Likewise.
19850         (R14_LP): Likewise.
19851         (R15_LP): Likewise.
19852
19853 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19854
19855         * sysdeps/x86_64/x32/dl-machine.h: New file.
19856
19857 2012-05-14  Andreas Jaeger  <aj@suse.de>
19858
19859         * manual/Makefile (subdir): Remove export of subdir.
19860         (all): Remove target.
19861         (.PHONY): Remove all from list.
19862         (mkinstalldirs): Remove.
19863         (.PHONY): Remove installdirs from list.
19864         ($(inst_infodir)/libc.info): Use make-target-directory.
19865         (installdirs): Remove.
19866         (subdir_%): Remove.
19867         (glibc-targets): Remove.
19868         (lib): Remove.
19869         (stubs): Remove.
19870         ($(objpfx)stubs ../po/manual.pot): Remove.
19871         ($(objpfx)stamp%): Remove.
19872         (make-target-directory): Remove.
19873         (subdir_install): Remove.
19874         (routines): Remove.
19875         (aux): Remove.
19876         (sources): Remove.
19877         (objects): Remove.
19878         (headers): Remove.
19879
19880         [BZ #13750]
19881         * manual/.gitignore: Remove, it's not needed anymore.
19882         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
19883         all files in it.
19884         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
19885         directory.
19886         (texis): Renamed to $(objpfx)texis.
19887         (texis-path): New, contains path to generated files.
19888         (chapters.%): Use texis-path for complete path, add extra argument
19889         libc-texinfo.sh.
19890         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
19891         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
19892         (summary,texi, stamp-summary): Use complete path of
19893         files. Generate files in build dir.
19894         (dir-add.texi): Build in build dir.
19895         (libm-err.texi,stamp-libm-err): Likewise.
19896         (version.texi, stamp-version): Likewise.
19897         (.%c.texi): Likewise.
19898         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
19899         (mostlyclean): Remove target.
19900         (realclean): Remove target.
19901         (generated): Add new variable with contents from mostlyclean and
19902         realclean, remove entries duplicated in common-mostlyclean, add
19903         stamp-libm-err and stamp-version.
19904         (generated-dirs): Add libc directory.
19905         ($(inst_infodir)/libc.info): Install files from build dir.
19906
19907         * manual/install.texi (Configuring and compiling): Adjust since
19908         the info files are not part of the tar ball anymore.
19909
19910 2012-05-14  Andreas Jaeger  <aj@suse.de>
19911
19912         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
19913         variable.
19914
19915 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
19916
19917         [BZ #13717]
19918         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
19919         to 2.2.0 where earlier.
19920         * sysdeps/unix/sysv/linux/configure: Regenerated.
19921         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
19922         Remove conditional code.
19923         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
19924         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
19925         Remove conditional code.
19926         [!__NR_lchown]: Likewise.
19927         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19928         [__NR_lchown]: Likewise.
19929         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
19930         comment referencing __ASSUME_LCHOWN_SYSCALL.
19931         * sysdeps/unix/sysv/linux/i386/sigaction.c
19932         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19933         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19934         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
19935         Remove conditional code.
19936         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
19937         (__protocol_available): Remove #if 0 code.
19938         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
19939         conditional code.
19940         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
19941         * sysdeps/unix/sysv/linux/kernel-features.h
19942         (__ASSUME_GETCWD_SYSCALL): Don't define.
19943         (__ASSUME_REALTIME_SIGNALS): Likewise.
19944         (__ASSUME_PREAD_SYSCALL): Likewise.
19945         (__ASSUME_PWRITE_SYSCALL): Likewise.
19946         (__ASSUME_POLL_SYSCALL): Likewise.
19947         (__ASSUME_LCHOWN_SYSCALL): Likewise.
19948         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
19949         non-SPARC.
19950         (__ASSUME_SIOCGIFNAME): Don't define.
19951         (__ASSUME_MSG_NOSIGNAL): Likewise.
19952         (__ASSUME_SENDFILE): Define unconditionally.
19953         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
19954         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
19955         conditional code.
19956         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
19957         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
19958         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
19959         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19960         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
19961         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
19962         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
19964         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19965         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
19967         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19968         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
19970         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19971         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
19973         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19974         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
19976         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19977         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
19979         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19980         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
19982         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19983         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
19985         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19986         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19987         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
19988         Remove conditional code.
19989         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19990         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
19991         Remove conditional code.
19992         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19993         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
19994         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
19995         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
19996         Remove conditional code.
19997         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19998         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
19999         Remove conditional code.
20000         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20001         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
20002         Remove conditional code.
20003         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20004         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20005         Remove conditional code.
20006         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20007         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20008         Remove conditional code.
20009         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20010         * sysdeps/unix/sysv/linux/sh/pwrite64.c
20011         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20012         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20013         * sysdeps/unix/sysv/linux/sigaction.c
20014         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20015         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20016         * sysdeps/unix/sysv/linux/sigpending.c
20017         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20018         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20019         * sysdeps/unix/sysv/linux/sigprocmask.c
20020         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20021         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20022         * sysdeps/unix/sysv/linux/sigsuspend.c
20023         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20024         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20025         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
20026         (__libc_missing_rt_sigs): Remove.
20027         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
20028         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
20029         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
20030         Remove conditional code.
20031         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
20032         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
20033         return 1.
20034         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
20035         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
20036         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
20037         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
20038
20039 2012-05-14  Andreas Jaeger  <aj@suse.de>
20040
20041         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
20042         it's not used in glibc.
20043         (__coshm1): Likewise.
20044         (__acosh1p): Likewise.
20045         (__sgn): Likewise.
20046
20047         * manual/string.texi (Copying and Concatenation): Add missing
20048         variable in concat example.
20049         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
20050
20051 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20052
20053         [BZ #14103]
20054         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
20055         __builtin_clzl with __builtin_clzll.
20056
20057 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20058
20059         [BZ #14104]
20060         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
20061         libc_freeres_ptr.
20062
20063 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20064
20065         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
20066         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
20067         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
20068         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
20069
20070 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
20071
20072         * NEWS: Update ia64 info.
20073
20074 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
20075
20076         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
20077         used as bcopy.
20078
20079 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
20080
20081         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
20082         * sysdeps/unix/syscalls.list (dup3): Likewise.
20083         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
20084         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
20085
20086 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20087
20088         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
20089         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
20090
20091 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20092
20093         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
20094         thread pointer.
20095         (TLS_IE): Use mov/add instead of movq/addq to load thread
20096         pointer.
20097         (TLS_GD_PREFIX): New.
20098         (TLS_GD): Use it.
20099
20100 2012-05-11  David S. Miller  <davem@davemloft.net>
20101
20102         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
20103         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
20104         (_FPU_SETCW): Likewise.
20105
20106 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20107
20108         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
20109         is 32-byte aligned.
20110
20111 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
20112
20113         [BZ #11837]
20114         * iconvdata/gb18030.c: Update tables.
20115         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
20116         characters specially.
20117         (BODY for TO_LOOP): Add encoding of missing ranges.
20118
20119 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
20120
20121         [BZ #13673]
20122         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
20123         * sysdeps/mach/hurd/dup3.c: Likewise.
20124         * sysdeps/mach/hurd/readlinkat.c: Likewise.
20125         * sysdeps/powerpc/memmove.c:: Likewise.
20126
20127 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20128
20129         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
20130         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
20131
20132 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20133
20134         * elf/elf.h (R_X86_64_RELATIVE64): New.
20135         (R_X86_64_NUM): Updated.
20136         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20137         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
20138         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
20139         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
20140         tst-quad1pie tst-quad2pie
20141         (modules-names): Add tst-quadmod1 tst-quadmod2.
20142         ($(objpfx)tst-quad1): New dependency.
20143         ($(objpfx)tst-quad2): Likewise.
20144         ($(objpfx)tst-quad1pie): Likewise.
20145         ($(objpfx)tst-quad2pie): Likewise.
20146         * sysdeps/x86_64/tst-quad1.c: New file.
20147         * sysdeps/x86_64/tst-quad1pie.c: New file.
20148         * sysdeps/x86_64/tst-quad2.c: Likewise.
20149         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
20150         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
20151         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
20152         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
20153         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
20154
20155 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20156
20157         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
20158         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
20159         * streams/stropts.h (t_scalar_t): Define type.
20160
20161         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
20162         (_PATH_PRESERVE): Set to "/var/lib".
20163         (_PATH_RWHODIR): Set to "/var/spool/rwho".
20164
20165         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
20166         instead of int.
20167
20168         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
20169         if __dir_mkfile succeeded.
20170
20171         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
20172         checking for _hurd_dtablesize.  Unlock it right after having
20173         finished _hurd_dtable allocation.
20174
20175 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20176
20177         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
20178         * sysdeps/mach/hurd/configure: Regenerated.
20179         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
20180         special-casing to...
20181         * sysdeps/gnu/configure.in: ... this new file.
20182         * sysdeps/unix/sysv/linux/configure: Regenerated.
20183         * sysdeps/gnu/configure: New generated file.
20184
20185         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
20186         for Linux: use nsec instead of usec, as well as:
20187         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
20188         members of type struct timespec.
20189         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
20190         New macros.
20191         (struct stat64): Likewise.
20192         (_STATBUF_ST_NSEC): New macro.
20193         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
20194
20195         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20196         __strtoul_internal rather than strtoul.
20197
20198 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20199
20200         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
20201         and reject them.
20202
20203 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20204
20205         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
20206         which preserves existing values.
20207         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
20208
20209 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20210
20211         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
20212         TIMEOUT values.  Return EINVAL for NFDS values either negative or
20213         greater than FD_SETSIZE.
20214
20215 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20216
20217         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
20218         allocated, call __vm_protect to finish enabling the existing space, and
20219         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
20220         allocate the remainder.
20221
20222 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20223
20224         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
20225         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
20226
20227 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20228
20229         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
20230         sysdeps/mach/hurd/readlink.c.
20231
20232         * posix/tst-sysconf.c (posix_options): Only use
20233         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
20234         _POSIX_SYNCHRONIZED_IO when they are defined
20235         * sysdeps/mach/hurd/bits/posix_opt.h:
20236         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
20237         (_XOPEN_REALTIME): Undefine macro.
20238         (_XOPEN_REALTIME_THREADS): Undefine macro.
20239         (_XOPEN_SHM): Undefine macro.
20240         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
20241         macro to -1.
20242         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
20243         macro to -1.
20244         (_POSIX_ASYNC_IO): Undefine macro.
20245         (_POSIX_PRIORITIZED_IO): Undefine macro.
20246         (_POSIX_SPIN_LOCKS): Define macro to -1.
20247
20248         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
20249         SA_NODEFER, SA_RESETHAND.
20250         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
20251         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
20252         F_DUPFD_CLOEXEC.
20253
20254 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20255
20256         * elf/Makefile (pldd-modules): Define unconditionally.
20257
20258 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20259
20260         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
20261
20262 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20263
20264         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
20265         Return ENOENT when name is empty.
20266         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
20267
20268 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20269
20270         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
20271
20272         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
20273
20274 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20275
20276         Fix mlock in all cases except non-readable pages.
20277         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
20278         instead of VM_PROT_ALL as parameter to __vm_wire function.
20279
20280         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
20281         (__mkdir): When path is `/', just fail with EEXIST.
20282         * sysdeps/mach/hurd/mkdirat.c: Likewise.
20283
20284 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20285
20286         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
20287         <sys/uio.h> (for writev).
20288         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
20289         and <sys/param.h> (for MIN).
20290
20291 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20292
20293         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
20294         REQUESTED_TIME.  Properly set the remaining time and return EINTR
20295         if interrupted.
20296
20297 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20298
20299         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
20300         Depend on against $(link-rpcuserlibs).
20301
20302 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20303
20304         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
20305         (__libc_stack_end): Do not use attribute_relro.
20306         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
20307         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
20308         to libthread-provided value.
20309         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
20310         attribute_relro.
20311
20312 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20313
20314         [BZ #3748]
20315         * bits/libc-lock.h (__libc_once_get): New macro.
20316         * sysdeps/mach/bits/libc-lock.h: Likewise.
20317         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
20318         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
20319         instead of using implementation details.
20320
20321         * libio/fileops.c: Unconditionally include <kernel-features.h>.
20322         * libio/freopen.c: Likewise.
20323         * libio/freopen64.c: Likewise.
20324         * misc/syslog.c: Likewise.
20325         * nscd/connections.c: Likewise.
20326         * nscd/netgroupcache.c: Likewise.
20327         * sysdeps/posix/getcwd.c: Likewise.
20328
20329 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20330
20331         * math/w_ilogbf.c: Add #include <limits.h>.
20332
20333 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20334
20335         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
20336         path instead of returning without unlocking.
20337
20338         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
20339         immediate-write ioctls.
20340         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
20341
20342 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20343
20344         * sysdeps/mach/hurd/i386/init-first.c (init): Use
20345         __builtin_frame_address instead of making assumptions about the
20346         location of the return address relative to DATA.  Force early load of
20347         the return address.
20348         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
20349         __builtin_frame_address.
20350
20351         dup3 for GNU Hurd.
20352         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
20353         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
20354         implement dup3 and do some further code clean-ups.
20355         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
20356         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
20357
20358 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20359
20360         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
20361
20362         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
20363         HURD_CRITICAL_END around holding _hurd_dtable_lock.
20364         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
20365         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
20366         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
20367         d->port.lock.
20368
20369         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
20370         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
20371         when handler == SIG_ERR, not when handler != SIG_ERR.
20372
20373 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20374
20375         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
20376         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
20377         definitions.
20378
20379         accept4 for GNU Hurd.
20380         * include/sys/socket.h (__libc_accept4): New prototype.
20381         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
20382         to implement __libc_accept4.
20383         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
20384         __libc_accept4.
20385         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
20386
20387         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
20388         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
20389         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
20390         signal-defines.sym.
20391
20392 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20393
20394         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
20395
20396 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20397
20398         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
20399         assertion on O_CLOEXEC flag.
20400         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
20401         * hurd/intern-fd.c: Likewise.
20402         * hurd/port2fd.c: Likewise.
20403
20404 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20405
20406         [BZ #3906]
20407         * bits/in.h (IPV6_PKTINFO): Define new macro.
20408         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
20409
20410 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20411
20412         [BZ #13954]
20413         [BZ #13955]
20414         [BZ #13956]
20415         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
20416         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
20417         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
20418         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
20419         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
20420         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
20421         * math/libm-test.inc (logb_test) : Additional logb tests.
20422
20423 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
20424             Andreas Jaeger  <aj@suse.de>
20425
20426         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
20427         * configure: Regenerated.
20428         * config.h.in (LINK_OBSOLETE_RPC): New macro.
20429         * config.make.in (link-obsolete-rpc): New substituted variable.
20430         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
20431         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
20432         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
20433         (shared-only-routines): Don't set it under [link-obsolete-rpc],
20434         so that libc.a contains the symbols.
20435         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
20436         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
20437         * sunrpc/auth_none.c: Likewise.
20438         * sunrpc/auth_unix.c: Likewise.
20439         * sunrpc/authdes_prot.c: Likewise.
20440         * sunrpc/authuxprot.c: Likewise.
20441         * sunrpc/clnt_gen.c: Likewise.
20442         * sunrpc/clnt_perr.c: Likewise.
20443         * sunrpc/clnt_raw.c: Likewise.
20444         * sunrpc/clnt_simp.c: Likewise.
20445         * sunrpc/clnt_tcp.c: Likewise.
20446         * sunrpc/clnt_udp.c: Likewise.
20447         * sunrpc/clnt_unix.c: Likewise.
20448         * sunrpc/des_crypt.c: Likewise.
20449         * sunrpc/des_soft.c: Likewise.
20450         * sunrpc/get_myaddr.c: Likewise.
20451         * sunrpc/key_call.c: Likewise.
20452         * sunrpc/key_prot.c: Likewise.
20453         * sunrpc/netname.c: Likewise.
20454         * sunrpc/pm_getmaps.c: Likewise.
20455         * sunrpc/pm_getport.c: Likewise.
20456         * sunrpc/pmap_clnt.c: Likewise.
20457         * sunrpc/pmap_prot.c: Likewise.
20458         * sunrpc/pmap_prot2.c: Likewise.
20459         * sunrpc/pmap_rmt.c: Likewise.
20460         * sunrpc/publickey.c: Likewise.
20461         * sunrpc/rpc_cmsg.c: Likewise.
20462         * sunrpc/rpc_common.c: Likewise.
20463         * sunrpc/rpc_dtable.c: Likewise.
20464         * sunrpc/rpc_prot.c: Likewise.
20465         * sunrpc/rpc_thread.c: Likewise.
20466         * sunrpc/rtime.c: Likewise.
20467         * sunrpc/svc.c: Likewise.
20468         * sunrpc/svc_auth.c: Likewise.
20469         * sunrpc/svc_raw.c: Likewise.
20470         * sunrpc/svc_run.c: Likewise.
20471         * sunrpc/svc_tcp.c: Likewise.
20472         * sunrpc/svc_udp.c: Likewise.
20473         * sunrpc/svc_unix.c: Likewise.
20474         * sunrpc/svcauth_des.c: Likewise.
20475         * sunrpc/xcrypt.c: Likewise.
20476         * sunrpc/xdr.c: Likewise.
20477         * sunrpc/xdr_array.c: Likewise.
20478         * sunrpc/xdr_float.c: Likewise.
20479         * sunrpc/xdr_intXX_t.c: Likewise.
20480         * sunrpc/xdr_mem.c: Likewise.
20481         * sunrpc/xdr_rec.c: Likewise.
20482         * sunrpc/xdr_ref.c: Likewise.
20483         * sunrpc/xdr_sizeof.c: Likewise.
20484         * sunrpc/xdr_stdio.c: Likewise.
20485
20486 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20487
20488         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
20489         change.  Update copyright years.
20490
20491 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
20492
20493         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
20494
20495 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
20496             Joseph Myers  <joseph@codesourcery.com>
20497             Paul Pluzhnikov  <ppluzhnikov@google.com>
20498
20499         [BZ #14012]
20500         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
20501         requiring rpcgen.
20502         [cross-compiling] (extra-libs): Likewise.
20503         [cross-compiling] (extra-libs-others): Likewise.
20504         [cross-compiling] (librpcsvc-routines): Likewise.
20505         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
20506         [cross-compiling] (omit-deps): Likewise.
20507         (sunrpc-CPPFLAGS): New variable.
20508         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
20509         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
20510         (cross-rpcgen-objs): New variable.
20511         (extra-objs): Append $(cross-rpcgen-objs).
20512         ($(cross-rpcgen-objs)): New rule.
20513         ($(objpfx)cross-rpcgen): Likewise.
20514         (rpcgen-cmd): Define to use $(built-program-file).  Expand
20515         comment.
20516         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
20517         ($(objpfx)x%.stmp): Likewise.
20518         * sunrpc/proto.h [IS_IN_build] (_): Define.
20519         [IS_IN_build] (_libc_intl_domainname): Likewise.
20520
20521 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20522
20523         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
20524         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
20525         and R_X86_64_TPOFF64.
20526
20527 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
20528
20529         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
20530         sysdeps/unix/sysv/syscalls.list.
20531         (stime): Likewise.
20532         (utime): Likewise.
20533         * sysdeps/unix/sysv/syscalls.list: Remove file.
20534
20535 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20536
20537         [BZ #3440]
20538         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
20539         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
20540         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
20541         (__LC_IDENTIFICATION): Make these macros useful in #if
20542         expressions, as required by C99.
20543
20544 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
20545
20546         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
20547         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
20548         after this.
20549
20550 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20551
20552         * stdlib/longlong.h: Updated from GCC.
20553
20554 2012-05-09  Andreas Jaeger  <aj@suse.de>
20555
20556         * nscd/nscd.c (run_modes): Make named enum, reorder so that
20557         default is first entry.
20558         (run_mode): Set type.
20559         (main): Remove informal message about syslog.
20560         (options): Fix typo.
20561
20562         [BZ #14053]
20563         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
20564         to asm.
20565         (lrint): Likewise.
20566         (llrintf): Likewise.
20567         (llrint): Likewise.
20568         (rint): Likewise.
20569         (rintf): Likewise.
20570         (nearbyint): Likewise.
20571         (nearbyintf): Likewise.
20572
20573 2012-05-09  Andreas Jaeger  <aj@suse.de>
20574             Pedro Alves  <palves@redhat.com>
20575
20576         * nscd/nscd.c (run_mode): Use enum.
20577         (main): Cleanup coding style issue.
20578
20579 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
20580             Andreas Jaeger  <aj@suse.de>
20581
20582         * nscd/nscd.c (go_background): Replaced with...
20583         (run_mode): ... this.
20584         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
20585         (options): Add -F --foreground.
20586         (main): Implement it.
20587         (parse_opt): Parse it.
20588
20589 2012-05-09  Andreas Jaeger  <aj@suse.de>
20590
20591         [BZ #14083]
20592         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
20593         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
20594         -Wconversion warning.
20595         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
20596         Likewise.
20597
20598 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
20599
20600         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
20601         == 0.
20602         (LC_ALL): Use macro-int-constant.
20603         (LC_COLLATE): Likewise.
20604         (LC_CTYPE): Likewise.
20605         (LC_MESSAGES): Likewise.
20606         (LC_MONETARY): Likewise.
20607         (LC_NUMERIC): Likewise.
20608         (LC_TIME): Likewise.
20609         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
20610         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
20611         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20612         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
20613         Specify type.
20614         [C99-based standards] (float_t): Expect type.
20615         [C99-based standards] (double_t): Expect type.
20616         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
20617         type.
20618         [C99-based standards] (HUGE_VALL): Likewise.
20619         [C99-based standards] (INFINITY): Likewise.
20620         [C99-based standards] (NAN): Likewise.
20621         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
20622         [C99-based standards] (FP_NAN): Likewise.
20623         [C99-based standards] (FP_NORMAL): Likewise.
20624         [C99-based standards] (FP_SUBNORMAL): Likewise.
20625         [C99-based standards] (FP_ZERO): Likewise.
20626         [C99-based standards] (FP_FAST_FMA): Use
20627         optional-macro-int-constant.  Specify type.  Require == 1.
20628         [C99-based standards] (FP_FAST_FMAF): Likewise.
20629         [C99-based standards] (FP_FAST_FMAL): Likewise.
20630         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
20631         [C99-based standards] (FP_ILOGBNAN): Likewise.
20632         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
20633         Specify type.
20634         [C99-based standards] (MATH_ERREXCEPT): Likewise.
20635         [C99-based standards] (math_errhandling): Specify type.
20636         [ISO99 || ISO11] (signgam): Do not allow.
20637         [non-C99-based standards] (copysignf): Do not allow.
20638         [non-C99-based standards] (exp2f): Likewise.
20639         [non-C99-based standards] (log2f): Likewise.
20640         [non-C99-based standards] (modff): Allow.
20641         [non-C99-based standards] (erff): Do not allow.
20642         [non-C99-based standards] (erfcf): Likewise.
20643         [non-C99-based standards] (gammaf): Likewise.
20644         [non-C99-based standards] (hypotf): Likewise.
20645         [non-C99-based standards] (j0f): Likewise.
20646         [non-C99-based standards] (j1f): Likewise.
20647         [non-C99-based standards] (jnf): Likewise.
20648         [non-C99-based standards] (lgammaf): Likewise.
20649         [non-C99-based standards] (tgammaf): Likewise.
20650         [non-C99-based standards] (y0f): Likewise.
20651         [non-C99-based standards] (y1f): Likewise.
20652         [non-C99-based standards] (ynf): Likewise.
20653         [non-C99-based standards] (isnanf): Likewise.
20654         [non-C99-based standards] (acoshf): Likewise.
20655         [non-C99-based standards] (asinhf): Likewise.
20656         [non-C99-based standards] (atanhf): Likewise.
20657         [non-C99-based standards] (cbrtf): Likewise.
20658         [non-C99-based standards] (expm1f): Likewise.
20659         [non-C99-based standards] (ilogbf): Likewise.
20660         [non-C99-based standards] (log1pf): Likewise.
20661         [non-C99-based standards] (logbf): Likewise.
20662         [non-C99-based standards] (nextafterf): Likewise.
20663         [non-C99-based standards] (remainderf): Likewise.
20664         [non-C99-based standards] (rintf): Likewise.
20665         [non-C99-based standards] (scalbf): Likewise.
20666         [non-C99-based standards] (copysignl): Likewise.
20667         [non-C99-based standards] (exp2l): Likewise.
20668         [non-C99-based standards] (log2l): Likewise.
20669         [non-C99-based standards] (modfl): Allow.
20670         [non-C99-based standards] (erfl): Do not allow.
20671         [non-C99-based standards] (erfcl): Likewise.
20672         [non-C99-based standards] (gammal): Likewise.
20673         [non-C99-based standards] (hypotl): Likewise.
20674         [non-C99-based standards] (j0l): Likewise.
20675         [non-C99-based standards] (j1l): Likewise.
20676         [non-C99-based standards] (jnl): Likewise.
20677         [non-C99-based standards] (lgammal): Likewise.
20678         [non-C99-based standards] (tgammal): Likewise.
20679         [non-C99-based standards] (y0l): Likewise.
20680         [non-C99-based standards] (y1l): Likewise.
20681         [non-C99-based standards] (ynl): Likewise.
20682         [non-C99-based standards] (isnanl): Likewise.
20683         [non-C99-based standards] (acoshl): Likewise.
20684         [non-C99-based standards] (asinhl): Likewise.
20685         [non-C99-based standards] (atanhl): Likewise.
20686         [non-C99-based standards] (cbrtl): Likewise.
20687         [non-C99-based standards] (expm1l): Likewise.
20688         [non-C99-based standards] (ilogbl): Likewise.
20689         [non-C99-based standards] (log1pl): Likewise.
20690         [non-C99-based standards] (logbl): Likewise.
20691         [non-C99-based standards] (nextafterl): Likewise.
20692         [non-C99-based standards] (remainderl): Likewise.
20693         [non-C99-based standards] (rintl): Likewise.
20694         [non-C99-based standards] (scalbl): Likewise.
20695         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20696         [non-C99-based standards] (FP_*): Do not allow.
20697         [C99-based standards] (FP_*): Change to
20698         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
20699         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
20700         allow.
20701         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
20702         (SIG_ERR): Likewise.
20703         [X/Open-based standards] (SIG_HOLD): Likewise.
20704         (SIG_IGN): Likewise.
20705         (SIGABRT): Use macro-int-constant.  Specify type.  Require
20706         positive value.
20707         (SIGFPE): Likewise.
20708         (SIGILL): Likewise.
20709         (SIGINT): Likewise.
20710         (SIGSEGV): Likewise.
20711         (SIGTER): Likewise.
20712         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
20713         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
20714         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
20715         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
20716         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
20717         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
20718         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
20719         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
20720         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
20721         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
20722         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
20723         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
20724         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
20725         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
20726         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
20727         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
20728         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
20729         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
20730         [X/Open-based standards] (SIGTRAP): Likewise.
20731         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
20732         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
20733         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
20734         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
20735         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
20736         allow.
20737
20738 2012-05-08  Ian Wienand  <ianw@vmware.com>
20739
20740         [BZ #14080]
20741         * time/tzset.c (__tzset_parse_tz): Update default rules for
20742         daylight time changes in the Energy Policy Act of 2005.
20743
20744 2012-05-09  Andreas Jaeger  <aj@suse.de>
20745
20746         [BZ #13983]
20747         * elf/ldconfig.c (parse_conf): Change string to make clear that
20748         ldconfig only issued a warning if ld.so.conf does not exist.
20749
20750 2012-05-08  David S. Miller  <davem@davemloft.net>
20751
20752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
20753         movxtod instead of popping the value on the stack.
20754
20755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20756
20757 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
20758
20759         * config.h.in: Add HAVE_ARM_PCS_VFP.
20760
20761 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
20762
20763         [BZ #13979]
20764         * include/features.h: Warn if user requests __FORTIFY_SOURCE
20765         checking but the checks are disabled for any reason.
20766
20767 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20768
20769         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
20770         and ELF64_R_TYPE with ELFW(R_TYPE).
20771
20772 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
20773
20774         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
20775         (ulimit): Likewise.
20776
20777         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
20778         (settimeofday): Likewise.
20779
20780 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
20781
20782         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
20783         a struct th_u2 inside the union, and move tu_block/tu_code into
20784         a new th_u3 union of tu_block/tu_code inside of that.  Move
20785         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
20786         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
20787         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
20788         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
20789         (th_stuff): Change to th_u1.tu_stuff.
20790         (th_data): Define.
20791         (th_msg): Change to th_u1.th_u2.tu_data.
20792
20793 2012-05-07  David S. Miller  <davem@davemloft.net>
20794
20795         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20796
20797         [BZ #14074]
20798         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
20799         (SETUP_PIC_REG): Use it.
20800         (SETUP_PIC_REG_LEAF): Use it.
20801
20802 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
20803
20804         [BZ #13885]
20805         [BZ #13923]
20806         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20807         USE_AS_EXPM1L.
20808         (EXPL_FINITE): Likewise.
20809         (FLDLOG): Likewise.
20810         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
20811         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
20812         e_expl.S.
20813         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20814         USE_AS_EXPM1L.
20815         (EXPL_FINITE): Likewise.
20816         (FLDLOG): Likewise.
20817         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
20818         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
20819         e_expl.S.
20820         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
20821         test of -max_value argument for long double.
20822         * sysdeps/i386/fpu/libm-test-ulps: Update.
20823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20824
20825 2012-05-06  David S. Miller  <davem@davemloft.net>
20826
20827         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
20828         quad soft-float symbols whose references which are compiler
20829         generated.
20830         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
20831
20832 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
20833
20834         [BZ #13884]
20835         [BZ #13914]
20836         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20837         USE_AS_EXP10L.
20838         (EXPL_FINITE): Likewise.
20839         (FLDLOG): Likewise.
20840         (c0): Likewise.
20841         (c1): Likewise.
20842         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
20843         Adjust comments for base varying.
20844         (__expl_finite): Change alias to EXPL_FINITE.
20845         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
20846         e_expl.S.
20847         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
20848         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
20849         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
20850         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
20851         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20852         USE_AS_EXP10L.
20853         (EXPL_FINITE): Likewise.
20854         (FLDLOG): Likewise.
20855         (c0): Likewise.
20856         (c1): Likewise.
20857         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
20858         Adjust comments for base varying.
20859         (__expl_finite): Change alias to EXPL_FINITE.
20860         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
20861         tests for bugs.
20862         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20863
20864         [BZ #14064]
20865         * math/libm-test.inc (check_float_internal): Correct ulp
20866         calculation for subnormal expected results.
20867
20868 2012-05-06  Andreas Jaeger  <aj@suse.de>
20869
20870         * Makeconfig (+math-flags): New, set to -frounding-math.
20871         (+cflags): Add +math-flags so that all of glibc gets compiled with
20872         it.
20873
20874         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
20875
20876 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
20877
20878         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
20879         Disable one test.
20880
20881         [BZ #13787]
20882         [BZ #13922]
20883         [BZ #14036]
20884         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
20885         (__ieee754_expl): Allow for and saturate large arguments.
20886         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
20887         (u_threshold): Likewise.
20888         (__exp): Call __ieee754_exp before checking for overflow and
20889         underflow.
20890         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
20891         (u_threshold): Likewise.
20892         (__expf): Call __ieee754_expf before checking for overflow and
20893         underflow.
20894         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
20895         (u_threshold): Likewise.
20896         (__expl): Call __ieee754_expl before checking for overflow and
20897         underflow.
20898         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
20899         (__ieee754_expl): Allow for and saturate large arguments.
20900         * math/libm-test.inc (exp_test): Add another test.  Do not allow
20901         missing overflow exception on overflow.
20902         (expm1_test): Do not allow missing overflow exception on overflow.
20903
20904         * sysdeps/i386/fpu/e_expl.c: Move to ...
20905         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
20906         rather than using inline asm.
20907         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
20908         * sysdeps/x86_64/fpu/e_expl.S: Copy from
20909         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
20910
20911         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
20912         (nice): Likewise.
20913         (poll): Likewise.
20914         (signal): Likewise.
20915         (time): Likewise.
20916         (times): Likewise.
20917
20918 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
20919
20920         * sysdeps/unix/syscalls.list (adjtime): Add entry from
20921         sysdeps/unix/common/syscalls.list.
20922         (fchmod): Likewise.
20923         (fchown): Likewise.
20924         (ftruncate): Likewise.
20925         (getrusage): Likewise.
20926         (gettimeofday): Likewise.
20927         (setpgid): Likewise.
20928         (setregid): Likewise.
20929         (setreuid): Likewise.
20930         (sigaction): Likewise.
20931         (truncate): Likewise.
20932         (vhangup): Likewise.
20933         * sysdeps/unix/common/syscalls.list: Remove file.
20934         * sysdeps/unix/bsd/Implies: Don't include unix/common.
20935         * sysdeps/unix/sysv/linux/Implies: Likewise.
20936
20937 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20938
20939         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
20940         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
20941         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
20942         Moved to ...
20943         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
20944         Here.
20945         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
20946         to ...
20947         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
20948         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
20949         to ...
20950         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
20951         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
20952         to ...
20953         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
20954         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
20955         to ...
20956         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
20957         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
20958         to ...
20959         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
20960         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
20961         to ...
20962         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
20963         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
20964         to ...
20965         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
20966         Here.
20967         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
20968         to ...
20969         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
20970         Here.
20971         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
20972         to ...
20973         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
20974         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
20975         Moved to ...
20976         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
20977         Here.
20978         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
20979         to ...
20980         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
20981
20982 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
20983
20984         * sysdeps/unix/common/bits/dirent.h: Remove file.
20985         * sysdeps/unix/common/bits/fcntl.h: Likewise.
20986
20987         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
20988         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
20989         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
20990         * sysdeps/unix/bsd/isatty.c: Likewise.
20991         * sysdeps/unix/bsd/tcdrain.c: Likewise.
20992         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
20993         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
20994
20995 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20996
20997         [BZ #13563]
20998         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
20999         long double comparison inaccuracies.
21000         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
21001         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21002
21003 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
21004
21005         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
21006         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
21007
21008 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21009
21010         [BZ #14049]
21011         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
21012         nonzero digits before rounding a hex value.
21013         * stdlib/tst-strtod.c (tests): Add another test.
21014
21015 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21016
21017         * sysdeps/s390/fpu/libm-test-ulps: Update.
21018
21019 2012-05-03  Andreas Jaeger  <aj@suse.de>
21020
21021         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
21022         does not get optimized out.
21023         (malloc_opt_barrier): New.
21024
21025 2012-05-03  Andreas Jaeger  <aj@suse.de>
21026             Roland McGrath  <roland@hack.frob.com>
21027
21028         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
21029         intermediate file deletion.
21030         (generated): Add .symlist files.
21031
21032 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
21033
21034         [BZ #13775]
21035         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
21036         Redirect under this condition.
21037         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21038         [__USE_GNU] (__dprintf_chk): Not under this condition.
21039         [__USE_GNU] (__vdprintf_chk): Likewise.
21040         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
21041         under this condition.
21042         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21043         [__USE_XOPEN2K8] (dprintf): Define under this condition.
21044         [__USE_XOPEN2K8] (vdprintf): Likewise.
21045         [__USE_GNU] (__dprintf_chk): Not under this condition.
21046         [__USE_GNU] (__vdprintf_chk): Likewise.
21047         [__USE_GNU] (dprintf): Likewise.
21048         [__USE_GNU] (vdprintf): Likewise.
21049
21050 2012-05-03  Roland McGrath  <roland@hack.frob.com>
21051
21052         * elf/Makefile (common-generated): Set this instead of generated for
21053         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
21054         $(all-built-dso)-derived lists.
21055
21056 2012-05-03  Andreas Jaeger  <aj@suse.de>
21057
21058         * sysdeps/i386/fpu/libm-test-ulps: Update.
21059
21060         * FAQ: Removed.
21061         * FAQ.in: Likewise.
21062         * scripts/gen-FAQ.pl: Likewise.
21063         * manual/install.texi (Installation): Point to online location of
21064         FAQ.
21065         * Makefile (files-for-dist): Remove FAQ.
21066         (FAQ): Remove.
21067
21068 2012-05-02  Allan McRae  <allan@archlinux.org>
21069
21070         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
21071         (LDFLAGS-reldepmod5.so): Likewise.
21072         (LDFLAGS-reldep6mod1.so): Likewise.
21073         (LDFLAGS-reldep6mod4.so): Likewise.
21074         (LDFLAGS-reldep8mod3.so): Likewise.
21075         (LDFLAGS-unload4mod1.so): Likewise.
21076         (LDFLAGS-unload4mod2.so): Likewise.
21077         (LDFLAGS-tst-initorder): Likewise.
21078         (LDFLAGS-tst-initordera2.so): Likewise.
21079         (LDFLAGS-tst-initordera3.so): Likewise.
21080         (LDFLAGS-tst-initordera4.so): Likewise.
21081         (LDFLAGS-tst-initorderb2.so): Likewise.
21082         (LDFLAGS-noload): Likewise.
21083         (LDFLAGS-next): Likewise.
21084         (LDFLAGS-order2mod1.so): Likewise.
21085         (LDFLAGS-order2mod2.so): Likewise.
21086         (LDFLAGS-tst-initorder2): Likewise.
21087         (LDFLAGS-tst-initorder2a.so): Likewise.
21088         (LDFLAGS-tst-initorder2b.so): Likewise.
21089         (LDFLAGS-tst-initorder2c.so): Likewise.
21090         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
21091
21092 2012-05-02  David S. Miller  <davem@davemloft.net>
21093
21094         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21095
21096 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
21097
21098         [BZ #14055]
21099         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
21100
21101 2012-05-02  Andreas Jaeger  <aj@suse.de>
21102
21103         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
21104         since we manipulate rounding mode.
21105         (CPPFLAGS-test-idouble.c): Likewise.
21106         (CPPFLAGS-test-ifloat.c): Likewise.
21107         (CFLAGS-test-ldouble.c): Likewise.
21108         (CFLAGS-test-double.c): Likewise.
21109         (CFLAGS-test-float.c): Likewise.
21110         (CFLAGS-test-misc.c): Likewise.
21111         (CFLAGS-test-test-fenv.c): Likewise.
21112
21113 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21114
21115         [BZ #2550]
21116         [BZ #2570]
21117         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
21118         comparisons to determine direction to adjust input.
21119
21120 2012-05-01  Roland McGrath  <roland@hack.frob.com>
21121
21122         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
21123         output to the target.
21124
21125         * scripts/localplt.awk: New file.
21126         * elf/Makefile ($(objpfx)check-localplt): Target removed.
21127         (check-localplt-CFLAGS): Variable removed.
21128         ($(all-built-dso:=.jmprel)): New static pattern rule.
21129         (generated): Add those targets.
21130         (localplt-built-dso): New variable.
21131         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
21132
21133         * elf/check-localplt.c: File removed.
21134
21135         * scripts/check-execstack.awk: New file.
21136         * elf/Makefile ($(objpfx)check-execstack): Target removed.
21137         (check-execstack-CFLAGS): Variable removed.
21138         ($(objpfx)check-execstack.h): Target removed.
21139         ($(objpfx)execstack-default): New target.
21140         (generated): Add that instead of check-execstack.h.
21141         ($(all-built-dso:=.phdr)): New static pattern rule.
21142         (generated): Add those targets.
21143         * elf/check-execstack.c: File removed.
21144
21145         * scripts/check-textrel.awk: New file.
21146         * elf/Makefile ($(objpfx)check-textrel): Target removed.
21147         (check-textrel-CFLAGS): Variable removed.
21148         (all-built-dso): Use := to define.o
21149         ($(all-built-dso:=.dyn)): New static pattern rule.
21150         (generated): Add those targets.
21151         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
21152         * config.make.in (READELF): New substituted variable.
21153         * elf/check-textrel.c: File removed.
21154
21155 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21156
21157         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21158         allow.
21159         * conform/data/ctype.h-data [C99-based standards] (isblank):
21160         Expect function.
21161         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
21162         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
21163         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21164         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
21165         Specify type.  Require positive value.
21166         (EILSEQ): Likewise.
21167         (ERANGE): Likewise.
21168         [ISO || POSIX] (EILSEQ): Do not expect.
21169         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
21170         Specify type.  Require positive value.
21171         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
21172         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
21173         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
21174         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
21175         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
21176         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
21177         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
21178         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
21179         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
21180         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
21181         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
21182         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
21183         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
21184         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
21185         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
21186         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
21187         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
21188         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
21189         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
21190         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
21191         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
21192         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
21193         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
21194         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
21195         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
21196         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
21197         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
21198         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
21199         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
21200         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
21201         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
21202         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
21203         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
21204         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
21205         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
21206         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
21207         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
21208         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
21209         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
21210         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
21211         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
21212         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
21213         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
21214         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
21215         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
21216         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
21217         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
21218         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
21219         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
21220         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
21221         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
21222         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
21223         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
21224         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
21225         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
21226         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
21227         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
21228         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
21229         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
21230         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
21231         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
21232         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
21233         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
21234         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
21235         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
21236         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
21237         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
21238         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
21239         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
21240         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
21241         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
21242         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
21243         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
21244         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
21245         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
21246         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
21247         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
21248         Require >= 2.
21249         (FLT_ROUNDS): Expect as macro, not constant.
21250         (FLT_MANT_DIG): Use macro-int-constant.
21251         (DBL_MANT_DIG): Likewise.
21252         (LDBL_MANT_DIG): Likewise.
21253         (FLT_DIG): Likewise.
21254         (DBL_DIG): Likewise.
21255         (LDBL_DIG): Likewise.
21256         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
21257         (DBL_MIN_EXP): Likewise.
21258         (LDBL_MIN_EXP): Likewise.
21259         (FLT_MAX_EXP): Use macro-int-constant.
21260         (DBL_MAX_EXP): Likewise.
21261         (LDBL_MAX_EXP): Likewise.
21262         (FLT_MAX_10_EXP): Likewise.
21263         (DBL_MAX_10_EXP): Likewise.
21264         (LDBL_MAX_10_EXP): Likewise.
21265         (FLT_MAX): Use macro-constant.
21266         (DBL_MAX): Likewise.
21267         (LDBL_MAX): Likewise.
21268         (FLT_EPSILON): Use macro-constant.  Give upper bound.
21269         (DBL_EPSILON): Likewise.
21270         (LDBL_EPSILON): Likewise.
21271         (FLT_MIN): Likewise.
21272         (DBL_MIN): Likewise.
21273         (LDBL_MIN): Likewise.
21274         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
21275         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
21276         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
21277         [ISO11] (FLT_HAS_SUBNORM): Likewise.
21278         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
21279         [ISO11] (DBL_DECIMAL_DIG): Likewise.
21280         [ISO11] (FLT_DECIMAL_DIG): Likewise.
21281         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
21282         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
21283         [ISO11] (FLT_TRUE_MIN): Likewise.
21284         [ISO11] (LDBL_TRUE_MIN): Likewise.
21285         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21286         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
21287         (SCHAR_MIN): Use macro-int-constant.  Specify type.
21288         (SCHAR_MAX): Likewise.
21289         (UCHAR_MAX): Likewise.
21290         (CHAR_MIN): Likewise.
21291         (CHAR_MAX): Likewise.
21292         (MB_LEN_MAX): Use macro-int-constant.
21293         (SHRT_MIN): Use macro-int-constant.  Specify type.
21294         (SHRT_MAX): Likewise.
21295         (USHRT_MAX): Likewise.
21296         (INT_MAX): Likewise.
21297         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
21298         bound negative.
21299         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21300         bound with "U".
21301         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21302         bound with "L".
21303         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
21304         bound negative.  Suffix upper bound with "L".
21305         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21306         bound with "UL".
21307         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
21308         Specify type.
21309         [C99-based standards] (LLONG_MAX): Likewise.
21310         [C99-based standards] (ULLONG_MAX): Likewise.
21311         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
21312         == 0.
21313         [ISO11] (max_align_t): Require type.
21314         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21315
21316         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
21317         from $CFLAGS, without defining away __attribute__ calls.
21318         (checknamespace): Use $CFLAGS_namespace.
21319
21320         * conform/conformtest.pl (@keywords): Only include C99 keywords
21321         for standards based on C99 or C11.
21322
21323         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
21324         Disable tests.
21325         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
21326         UNIX98]: Likewise.
21327
21328         * conform/conformtest.pl: Handle "macro-int-constant" and test for
21329         usability of symbols in #if.
21330
21331         * conform/conformtest.pl: If macro or constant types start
21332         "promoted:", expect the symbol to be of the following type
21333         promoted by the integer promotions.
21334
21335         * conform/conformtest.pl: Parse all "constant" and "macro" lines
21336         in one place.  Also handle "macro-constant".
21337
21338         * conform/conformtest.pl: Only accept expected macro values with
21339         "==".  Parse all "macro" lines in one place.
21340         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
21341
21342         * conform/conformtest.pl: Handle braced types on "constant" lines
21343         instead of handling "typed-constant".
21344         * conform/data/signal.h-data: Use "constant" instead of
21345         "typed-constant".
21346
21347         * conform/conformtest.pl: Handle "optional-" at start of lines in
21348         one place rather than duplicating several cases.  Handle each
21349         format of "macro" line with initial "optional-".
21350
21351         * conform/conformtest.pl: Only accept expected constant or
21352         optional-constant values with "==".  Parse all "constant" lines in
21353         one place.  Parse all "optional-constant" lines in one place.
21354         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
21355         * conform/data/fmtmsg.h-data: Likewise.
21356         * conform/data/netinet/in.h-data: Likewise.
21357         * conform/data/tar.h-data: Likewise.
21358         * conform/data/limits.h-data: Use "==" form on "constant" and
21359         "optional-constant" lines.
21360
21361         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
21362         Use -std=c99 for XOPEN2K.
21363         (@knownproblems): Remove.
21364         (newtoken): Don't check %isknown.
21365
21366         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
21367         Do not expect macro.
21368         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
21369         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
21370         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
21371         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
21372         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
21373         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
21374         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
21375         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
21376         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
21377         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
21378         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
21379         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
21380         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
21381         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
21382         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
21383         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
21384         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
21385         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
21386         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
21387         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
21388         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
21389         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
21390         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
21391         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
21392         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
21393         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
21394         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
21395         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
21396         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
21397         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
21398         [XPG3] (acosh): Likewise.
21399         [XPG3] (asinh): Likewise.
21400         [XPG3] (atanh): Likewise.
21401         [XPG3] (cbrt): Likewise.
21402         [XPG3] (expm1): Likewise.
21403         [XPG3] (ilogb): Likewise.
21404         [XPG3] (log1p): Likewise.
21405         [XPG3] (logb): Likewise.
21406         [XPG3] (nextafter): Likewise.
21407         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
21408         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
21409         [XPG3] (remainder): Likewise.
21410         [XPG3] (rint): Likewise.
21411         [XPG3 || XPG4 || UNIX98] (round): Likewise.
21412         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
21413         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
21414         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
21415         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
21416         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
21417         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
21418         [UNIX98 || XOPEN2K] (scalb): Expect.
21419         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
21420         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
21421         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
21422         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
21423         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
21424         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
21425         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
21426         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
21427         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
21428         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
21429         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
21430         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
21431         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
21432         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
21433         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
21434         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
21435         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
21436         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
21437         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
21438         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
21439         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
21440         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
21441         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
21442         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
21443         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
21444         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
21445         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
21446         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
21447         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
21448         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
21449         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
21450         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
21451         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
21452         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
21453         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
21454         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
21455         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
21456         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
21457         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
21458         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
21459         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
21460         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
21461         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
21462         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
21463         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
21464         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
21465         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
21466         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
21467         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
21468         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
21469         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
21470         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
21471         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
21472         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
21473         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
21474         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
21475         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
21476         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
21477         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
21478         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
21479         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
21480         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
21481         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
21482         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
21483         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
21484         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
21485         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
21486         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
21487         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
21488         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
21489         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
21490         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
21491         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
21492         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
21493         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
21494         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
21495         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
21496         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
21497         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
21498         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
21499         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
21500         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
21501         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
21502         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
21503         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
21504         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
21505         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
21506         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
21507         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
21508         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
21509         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
21510         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
21511         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
21512         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
21513         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
21514         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
21515         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
21516         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
21517         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
21518         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
21519         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
21520         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
21521         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
21522         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
21523         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
21524         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
21525         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
21526         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
21527         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
21528         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
21529         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
21530         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
21531         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
21532         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
21533         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
21534         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
21535         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
21536         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
21537         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
21538         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
21539         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
21540         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
21541         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
21542         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
21543         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
21544         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
21545         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
21546         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
21547         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
21548         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
21549         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
21550         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
21551         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
21552         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
21553         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
21554         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
21555         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
21556
21557         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
21558         _XOPEN_SOURCE_EXTENDED for XPG4.
21559
21560         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
21561
21562         * Makeconfig (localtime): Remove variable.
21563         (inst_localtime-file): Likewise.
21564
21565 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21566
21567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
21568         Update.
21569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21570         Update.
21571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
21572         Update.
21573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
21574         Update.
21575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
21576         Update.
21577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
21578         Update.
21579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21580         Update.
21581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
21582         Update.
21583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
21584         Update.
21585
21586 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21587
21588         [BZ #2550]
21589         [BZ #2570]
21590         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
21591         comparisons to determine direction to adjust input.
21592         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
21593         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
21594         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
21595         Likewise.
21596         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
21597         Likewise.
21598         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
21599         Likewise.
21600         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
21601         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
21602         Likewise.
21603         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
21604         Likewise.
21605         * math/libm-test.inc (nexttoward_test): Add more tests.
21606
21607 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21608
21609         [BZ #14040]
21610         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
21611         in version GLIBC_2.1, not GLIBC_2.0.
21612         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
21613         Likewise.
21614
21615 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
21616
21617         [BZ #13942]
21618         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
21619         (1 - x) * (1 + x).
21620         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
21621         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
21622         * math/libm-test.inc (acos_test): Add more tests.
21623         (asin_test): Likewise.
21624         * sysdeps/i386/fpu/libm-test-ulps: Update.
21625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21626
21627         [BZ #14034]
21628         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
21629         of square root.
21630         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
21631         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
21632         * math/libm-test.inc (acos_test_tonearest): New function.
21633         (acos_test_towardzero): Likewise.
21634         (acos_test_downward): Likewise.
21635         (acos_test_upward): Likewise.
21636         (asin_test_tonearest): Likewise.
21637         (asin_test_towardzero): Likewise.
21638         (asin_test_downward): Likewise.
21639         (asin_test_upward): Likewise.
21640         (main): Call the new functions.
21641         * sysdeps/i386/fpu/libm-test-ulps: Update.
21642         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21643
21644         [BZ #13884]
21645         [BZ #13924]
21646         * math/e_exp10.c: Include <float.h>.
21647         (__ieee754_exp10): Handle underflow here rather than multiplying
21648         large negative argument by M_LN10.
21649         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
21650         of __ieee754_expf.
21651         * math/e_exp10l.c: Include <float.h>.
21652         (__ieee754_exp10l): Handle underflow here rather than multiplying
21653         large negative argument by M_LN10l.
21654         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
21655         spurious overflow exception on underflow.
21656
21657 2012-04-29  Marek Polacek  <polacek@redhat.com>
21658
21659         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
21660         (__fortify_function): New macro.
21661         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
21662         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
21663         __extern_always_inline.
21664         * libio/bits/stdio2.h: Likewise.
21665         * libio/bits/stdio.h: Likewise.
21666         * string/string.h: Likewise.
21667         * string/bits/string3.h: Likewise.
21668         * include/stdio.h: Likewise.
21669         * stdlib/bits/stdlib.h: Likewise.
21670         * stdlib/stdlib.h: Likewise.
21671         * rt/bits/mqueue2.h: Likewise.
21672         * rt/mqueue.h: Likewise.
21673         * posix/bits/unistd.h: Likewise.
21674         * posix/unistd.h: Likewise.
21675         * io/bits/poll2.h: Likewise.
21676         * io/bits/fcntl2.h: Likewise.
21677         * io/fcntl.h: Likewise.
21678         * io/sys/poll.h: Likewise.
21679         * misc/bits/syslog.h: Likewise.
21680         * misc/bits/syslog-ldbl.h: Likewise.
21681         * misc/sys/syslog.h: Likewise.
21682         * socket/bits/socket2.h: Likewise.
21683         * socket/sys/socket.h: Likewise.
21684         * debug/tst-chk1.c: Likewise.
21685         * wcsmbs/bits/wchar2.h: Likewise.
21686         * wcsmbs/bits/wchar-ldbl.h: Likewise.
21687         * wcsmbs/wchar.h: Likewise.
21688
21689 2012-04-29  Andreas Jaeger  <aj@suse.de>
21690
21691         * Makerules (tests): Remove enable-check-abi protection.
21692         (check-abi-warn): Remove.
21693         (check-abi-%): Remove check-abi-warn usage.
21694
21695         * configure.in: Remove check-abi configure option.
21696         * configure: Regenerated.
21697         * config.make.in (enable-check-abi): Remove.
21698
21699 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
21700
21701         [BZ #14033]
21702         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
21703         double functions to double *_finite functions.
21704
21705         [BZ #13941]
21706         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
21707         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
21708         LDBL_MIN_EXP.
21709         * stdio-common/Makefile (tests): Add tst-sprintf3.
21710         * stdio-common/tst-sprintf3.c: New file.
21711
21712         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
21713         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
21714
21715 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
21716
21717         * conform/conformtest.pl: Remove duplicate typed-constant
21718         handling.
21719
21720 2012-04-28  David S. Miller  <davem@davemloft.net>
21721
21722         * Makerules (%.abilist): Add vpath on sysdep_dirs.
21723         (check-abi-%): Remove AWK script prerequisite and explicit
21724         abilist directory.
21725         (check-abi): Rewrite to just diff the symlist with the abilist.
21726         (config-tls, config-abi-config): Delete, no longer used.
21727         (update-abi-%): Remove AWK script and explicit abilist directory.
21728         (update-abi): Rewrite to simply compare and conditionally copy the
21729         symlist and the sysdep abilist file.  Remove update-abi-config
21730         checks.
21731         * abilist/ld.abilist: Remove.
21732         * abilist/libBrokenLocale.abilist: Remove.
21733         * abilist/libanl.abilist: Remove.
21734         * abilist/libcrypt.abilist: Remove.
21735         * abilist/libdl.abilist: Remove.
21736         * abilist/librt.abilist: Remove.
21737         * abilist/libthread_db.abilist: Remove.
21738         * abilist/libutil.abilist: Remove.
21739         * scripts/extract-abilist.awk: Remove.
21740         * scripts/merge-abilist.awk: Remove.
21741         * sysdeps/generic/libcidn.abilist: New file.
21742         * sysdeps/generic/libnss_compat.abilist: New file.
21743         * sysdeps/generic/libnss_db.abilist: New file.
21744         * sysdeps/generic/libnss_dns.abilist: New file.
21745         * sysdeps/generic/libnss_files.abilist: New file.
21746         * sysdeps/generic/libnss_hesiod.abilist: New file.
21747         * sysdeps/generic/libnss_nis.abilist: New file.
21748         * sysdeps/generic/libnss_nisplus.abilist: New file.
21749         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
21750         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
21751         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
21752         file.
21753         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
21754         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
21755         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
21756         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
21757         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
21758         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
21759         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
21760         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
21761         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
21762         file.
21763         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
21764         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
21765         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
21766         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
21767         file.
21768         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
21769         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
21770         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
21771         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
21772         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
21773         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
21774         file.
21775         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
21776         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
21777         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
21778         file.
21779         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
21780         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
21781         New file.
21782         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
21783         New file.
21784         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
21785         New file.
21786         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
21787         New file.
21788         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
21789         New file.
21790         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
21791         New file.
21792         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
21793         New file.
21794         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
21795         New file.
21796         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
21797         New file.
21798         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
21799         New file.
21800         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
21801         New file.
21802         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
21803         New file.
21804         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
21805         New file.
21806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
21807         file.
21808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
21809         New file.
21810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
21811         New file.
21812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
21813         file.
21814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
21815         New file.
21816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
21817         New file.
21818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
21819         file.
21820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
21821         New file.
21822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
21823         New file.
21824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
21825         New file.
21826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
21827         New file.
21828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
21829         New file.
21830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
21831         New file.
21832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
21833         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
21834         file.
21835         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
21836         New file.
21837         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
21838         file.
21839         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
21840         file.
21841         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
21842         file.
21843         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
21844         file.
21845         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
21846         file.
21847         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
21848         New file.
21849         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
21850         file.
21851         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
21852         file.
21853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
21854         New file.
21855         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
21856         file.
21857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
21858         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
21859         file.
21860         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
21861         New file.
21862         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
21863         file.
21864         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
21865         file.
21866         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
21867         file.
21868         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
21869         file.
21870         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
21871         file.
21872         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
21873         New file.
21874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
21875         file.
21876         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
21877         file.
21878         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
21879         New file.
21880         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
21881         file.
21882         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
21883         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
21884         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
21885         file.
21886         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
21887         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
21888         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
21889         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
21890         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
21891         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
21892         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
21893         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
21894         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
21895         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
21896         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
21897         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
21898         file.
21899         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
21900         New file.
21901         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
21902         file.
21903         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
21904         file.
21905         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
21906         file.
21907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
21908         file.
21909         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
21910         file.
21911         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
21912         New file.
21913         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
21914         New file.
21915         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
21916         file.
21917         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
21918         New file.
21919         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
21920         file.
21921         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
21922         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
21923         file.
21924         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
21925         New file.
21926         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
21927         file.
21928         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
21929         file.
21930         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
21931         file.
21932         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
21933         file.
21934         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
21935         file.
21936         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
21937         New file.
21938         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
21939         New file.
21940         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
21941         file.
21942         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
21943         New file.
21944         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
21945         file.
21946
21947 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
21948
21949         * conform/conformtest.pl: Fix typo in handling typed-constant from
21950         allow-header.
21951
21952 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
21953
21954         * README: Cut down references to pre-2.6 Linux kernels and
21955         Linuxthreads.  Update lists of configurations in libc and ports
21956         and sort alphabetically.  Say "or newer" with Linux kernel version
21957         requirements.
21958
21959         * config.h.in [IS_IN_build]: Allow compiling without optimization.
21960
21961 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
21962
21963         [BZ #887]
21964         * math/libm-test.inc (logb_test_downward): New test to expose
21965         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
21966         rounding mode.
21967
21968 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
21969
21970         [BZ #14027]
21971         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
21972         to be done.
21973         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
21974         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
21975
21976 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
21977
21978         * sysdeps/unix/i386/brk.S: Remove file.
21979         * sysdeps/unix/i386/dl-brk.S: Likewise.
21980         * sysdeps/unix/i386/pipe.S: Likewise.
21981         * sysdeps/unix/i386/sigreturn.S: Likewise.
21982         * sysdeps/unix/i386/syscall.S: Likewise.
21983         * sysdeps/unix/i386/vfork.S: Likewise.
21984         * sysdeps/unix/i386/wait.S: Likewise.
21985
21986         * sysdeps/unix/common/tcsendbrk.c: Move to ...
21987         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
21988
21989         * configure.in (arm*-none*): Do not allow without
21990         --enable-hacker-mode.
21991         (netbsd*): Remove case setting base_os.
21992         (386bsd*): Likewise.
21993         (freebsd*): Likewise.
21994         (bsdi*): Likewise.
21995         (osf*): Likewise.
21996         (sunos*): Likewise.
21997         (ultrix*): Likewise.
21998         (newsos*): Likewise.
21999         (dynix*): Likewise.
22000         (*bsd*): Likewise.
22001         (sysv*): Likewise.
22002         (isc*): Likewise.
22003         (esix*): Likewise.
22004         (sco*): Likewise.
22005         (minix*): Likewise.
22006         (irix4*): Likewise.
22007         (irix6*): Likewise.
22008         (solaris[2-9]*): Likewise.
22009         (none): Likewise.
22010         * configure: Regenerated.
22011
22012 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22013
22014         [BZ #11521]
22015         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
22016         overflow or cancellation in calculating denominator.
22017         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
22018         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
22019         down expression to avoid unexpected rounding in newer GCCs.
22020         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
22021
22022 2012-04-26  David S. Miller  <davem@davemloft.net>
22023
22024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
22025         long-double compat symbols.
22026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
22028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
22029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
22030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
22031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
22032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
22033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
22034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
22035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
22036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
22037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
22038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
22039
22040 2012-04-25  David S. Miller  <davem@davemloft.net>
22041
22042         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
22043         HWCAP_* values only after the memory barriers have been defined.
22044         (atomic_full_barrier): Define.
22045         (atomic_read_barrier): Define.
22046         (atomic_write_barrier): Define.
22047
22048 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22049
22050         * shlib-versions: Add libgcc_s version information.
22051         * sysdeps/generic/libgcc_s.h: Remove.
22052         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
22053         libgcc_s.h.
22054         * sysdeps/gnu/unwind-resume.c: Likewise.
22055         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
22056
22057 2012-04-25  David S. Miller  <davem@davemloft.net>
22058
22059         * sysdeps/unix/sparc/brk.S: Delete.
22060         * sysdeps/unix/sparc/dl-brk.S: Delete.
22061         * sysdeps/unix/sparc/pipe.S: Delete.
22062         * sysdeps/unix/sparc/sysdep.S: Delete.
22063         * sysdeps/unix/sparc/sysdep.h: Delete.
22064         * sysdeps/unix/sparc/vfork.S: Delete.
22065         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
22066         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
22067         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
22068         ret_ERRVAL, r0, r1, MOVE): Define.
22069         (JUMPTARGET): Remove.
22070         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
22071         sysdeps/unix/sparc/sysdep.h
22072         (ENTRY, END): Remove.
22073         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22074
22075 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
22076
22077         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
22078         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
22079         -DIS_IN_build.
22080
22081         * timezone/README: Update upstream location and email address for
22082         tzcode and tzdata.
22083         * timezone/zdump.c: Update from tzcode 2012b.
22084         * timezone/zic.c: Likewise.
22085
22086         * configure.in (libc_cv_as_needed): Remove test.
22087         * configure: Regenerated.
22088         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
22089         conditional definition.
22090         [$(have-as-needed) != yes] (no-as-needed): Likewise.
22091         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
22092         * config.make.in (have-as-needed): Remove variable.
22093
22094 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
22095             Paul Pluzhnikov  <ppluzhnikov@google.com>
22096
22097         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
22098         strings correctly.
22099
22100 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
22101
22102         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
22103         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
22104         * sysdeps/sh/strlen.S: Likewise.
22105
22106 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22107
22108         * sysdeps/unix/fork.S: Remove file.
22109         * sysdeps/unix/i386/fork.S: Likewise.
22110         * sysdeps/unix/sparc/fork.S: Likewise.
22111
22112         * sysdeps/unix/system.c: Remove file.
22113         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
22114
22115         * sysdeps/unix/getegid.S: Remove file.
22116         * sysdeps/unix/geteuid.S: Likewise.
22117
22118 2012-04-24  Roland McGrath  <roland@hack.frob.com>
22119
22120         * scripts/check-localplt.awk: New file.
22121         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
22122         of diff.
22123         * scripts/data/localplt-generic.data: Add a comment.
22124
22125         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
22126         NODE when __dir_mkfile failed.
22127         * sysdeps/mach/hurd/symlinkat.c: Likewise.
22128         Reported by Ludovic Courtès <ludo@gnu.org>.
22129
22130 2012-04-24  Andreas Jaeger  <aj@suse.de>
22131
22132         * Makerules (common-clean): Also remove gen-as-const-headers
22133         files.
22134
22135 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22136
22137         * Makerules (native-compile): Do not change working directory for
22138         build.  Use $(OUTPUT_OPTION) in command.
22139         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
22140
22141 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22142
22143         [BZ #13886]
22144         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
22145         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
22146         * math/libm-test.inc (floor_test): Add more tests.
22147         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
22148
22149 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22150
22151         * sysdeps/unix/getdents.c: Remove file.
22152         * sysdeps/unix/sysv/getdents.c: Likewise.
22153         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
22154
22155         * sysdeps/unix/syscalls.list (madvise): Add syscall from
22156         sysdeps/unix/mman/syscalls.list.
22157         (mmap): Likewise.
22158         (mprotect): Likewise.
22159         (msync): Likewise.
22160         (munmap): Likewise.
22161         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
22162         * sysdeps/unix/mman/syscalls.list: Remove.
22163         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
22164
22165         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
22166         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
22167         * configure: Regenerated.
22168         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
22169         $(libgcc_s_suffix).
22170         * config.make.in (libgcc_s_suffix): Remove variable.
22171
22172 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
22173
22174         * sysdeps/unix/sysv/gethostname.c: Move to ...
22175         * sysdeps/posix/gethostname.c: ... here.
22176
22177         * sysdeps/unix/execve.S: Remove file.
22178
22179         * sysdeps/unix/_exit.S: Remove file.
22180
22181 2012-04-23  Andreas Jaeger  <aj@suse.de>
22182
22183         [BZ #13739]
22184         * manual/Makefile: Remove make dist support, there's no
22185         need for a stand-alone documentation tar ball.
22186         (TEXI2DVI): Define always, it's not in Makeconfig.
22187         (dist): Removed.
22188         (tar-it): Removed.
22189         (edition): Removed.
22190         (glibc-doc-$(edition).tar): Removed
22191         (%.Z): Removed.
22192         (%.gz): Removed.
22193         (%.uu): Removed.
22194         (ETAGS): Remove, it's in Makeconfig.
22195         (move-if-change): Remove, it's in Makeconfig.
22196
22197 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22198
22199         [BZ #13970]
22200         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
22201         (strtod, strtof, strtold, strtol, strtoul, strtoq)
22202         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
22203         (strtod_l, strtof_l, strtold_l): Remove __wur.
22204         It is not necessarily an error to ignore strtol's return value.
22205         One can reliably look at the stored endptr to decide whether
22206         the number had valid syntax.
22207
22208 2012-04-21  Andreas Jaeger  <aj@suse.de>
22209
22210         [BZ #13739]
22211         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
22212
22213 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
22214
22215         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
22216         * sysdeps/unix/sysv/Versions: Remove file.
22217
22218 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
22219
22220         [BZ #13927]
22221         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22222
22223 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
22224
22225         [BZ #7064]
22226         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
22227         version from __vm86.
22228
22229 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
22230
22231         * sysdeps/unix/common/lxstat.c: Remove file.
22232         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
22233
22234         * sysdeps/unix/sysv/Makefile: Remove file.
22235
22236         * sysdeps/unix/sysv/direct.h: Remove file.
22237
22238         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
22239         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
22240         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
22241         * sysdeps/unix/sysv/bits/signum.h: Likewise.
22242         * sysdeps/unix/sysv/bits/stat.h: Likewise.
22243         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
22244         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
22245
22246         * sysdeps/unix/sysv/setrlimit.c: Remove file.
22247
22248         * sysdeps/unix/xmknod.c: Remove file.
22249         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
22250
22251         * sysdeps/unix/sysv/settimeofday.c: Remove file.
22252
22253         * sysdeps/unix/sysv/i386/time.S: Remove file.
22254
22255         * sysdeps/unix/fxstat.c: Remove file.
22256         * sysdeps/unix/xstat.c: Likewise.
22257         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
22258
22259         * sysdeps/unix/sysv/sigaction.c: Remove file.
22260
22261         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
22262         (sysdep_headers): Remove variable.
22263         [termio.h not in sysdep_headers] (generated): Likewise.
22264         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
22265         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
22266         * sysdeps/unix/sysv/tcdrain.c: Likewise.
22267         * sysdeps/unix/sysv/tcflow.c: Likewise.
22268         * sysdeps/unix/sysv/tcflush.c: Likewise.
22269         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
22270         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
22271         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
22272         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
22273         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
22274
22275         * sysdeps/unix/siglist.c: Remove file.
22276
22277         * sysdeps/unix/getppid.S: Remove file.
22278
22279         * sysdeps/unix/mkdir.c: Remove file.
22280         * sysdeps/unix/rmdir.c: Likewise.
22281
22282 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
22283
22284         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
22285         ERR_MAX value.
22286         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
22287         errlist-compat value.
22288
22289 2012-04-18  David S. Miller  <davem@davemloft.net>
22290
22291         * sysdeps/generic/memcopy.h (reg_char): Delete.
22292         * debug/strcat_chk.c: Use char, not reg_char.
22293         * debug/strcpy_chk.c: Likewise.
22294         * debug/strncat_chk.c: Likewise.
22295         * debug/strncpy_chk.c: Likewise.
22296         * string/memchr.c: Likewise.
22297         * string/memrchr.c: Likewise.
22298         * string/rawmemchr.c: Likewise.
22299         * string/strcat.c: Likewise.
22300         * string/strchr.c: Likewise.
22301         * string/strchrnul.c: Likewise.
22302         * string/strcmp.c: Likewise.
22303         * string/strcpy.c: Likewise.
22304         * string/strncat.c: Likewise.
22305         * string/strncmp.c: Likewise.
22306         * string/strncpy.c: Likewise.
22307
22308 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22309
22310         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
22311         __builtin_memcopy is called when src and dest ranges are known to not
22312         overlap.
22313
22314 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22315
22316         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
22317         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
22318         fwd_align_merge macro call.
22319         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
22320         bwd_align_merge macro call.
22321         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22322
22323 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22324
22325         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
22326         bwd_align_merge macros.
22327         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
22328         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
22329         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22330
22331 2012-04-18  David S. Miller  <davem@davemloft.net>
22332
22333         * sysdeps/sparc/sparc64/memcopy.h: Delete.
22334
22335 2012-04-18  Andreas Jaeger  <aj@suse.de>
22336
22337         [BZ# 6794]
22338         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
22339         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
22340         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22341
22342         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
22343         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
22344         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22345
22346         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
22347         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
22348         Adjust for changed ldbl-128 files.
22349
22350         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
22351         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
22352         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22353
22354 2012-04-17  David S. Miller  <davem@davemloft.net>
22355
22356         * sysdeps/sparc/sparc32/memcopy.h: Delete.
22357
22358 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
22359
22360         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
22361         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
22362         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
22363         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
22364         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
22365         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
22366
22367 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22368
22369         [BZ #6794]
22370         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
22371         * math/libm-test.inc: Add ilogb errno and exception tests.
22372         * math/w_ilogb.c: New file: ilogb wrapper.
22373         * math/w_ilogbf.c: New file: ilogbf wrapper.
22374         * math/w_ilogbl.c: New file: ilogbl wrapper.
22375         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
22376         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
22377         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
22378         exception being thrown with 0.0 as argument.
22379         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
22380         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
22381         exception being thrown with 0.0 as argument.
22382         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
22383         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
22384         exception being thrown with 0.0 as argument.
22385         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
22386         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
22387         exception being thrown with 0.0 as argument.
22388         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
22389         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
22390         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
22391         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
22392         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
22393         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
22394         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
22395         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
22396         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
22397
22398 2012-04-17  Petr Baudis  <pasky@ucw.cz>
22399
22400         * include/sys/uio.h: Change __vector to __iovec to avoid clash
22401         with altivec.
22402
22403 2012-04-16  Marek Polacek  <polacek@redhat.com>
22404
22405         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
22406
22407 2012-04-16  Marek Polacek  <polacek@redhat.com>
22408
22409         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
22410         operands of fdivp instruction.
22411
22412 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22413
22414         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
22415         * elf/tst-auditmod3b.c: Likewise.
22416         * elf/tst-auditmod4b.c: Likewise.
22417         * elf/tst-auditmod5b.c: Likewise.
22418         * elf/tst-auditmod6b.c: Likewise.
22419         * elf/tst-auditmod6c.c: Likewise.
22420         * elf/tst-auditmod7b.c: Likewise.
22421         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
22422         * sysdeps/x86_64/preconfigure.in: Likewise.
22423         * sysdeps/x86_64/preconfigure: Regenerated.
22424
22425 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22426
22427         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
22428         __ILP32__.
22429
22430 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
22431
22432         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
22433         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
22434
22435 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
22436
22437         [BZ #13973]
22438         * locale/iso-639.def: Fix gl language name. Spotted by
22439         Yaron Shahrabani.
22440
22441 2012-04-12  Roland McGrath  <roland@hack.frob.com>
22442
22443         [BZ #2074]
22444         * libio/libio.h (__io_write_fn): Update comment.
22445
22446 2012-04-12  Petr Baudis  <pasky@ucw.cz>
22447
22448         [BZ #2074]
22449         * stdio.texi (Hook Functions): The user provided writer function
22450         is not allowed to return -1.
22451
22452 2012-04-11  David S. Miller  <davem@davemloft.net>
22453
22454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22455
22456 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
22457
22458         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
22459         Add a leading slash to rtkaio.
22460
22461 2012-04-11  Jim Meyering  <meyering@redhat.com>
22462
22463         [BZ #11959]
22464         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
22465         It is not necessarily an error to ignore fwrite's return
22466         value.  One can reliably use ferror to test for errors after
22467         the fact.
22468
22469 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22470
22471         * bits/types.h (__snseconds_t): New type.
22472         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
22473
22474         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
22475         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22476         (__SNSECONDS_T_TYPE): Likewise.
22477         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22478         (__SNSECONDS_T_TYPE): Likewise.
22479         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22480         (__SNSECONDS_T_TYPE): Likewise.
22481
22482 2012-04-10  Andreas Jaeger  <aj@suse.de>
22483
22484         [BZ #2636]
22485         * manual/time.texi (Processor Time): Return type of times is
22486         elapsed real time since an arbitrary point in the past.
22487         (CPU Time): Move CLK_TCK from here...
22488         (Processor Time): ...to here.  Correct description.
22489         * manual/conf.texi (Constants for Sysconf): Correct description of
22490         _SC_CLK_TCK.
22491
22492 2012-04-10  David S. Miller  <davem@davemloft.net>
22493
22494         [BZ #13967]
22495         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
22496         where the is a gap between DT_REL(A) and DT_JMPREL.
22497
22498 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22499
22500         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
22501         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
22502         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
22503
22504 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22505
22506         * elf/dl-support.c (_dl_inhibit_cache): New variable.
22507         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
22508         (dl_main): Handle --inhibit-cache.
22509         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
22510         _dl_inhibit_cache.
22511         * elf/dl-load.c (_dl_map_object): Use it.
22512         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
22513
22514 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
22515
22516         [BZ #13872]
22517         * sysdeps/i386/fpu/e_powl.S (p78): New object.
22518         (__ieee754_powl): Saturate large exponents rather than testing for
22519         overflow of y*log2(x).
22520         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22521         * math/libm-test.inc (pow_test): Do not permit spurious overflow
22522         exceptions.
22523
22524         [BZ #11521]
22525         * math/s_ctan.c: Include <float.h>.
22526         (__ctan): Avoid internal overflow or cancellation in calculating
22527         denominator.
22528         * math/s_ctanf.c: Likewise.
22529         * math/s_ctanl.c: Likewise.
22530         * math/s_ctanh.c: Likewise.
22531         * math/s_ctanhf.c: Likewise.
22532         * math/s_ctanhl.c: Likewise.
22533         * math/libm-test.inc (ctan_test): Add more tests.
22534         (ctanh_test): Likewise.
22535         * sysdeps/i386/fpu/libm-test-ulps: Update.
22536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22537
22538 2012-04-09  Andreas Jaeger  <aj@suse.de>
22539
22540         [BZ #6894]
22541         * manual/filesys.texi (Directory Entries): Mention that d_namlen
22542         is an optional BSD extension.
22543
22544         [BZ #10254]
22545         * manual/stdio.texi (Opening Streams): Document additional fopen
22546         parameters.
22547
22548 2012-04-09  Roland McGrath  <roland@hack.frob.com>
22549
22550         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
22551         %eax without telling the compiler.
22552
22553 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
22554
22555         [BZ # 13963]
22556         * manual/install.texi: Use sourceware.org.
22557
22558 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
22559
22560         [BZ #13873]
22561         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
22562         (__ieee754_pow): Generate overflow and underflow using huge*huge
22563         and tiny*tiny rather than just returning constant infinity or zero
22564         for large exponents.
22565         * math/libm-test.inc (pow_test): Require overflow exceptions for
22566         applicable cases of large exponents.
22567
22568         [BZ #706]
22569         * sysdeps/i386/fpu/e_pow.S (p10): New object.
22570         (__ieee754_pow): Use iterative multiplication algorithm only for
22571         integer exponents with absolute value below 1024.  Check for odd
22572         integer exponents when using algorithm for real exponents.
22573         * math/libm-test.inc (pow_test): Add more tests.
22574         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22575
22576 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
22577
22578         [BZ #13705]
22579         * math/libm-test.inc (exp_test): Do not allow overflow exception
22580         on underflow test.
22581
22582 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
22583
22584         [BZ #13705]
22585         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
22586         instead of __kernel_standard_f.
22587
22588 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
22589
22590         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
22591         * sysdeps/x86_64/memset_chk.S: Likewise.
22592
22593 2012-04-08  Andreas Jaeger  <aj@suse.de>
22594
22595         [BZ #10153]
22596         * manual/startup.texi (Environment Access): Describe return value
22597         for putenv and setenv.
22598
22599         [BZ #6895]
22600         * manual/filesys.texi (Directory Entries): Add description for
22601         DT_LNK.
22602
22603         [BZ #6890]
22604         * manual/filesys.texi (Directory Entries): Clarify that it's file
22605         system not operating system in the description of DT_UNKNOWN.
22606
22607         [BZ #6578]
22608         * manual/syslog.texi (closelog): Fix reference, it's openlog.
22609
22610 2012-04-08  Stephen Compall  <s11@member.fsf.org>
22611
22612         [BZ #6649]
22613         * manual/llio.texi (Opening and Closing Files): Add cross
22614         reference to explain mode argument.
22615
22616 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
22617
22618         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
22619         * sysdeps/x86_64/memset_chk.S: Likewise.
22620
22621 2012-04-07  David S. Miller  <davem@davemloft.net>
22622
22623         * elf/elf.h (R_SPARC_WDISP10): Define.
22624         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
22625         R_SPARC_SIZE32.
22626         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
22627         R_SPARC_SIZE64 and R_SPARC_H34.
22628
22629 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
22630
22631         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
22632         conditions and remove no longer applicable assertion.
22633
22634 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22635
22636         * bits/byteswap.h: Include <features.h>.
22637         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
22638         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
22639
22640 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22641
22642         * bits/byteswap.h (__bswap_16): Removed.
22643         Include <bits/byteswap-16.h> to get __bswap_16.
22644         * sysdeps/i386/bits/byteswap.h: Likewise.
22645         * sysdeps/s390/bits/byteswap.h: Likewise.
22646         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22647         * bits/byteswap-16.h: New file.
22648         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22649         * sysdeps/s390/bits/byteswap-16.h: Likewise.
22650         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
22651         * string/Makefile (headers): Add bits/byteswap-16.h.
22652
22653 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
22654
22655         [BZ #13895]
22656         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
22657         extra indirection.
22658         * nss/Makefile (tests-static, tests): Add tst-nss-static.
22659         * nss/tst-nss-static.c: New.
22660
22661 2012-04-06  Robert Millan  <rmh@gnu.org>
22662
22663         [BZ #6486]
22664         * manual/llio.texi (File Position Primitive): lseek
22665         refers to WHENCE when it really means OFFSET.
22666
22667 2012-04-06  Andreas Jaeger  <aj@suse.de>
22668
22669         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
22670         strncmp declarations.
22671
22672         * abilist/libc.abilist: Add __poll and __ppoll.
22673
22674 2012-04-05  David S. Miller  <davem@davemloft.net>
22675
22676         * scripts/check-local-headers.sh: Accept a host triplet in the
22677         path matched by the exclude regexp.
22678
22679         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
22680         definition.
22681         * sysdeps/powerpc/powerpc32/dl-machine.h
22682         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
22683         * sysdeps/s390/s390-32/dl-machine.h
22684         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22685         * sysdeps/sparc/sparc32/dl-machine.h
22686         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22687         * sysdeps/sparc/sparc64/dl-machine.h
22688         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22689
22690         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
22691         lazy binding.
22692         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
22693         undefined symbol errors.
22694
22695         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
22696         DT_NEEDED entries.
22697
22698 2012-04-05  Michael Matz  <matz@suse.de>
22699
22700         [BZ #13592]
22701         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
22702
22703 2012-04-05  Andreas Jaeger  <aj@suse.de>
22704
22705         [BZ #13908]
22706         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
22707         comment.
22708
22709 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22710
22711         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
22712         which ROUND is no valid rounding mode.
22713
22714 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22715
22716         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
22717         read again.
22718         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
22719
22720 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22721
22722         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
22723         an exception using FPU order intentionally.
22724
22725 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22726
22727         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
22728         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
22729         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
22730         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
22731
22732 2012-04-05  Simon Josefsson  <simon@josefsson.org>
22733
22734         [BZ #12340]
22735         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
22736         EINVAL when BUFLEN is too smal.
22737
22738 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
22739
22740         [BZ #13553]
22741         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
22742         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
22743
22744 2012-04-03  Andreas Jaeger  <aj@suse.de>
22745
22746         [BZ #13938]
22747         * manual/setjmp.texi (System V contexts): Fix sentence.
22748
22749         [BZ #13926]
22750         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
22751         New macro for this case.
22752         [!__GNUC__] (__bswap_64): New inline function for this case.
22753         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22754         * bits/byteswap.h: Likewise.
22755         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
22756         ull, guard with __GLIBC_HAVE_LONG_LONG.
22757
22758         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
22759         __GLIBC_HAVE_LONG_LONG.
22760
22761         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
22762         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
22763
22764 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22765
22766         [BZ #13691]
22767         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
22768         inptr and inend, rather than using last_ch.
22769
22770 2012-04-02  David S. Miller  <davem@davemloft.net>
22771
22772         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
22773         * stdio-common/printf-parse.h (read_int): Change return type to
22774         'int', return -1 on INT_MAX overflow.
22775         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
22776         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
22777         overflows INT_MAX.  Check for overflow of in-format-string precision
22778         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
22779         SIZE_MAX not INT_MAX for integer overflow test.
22780         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
22781         skip the construct in the format string but do not record anything.
22782         * stdio-common/bug22.c: Adjust to test both width/prevision
22783         INT_MAX overflow as well as total length INT_MAX overflow.  Check
22784         explicitly for proper errno values.
22785
22786 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
22787
22788         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
22789         CHAR_MAX.
22790         * string/test-strcmp.c [! WIDE]: Likewise.
22791         * time/tst-mktime2.c: Likewise for INT_MAX.
22792         * string/test-string.h: #include <sys/param.h> for MIN.
22793
22794         * csu/init-first.c (__libc_init_first): Call __ctype_init.
22795         * sysdeps/i386/init-first.c (init): Likewise.
22796         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
22797         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
22798         * sysdeps/sh/init-first.c (init): Likewise.
22799
22800 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
22801
22802         * po/ru.po: Update from translation team.
22803         * po/vi.po: Likewise.
22804
22805 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22806
22807         * resolv/nss_dns/dns-host.c: Merge copyright years.
22808
22809 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22810
22811         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
22812         Optimize memcpy with prefetch if
22813         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
22814         src, dst pointers have unequal 16 byte alignments.
22815
22816 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
22817
22818         [BZ #13928]
22819         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
22820         from a CNAME entry and return the minimum ttl for the query.
22821         (gaih_getanswer_slice): Likewise.
22822
22823 2012-03-30  Jeff Law  <law@redhat.com>
22824
22825         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
22826         due to long keys.
22827         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
22828         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
22829
22830         * resolv/nss_dns/dns-host.c: Update copyright year.
22831
22832 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
22833
22834         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
22835         requests to save a system call.  Fix check that all bytes are sent.
22836
22837         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
22838         comments for sendmmsg.
22839
22840 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22841
22842         [BZ #13691]
22843         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
22844         with only 1 character between 0x0041 and 0x01b0.
22845         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
22846         * wcsmbs/tst-mbsnrtowcs.c: New file.
22847
22848 2012-03-29  David S. Miller  <davem@davemloft.net>
22849
22850         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
22851         small copies by hand.
22852
22853 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22854
22855         [BZ #13761]
22856         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
22857         _nss_compat_initgroups_dyn): Fall back to malloc/free
22858         for large group memberships.
22859
22860 2012-03-28  David S. Miller  <davem@davemloft.net>
22861
22862         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
22863         that branches into memcpy.
22864         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
22865         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
22866         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22867         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
22868         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
22869         bits.
22870         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
22871         implementation too.
22872         * sysdeps/sparc/mempcpy.S: New file.
22873
22874         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
22875         the IFUNC routine in the libc case.
22876         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
22877
22878         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
22879         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
22880         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
22881         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
22882         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
22883         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
22884         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
22885         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
22886
22887         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
22888         loop to 256 bytes instead of 64 bytes and fix test signedness.
22889
22890         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
22891         * sysdeps/sparc/sparc32/Makefile: rather than here...
22892         * sysdeps/sparc/sparc64/Makefile: and here.
22893
22894 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
22895
22896         * malloc/mallocbug.c: Avoid warnings about unused variables.
22897
22898 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
22899
22900         [BZ #13760]
22901         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
22902         in the right place. Discard and retry query if response is
22903         larger than input buffer size.
22904
22905 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
22906
22907         [BZ #369]
22908         [BZ #2678]
22909         [BZ #3866]
22910         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
22911         x for large integer exponent.
22912         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
22913         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
22914         sign of result as needed afterwards.
22915         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
22916         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
22917         result for underflowing pow the same as for overflow.
22918         (__kernel_standard_l): Handle powl overflow and underflow here
22919         rather than calling __kernel_standard.
22920         * math/libm-test.inc (pow_test): Add more tests.
22921
22922         [BZ #3868]
22923         [BZ #13879]
22924         [BZ #13910]
22925         [BZ #13911]
22926         [BZ #13912]
22927         [BZ #13913]
22928         [BZ #13915]
22929         [BZ #13916]
22930         [BZ #13917]
22931         [BZ #13918]
22932         [BZ #13919]
22933         [BZ #13920]
22934         [BZ #13921]
22935         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
22936         * sysdeps/ieee754/k_standard.c: Include <float.h>.
22937         (__kernel_standard_l): New function.
22938         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
22939         __kernel_standard.
22940         * math/w_acosl.c (__acosl): Likewise.
22941         * math/w_asinl.c (__asinl): Likewise.
22942         * math/w_atan2l.c (__atan2l): Likewise.
22943         * math/w_atanhl.c (__atanhl): Likewise.
22944         * math/w_coshl.c (__coshl): Likewise.
22945         * math/w_exp10l.c (__exp10l): Likewise.
22946         * math/w_exp2l.c (__exp2l): Likewise.
22947         * math/w_fmodl.c (__fmodl): Likewise.
22948         * math/w_hypotl.c (__hypotl): Likewise.
22949         * math/w_j0l.c (__j0l, __y0l): Likewise.
22950         * math/w_j1l.c (__j1l, __y1l): Likewise.
22951         * math/w_jnl.c (__jnl, __ynl): Likewise.
22952         * math/w_lgammal.c (__lgammal): Likewise.
22953         * math/w_log10l.c (__log10l): Likewise.
22954         * math/w_log2l.c (__log2l): Likewise.
22955         * math/w_logl.c (__logl): Likewise.
22956         * math/w_powl.c (__powl): Likewise.
22957         * math/w_remainderl.c (__remainderl): Likewise.
22958         * math/w_scalbl.c (sysv_scalbl): Likewise.
22959         * math/w_sinhl.c (__sinhl): Likewise.
22960         * math/w_sqrtl.c (__sqrtl): Likewise.
22961         * math/w_tgammal.c (__tgammal): Likewise.
22962         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
22963         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
22964         * math/libm-test.inc (acos_test): Add more tests.
22965         (acosh_test): Likewise.
22966         (asin_test): Likewise.
22967         (atanh_test): Likewise.
22968         (exp_test): Likewise.
22969         (exp10_test): Likewise.
22970         (exp2_test): Likewise.
22971         (expm1_test): Likewise.
22972         (lgamma_test): Likewise.
22973         (log_test): Likewise.
22974         (log10_test): Likewise.
22975         (log1p_test): Likewise.
22976         (log2_test): Likewise.
22977         (pow_test): Do not allow some spurious overflow exceptions.
22978         (sqrt_test): Add more tests.
22979         (tgamma_test): Likewise.
22980         (y0_test): Likewise.
22981         (y1_test): Likewise.
22982         (yn_test): Likewise.
22983
22984 2012-03-27  Anton Blanchard  <anton@samba.org>
22985
22986         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
22987         MAP_HUGETLB.
22988         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
22989         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
22990         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
22991
22992 2012-03-27  David S. Miller  <davem@davemloft.net>
22993
22994         * conform/Makefile: Run run-conformtest.sh using $(BASH).
22995
22996         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
22997         have-as-vis3 check.
22998
22999 2012-03-27  Andreas Jaeger  <aj@suse.de>
23000
23001         * sysdeps/x86_64/elf/configure.in: Moved to ...
23002         * sysdeps/x86_64/configure.in: ... here.
23003         * sysdeps/x86_64/elf/start.S: Moved to ...
23004         * sysdeps/x86_64/start.S: ... here.
23005         * sysdeps/x86_64/elf/configure: Delete.
23006
23007         * sysdeps/x86_64/configure.in: Merge contents from
23008         sysdeps/i386/configure.in (without i686 check).
23009
23010         * sysdeps/i386/elf/Versions: Merge into ...
23011         * sysdeps/i386/Versions: ... this.
23012         * sysdeps/i386/elf/Versions: Delete file.
23013         * sysdeps/i386/elf/start.S: Moved to ...
23014         * sysdeps/i386/start.S: ...here.
23015         * sysdeps/i386/elf/configure.in: Merge into...
23016         * sysdeps/i386/configure.in: ...here.
23017         * sysdeps/i386/elf/configure.in: Delete file.
23018         * sysdeps/i386/elf/configure: Delete file.
23019
23020         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
23021         * debug/backtracesyms.c: ... here.
23022         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
23023         * debug/backtracesymsfd.c: ... here.
23024         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
23025         * sysdeps/generic/ifunc-sel.h: ... here.
23026
23027         * sysdeps/unix/i386/start.c: Delete file.
23028         * sysdeps/unix/sparc/start.c: Delete file.
23029         * sysdeps/unix/start.c: Delete file.
23030
23031         * sysdeps/sh/elf/configure.in: Moved to ...
23032         * sysdeps/sh/configure.in: ... here.
23033         * sysdeps/sh/elf/start.S: Moved to ...
23034         * sysdeps/sh/start.S: ... here.
23035         * sysdeps/sh/elf/configure: Delete file.
23036
23037         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
23038         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
23039         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
23040         * sysdeps/powerpc/powerpc64/entry.h: ... here.
23041         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
23042         * sysdeps/powerpc/powerpc64/start.S: here.
23043         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
23044         * sysdeps/powerpc/powerpc64/Makefile: ... this.
23045         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
23046         * sysdeps/powerpc/powerpc64/configure.in: ... this.
23047         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
23048
23049         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
23050         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
23051         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
23052         * sysdeps/powerpc/powerpc32/start.S: ... here.
23053         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
23054         * sysdeps/powerpc/powerpc32/configure.in: ... this.
23055         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
23056
23057         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
23058         * sysdeps/powerpc/ifunc-sel.h: ... here.
23059         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
23060         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
23061
23062         * sysdeps/sparc/elf/configure.in: Moved to ...
23063         * sysdeps/sparc/configure.in: ... here.
23064         * sysdeps/sparc/elf/configure: Delete file.
23065         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
23066         * sysdeps/sparc/sparc32/start.S: ... here.
23067         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
23068         * sysdeps/sparc/sparc64/start.S: ... here.
23069         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
23070         * sysdeps/sparc/sparc32/Makefile: ... this.
23071         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
23072         * sysdeps/sparc/sparc64/Makefile: ... this.
23073
23074         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
23075         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
23076         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
23077         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
23078         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
23079         * sysdeps/s390/s390-32/setjmp.S: ... here.
23080         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
23081         * sysdeps/s390/s390-32/configure.in: ... here.
23082         * sysdeps/s390/s390-32/elf/configure: Delete file.
23083         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
23084         * sysdeps/s390/s390-32/start.S: ... here.
23085
23086         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
23087         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
23088         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
23089         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
23090         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
23091         * sysdeps/s390/s390-64/setjmp.S: ... here.
23092         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
23093         * sysdeps/s390/s390-64/configure.in: ... here
23094         * sysdeps/s390/s390-64/elf/configure: Delete file.
23095         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
23096         * sysdeps/s390/s390-64/start.S: ... here.
23097         * sysdeps/s390/s390-64/elf/configure: Delete.
23098
23099         * configure.in: Remove support for elf directories in sysdeps.
23100
23101         * configure: Regenerated.
23102         * sysdeps/i386/configure: Regenerated.
23103         * sysdeps/powerpc/powerpc32/configure: Regenerated.
23104         * sysdeps/powerpc/powerpc64/configure: Regenerated.
23105         * sysdeps/s390/s390-32/configure: Regenerated.
23106         * sysdeps/s390/s390-64/configure: Regenerated.
23107         * sysdeps/sh/configure: Regenerated.
23108         * sysdeps/sparc/configure: Regenerated.
23109         * sysdeps/x86_64/configure: Regenerated.
23110
23111 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
23112
23113         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23114
23115         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
23116         denormal result into account.
23117
23118 2012-03-25  Roland McGrath  <roland@hack.frob.com>
23119
23120         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
23121         Reported by Allan McRae <allan@archlinux.org>.
23122
23123 2012-03-23  Jeff Law  <law@redhat.com>
23124
23125         * nss/getnssent.c (__nss_getent): Fix typo.
23126
23127 2012-03-23  David S. Miller  <davem@davemloft.net>
23128
23129         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23130
23131 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
23132
23133         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
23134         to pad to uint64_t for each field.
23135         (dl_tls_index): Replace unsigned long with uint64_t.
23136
23137 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
23138         Paul Pluzhnikov  <ppluzhnikov@google.com>
23139
23140         [BZ #6528]
23141         * grp/Makefile (otherlibs): Don't set it.
23142         * inet/Makefile (otherlibs): Likewise.
23143         * login/Makefile (otherlibs): Likewise.
23144         * nscd/Makefile (otherlibs): Likewise.
23145         * posix/Makefile (otherlibs): Likewise.
23146         * pwd/Makefile (otherlibs): Likewise.
23147         * rt/Makefile (otherlibs): Likewise.
23148         * sunrpc/Makefile (otherlibs): Likewise.
23149         * nss/Makefile (otherlibs): Likewise.
23150         Add libnss_files to routines and static-only-routines.
23151         ($(objpfx)getent): Remove rule.
23152         * resolv/Makefile: Add libnss_dns and libresolv to routines and
23153         static-only-routines.
23154
23155 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23156
23157         [BZ #13892]
23158         * math/s_cexp.c: Include <float.h>.
23159         (__cexp): Handle exp result overflowing not necessarily
23160         overflowing both real and imaginary parts of result.
23161         * math/s_cexpf.c: Likewise.
23162         * math/s_cexpl.c: Likewise.
23163         * math/libm-test.inc (cexp_test): Add more tests.
23164         * sysdeps/i386/fpu/libm-test-ulps: Update.
23165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23166
23167 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23168
23169         * include/link.h (ELFW): New macro.
23170         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
23171         Replace ELF64_R_TYPE with ELFW(R_TYPE).
23172
23173 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23174
23175         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
23176         with uint64_t.
23177
23178 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23179
23180         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
23181         declaration.
23182         (struct La_x32_retval): Likewise.
23183
23184 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23185
23186         * sysdeps/x86_64/preconfigure.in: New file.
23187         * sysdeps/x86_64/preconfigure: New generated file.
23188
23189 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23190
23191         [BZ #13824]
23192         * math/e_exp2l.c: Include <float.h>.
23193         (__ieee754_exp2l): Handle overflow and underflow cases
23194         separately.  Only pass fractional part of argument to
23195         __ieee754_expl.
23196         * math/libm-test.inc (exp2_test): Add more tests.
23197
23198         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
23199         negating x to take absolute value.
23200         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
23201         Likewise.
23202         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
23203         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
23204         Likewise.
23205         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
23206         computing low part if x was negated.
23207         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
23208
23209 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23210
23211         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
23212         la_x32_gnu_pltexit.
23213         (pltexit): Cast int_retval to ptrdiff_t.
23214         * elf/tst-auditmod3b.c: Likewise.
23215         * elf/tst-auditmod4b.c: Likewise.
23216         * elf/tst-auditmod5b.c: Likewise.
23217         * elf/tst-auditmod6b.c: Likewise.
23218         * elf/tst-auditmod6c.c: Likewise.
23219         * elf/tst-auditmod7b.c: Likewise.
23220
23221         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
23222         and x32_gnu_pltexit.
23223
23224         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
23225         __ELF_NATIVE_CLASS.
23226         (La_x32_regs): New macro.
23227         (La_x32_retval): Likewise.
23228         (la_x32_gnu_pltenter): New function prototype.
23229         (la_x32_gnu_pltexit): Likewise.
23230
23231 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
23232
23233         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
23234         exponent.
23235
23236         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23237
23238         * configure.in (libc_cv_cc_nofma): Check for option to disable
23239         generation of FMA instructions.
23240         * configure: Regenerate.
23241         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
23242         * sysdeps/ieee754/dbl-64/Makefile: New file.
23243         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23244         Remove brandred-fma4.
23245         (CFLAGS-brandred-fma4.c): Remove.
23246         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
23247         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
23248         define.
23249         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
23250         define.
23251
23252 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23253
23254         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23255         LLONG_MAX != LONG_MAX.
23256         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23257         (_fitoa_word): Likewise.
23258         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
23259         LLONG_MAX != LONG_MAX.
23260         * stdio-common/_itowa.h: Include <_itoa.h>.
23261         (_itowa_word): Use _ITOA_WORD_TYPE on value.
23262         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
23263         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
23264         only if not defined.
23265         (_ITOA_WORD_TYPE): Likewise.
23266         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23267         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
23268
23269 2012-03-21  David S. Miller  <davem@davemloft.net>
23270
23271         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23272
23273 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23274
23275         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
23276         of x86_64 when setting libc_cv_slibdir, libdir and
23277         libc_cv_localedir.
23278         * sysdeps/unix/sysv/linux/configure: Regenerated.
23279
23280 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23281
23282         * manual/lang.texi (Old Varargs): Remove section.
23283         (How Variadic): Update menu.
23284         (va_start): Do not mention varargs.h.
23285
23286 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23287             Joseph Myers  <joseph@codesourcery.com>
23288
23289         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
23290         link test.
23291         * configure: Regenerated.
23292
23293 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23294
23295         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
23296         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
23297         conformtest.pl
23298
23299 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23300
23301         * NOTES: Remove.
23302         * Makefile (files-for-dist): Remove NOTES.
23303         (NOTES): Remove rule.
23304         * README: Don't refer to NOTES.
23305         * manual/creature.texi: Don't include macros.texi.
23306         * manual/intro.texi (creature.texi): Remove comment referring to
23307         NOTES.
23308
23309         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
23310         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
23311         * configure: Regenerated.
23312         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
23313         LIBC_TRY_CC_OPTION.
23314         (libc_cv_as_i686): Likewise.
23315         (libc_cv_cc_avx): Likewise.
23316         (libc_cv_cc_sse2avx): Likewise.
23317         (libc_cv_cc_fma4): Likewise.
23318         (libc_cv_cc_novzeroupper): Likewise.
23319         * sysdeps/i386/configure: Regenerated.
23320
23321         [BZ #13883]
23322         * sysdeps/i386/fpu/s_cexp.S: Remove.
23323         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
23324         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
23325         * math/libm-test.inc (cexp_test): Add more tests.
23326         * sysdeps/i386/fpu/libm-test-ulps: Update.
23327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23328
23329 2012-03-21  Allan McRae  <allan@archlinux.org>
23330
23331         * timezone/Makefile: Do not install iso3166.tab and zone.tab
23332
23333 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23334
23335         [BZ #13871]
23336         * math/w_exp2.c: Do not include <float.h>.
23337         (o_threshold, u_threshold): Remove.
23338         (__exp2): Calculate result before checking finiteness and calling
23339         __kernel_standard.
23340         * math/w_exp2f.c: Likewise.
23341         * math/w_exp2l.c: Likewise.
23342         * math/libm-test.inc (exp2_test): Require overflow exception for
23343         1e6 input.
23344
23345         [BZ #3866]
23346         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
23347         range of signed 64-bit integers before using fistpll.  Remove
23348         checks for whether integers fit in mantissa bits.
23349         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
23350         the range of signed 32-bit integers before using fistpl.  Remove
23351         checks for whether integers fit in mantissa bits.
23352         * sysdeps/i386/fpu/e_powl.S (p64): New object.
23353         (__ieee754_powl): Test for y outside the range of signed 64-bit
23354         integers before using fistpll.  Reduce 64-bit values to 63-bit
23355         ones as needed.
23356         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
23357         divide-by-zero is raised for zero to large negative powers.
23358         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
23359         (__ieee754_powl): Test for y outside the range of signed 64-bit
23360         integers before using fistpll.  Reduce 64-bit values to 63-bit
23361         ones as needed.
23362         * math/libm-test.inc (pow_test): Add more tests.
23363
23364 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23365
23366         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
23367         <stdio-common/_itoa.h>.
23368         * debug/segfault.c: Likewise.
23369         * elf/dl-cache.c: Likewise.
23370         * elf/dl-minimal.c: Likewise.
23371         * elf/dl-misc.c: Likewise.
23372         * elf/dl-sysdep.c: Likewise.
23373         * elf/dl-version.c: Likewise.
23374         * elf/rtld.c: Likewise.
23375         * hurd/hurdsock.c: Likewise.
23376         * hurd/lookup-retry.c: Likewise.
23377         * malloc/malloc.c: Likewise.
23378         * malloc/mtrace.c: Likewise.
23379         * nscd/nscd_getgr_r.c: Likewise.
23380         * nscd/nscd_getpw_r.c: Likewise.
23381         * nscd/nscd_getserv_r.c: Likewise.
23382         * posix/getopt_init.c: Likewise.
23383         * posix/wordexp.c: Likewise.
23384         * stdio-common/_itoa.c: Likewise.
23385         * stdio-common/printf_fphex.c: Likewise.
23386         * stdio-common/vfprintf.c: Likewise.
23387         * string/_strerror.c: Likewise.
23388         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
23389         * sysdeps/i386/i686/hp-timing.h: Likewise.
23390         * sysdeps/mach/_strerror.c: Likewise.
23391         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
23392         * sysdeps/mach/hurd/sethostid.c: Likewise.
23393         * sysdeps/mach/hurd/xmknodat.c: Likewise.
23394         * sysdeps/mach/xpg-strerror.c: Likewise.
23395         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23396         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23397         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
23398         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
23399         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23400         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
23401         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
23402         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
23403         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
23404         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
23405         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
23406         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
23407         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
23408         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
23409         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
23410         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
23411         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
23412         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
23413         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
23414         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
23415         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
23416
23417         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
23418
23419         * stdio-common/_itoa.h: Moved to ...
23420         * sysdeps/generic/_itoa.h: Here.
23421
23422         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
23423
23424         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
23425         instead of "_itoa.h" and "_itowa.h".
23426         * stdio-common/vfprintf.: Likewise.
23427
23428 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23429
23430         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
23431         <bits/wordsize.h>.
23432         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
23433         (__signbit): Likwise.
23434         (llrintf): Likwise.
23435         (llrint): Likwise.
23436
23437 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23438
23439         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
23440         __WORDSIZE != 64.
23441
23442 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
23443
23444         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
23445         OVERFLOW_EXCEPTION_OK.
23446         * math/libm-test.inc ("Philosophy"): Update comment about
23447         exception testing.
23448         (OVERFLOW_EXCEPTION): Define.
23449         (OVERFLOW_EXCEPTION_OK): Likewise.
23450         (INVALID_EXCEPTION_OK): Renumber.
23451         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23452         (IGNORE_ZERO_INF_SIGN): Likewise.
23453         (test_exceptions): Handle FE_OVERFLOW.
23454         (exp10_test): Expect overflow exceptions.
23455         (exp2_test): Likewise.
23456         (expm1_test): Likewise.
23457         (nextafter_test): Likewise.
23458         (pow_test): Likewise.
23459         (scalbn_test): Likewise.
23460         (scalbln_test): Likewise.
23461
23462 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23463
23464         * sysdeps/x86_64/bits/atomic.h
23465         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
23466         64bit integer.
23467         (atomic_exchange_acq): Likewise.
23468         (__arch_exchange_and_add_body): Likewise.
23469         (__arch_add_body): Likewise.
23470         (atomic_add_negative): Likewise.
23471         (atomic_add_zero): Likewise.
23472
23473 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23474
23475         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
23476         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
23477
23478 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23479
23480         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
23481         Check __x86_64__ instead of __WORDSIZE.
23482
23483 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23484
23485         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
23486
23487 2012-03-19  David S. Miller  <davem@davemloft.net>
23488
23489         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23490
23491         * sysdeps/sparc/fpu/fenv_private.h: New file.
23492         * sysdeps/sparc/fpu/math_private.h: Use it.
23493         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
23494         Remove.
23495         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
23496         (libc_feholdexcept_setroundl): Remove.
23497         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
23498         Remove.
23499         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
23500         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
23501
23502 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23503
23504         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
23505         int64_t instead of long int.
23506         (INSERT_WORDS64): Likwise.
23507
23508 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23509
23510         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
23511         _Unwind_GetCFA return to _Unwind_Ptr first.
23512
23513 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
23514
23515         [BZ #13629]
23516         * math/s_clog.c: Include <float.h>.
23517         (__clog): Scale large or subnormal inputs.
23518         * math/s_clogf.c: Likewise.
23519         * math/s_clogl.c: Likewise.
23520         * math/s_clog10.c: Include <float.h>.
23521         (M_LOG10_2): Define.
23522         (__clog10): Scale large or subnormal inputs.
23523         * math/s_clog10f.c: Likewise.
23524         * math/s_clog10l.c: Likewise.
23525         * math/libm-test.inc (clog_test): Add more tests.
23526         (clog10_test): Likewise.
23527         * sysdeps/i386/fpu/libm-test-ulps: Update.
23528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23529
23530         [BZ #11451]
23531         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
23532         x and y.
23533         * math/libm-test.inc (atan2_test): Add another test.
23534
23535         * Makerules (common-objdir-compile): Remove.
23536         * sysdeps/unix/Makefile (config-generated): Do not add
23537         $(unix-generated) to variable.
23538         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
23539         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
23540         Remove rule.
23541         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
23542         Likewise.
23543         [generic bits/local_lim.h] (before-compile): Do not append to
23544         variable.
23545         [generic bits/local_lim.h] (common-generated): Likewise.
23546         [generic sys/param.h] (before-compile): Do not append to variable.
23547         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
23548         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
23549         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
23550         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
23551         include.
23552         [generic sys/param.h] (sys/param.h-includes): Remove variable.
23553         [generic sys/param.h] (sys/param.h-includes): Remove rule.
23554         [generic sys/param.h] ($(addprefix
23555         $(common-objpfx),$(sys/param.h-includes))): Likewise.
23556         [generic sys/param.h] (common-generated): Do not append to
23557         variable.
23558         [generic sys/param.h] (sysdep_headers): Likewise.
23559         [generic bits/errno.h] (before-compile): Do not append to
23560         variable.
23561         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
23562         rule.
23563         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
23564         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
23565         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
23566         [generic bits/errno.h] (common-generated): Do not append to
23567         variable.
23568         [generic bits/ioctls.h] (before-compile): Do not append to
23569         variable.
23570         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
23571         rule.
23572         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
23573         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
23574         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
23575         rule.
23576         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
23577         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
23578         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
23579         [generic bits/ioctls.h] (common-generated): Do not append to
23580         variable.
23581         [generic sys/syscall.h] (syscall.h): Remove variable.
23582         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
23583         rule.
23584         [generic sys/syscall.h] (before-compile): Do not append to
23585         variable.
23586         [generic sys/syscall.h] (common-generated): Likewise.
23587         * sysdeps/unix/errnos-tmpl.c: Remove file.
23588         * sysdeps/unix/errnos.awk: Likewise.
23589         * sysdeps/unix/ioctls-tmpl.c: Likewise.
23590         * sysdeps/unix/ioctls.awk: Likewise.
23591         * sysdeps/unix/mk-local_lim.c: Likewise.
23592         * sysdeps/unix/snarf-ioctls: Likewise.
23593
23594 2012-03-19  Richard Henderson  <rth@twiddle.net>
23595
23596         * sysdeps/i386/fpu/fenv_private.h: New file.
23597         * sysdeps/i386/fpu/math_private.h: Use it.
23598         (math_opt_barrier, math_force_eval): Remove.
23599         (libc_feholdexcept_setround_53bit): Remove.
23600         (libc_feupdateenv_53bit): Remove.
23601         * sysdeps/x86_64/fpu/math_private.h: Likewise.
23602         (math_opt_barrier, math_force_eval): Remove.
23603         (libc_feholdexcept): Remove.
23604         (libc_feholdexcept_setround): Remove.
23605         (libc_fetestexcept, libc_fesetenv): Remove.
23606         (libc_feupdateenv_test): Remove.
23607         (libc_feupdateenv, libc_feholdsetround): Remove.
23608         (libc_feresetround): Remove.
23609
23610         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
23611         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
23612
23613         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
23614         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
23615         (libc_feupdateenv_testl): New.
23616         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
23617         (libc_feupdateenv_testf): New.
23618         (libc_feupdateenv): Use libc_feupdateenv_test.
23619         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
23620         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
23621
23622         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
23623         (libc_feholdsetroundf, libc_feholdsetroundl): New.
23624         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
23625         (libc_feresetround_noex): New.
23626         (libc_feresetround_noexf): New.
23627         (libc_feresetround_noexl): New.
23628         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
23629         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
23630         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
23631         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
23632         SET_RESTORE_ROUND.
23633         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
23634         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
23635         (__cos): Likewise.
23636         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
23637         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
23638         SET_RESTORE_ROUND_NOEX.
23639         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
23640         SET_RESTORE_ROUND_NOEXF.
23641         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
23642         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
23643         (libc_feholdsetroundf): New.
23644         (libc_feresetround, libc_feresetroundf): New.
23645
23646         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
23647         (libc_feholdexcept_setround_53bit): Convert from macro to function.
23648         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
23649
23650         * sysdeps/generic/math_private.h: Include <fenv.h>.
23651         (default_libc_feholdexcept): New.
23652         (default_libc_feholdexcept_setround): New.
23653         (default_libc_fesetenv, default_libc_feupdateenv): New.
23654         (libc_feholdexcept): Only define if undefined.
23655         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
23656         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
23657         (libc_feholdexcept_setroundl): Likewise.
23658         (libc_feholdexcept_setround_53bit): Likewise.
23659         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
23660         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
23661         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
23662         (libc_feupdateenv_53bit): Likewise.
23663         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
23664         (libc_feholdexcept): Convert from macro to inline function.
23665         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
23666         (libc_fesetenv, libc_feupdateenv): Likewise.
23667
23668         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
23669         not previously defined.
23670         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
23671         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
23672         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
23673         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
23674         * sysdeps/ieee754/flt-32/math_private.h: New file.
23675         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
23676         math_private.h below SET_FLOAT_WORD.
23677         (__isnan, __isinf_ns, __finite): Remove.
23678         (__isnanf, __isinf_nsf, __finitef): Remove.
23679
23680 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
23681
23682         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23683
23684 2012-03-17  David S. Miller  <davem@davemloft.net>
23685
23686         [BZ #6471]
23687         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
23688         for 2.16.
23689
23690 2012-03-16  David S. Miller  <davem@davemloft.net>
23691
23692         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
23693         warnings.
23694
23695         [BZ #6471]
23696         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
23697         properly.
23698         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
23699         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
23700         sysdep_routines when subdir is sysvipc.
23701         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
23702         __getshmlba helper.
23703
23704         * sysdeps/sparc/fpu/libm-test/ulps: Update.
23705
23706 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23707
23708         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
23709         [__LP64__].
23710
23711 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23712
23713         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
23714         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
23715         (__lround): Renamed to ...
23716         (__llround): This.  Replace long int with long long int.
23717         Define lround functions as aliases of llround functions.
23718         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
23719
23720 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23721
23722         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
23723         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
23724         adresses to uintptr_t.  Replace "long int" and "unsigned long
23725         int" with "greg_t" on va_arg.
23726
23727 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23728
23729         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
23730         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
23731
23732         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
23733         Move e_machine check before EI_CLASS check.  Handle x32
23734         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
23735         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
23736         SKIP_EM_IA_64 and include
23737         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
23738
23739         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
23740         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
23741         (add_system_dir): New macro.
23742
23743         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
23744         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
23745
23746 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
23747
23748         [BZ #2551]
23749         [BZ #2552]
23750         [BZ #2553]
23751         [BZ #2554]
23752         [BZ #2562]
23753         [BZ #2563]
23754         [BZ #2565]
23755         [BZ #2566]
23756         [BZ #2576]
23757         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
23758         (y0): Likewise.
23759         * math/w_j0f.c (j0f): Likewise.
23760         (y0f): Likewise.
23761         * math/w_j0l.c (__j0l): Likewise.
23762         (__y0l): Likewise.
23763         * math/w_j1.c (j1): Likewise.
23764         (y1): Likewise.
23765         * math/w_j1f.c (j1f): Likewise.
23766         (y1f): Likewise.
23767         * math/w_j1l.c (__j1l): Likewise.
23768         (__y1l): Likewise.
23769         * math/w_jn.c (jn): Likewise.
23770         (yn): Likewise.
23771         * math/w_jnf.c (jnf): Likewise.
23772         (ynf): Likewise.
23773         * math/w_jnl.c (__jnl): Likewise.
23774         (__ynl): Likewise.
23775         * math/libm-test.inc (j0_test): Add more tests.
23776         (j1_test): Likewise.
23777         (jn_test): Likewise.  Add trailing semicolon to existing test.
23778         (y0_test): Likewise.
23779         (y1_test): Likewise.
23780         * sysdeps/i386/fpu/libm-test-ulps: Update.
23781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23782
23783         [BZ #13851]
23784         [BZ #13854]
23785         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
23786         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
23787         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
23788         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
23789         (__tanl): Set errno for infinite argument.
23790         * sysdeps/i386/fpu/mptan.c: Remove.
23791         * sysdeps/i386/fpu/s_tan.S: Likewise.
23792         * sysdeps/i386/fpu/s_tanl.S: Likewise.
23793         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
23794         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
23795         * math/libm-test.inc (tan_test): Add more tests and enable more
23796         tests for double and long double.
23797         * sysdeps/i386/fpu/libm-test-ulps: Update.
23798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23799
23800 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
23801
23802         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
23803         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
23804
23805 2012-03-16  Roland McGrath  <roland@hack.frob.com>
23806
23807         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
23808         * configure.in: Use it for both main tree and add-ons.
23809         * configure: Regenerated.
23810
23811 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23812
23813         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
23814
23815 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
23816
23817         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
23818         in comment.
23819
23820         [BZ #13851]
23821         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
23822         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
23823         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
23824         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
23825         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
23826         infinite argument.
23827         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
23828         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
23829         != 0 for prec == 2.
23830         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
23831         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
23832         * sysdeps/i386/fpu/s_cosl.S: Likewise.
23833         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
23834         * sysdeps/i386/fpu/s_sinl.S: Likewise.
23835         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
23836         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
23837         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
23838         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
23839         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
23840         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
23841         * math/libm-test.inc (cos_test): Add more tests and enable more
23842         tests for long double.
23843         (sin_test): Likewise.
23844         (sincos_test): Likewise.
23845         * sysdeps/i386/fpu/libm-test-ulps: Update.
23846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23847
23848 2012-03-16  David S. Miller  <davem@davemloft.net>
23849
23850         * sysdeps/sparc/fpu/math_private.h: New file.
23851
23852 2012-03-15  David S. Miller  <davem@davemloft.net>
23853
23854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
23855         file.
23856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
23857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
23858         file.
23859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
23860         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
23861         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
23862         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
23863         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
23864         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
23865         sysdep routines.
23866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
23867
23868         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
23869         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
23870
23871         * sysdeps/sparc/sparc-ifunc.h: New file.
23872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
23873         sparc-ifunc.h
23874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
23875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23876         Likewise.
23877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23878         Likewise.
23879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
23880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
23883         Likewise.
23884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
23885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
23886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
23887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
23888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
23889         Likewise.
23890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
23891         Likewise.
23892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
23893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
23895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
23896         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
23897         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
23898         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
23899         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
23900         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
23901         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
23902         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
23903         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
23904         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
23905         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
23906         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
23907         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23908         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
23909         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23910         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
23911         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23912         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
23913         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23914         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
23915         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23916
23917 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
23918
23919         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
23920         scaling.
23921         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23922
23923 2012-03-15  Andreas Jaeger  <aj@suse.de>
23924
23925         [BZ #13852]
23926         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
23927         ieee754/flt-32 implementation for sin, cos and sincos.
23928         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
23929         * sysdeps/i386/fpu/s_cosf.S: Likewise.
23930         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
23931         * sysdeps/i386/fpu/s_sinf.S: Likewise.
23932         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
23933         ieee754/flt-32 implementation for tan.
23934
23935         * math/libm-test.inc (cos_test): Enable some large input tests for
23936         float as well
23937         (sin_test): Likewise.
23938         (sincos_test): Likewise.
23939         (tan_test): Add tests for large input.
23940
23941         * sysdeps/i386/fpu/libm-test-ulps: Update.
23942
23943 2012-03-15  Andreas Jaeger  <aj@suse.de>
23944
23945         [BZ #13658]
23946         * math/libm-test.inc (cos_test): Add more test cases.
23947         (sin_test): Likewise.
23948         (sincos_test): Likewise.
23949
23950 2012-03-15  Andreas Jaeger  <aj@suse.de>
23951
23952         [BZ #13837]
23953         * math/libm-test.inc (cos_test): Add a test case for large input
23954         value.
23955         (sin_test): Likewise.
23956         (sincos_test): Likewise.
23957
23958 2012-03-15  Andreas Jaeger  <aj@suse.de>,
23959         Joseph Myers  <joseph@codesourcery.com>
23960
23961         [BZ #13658]
23962         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
23963         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
23964         * sysdeps/i386/fpu/branred.c: Likewise.
23965         * sysdeps/i386/fpu/dosincos.c: Likewise.
23966         * sysdeps/i386/fpu/mpa.c: Likewise.
23967         * sysdeps/i386/fpu/s_cos.S: Likewise.
23968         * sysdeps/i386/fpu/s_sin.S: Likewise.
23969         * sysdeps/i386/fpu/s_sincos.S: Likewise.
23970         * sysdeps/i386/fpu/sincos32.c: Likewise.
23971
23972         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
23973         Define.
23974         (libc_feupdateenv_53bit): Define.
23975         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
23976         Define.
23977         (libc_feupdateenv_53bit): Define.
23978
23979         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
23980         53 bit (without extend i386 double precision).
23981
23982         * math/libm-test.inc (sincos_test): Add tests for large input.
23983         (sin): Likewise.
23984         (cos): Likewise.
23985
23986         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
23987
23988 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
23989
23990         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23991
23992 2012-03-15  David S. Miller  <davem@davemloft.net>
23993
23994         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
23995         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
23996         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
23997         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
23998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
23999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
24000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
24001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
24002         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
24003         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
24004         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
24005         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
24006         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
24007         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
24008         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
24009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
24010         file.
24011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
24012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
24013         file.
24014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
24015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
24016         file.
24017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
24018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
24019         file.
24020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
24021         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
24022         fmin/fmax sysdep routines.
24023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24024
24025 2012-03-14  David S. Miller  <davem@davemloft.net>
24026
24027         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
24028         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
24029         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
24030         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
24031         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
24032         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
24033         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
24034         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
24035         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
24036         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
24037         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
24038         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
24039         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
24040         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
24041         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
24042         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
24043         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
24044         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
24045         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
24046         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
24047         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
24048         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
24049         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
24050         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
24051         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
24052         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
24053         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
24054         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
24055         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
24056         routines.
24057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
24058         file.
24059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
24060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
24061         file.
24062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
24063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
24064         file.
24065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
24066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
24067         file.
24068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
24069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
24070         file.
24071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
24072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
24073         file.
24074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
24075         file.
24076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
24077         file.
24078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
24079         file.
24080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
24081         New file.
24082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
24083         file.
24084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
24085         file.
24086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
24087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
24088         file.
24089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
24090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
24091         file.
24092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
24093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
24094         file.
24095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
24096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
24097         VIS3 routines.
24098
24099         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
24100         New file.
24101
24102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24103
24104         * sysdeps/sparc/configure.in: New file.
24105         * sysdeps/sparc/configure: Generate.
24106         * configure.in (libc_cv_sparc_as_vis3): Substitute.
24107         * configure: Regenerate.
24108         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
24109         * config.make.in (have-as-vis3): New.
24110         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
24111         available use -Av9d instead of -Av9a.
24112         * sysdeps/sparc/sparc64/Makefile: Likewise.
24113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
24114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
24115         New file.
24116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
24117         file.
24118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
24119         New file.
24120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
24121         file.
24122         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
24123         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
24124         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
24125         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
24126         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
24127
24128         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
24129         fzeros/fnegs to load 0x80000000 into a float register instead of
24130         using the stack.
24131         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
24132
24133 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24134
24135         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24136         bits/syscall.h.
24137         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
24138         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
24139         ($(inst_includedir)/bits/syscall.h): Remove rule.
24140         ($(objpfx)bits/syscall.d): Include instead of
24141         $(objpfx)syscall-list.d.
24142         (generated): Change syscall-list.h and syscall-list.d to
24143         bits/syscall.h and bits/syscall.d.
24144
24145 2012-03-14  Roland McGrath  <roland@hack.frob.com>
24146
24147         [BZ #13846]
24148         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
24149
24150 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24151
24152         [BZ #13841]
24153         * math/s_csqrt.c: Include <float.h>.
24154         (__csqrt): Scale large or subnormal inputs.
24155         * math/s_csqrtf.c: Likewise.
24156         * math/s_csqrtl.c: Likewise.
24157         * math/libm-test.inc (csqrt_test): Add more tests.
24158         * sysdeps/i386/fpu/libm-test-ulps: Update.
24159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24160
24161         [BZ #13840]
24162         * math/libm-test.inc (hypot_test): Add more tests.
24163
24164 2012-03-13  David S. Miller  <davem@davemloft.net>
24165
24166         [BZ #13840]
24167         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
24168         double-precision for the calculation instead of scaling.
24169
24170 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
24171
24172         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
24173         manipulate bits before adding and subtracting TWO52[sx].
24174         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
24175         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
24176         Likewise.
24177         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
24178
24179 2012-03-13  David S. Miller  <davem@davemloft.net>
24180
24181         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
24182         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
24183         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
24184         rtld-global-offsets.h
24185         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24186
24187         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
24188         large parameters.
24189
24190         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
24191
24192         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
24193         'err' in the ifdef scope in which it is actually used.
24194
24195         * nss/nss_db/db-init.c: Include string.h
24196
24197 2012-03-12  David S. Miller  <davem@davemloft.net>
24198
24199         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24200         masking out of the most significant byte of random value used.
24201         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24202         Fix coding style in previous change.
24203
24204         * sysdeps/unix/sysv/linux/kernel-features.h
24205         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
24206         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
24207         expression.
24208         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
24209         later.
24210
24211 2012-03-11  David S. Miller  <davem@davemloft.net>
24212
24213         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24214         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
24215         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
24216         for 'resultvar' otherwise things get truncated on 64-bit.
24217
24218         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24219         Fix masking out of the most significant byte of random value used.
24220
24221         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24222
24223 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
24224
24225         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24226
24227 2012-03-09  David S. Miller  <davem@davemloft.net>
24228
24229         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
24230         variables with appropriate CPP guards.
24231         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
24232         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
24233         on resulting framesize and the management of the outregs buffer for pltexit.
24234         Preserve floating point return values across _dl_call_pltexit call.
24235         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
24236         framesize and the management of the outregs buffer for pltexit.
24237         Preserve floating point return values across _dl_call_pltexit
24238         call.
24239         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
24240         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
24241         (print_exit): Fix format string for return register value.
24242
24243 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
24244
24245         * sunrpc/Makefile (others): Add rpcgen.
24246         ($(objpfx)rpcgen): Remove special build rule and dependency on
24247         libc.
24248         * sunrpc/rpcgen.c: New file.
24249
24250 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         [BZ #13673]
24253         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
24254         * stdio-common/bug-vfprintf-nargs.c: Likewise.
24255         * sysdeps/i386/crti.S: Likewise.
24256         * sysdeps/i386/crtn.S: Likewise.
24257         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
24258         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
24259         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
24260         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
24261         * sysdeps/sh/crti.S: Likewise.
24262         * sysdeps/sh/crtn.S: Likewise.
24263         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
24264
24265         [BZ #13673]
24266         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
24267         with URL.
24268         * locale/programs/locfile-kw.gperf: Likewise.
24269         * locale/programs/charmap-kw.h: Regenerated.
24270         * locale/programs/locfile-kw.h: Likewise.
24271
24272         [BZ #13673]
24273         * intl/plural.y: Replace FSF snail mail address with URL.
24274         * intl/plural.c: Regenerated.
24275
24276 2012-03-09  Richard Henderson  <rth@twiddle.net>
24277
24278         * include/math_private.h: Remove file.
24279         * math/math_private.h: Move file ...
24280         * sysdeps/generic/math_private.h: ... here.
24281
24282         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
24283         * sysdeps/powerpc/fpu/math_private.h: Likewise.
24284         * sysdeps/x86_64/fpu/math_private.h: Likewise.
24285
24286         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
24287         and <math_private.h>.
24288         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
24289         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
24290         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
24291         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
24292         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
24293         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
24294         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24295         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24296         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24297         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24298         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24299         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24300         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24301         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24302         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24303         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24304         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24305         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24306         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24307         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24308         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24309         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24310         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24311         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24312         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
24313         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24314         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24315         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24316         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24317         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
24318         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24319         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24320         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
24321         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
24322         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
24323         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
24324         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
24325         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
24326         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
24327         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24328         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
24329         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
24330         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
24331         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
24332         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
24333         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
24334         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
24335         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
24336         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
24337         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
24338         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
24339         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
24340         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
24341         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
24342         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
24343         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
24344         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
24345         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
24346         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
24347         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
24348         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
24349         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
24350         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24351         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
24352         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
24353         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
24354         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
24355         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
24356         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
24357         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
24358         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
24359         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24360         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
24361         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24362         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
24363         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
24364         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
24365         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
24366         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
24367         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
24368         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
24369         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
24370         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
24371         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
24372         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
24373         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
24374         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
24375         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
24376         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24377         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24378         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24379         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24380         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24381         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24382         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24383         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24384         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24385         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24386         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24387         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24388         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24389         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24390         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24391         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24392         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
24393         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24394         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24395         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24396         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
24397         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
24398         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
24399         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
24400         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24401         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
24402         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
24403         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24404         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
24405         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
24406         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
24407         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
24408         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
24409         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
24410         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24411         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
24412         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
24413         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
24414         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24415         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
24416         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
24417         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
24418         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
24419         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
24420         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
24421         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
24422         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
24423         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
24424         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
24425         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
24426         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
24427         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
24428         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
24429         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
24430         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
24431         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
24432         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
24433         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24434         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
24435         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
24436         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
24437         * sysdeps/ieee754/k_standard.c: Likewise.
24438         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24439         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24440         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24441         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24442         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24443         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24444         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24445         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24446         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24447         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24448         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24449         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24450         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24451         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24452         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24453         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24454         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
24455         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24456         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24457         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
24458         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
24459         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
24460         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
24461         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
24462         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
24463         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
24464         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
24465         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
24466         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
24467         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
24468         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
24469         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
24470         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
24471         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
24472         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
24473         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
24474         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
24475         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
24476         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
24477         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
24478         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
24479         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
24480         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
24481         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
24482         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
24483         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
24484         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
24485         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
24486         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
24487         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
24488         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
24489         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
24490         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
24491         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
24492         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
24493         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
24494         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
24495         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
24496         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
24497         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
24498         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
24499         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
24500         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
24501         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24502         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24503         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24504         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24505         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24506         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24507         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24508         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24509         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24510         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24511         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24512         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24513         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24514         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
24515         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24516         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24517         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
24518         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
24519         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
24520         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
24521         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
24522         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
24523         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24524         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
24525         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
24526         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
24527         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
24528         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
24529         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
24530         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24531         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
24532         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24533         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
24534         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
24535         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24536         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24537         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
24538         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
24539         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24540         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
24541         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
24542         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
24543         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
24544         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24545         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24546         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
24547         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
24548         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
24549         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
24550         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24551         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24552         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24553         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24554         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24555         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24556         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24557         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24558         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24559         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24560         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24561         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24562         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24563         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
24564         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
24565         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
24566         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
24567         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
24568         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
24569         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
24570         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
24571         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
24572         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
24573         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
24574         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
24575         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
24576         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
24577         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
24578         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
24579         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
24580         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
24581         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
24582         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
24583         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
24584         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
24585         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
24586         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
24587         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
24588         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
24589         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
24590         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
24591         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
24592         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
24593         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
24594         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
24595         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
24596         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
24597         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
24598         * sysdeps/ieee754/s_lib_version.c: Likewise.
24599         * sysdeps/ieee754/s_matherr.c: Likewise.
24600         * sysdeps/ieee754/s_signgam.c: Likewise.
24601         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24602         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24603         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
24604         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
24605         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
24606         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
24607         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
24608         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
24609         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
24610         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
24611         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
24612         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
24613         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
24614         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
24615         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
24616         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
24617         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24618         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
24619         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24620         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
24621         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
24622
24623 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
24624
24625         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
24626         * sunrpc/rpc_main.c: Likewise.
24627         * sunrpc/rpc_svcout.c: Likewise.
24628
24629 2012-03-09  David S. Miller  <davem@davemloft.net>
24630
24631         * include/math_private.h: New file.
24632
24633 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
24634
24635         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
24636         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
24637         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
24638         from <bits/socket_type.h>.
24639         (enum __socket_type): Don't define here.
24640         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
24641         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24642         bits/socket_type.h.
24643
24644         [BZ #13566]
24645         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
24646         checking __USE_GNU.
24647
24648         * Makerules ($(inst_includedir)/%.h): New rule.
24649         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
24650         (install-others): Remove variable setting.
24651         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
24652
24653 2012-03-08  Richard Henderson  <rth@twiddle.net>
24654
24655         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
24656         from macro to inline function; merge with the
24657         !__LIBC_INTERNAL_MATH_INLINES version.
24658         (__ieee754_sqrtf): Likewise.
24659
24660         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
24661         to inline function.
24662         (__rintf, __floor, __floorf): Likewise.
24663
24664         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
24665         macro to inline function.
24666         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
24667
24668         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
24669         not <math/math_private.h>.
24670
24671 2012-03-08  David S. Miller  <davem@davemloft.net>
24672
24673         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
24674         copyright year.
24675         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
24676
24677 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
24678
24679         * resolv/gai_misc.c (handle_requests): Fix struct timespec
24680         normalization.
24681         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
24682         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
24683
24684 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
24685
24686         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
24687         be defined individually, they must be defined as a block.  Define
24688         S for printing a string instead of hidint the different by using a
24689         macro for adding the 'l'.
24690         * stdio-common/tst-fphex-wide.c: Adjust.
24691
24692 2012-03-07  Marek Polacek  <polacek@redhat.com>
24693
24694         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
24695
24696 2012-03-08  Marek Polacek  <polacek@redhat.com>
24697
24698         [BZ #13806]
24699         * stdio-common/Makefile (tests): Add tst-fphex-wide.
24700         * stdio-common/tst-fphex.c: Define a few macros to make the
24701         test reusable.  Use them.
24702         * stdio-common/tst-fphex-wide.c: New file.
24703
24704 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
24705
24706         [BZ #6911]
24707         * manual/macros.texi (gnusystems): New macro.
24708         (nongnusystems): Likewise.
24709         (gnulinuxhurdsystems): Likewise.
24710         (gnuhurdsystems): Likewise..
24711         (gnulinuxsystems): Likewise.
24712         * manual/charset.texi: Use new macros or @theglibc{} to refer to
24713         variants of the GNU system, not "GNU system".
24714         * manual/conf.texi: Likewise.
24715         * manual/errno.texi: Likewise.  Update example of errno macro
24716         expansion.
24717         * manual/filesys.texi: Likewise.
24718         (getumask): Document as specific to GNU/Hurd.
24719         * manual/install.texi: Likewise.  Reword some references to
24720         GNU/Linux.
24721         * manual/intro.texi: Likewise.
24722         * manual/io.texi: Likewise.
24723         (File Name Portability): Detail which constraints are inapplicable
24724         to all GNU systems and which are only inapplicable to GNU/Hurd.
24725         * manual/job.texi: Likewise.
24726         * manual/llio.texi: Likewise.
24727         (O_NOCTTY): Document as present on GNU/Linux.
24728         * manual/maint.texi: Likewise.
24729         * manual/memory.texi: Likewise.
24730         * manual/pattern.texi: Likewise.
24731         * manual/pipe.texi: Likewise.
24732         * manual/process.texi: Likewise.
24733         * manual/resource.texi: Likewise.
24734         (RUSAGE_CHILDREN): Remove statement about specifying a particular
24735         child on GNU/Hurd.
24736         * manual/setjmp.texi: Likewise.
24737         * manual/signal.texi: Likewise.
24738         * manual/startup.texi: Likewise.
24739         * manual/stdio.texi: Likewise.
24740         * manual/terminal.texi: Likewise.
24741         (ONLCR): Document as POSIX.
24742         (OXTABS): Document availability on GNU/Linux as XTABS.
24743         (ONOEOT): Document availability separately from other bits.
24744         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
24745         * manual/time.texi: Likewise.
24746         * manual/users.texi: Likewise.
24747         * INSTALL: Regenerated.
24748         * sysdeps/gnu/errlist.c: Regenerated.
24749
24750         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
24751         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
24752         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
24753         puts.
24754         * configure: Regenerated.
24755
24756 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
24757
24758         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
24759         default includes instead of AC_HEADER_CHECK.
24760         * sysdeps/i386/configure: Regenerated.
24761
24762         [BZ #10716]
24763         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
24764         * math/s_cacoshf.c (__cacoshf): Likewise.
24765         * math/s_cacoshl.c (__cacoshl): Likewise.
24766         * math/s_casinh.c (__casinh): Set signs of result from argument.
24767         * math/s_casinhf.c (__casinhf): Likewise.
24768         * math/s_casinhl.c (__casinhl): Likewise.
24769         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
24770         (casinh_test): Add more tests.
24771         * sysdeps/i386/fpu/libm-test-ulps: Update.
24772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24773
24774 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
24775
24776         * po/zh_TW.po: Update from translation team.
24777
24778         * login/Makefile (distribute): Remove variable.
24779         * catgets/Makefile: Likewise.
24780         * mach/Makefile: Likewise.
24781         * malloc/Makefile: Likewise.
24782         * misc/Makefile: Likewise.
24783         * iconv/Makefile: Likewise.
24784         * nscd/Makefile: Likewise.
24785         * hurd/Makefile: Likewise.
24786         * manual/Makefile: Likewise.
24787         * locale/Makefile: Likewise.
24788         * intl/Makefile: Likewise.
24789         * conform/Makefile: Likewise.
24790         * nss/Makefile: Likewise.
24791         * time/Makefile: Likewise.
24792         * soft-fp/Makefile: Likewise.
24793         * dirent/Makefile: Likewise.
24794         * gmon/Makefile: Likewise.
24795         * po/Makefile: Likewise.
24796         * rt/Makefile: Likewise.
24797         * socket/Makefile: Likewise.
24798         * math/Makefile: Likewise.
24799         * signal/Makefile: Likewise.
24800         * debug/Makefile: Likewise.
24801         * elf/Makefile: Likewise.
24802         * timezone/Makefile: Likewise.
24803         * stdlib/Makefile: Likewise.
24804         * iconvdata/Makefile: Likewise.
24805         * sunrpc/Makefile: Likewise.
24806         * io/Makefile: Likewise.
24807         * argp/Makefile: Likewise.
24808         * inet/Makefile: Likewise.
24809         * hesiod/Makefile: Likewise.
24810         * grp/Makefile: Likewise.
24811         * csu/Makefile: Likewise.
24812         * wctype/Makefile: Likewise.
24813         * crypt/Makefile: Likewise.
24814         * libio/Makefile: Likewise.
24815         * string/Makefile: Likewise.
24816         * nis/Makefile: Likewise.
24817         * resolv/Makefile: Likewise.
24818         * stdio-common/Makefile: Likewise.
24819         * wcsmbs/Makefile: Likewise.
24820         * dlfcn/Makefile: Likewise.
24821         * posix/Makefile: Likewise.
24822
24823         [BZ #6959]
24824         * timezone/Makefile: Don't install timezone files, just the programs
24825         and scripts.
24826
24827 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
24828
24829         * nss/databases.def: Add missing gshadow entry.
24830
24831         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
24832
24833 2012-03-06  Marek Polacek  <polacek@redhat.com>
24834
24835         [BZ #13726]
24836         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
24837         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
24838         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
24839         * stdio-common/tst-long-dbl-fphex.c: New file.
24840
24841 2012-03-06  David S. Miller  <davem@davemloft.net>
24842
24843         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
24844         (set_obp_int): New function.
24845         (get_obp_int): New function.
24846         (__get_clockfreq_via_dev_openprom): Likewise.
24847         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
24848         Avoid unused variable warnings on 'val' and use builtin_expect.
24849         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
24850         __builtin_expect.
24851         (INLINE_CLONE_SYSCALL): Likewise.
24852
24853 2012-03-05  David S. Miller  <davem@davemloft.net>
24854
24855         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24856
24857 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
24858
24859         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24860
24861         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
24862         only for |x| >= 40.
24863         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24864
24865 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
24866
24867         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
24868         Replace gettimeofday with __vdso_gettimeofday.
24869
24870         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24871         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
24872         __vdso_clock_gettime and __vdso_getcpu.
24873
24874         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
24875         time with __vdso_time.
24876
24877 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
24878
24879         * manual/lang.texi (size_t): Note types to which size_t may be
24880         equivalent with the GNU C Library, but do not describe when
24881         differences between them are significant.
24882
24883 2012-03-05  Andreas Jaeger  <aj@suse.de>
24884
24885         * sysdeps/i386/fpu/libm-test-ulps: Update.
24886
24887 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
24888
24889         [BZ #3976]
24890         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
24891         (__ieee754_pow): Save and restore rounding mode and use
24892         round-to-nearest for main computations.
24893         * math/libm-test.inc (pow_test_tonearest): New function.
24894         (pow_test_towardzero): Likewise.
24895         (pow_test_downward): Likewise.
24896         (pow_test_upward): Likewise.
24897         (main): Call the new functions.
24898         * sysdeps/i386/fpu/libm-test-ulps: Update.
24899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24900
24901         [BZ #3976]
24902         * math/libm-test.inc (cosh_test_tonearest): New function.
24903         (cosh_test_towardzero): Likewise.
24904         (cosh_test_downward): Likewise.
24905         (cosh_test_upward): Likewise.
24906         (sinh_test_tonearest): Likewise.
24907         (sinh_test_towardzero): Likewise.
24908         (sinh_test_downward): Likewise.
24909         (sinh_test_upward): Likewise.
24910         (main): Call the new functions.
24911         * sysdeps/i386/fpu/libm-test-ulps: Update.
24912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24913
24914 2012-03-05  Tom de Vries  <tom@codesourcery.com>
24915
24916         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
24917         default stack guard is set in last bytes.
24918         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
24919
24920 2012-03-05  Kees Cook  <keescook@chromium.org>
24921
24922         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
24923
24924         [BZ #13656]
24925         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
24926         possibly allocate from heap instead of stack.
24927         * stdio-common/bug-vfprintf-nargs.c: New file.
24928         * stdio-common/Makefile (tests): Add nargs overflow test.
24929
24930 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
24931
24932         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24933
24934 2012-03-03  Marek Polacek  <polacek@redhat.com>
24935
24936         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
24937         * math/math_private.h: Likewise.
24938         * stdlib/tst-strtod.c: Likewise.
24939         * sysdeps/i386/i486/bits/atomic.h: Likewise.
24940         * sysdeps/x86_64/bits/atomic.h: Likewise.
24941
24942 2012-03-02  David S. Miller  <davem@davemloft.net>
24943
24944         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
24945         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
24946         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
24947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
24948         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
24949         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
24950         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
24951         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
24952
24953 2012-03-02  Roland McGrath  <roland@hack.frob.com>
24954
24955         [BZ #13792]
24956         * manual/examples/README: New file, says the example source files
24957         can be used under GPL>=2.
24958         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
24959         line containing just "*/".
24960         * manual/examples/add.c: Add copyright header (GPL>=2).
24961         * manual/examples/argp-ex1.c: Likewise.
24962         * manual/examples/argp-ex2.c: Likewise.
24963         * manual/examples/argp-ex3.c: Likewise.
24964         * manual/examples/argp-ex4.c: Likewise.
24965         * manual/examples/atexit.c: Likewise.
24966         * manual/examples/db.c: Likewise.
24967         * manual/examples/dir.c: Likewise.
24968         * manual/examples/dir2.c: Likewise.
24969         * manual/examples/execinfo.c: Likewise.
24970         * manual/examples/filecli.c: Likewise.
24971         * manual/examples/filesrv.c: Likewise.
24972         * manual/examples/fmtmsgexpl.c: Likewise.
24973         * manual/examples/genpass.c: Likewise.
24974         * manual/examples/inetcli.c: Likewise.
24975         * manual/examples/inetsrv.c: Likewise.
24976         * manual/examples/isockad.c: Likewise.
24977         * manual/examples/longopt.c: Likewise.
24978         * manual/examples/memopen.c: Likewise.
24979         * manual/examples/memstrm.c: Likewise.
24980         * manual/examples/mkfsock.c: Likewise.
24981         * manual/examples/mkisock.c: Likewise.
24982         * manual/examples/mygetpass.c: Likewise.
24983         * manual/examples/pipe.c: Likewise.
24984         * manual/examples/popen.c: Likewise.
24985         * manual/examples/rprintf.c: Likewise.
24986         * manual/examples/search.c: Likewise.
24987         * manual/examples/select.c: Likewise.
24988         * manual/examples/setjmp.c: Likewise.
24989         * manual/examples/sigh1.c: Likewise.
24990         * manual/examples/sigusr.c: Likewise.
24991         * manual/examples/stpcpy.c: Likewise.
24992         * manual/examples/strdupa.c: Likewise.
24993         * manual/examples/strftim.c: Likewise.
24994         * manual/examples/strncat.c: Likewise.
24995         * manual/examples/subopt.c: Likewise.
24996         * manual/examples/swapcontext.c: Likewise.
24997         * manual/examples/termios.c: Likewise.
24998         * manual/examples/testopt.c: Likewise.
24999         * manual/examples/testpass.c: Likewise.
25000         * manual/examples/timeval_subtract.c: Likewise.
25001
25002         [BZ #13792]
25003         * manual/time.texi (Elapsed Time): Move timeval_subtract example
25004         function to ...
25005         * manual/timeval_subtract.c.texi: ... here, new file.
25006
25007 2012-03-02  David S. Miller  <davem@davemloft.net>
25008
25009         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
25010
25011 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
25012
25013         [BZ #3976]
25014         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
25015         (__sin): Save and restore rounding mode and use round-to-nearest
25016         for all computations.
25017         (__cos): Save and restore rounding mode and use round-to-nearest
25018         for all computations.
25019         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
25020         <fenv.h>.
25021         (tan): Save and restore rounding mode and use round-to-nearest for
25022         all computations.
25023         * math/libm-test.inc (cos_test_tonearest): New function.
25024         (cos_test_towardzero): Likewise.
25025         (cos_test_downward): Likewise.
25026         (cos_test_upward): Likewise.
25027         (sin_test_tonearest): Likewise.
25028         (sin_test_towardzero): Likewise.
25029         (sin_test_downward): Likewise.
25030         (sin_test_upward): Likewise.
25031         (tan_test_tonearest): Likewise.
25032         (tan_test_towardzero): Likewise.
25033         (tan_test_downward): Likewise.
25034         (tan_test_upward): Likewise.
25035         (main): Call the new functions.
25036         * sysdeps/i386/fpu/libm-test-ulps: Update.
25037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25038
25039         [BZ #10135]
25040         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
25041         small n, then large n, before computing and testing k+n.
25042         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
25043         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
25044         Likewise.
25045         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
25046         Likewise.
25047         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
25048         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
25049         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
25050         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
25051         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
25052         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
25053         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
25054         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
25055         * math/libm-test.inc (scalbn_test): Add more tests.
25056         (scalbln_test): Likewise.
25057
25058         * manual/filesys.texi (mode_t): Describe constraints on size and
25059         signedness, not exact equivalence to a particular type.
25060         (ino_t): Likewise.
25061         (ino64_t): Likewise.
25062         (dev_t): Likewise.
25063         (nlink_t): Likewise.
25064         (blkcnt_t): Likewise.
25065         (blkcnt64_t): Likewise.
25066         * manual/llio.texi (off_t): Likewise.
25067
25068         [BZ #3976]
25069         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
25070         (__ieee754_exp): Save and restore rounding mode and use
25071         round-to-nearest for all computations.
25072         * math/libm-test.inc (exp_test_tonearest): New function.
25073         (exp_test_towardzero): Likewise.
25074         (exp_test_downward): Likewise.
25075         (exp_test_upward): Likewise.
25076         (main): Call the new functions.
25077         * sysdeps/i386/fpu/libm-test-ulps: Update.
25078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25079
25080 2012-03-01  Chris Demetriou  <cgd@google.com>
25081
25082         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
25083         have predictable order.
25084
25085 2012-03-01  David S. Miller  <davem@davemloft.net>
25086
25087         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
25088
25089         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
25090         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
25091         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
25092         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
25093
25094         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
25095         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
25096         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
25097         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
25098         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
25099         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
25100         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
25101         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
25102         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
25103
25104         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25105
25106         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
25107         * sysdeps/sparc/fpu/libm-test-ulps: to here.
25108         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
25109
25110         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
25111         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25112         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25113         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
25114         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
25115         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
25116         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
25117         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25118         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25119         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
25120         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
25121         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25122         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25123         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25124         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25125         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25126         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
25127         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
25128         * sysdeps/sparc/elf/configure: Regenerated.
25129
25130 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
25131
25132         * configure.in (AS, LD): Require binutils 2.20 or later.
25133         * configure: Regenerated.
25134         * manual/install.texi (Tools for Compilation): Give binutils 2.20
25135         as required minimum version.
25136         * INSTALL: Regenerated.
25137
25138         [BZ #2541]
25139         [BZ #4108]
25140         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
25141         before squaring exponent.
25142         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
25143         bottom long double and 27 bits of top long double before squaring
25144         exponent.
25145         * math/libm-test.inc (erfc_test): Add more tests.
25146         * sysdeps/i386/fpu/libm-test-ulps: Update.
25147         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25149
25150 2012-03-01  Kai Tietz  <ktietz@redhat.com>
25151
25152         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
25153         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
25154         containing bit-fields.
25155         * soft-fp/extended.h (_FP_UNION_E): Likewise.
25156         * soft-fp/single.h (_FP_UNION_S): Likewise.
25157         * soft-fp/double.h (_FP_UNION_D): Likewise.
25158
25159 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25160
25161         [BZ #13786]
25162         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
25163         not include ../strcmp.S.
25164         [USE_AS_STRNCASECMP_L]: Likewise.
25165         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
25166         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
25167         * sysdeps/i386/i686/multiarch/strncase_l-c.c
25168         (__strncasecmp_l_ia32): Define as alias to
25169         __strncasecmp_l_nonascii.
25170
25171         [BZ #5794]
25172         * math/libm-test.inc (expm1_test): Add test for bug 5794.
25173         * sysdeps/i386/fpu/libm-test-ulps: Update.
25174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25175
25176         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
25177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25178
25179 2012-02-29  Jeff Law  <law@redhat.com>
25180
25181         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
25182         out of bounds read.
25183
25184 2012-02-29  Marek Polacek  <polacek@redhat.com>
25185
25186         [BZ #13706]
25187         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
25188         * elf/Makefile: Add rules to run tst-unused-dep.out.
25189
25190 2012-02-28  David S. Miller  <davem@davemloft.net>
25191
25192         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
25193         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
25194         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
25195         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
25196         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
25197         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
25198
25199 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25200
25201         * math/libm-test.inc (llround_test): Move one test from
25202         lround_test.  Use TEST_f_L in moved test.
25203         (lround_test): Move misplaced test to llround_test.  Add testcase
25204         from bug 2561.
25205
25206 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
25207
25208         * sysdeps/x86_64/fpu/e_expf.S: New file.
25209         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
25210
25211 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
25212
25213         [BZ #13637]
25214         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
25215         of remain_len that may cause incomplete multi-byte character and
25216         false match.
25217         * posix/bug-regex33.c: New file.
25218         * posix/Makefile (tests): Add bug-regex33.
25219
25220 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
25221
25222         * manual/macros.texi: New file.
25223         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
25224         * manual/libc.texinfo: Include macros.texi.
25225         * manual/creatute.texi: Likewise.
25226         * manual/install.texi: Likewise.
25227         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
25228         @glibcadj{} in references to the GNU C Library.
25229         * manual/charset.texi: Likewise.
25230         * manual/conf.texi: Likewise.
25231         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
25232         when not using those macros.
25233         * manual/creature.texi: Likewise.
25234         * manual/crypt.texi: Likewise.
25235         * manual/errno.texi: Likewise.
25236         * manual/filesys.texi: Likewise.
25237         * manual/header.texi: Likewise.
25238         * manual/install.texi: Likewise.
25239         * manual/intro.texi: Likewise.
25240         * manual/io.texi: Likewise.
25241         * manual/job.texi: Likewise.
25242         * manual/lang.texi: Likewise.
25243         * manual/libc.texiinfo: Likewise.
25244         * manual/llio.texi: Likewise.
25245         * manual/locale.texi: Likewise.
25246         * manual/maint.texi: Likewise.
25247         * manual/math.texi: Likewise.
25248         * manual/memory.texi: Likewise.
25249         * manual/message.texi: Likewise.
25250         * manual/nss.texi: Likewise.
25251         * manual/pattern.texi: Likewise.
25252         * manual/process.texi: Likewise.
25253         * manual/resource.texi: Likewise.
25254         * manual/search.texi: Likewise.
25255         * manual/setjmp.texi: Likewise.
25256         * manual/signal.texi: Likewise.
25257         * manual/socket.texi: Likewise.
25258         * manual/startup.texi: Likewise.
25259         * manual/stdio.texi: Likewise.
25260         * manual/string.texi: Likewise.
25261         * manual/sysinfo.texi: Likewise.
25262         * manual/syslog.texi: Likewise.
25263         * manual/terminal.texi: Likewise.
25264         * manual/time.texi: Likewise.
25265         * manual/users.texi: Likewise.
25266         * INSTALL: Regenerated.
25267         * NOTES: Regenerated.
25268         * sysdeps/gnu/errlist.c: Regenerated.
25269
25270 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
25271
25272         * include/dirent.h: Include <dirstream.h> before
25273         <dirent/dirent.h>.
25274
25275 2012-02-28  David S. Miller  <davem@davemloft.net>
25276
25277         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
25278         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
25279         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
25280         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
25281
25282 2012-02-27  David S. Miller  <davem@davemloft.net>
25283
25284         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
25285         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
25286         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
25287         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
25288
25289         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
25290         frame pointer instead of stack pointer relative arg slot.
25291         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25292         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25293         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25294
25295 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
25296
25297         [BZ #3992]
25298         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
25299
25300 2012-02-27  David S. Miller  <davem@davemloft.net>
25301
25302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
25303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
25305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
25306         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25307         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25308         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
25309         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
25310
25311 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25312
25313         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
25314         later.  Allow versions 5-9.
25315         * configure: Regenerated.
25316         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
25317         required minimum version and 4.6 as recommended version.  Do not
25318         mention bugs in GCC 2.7 and 2.8.
25319         * INSTALL: Regenerated.
25320
25321 2012-02-27  David S. Miller  <davem@davemloft.net>
25322
25323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
25324         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
25325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
25326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
25327         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
25328         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
25329         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
25330         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
25331
25332         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
25333         manipulate bits before adding and subtracting TWO112[sx].
25334         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25335
25336 2012-02-27  Roland McGrath  <roland@hack.frob.com>
25337
25338         [BZ #13775]
25339         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
25340         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
25341         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
25342         being in POSIX, because they are in 1003.1-2008.
25343
25344         * rt/tst-aio.c: Include <fcntl.h>.
25345         * rt/tst-aio7.c: Likewise.
25346         * rt/tst-aio64.c: Likewise.
25347
25348         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
25349
25350 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25351
25352         * manual/install.texi (--with-headers): Describe headers as
25353         interface headers, not private headers.
25354         (Specific advice for GNU/Linux systems): Describe use of headers
25355         from "make headers_install", not private headers from older
25356         kernels.
25357         * INSTALL: Regenerated.
25358         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
25359         Change to 2.6.19.
25360         * sysdeps/unix/sysv/linux/configure: Regenerated.
25361
25362         * manual/llio.texi (fclean): Remove documentation.
25363
25364         * manual/Makefile (libc-texi-generated): New variable.  Include
25365         version.texi.
25366         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
25367         $(libc-texi-generated), not duplicated list of files.
25368         (version.texi, stamp-version): New rules.
25369         (realclean): Remove $(libc-texi-generated), not individual files
25370         from that list.  Do not remove dir-add.texinfo.
25371         * manual/libc.texinfo: Comment out uses of edition numbers and
25372         references to printed manual.  Remove last-updated dates.
25373         (EDITION): Comment out.
25374         (ISBN): Likewise.
25375         (VERSION, UPDATED): Remove.
25376         (version.texi): Include.
25377
25378 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
25379
25380         * sysdeps/posix/spawni.c: Include <signal.h>.
25381         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
25382         * sysdeps/pthread/aio_fsync.c: Likewise.
25383
25384 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
25385
25386         * conform/Makefile (tests): Run only when not cross-compiling and
25387         when fast-check is not defined.
25388
25389         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
25390         * conform/data/limits.h-data: Fixes for POSIX2008.
25391         * conform/run-conformtest.sh: Run all tests.
25392         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
25393         headers.
25394         * include/bits/dlfcn.h: Likewise.
25395         * include/langinfo.h: Likewise.
25396         * include/monetary.h: Likewise.
25397         * include/sys/poll.h: Likewise.
25398
25399         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
25400         for __USE_GNU.
25401         * posix/spawn.h: Define __need_sigset_t.
25402         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
25403         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
25404         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
25405         to get sigevent_t only.
25406         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
25407         only for __USE_GNU.
25408         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25409         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
25410         process_vm_writev only for __USE_GNU.
25411         * termios/termios.h: Declare tcgetsid also for POSIX2008.
25412
25413         * conform/Makefile: For now ignore errors from run-conformtest.
25414         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
25415         POSIX to avoid namespace pollution.  Don't prepend headers.
25416         * conform/data/aio.h-data: Fixes for POSIX testing.
25417         * conform/data/fcntl.h-data: Likewise.
25418         * conform/data/glob.h-data: Likewise.
25419         * conform/data/grp.h-data: Likewise.
25420         * conform/data/pthread.h-data: Likewise.
25421         * conform/data/pwd.h-data: Likewise.
25422         * conform/data/signal.h-data: Likewise.
25423         * conform/data/spawn.h-data: Likewise.
25424         * conform/data/stdio.h-data: Likewise.
25425         * conform/data/stdlib.h-data: Likewise.
25426         * conform/data/stropts.h-data: Likewise.
25427         * conform/data/sys/mman.h-data: Likewise.
25428         * conform/data/sys/stat.h-data: Likewise.
25429         * conform/data/sys/types.h-data: Likewise.
25430         * conform/data/sys/wait.h-data: Likewise.
25431         * conform/data/time.h-data: Likewise.
25432         * conform/data/unistd.h-data: Likewise.
25433         * conform/data/utime.h-data: Likewise.
25434
25435         * io/sys/stat.h: fchmod was always in POSIX.
25436         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
25437         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
25438         * rt/aio.h: Define __need_timespec before including <time.h>.
25439         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
25440         struct.  Add forward declaration of pthread_attr_t and use it in
25441         sigevent.
25442         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25443         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25444         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
25445         always remove CLK_TCK definition.
25446
25447 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
25448
25449         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
25450
25451 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
25452
25453         * conform/run-conformtest.sh: New file.
25454         * conform/Makefile: Run run-conformtest for tests.
25455         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
25456         support.
25457
25458         * conform/data/uchar.h-data: New file.
25459         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
25460         * conform/data/arpa/inet.h-data: Likewise.
25461         * conform/data/assert.h-data: Likewise.
25462         * conform/data/complex.h-data: Likewise.
25463         * conform/data/cpio.h-data: Likewise.
25464         * conform/data/ctype.h-data: Likewise.
25465         * conform/data/dirent.h-data: Likewise.
25466         * conform/data/dlfcn.h-data: Likewise.
25467         * conform/data/errno.h-data: Likewise.
25468         * conform/data/fcntl.h-data: Likewise.
25469         * conform/data/float.h-data: Likewise.
25470         * conform/data/fmtmsg.h-data: Likewise.
25471         * conform/data/fnmatch.h-data: Likewise.
25472         * conform/data/ftw.h-data: Likewise.
25473         * conform/data/glob.h-data: Likewise.
25474         * conform/data/grp.h-data: Likewise.
25475         * conform/data/iconv.h-data: Likewise.
25476         * conform/data/inttypes.h-data: Likewise.
25477         * conform/data/langinfo.h-data: Likewise.
25478         * conform/data/libgen.h-data: Likewise.
25479         * conform/data/limits.h-data: Likewise.
25480         * conform/data/locale.h-data: Likewise.
25481         * conform/data/math.h-data: Likewise.
25482         * conform/data/monetary.h-data: Likewise.
25483         * conform/data/mqueue.h-data: Likewise.
25484         * conform/data/ndbm.h-data: Likewise.
25485         * conform/data/net/if.h-data: Likewise.
25486         * conform/data/netdb.h-data: Likewise.
25487         * conform/data/netinet/in.h-data: Likewise.
25488         * conform/data/nl_types.h-data: Likewise.
25489         * conform/data/poll.h-data: Likewise.
25490         * conform/data/pthread.h-data: Likewise.
25491         * conform/data/pwd.h-data: Likewise.
25492         * conform/data/regex.h-data: Likewise.
25493         * conform/data/sched.h-data: Likewise.
25494         * conform/data/search.h-data: Likewise.
25495         * conform/data/semaphore.h-data: Likewise.
25496         * conform/data/setjmp.h-data: Likewise.
25497         * conform/data/signal.h-data: Likewise.
25498         * conform/data/spawn.h-data: Likewise.
25499         * conform/data/stdarg.h-data: Likewise.
25500         * conform/data/stdio.h-data: Likewise.
25501         * conform/data/stdlib.h-data: Likewise.
25502         * conform/data/string.h-data: Likewise.
25503         * conform/data/strings.h-data: Likewise.
25504         * conform/data/stropts.h-data: Likewise.
25505         * conform/data/sys/ipc.h-data: Likewise.
25506         * conform/data/sys/mman.h-data: Likewise.
25507         * conform/data/sys/msg.h-data: Likewise.
25508         * conform/data/sys/resource.h-data: Likewise.
25509         * conform/data/sys/select.h-data: Likewise.
25510         * conform/data/sys/sem.h-data: Likewise.
25511         * conform/data/sys/shm.h-data: Likewise.
25512         * conform/data/sys/socket.h-data: Likewise.
25513         * conform/data/sys/stat.h-data: Likewise.
25514         * conform/data/sys/statvfs.h-data: Likewise.
25515         * conform/data/sys/time.h-data: Likewise.
25516         * conform/data/sys/timeb.h-data: Likewise.
25517         * conform/data/sys/times.h-data: Likewise.
25518         * conform/data/sys/types.h-data: Likewise.
25519         * conform/data/sys/uio.h-data: Likewise.
25520         * conform/data/sys/un.h-data: Likewise.
25521         * conform/data/sys/utsname.h-data: Likewise.
25522         * conform/data/sys/wait.h-data: Likewise.
25523         * conform/data/syslog.h-data: Likewise.
25524         * conform/data/tar.h-data: Likewise.
25525         * conform/data/termios.h-data: Likewise.
25526         * conform/data/utime.h-data: Likewise.
25527         * conform/data/utmpx.h-data: Likewise.
25528         * conform/data/varargs.h-data: Likewise.
25529         * conform/data/wchar.h-data: Likewise.
25530         * conform/data/wctype.h-data: Likewise.
25531         * conform/data/wordexp.h-data: Likewise.
25532
25533         * include/stropts.h: New file.
25534         * include/uchar.h: New file.
25535         * include/aio.h: Changes to allow conformtest.pl to use the headers.
25536         * include/assert.h: Likewise.
25537         * include/ctype.h: Likewise.
25538         * include/dirent.h: Likewise.
25539         * include/dlfcn.h: Likewise.
25540         * include/fcntl.h: Likewise.
25541         * include/fnmatch.h: Likewise.
25542         * include/glob.h: Likewise.
25543         * include/grp.h: Likewise.
25544         * include/libio.h: Likewise.
25545         * include/locale.h: Likewise.
25546         * include/math.h: Likewise.
25547         * include/net/if.h: Likewise.
25548         * include/netdb.h: Likewise.
25549         * include/netinet/in.h: Likewise.
25550         * include/pthread.h: Likewise.
25551         * include/pwd.h: Likewise.
25552         * include/regex.h: Likewise.
25553         * include/sched.h: Likewise.
25554         * include/search.h: Likewise.
25555         * include/setjmp.h: Likewise.
25556         * include/signal.h: Likewise.
25557         * include/stdio.h: Likewise.
25558         * include/stdlib.h: Likewise.
25559         * include/string.h: Likewise.
25560         * include/sys/cdefs.h: Likewise.
25561         * include/sys/mman.h: Likewise.
25562         * include/sys/msg.h: Likewise.
25563         * include/sys/resource.h: Likewise.
25564         * include/sys/select.h: Likewise.
25565         * include/sys/socket.h: Likewise.
25566         * include/sys/stat.h: Likewise.
25567         * include/sys/statvfs.h: Likewise.
25568         * include/sys/time.h: Likewise.
25569         * include/sys/times.h: Likewise.
25570         * include/sys/uio.h: Likewise.
25571         * include/sys/utsname.h: Likewise.
25572         * include/sys/wait.h: Likewise.
25573         * include/termios.h: Likewise.
25574         * include/time.h: Likewise.
25575         * include/ulimit.h: Likewise.
25576         * include/unistd.h: Likewise.
25577         * include/utime.h: Likewise.
25578         * include/wchar.h: Likewise.
25579         * include/wctype.h: Likewise.
25580         * include/wordexp.h: Likewise.
25581
25582         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
25583
25584         * time/time.h: TIME_UTC must be a macro.
25585         Make timespec_get available for ISO C11 only as well.
25586
25587 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
25588
25589         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
25590         Reported by Peng Haitao <penght@cn.fujitsu.com>.
25591
25592 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25593
25594         * configure.in: Use -o not -a in test for unsupported multi-arch.
25595
25596 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25597
25598         * manual/texinfo.tex: Update to version 2012-01-19.16.
25599
25600 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25601
25602         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
25603
25604 2012-02-24  Roland McGrath  <roland@hack.frob.com>
25605
25606         [BZ #13738]
25607         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
25608         * manual/fdl-1.3.texi: New file.
25609         * manual/fdl-1.1.texi: File removed.
25610
25611         [BZ #13738]
25612         * manual/libc.texinfo (FDL_VERSION): New @set.
25613         Use it for mention of FDL in cover text.
25614         (Documentation License): Use it in @include file name.
25615
25616 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25617             Roland McGrath  <roland@hack.frob.com>
25618
25619         [BZ #5461]
25620         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
25621         not LONG_LONG_MAX and LONG_LONG_MIN.
25622         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
25623         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
25624         name.
25625         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
25626
25627 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25628
25629         [BZ #2547]
25630         [BZ #11365]
25631         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
25632         manipulate bits before adding and subtracting TWO23[sx].
25633         * math/libm-test.inc (nearbyint_test): Add more tests.
25634
25635 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25636
25637         [BZ #2548]
25638         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
25639         bits before adding and subtracting TWO23[sx].
25640         * math/libm-test.inc (rint_test): Add more tests.
25641         (rint_test_tonearest): Likewise.
25642         (rint_test_towardzero): Likewise.
25643         (rint_test_downward): Likewise.
25644         (rint_test_upward: Likewise.
25645
25646 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25647
25648         [BZ #10110]
25649         * include/stdc-predef.h: New file.  Extracted from features.h.
25650         * include/features.h: Include stdc-predef.h.
25651         * Makefile (headers): Add stdc-predef.h.
25652         * CONFORMANCE (Compiler limitations): Update.
25653
25654 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25655
25656         * manual/libc.texinfo (VERSION, UPDATED): Revert.
25657
25658 2012-02-21  David S. Miller  <davem@davemloft.net>
25659
25660         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
25661         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
25662
25663 2012-02-20  David S. Miller  <davem@davemloft.net>
25664
25665         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
25666         using a normal save/restore sequence, rather than allocating a
25667         dummy stack frame just to store a frame pointer and restore.
25668         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25669
25670 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25671
25672         * manual/install.texi: Fix stray word in line-wrapped comment.
25673
25674 2012-02-20  David S. Miller  <davem@davemloft.net>
25675
25676         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
25677         both binutils and gcc support GOTDATA.
25678
25679         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
25680         "rd %pc" in the PIC register setup sequences.
25681
25682         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
25683         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25684         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25685         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25686         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25687         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
25688         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25689         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25690         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
25691         (SYSCALL_ERROR_HANDLER): Likewise.
25692         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25693         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25694         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
25695         (SYSCALL_ERROR_HANDLER): Likewise.
25696
25697         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
25698         (HAVE_GCC_GOTDATA): New.
25699         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
25700         relocation support in both binutils and gcc.
25701         * sysdeps/sparc/elf/configure: Regenerate.
25702
25703         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
25704         * sysdeps/sparc/sparc32/elf/configure: Delete.
25705         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
25706         * sysdeps/sparc/sparc64/elf/configure: Delete.
25707         * sysdeps/sparc/elf/configure.in: New file.
25708         * sysdeps/sparc/elf/configure: Generate.
25709
25710         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
25711         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
25712         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
25713         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
25714         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
25715
25716 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25717
25718         * manual/install.texi: Do not mention specific glibc version
25719         numbers.
25720         * manual/libc.texinfo (VERSION, UPDATED): Update.
25721         (@copying): Use @copyright{} and range of years.
25722
25723 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25724
25725         [BZ #13695]
25726         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
25727         [crti.S not in sysdirs] (generated): Do not append.
25728         [crti.S not in sysdirs] (omit-deps): Likewise.
25729         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
25730         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
25731         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
25732         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
25733         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
25734         Likewise.
25735         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
25736         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
25737         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
25738         * csu/defs.awk: Remove file.
25739         * sysdeps/generic/initfini.c: Likewise.
25740         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
25741         variable.
25742         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
25743         Likewise.
25744
25745 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25746
25747         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
25748         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
25749         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
25750         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
25751         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
25752         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
25753         <bits/epoll.h>.
25754         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
25755         (__EPOLL_PACKED): Define to empty if not defined by
25756         <bits/epoll.h>.
25757         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
25758         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25759         bits/epoll.h.
25760
25761 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25762
25763         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
25764         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
25765         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
25766         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
25767         <bits/timerfd.h>.
25768         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
25769         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25770         bits/timerfd.h.
25771
25772 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25773
25774         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
25775         in C locale.
25776         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25777         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
25778         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
25779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25780
25781 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
25782
25783         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25784         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
25785
25786 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
25787
25788         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
25789         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
25790         defined.
25791         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
25792         Likewise.
25793         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
25794         entry for 2.16.
25795
25796 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
25797
25798         * math/w_acos.c: Use non-signaling floating-point comparisons.
25799         * math/w_acosf.c: Likewise.
25800         * math/w_acosh.c: Likewise.
25801         * math/w_acoshf.c: Likewise.
25802         * math/w_acoshl.c: Likewise.
25803         * math/w_acosl.c: Likewise.
25804         * math/w_asin.c: Likewise.
25805         * math/w_asinf.c: Likewise.
25806         * math/w_asinl.c: Likewise.
25807         * math/w_atanh.c: Likewise.
25808         * math/w_atanhf.c: Likewise.
25809         * math/w_atanhl.c: Likewise.
25810         * math/w_exp2.c: Likewise.
25811         * math/w_exp2f.c: Likewise.
25812         * math/w_exp2l.c: Likewise.
25813         * math/w_j0.c: Likewise.
25814         * math/w_j0f.c: Likewise.
25815         * math/w_j0l.c: Likewise.
25816         * math/w_j1.c: Likewise.
25817         * math/w_j1f.c: Likewise.
25818         * math/w_j1l.c: Likewise.
25819         * math/w_jn.c: Likewise.
25820         * math/w_jnf.c: Likewise.
25821         * math/w_log.c: Likewise.
25822         * math/w_log10.c: Likewise.
25823         * math/w_log10f.c: Likewise.
25824         * math/w_log10l.c: Likewise.
25825         * math/w_log2.c: Likewise.
25826         * math/w_log2f.c: Likewise.
25827         * math/w_log2l.c: Likewise.
25828         * math/w_logf.c: Likewise.
25829         * math/w_logl.c: Likewise.
25830         * math/w_sqrt.c: Likewise.
25831         * math/w_sqrtf.c: Likewise.
25832         * math/w_sqrtl.c: Likewise.
25833         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
25834         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
25835         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
25836         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
25837         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
25838
25839 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
25840
25841         [BZ #9739]
25842         * manual/string.texi (strnlen): Use correct parameter name in
25843         equivalent expression.
25844
25845 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
25846
25847         [BZ #11174]
25848         * manual/users.texi (seteuid): Consistently use neweuid for
25849         argument name.
25850
25851 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
25852
25853         [BZ #13704]
25854         * manual/nss.texi (Services in the NSS configuration): Correct
25855         list of services in example configuration file.
25856
25857 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
25858
25859         [BZ #11322]
25860         * manual/arith.texi: Remove statements about negative zero
25861         behaving identically to zero.
25862
25863 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
25864
25865         [BZ #5993]
25866         * manual/install.texi: Do not document upgrading from libc5.
25867
25868 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
25869
25870         [BZ #4596]
25871         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
25872
25873 2012-02-18  David S. Miller  <davem@davemloft.net>
25874
25875         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
25876         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
25877         %o7 across the call.
25878         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
25879         instead.
25880         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
25881         SETUP_PIC_REG_LEAF.
25882         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25883         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
25884         * sysdeps/sparc/crtn.S: Likewise.
25885
25886 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
25887
25888         * aout/Makefile: Remove.
25889
25890 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
25891
25892         [BZ #13058]
25893         * manual/examples/argp-ex1.c (main): Format definition in GNU
25894         style.
25895         * manual/examples/argp-ex2.c (main): Likewise.
25896         * manual/examples/argp-ex3.c (main): Likewise.
25897         * manual/examples/argp-ex4.c (main): Likewise.
25898         * manual/examples/longopt.c (main): Use new-style prototype
25899         definition.
25900         * manual/examples/strncat.c (main): Specify return type and use
25901         (void) for arguments.
25902         * manual/examples/subopt.c (main): Use char **argv argument.
25903
25904 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25905
25906         [BZ #5077]
25907         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
25908         rounding modes.
25909
25910 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
25911
25912         [BZ #6907]
25913         * manual/string.texi (strchr): Change when strchrnul is
25914         recommended.
25915
25916 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
25917
25918         [BZ #174]
25919         * manual/locale.texi (setlocale): Document LOCPATH.
25920
25921 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25922
25923         [BZ #10210]
25924         * manual/process.texi (execle): Move @dots{} before last argument.
25925
25926 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
25927
25928         [BZ #12047]
25929         * manual/charset.texi (Generic Charset Conversion): Fix typo
25930         (LC_TYPE -> LC_CTYPE).
25931
25932 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
25933
25934         [BZ #5805]
25935         * manual/arith.texi (scalbn): Use @var{} on parameter names.
25936         (scalbnf): Likewise.
25937         (scalbnl): Likewise.
25938         (scalbln): Likewise.
25939         (scalblnf): Likewise.
25940         (scalblnl): Likewise.
25941         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
25942         (vwarnx): Likewise.
25943         (verr): Likewise.
25944         (verrx): Likewise.
25945         * manual/filesys.texi (telldir): Use braces around return type.
25946         * manual/llio.texi (mmap): Add space after comma.
25947         (mmap64): Likewise.
25948         * manual/math.texi (jn): Use @var{} on parameter names.
25949         (jnf): Likewise.
25950         (jnl): Likewise.
25951         (yn): Likewise.
25952         (ynf): Likewise.
25953         (ynl): Likewise.
25954         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
25955         line.
25956         * manual/resource.texi (ulimit): Use @dots{} instead of literal
25957         "...".
25958         (sched_get_priority_min): Remove semicolon on @deftypefun line.
25959         (sched_get_priority_max): Likewise.
25960         * manual/signal.texi (sigvec): Add space after comma.
25961         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
25962         names.
25963         (if_indextoname): Likewise.
25964         (if_freenameindex): Likewise.
25965         (sendto): Use ',' instead of '.' in prototype.
25966         * manual/startup.texi (syscall): Use @dots{} instead of literal
25967         "...".
25968         * manual/stdio.texi (__fpending): Separate initial words of
25969         paragraph from @deftypefun line.
25970         * manual/syslog.texi (syslog): Use @dots{} instead of literal
25971         "...".
25972         (vsyslog): Use @var{} on parameter names.
25973         * manual/terminal.texi (stty): Use @var{} on parameter names.
25974         * manual/users.texi (getutmp): Use @var{} on parameter names.
25975         (getutmpx): Likewise.
25976
25977 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25978
25979         [BZ #6884]
25980         * manual/stdio.texi (fopen): Fix typos in description of
25981         ",ccs=STRING".
25982
25983 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
25984
25985         [BZ #4026]
25986         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
25987         get clock_id definition.
25988
25989 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
25990
25991         [BZ #4822]
25992         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
25993         (madvise): Cast every argument to void on its own.
25994
25995 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25996
25997         [BZ #9902]
25998         * manual/startup.texi (Exit Status): Fix typo.
25999
26000 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26001
26002         [BZ #10140]
26003         * manual/examples/argp-ex1.c: Include <stdlib.h>.
26004         * manual/examples/argp-ex2.c: Likewise.
26005         * manual/examples/argp-ex3.c: Likewise.
26006
26007 2012-02-16  Richard Henderson  <rth@redhat.com>
26008
26009         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
26010         * sysdeps/s390/s390-32/initfini.c: Remove.
26011         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
26012         * sysdeps/s390/s390-64/initfini.c: Remove.
26013
26014 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
26015
26016         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
26017         compiler output for sysdeps/generic/initfini.c.
26018         * sysdeps/sh/elf/initfini.c: Remove file.
26019
26020 2012-02-16  David S. Miller  <davem@davemloft.net>
26021
26022         [BZ #11494]
26023         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
26024
26025         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
26026         * sysdeps/sparc/crti.S: New file.
26027         * sysdeps/sparc/crtn.S: New file.
26028         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
26029         * sysdeps/sparc/sparc64/Makefile: Likewise.
26030
26031 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
26032
26033         [BZ #3335]
26034         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
26035
26036 2012-02-15  Roland McGrath  <roland@hack.frob.com>
26037
26038         [BZ #4822]
26039         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
26040
26041         * mach/devstream.c (cookie_io_functions_t): Macro removed.
26042         (write, read, close): Likewise.
26043         Patch by Aurelien Jarno <aurelien@aurel32.net>.
26044
26045 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
26046
26047         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
26048         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
26049         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
26050         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
26051         <bits/signalfd.h>.
26052         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
26053         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26054         bits/signalfd.h.
26055
26056 2012-02-14  Marek Polacek  <polacek@redhat.com>
26057
26058         * sysdeps/x86_64/crti.S: New file.
26059         * sysdeps/x86_64/crtn.S: New file.
26060         * sysdeps/x86_64/elf/initfini.c: Remove file.
26061
26062 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26063
26064         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
26065         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
26066         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
26067         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
26068         <bits/inotify.h>.
26069         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
26070         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26071         bits/inotify.h.
26072
26073 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26074
26075         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
26076         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
26077         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
26078         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
26079         <bits/eventfd.h>.
26080         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
26081         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26082         bits/eventfd.h.
26083
26084 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
26085
26086         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
26087         __feraiseexcept instead of feraiseexcept.
26088
26089         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
26090         nanosleep invocations.
26091         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
26092         strings, and add error checking for a nanosleep invocations.
26093
26094 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26095
26096         Replace FSF snail mail address with URLs, as per GNU coding standards.
26097         Most of the snail mail addresses were wrong anyway, and omitting
26098         them makes the source code easier to maintain.  Almost all of the
26099         changes are to license notices and to locale LC_IDENTIFICATION
26100         addresses, except for this one:
26101         * manual/libc.texinfo: In "Published by", give the FSF's URL,
26102         not its snail mail address.
26103
26104 2012-02-09  Richard Henderson  <rth@twiddle.net>
26105
26106         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
26107         of kernel-features.h.
26108
26109         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
26110
26111 2012-02-08  Marek Polacek  <polacek@redhat.com>
26112
26113         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
26114         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
26115         * sysdeps/gnu/_G_config.h: Likewise.
26116         * sysdeps/generic/_G_config.h: Likewise.
26117
26118 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
26119
26120         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
26121         tests.
26122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26123
26124         * sysdeps/powerpc/powerpc32/crti.S: New file.
26125         * sysdeps/powerpc/powerpc32/crtn.S: New file.
26126         * sysdeps/powerpc/powerpc64/crti.S: New file.
26127         * sysdeps/powerpc/powerpc64/crtn.S: New file.
26128
26129         * Makeconfig (have-initfini): Don't set.
26130         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
26131         * configure.in (nopic_initfini): Don't substitute.
26132         * config.h.in (HAVE_INITFINI): Don't #undef.
26133         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
26134         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
26135
26136 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
26137
26138         Support crti.S and crtn.S provided directly by architectures.
26139         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
26140         [crti.S in sysdirs] (omit-deps): Likewise.
26141         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
26142         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
26143         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
26144         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
26145         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
26146         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
26147         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
26148         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
26149         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
26150         compiler output for sysdeps/generic/initfini.c.
26151         * sysdeps/i386/elf/Makefile: Remove file.
26152         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
26153
26154 2012-02-07  Marek Polacek  <polacek@redhat.com>
26155
26156         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
26157         * sysdeps/gnu/_G_config.h: Likewise.
26158         * sysdeps/mach/hurd/_G_config.h: Likewise.
26159
26160 2012-02-07  Marek Polacek  <polacek@redhat.com>
26161
26162         * math/Makefile (tests): Add tst-CMPLX2.
26163         * math/tst-CMPLX2.c: New file.
26164
26165 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
26166
26167         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26168
26169         * math/libm-test.inc (jn_test): Add missing L suffix.
26170
26171 2012-02-06  Marek Polacek  <polacek@redhat.com>
26172
26173         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
26174         * sysdeps/i386/fpu/e_powf.S: Likewise.
26175         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
26176         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26177         * sysdeps/i386/fpu/e_acosh.S: Likewise.
26178         * sysdeps/i386/fpu/e_pow.S: Likewise.
26179         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
26180         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
26181         * sysdeps/i386/fpu/s_expm1.S: Likewise.
26182         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
26183         * sysdeps/i386/fpu/e_log2.S: Likewise.
26184         * sysdeps/i386/fpu/e_log2l.S: Likewise.
26185         * sysdeps/i386/fpu/e_scalb.S: Likewise.
26186         * sysdeps/i386/fpu/e_powl.S: Likewise.
26187         * sysdeps/i386/fpu/s_log1p.S: Likewise.
26188         * sysdeps/i386/fpu/e_log10f.S: Likewise.
26189         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
26190         * sysdeps/i386/fpu/e_logl.S: Likewise.
26191         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
26192         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
26193         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
26194         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
26195         * sysdeps/i386/fpu/e_log2f.S: Likewise.
26196         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
26197         * sysdeps/i386/fpu/e_log.S: Likewise.
26198         * sysdeps/i386/fpu/s_cexp.S: Likewise.
26199         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
26200         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
26201         * sysdeps/i386/fpu/e_logf.S: Likewise.
26202         * sysdeps/i386/fpu/e_log10l.S: Likewise.
26203         * sysdeps/i386/fpu/e_atanh.S: Likewise.
26204         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
26205         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
26206         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26207         * sysdeps/i386/fpu/e_log10.S: Likewise.
26208         * sysdeps/i386/fpu/s_frexp.S: Likewise.
26209         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
26210         * sysdeps/i386/fpu/s_asinh.S: Likewise.
26211         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
26212         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
26213         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
26214         * sysdeps/i386/asm-syntax.h: Likewise.
26215         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
26216         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26217         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
26218         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
26219         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
26220         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
26221         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
26222         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
26223         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
26224         * sysdeps/powerpc/sysdep.h: Likewise.
26225         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
26226         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
26227
26228 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26229
26230         [BZ #411]
26231         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
26232
26233 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26234
26235         * sysdeps/i386/sysdep.h: Include <features.h>.
26236         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
26237         version.
26238
26239 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
26240
26241         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
26242         Define.
26243         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
26244         LOAD_PIC_REG_STR.
26245
26246 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26247
26248         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
26249         (SETUP_PIC_REG): Use GET_PC_THUNK.
26250         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
26251         macro.
26252
26253 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26254
26255         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
26256         for non-PIC compilation.
26257         (SETUP_PIC_REG): Add .p2align directive.
26258         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
26259         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
26260         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26261         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26262         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
26263         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26264         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
26265         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26266         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26267         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26268         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26269         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26270         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26271         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26272         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26273         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
26274         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
26275         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26276         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26277         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26278         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26279         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
26280         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26281         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26282         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
26283         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
26284         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26285         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
26286         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26287         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26288         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26289         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26290         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26291         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26292         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26293         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26294         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26295         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26296         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26297         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26298         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26299
26300 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26301
26302         * math/tst-CMPLX.c: Include <stdio.h>.
26303
26304 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
26305
26306         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
26307         float.
26308         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26309         * sysdeps/sparc/bits/mathdef.h: Likewise.
26310
26311 2012-01-31  Marek Polacek  <polacek@redhat.com>
26312
26313         * libio/libio.h: Don't define _PARAMS.
26314         * locale/programs/config.h: Don't define PARAMS.
26315         * stdlib/strtol_l.c: Likewise.
26316         (__strtol_l): Remove PARAMS from the prototype.
26317
26318 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
26319
26320         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
26321         names.  Just use the correct names.  Remove unnecessary wrapper
26322         functions.
26323         * malloc/arena.c: Likewise.
26324         * malloc/hooks.c: Likewise.
26325
26326         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
26327         ARENA_TEST says not to.  Simplify test for creation of a new arena.
26328         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
26329
26330 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
26331
26332         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
26333         into tail calls.
26334         (update_get_addr): New function.
26335         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
26336         GET_ADDR_MODULE parameter.
26337
26338 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
26339
26340         * crypt/cert.c: Remove __STDC__ conditionals.
26341         * crypt/crypt-entry.c: Likewise.
26342         * crypt/crypt_util.c: Likewise.
26343         * libio/filedoalloc.c: Likewise.
26344         * libio/fileops.c: Likewise.
26345         * libio/genops.c: Likewise.
26346         * libio/iofclose.c: Likewise.
26347         * libio/iofdopen.c: Likewise.
26348         * libio/iofopen.c: Likewise.
26349         * libio/iofopen64.c: Likewise.
26350         * libio/iogetdelim.c: Likewise.
26351         * libio/iopopen.c: Likewise.
26352         * libio/obprintf.c: Likewise.
26353         * libio/oldfileops.c: Likewise.
26354         * libio/oldiofclose.c: Likewise.
26355         * libio/oldiofdopen.c: Likewise.
26356         * libio/oldiofopen.c: Likewise.
26357         * libio/oldiopopen.c: Likewise.
26358         * libio/wfiledoalloc.c: Likewise.
26359         * libio/wgenops.c: Likewise.
26360         * locale/programs/xmalloc.c: Likewise.
26361         * misc/syslog.c: Likewise.
26362         * stdio-common/xbug.c: Likewise.
26363         * string/memchr.c: Likewise.
26364         * string/memcmp.c: Likewise.
26365         * string/memrchr.c: Likewise.
26366         * string/rawmemchr.c: Likewise.
26367         * sysdeps/posix/getcwd.c: Likewise.
26368         * time/strftime_l.c: Likewise.
26369
26370 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
26371
26372         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
26373         * config.make.in (config-cflags-sse2avx): Define.
26374         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
26375         Fix typo.
26376
26377 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
26378
26379         * scripts/config.guess: Update from upstream config git repository.
26380         * scripts/config.sub: Likewise.
26381
26382 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
26383
26384         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
26385         (EM_NUM): Update.
26386         (R_TILEPRO_*, R_TILEGX_*): New macros.
26387
26388         * scripts/firstversions.awk: Fix bug in version range handling.
26389
26390         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
26391
26392         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
26393
26394         * include/sys/epoll.h: New file.
26395         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
26396         libc_hidden_def.
26397
26398 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
26399
26400         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
26401         Avoid unnecessary __WORDSIZE == 64 test.
26402         (fmaxf): Use VEX format if possible.
26403         (fmax): Likewise.
26404         (fminf): Likewise.
26405         (fmin): Likewise.
26406
26407         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
26408         * math/math_private.h: Remove libc_fegetround* and
26409         libc_fesetround*.
26410         * sysdeps/i386/configure.in: Check for -msse2avx.
26411         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
26412         also if SSE2AVX is defined.
26413         Remove libc_fegetround* and libc_fesetround*.
26414         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
26415         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
26416         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
26417         of HAS_YMM_USABLE.
26418         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26419         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26420         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26421         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26422         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26423
26424         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
26425
26426 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26427
26428         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
26429         size is not set.
26430         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
26431
26432 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
26433
26434         [BZ #13618]
26435         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
26436         relocation.
26437         * Makeconfig (libm): Define.
26438         * elf/Makefile: Add rules to build and run tst-relsort1.
26439         * elf/tst-relsort1.c: New file.
26440         * elf/tst-relsort1mod1.c: New file.
26441         * elf/tst-relsort1mod2.c: New file.
26442
26443 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
26444
26445         * math/s_ldexp.c: Remove __STDC__ conditionals.
26446         * math/s_ldexpf.c: Likewise.
26447         * math/s_ldexpl.c: Likewise.
26448         * math/s_nextafter.c: Likewise.
26449         * math/s_nexttowardf.c: Likewise.
26450         * math/s_significand.c: Likewise.
26451         * math/s_significandf.c: Likewise.
26452         * math/s_significandl.c: Likewise.
26453         * math/w_jnl.c: Likewise.
26454         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
26455         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
26456         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
26457         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
26458         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
26459         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
26460         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
26461         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
26462         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
26463         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
26464         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
26465         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
26466         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
26467         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
26468         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
26469         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
26470         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
26471         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
26472         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
26473         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
26474         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
26475         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
26476         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
26477         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
26478         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
26479         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
26480         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
26481         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
26482         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
26483         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
26484         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
26485         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
26486         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
26487         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
26488         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
26489         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
26490         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
26491         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
26492         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
26493         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
26494         * sysdeps/ieee754/k_standard.c: Likewise.
26495         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
26496         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
26497         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
26498         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
26499         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
26500         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
26501         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
26502         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
26503         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
26504         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
26505         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
26506         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
26507         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
26508         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
26509         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
26510         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
26511         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
26512         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
26513         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
26514         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
26515         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
26516         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
26517         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
26518         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
26519         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
26520         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
26521         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
26522         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
26523         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
26524         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
26525         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
26526         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
26527         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
26528         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
26529         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
26530         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
26531         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
26532         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
26533         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
26534         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
26535         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
26536         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
26537         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
26538         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
26539         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
26540         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
26541         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
26542         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
26543         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
26544         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
26545         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
26546         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
26547         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
26548         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
26549         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
26550         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
26551         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
26552         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
26553         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
26554         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
26555         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
26556         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
26557         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
26558         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
26559         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
26560         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
26561         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
26562         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
26563         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
26564         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
26565         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
26566         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
26567         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
26568         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
26569         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
26570         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
26571         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
26572         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
26573         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
26574         * sysdeps/ieee754/s_matherr.c: Likewise.
26575         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
26576         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
26577         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
26578         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
26579
26580 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
26581
26582         * crypt/md5.h: Remove __STDC__ conditionals.
26583         * libio/libioP.h: Likewise.
26584         * locale/programs/config.h: Likewise.
26585         * sysdeps/generic/sysdep.h: Likewise.
26586         * sysdeps/i386/asm-syntax.h: Likewise.
26587         * sysdeps/s390/asm-syntax.h: Likewise.
26588         * sysdeps/unix/sysdep.h: Likewise.
26589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26591
26592 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
26593
26594         * libio/libio.h: Remove __STDC__ conditionals.
26595         * malloc/obstack.h: Likewise.
26596         * math/complex.h: Likewise.
26597         * math/math.h: Likewise.
26598         * sysdeps/generic/_G_config.h: Likewise.
26599         * sysdeps/gnu/_G_config.h: Likewise.
26600         * sysdeps/mach/hurd/_G_config.h: Likewise.
26601         * sysdeps/powerpc/bits/mathdef.h: Likewise.
26602         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26603         * sysdeps/sparc/bits/mathdef.h: Likewise.
26604
26605 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
26606
26607         [BZ #13583]
26608         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
26609         Clean up HAS_* macros.
26610         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
26611         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
26612         possible.
26613         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
26614         HAS_AVX.
26615         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26616         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26617         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26618         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26619         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26620
26621 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
26622
26623         * elf/tst-unique3.cc (gets): Remove declaration.
26624         * elf/tst-unique3lib.cc (gets): Likewise.
26625         * elf/tst-unique3lib2.cc (gets): Likewise.
26626         * elf/tst-unique4.cc (gets): Likewise.
26627
26628 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
26629
26630         * include/stdio.h: Add C++ protection.  Add gets declarations and
26631         definitions.
26632         * debug/tst-chk1.c: Don't declare gets here.
26633         * stdio-common/tst-gets.c: Likewise.
26634
26635 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
26636
26637         * posix/glob: Remove directory.
26638
26639 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
26640
26641         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
26642
26643 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
26644
26645         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
26646         of the non-standard EPFNOSUPPORT.
26647
26648 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26649
26650         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
26651         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
26652         ANYWHERE set to 1 only on KERN_NO_SPACE error.
26653
26654 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
26655
26656         * wcsmbs/uchar.h: Test __STDC_VERSION__.
26657
26658 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
26659
26660         * nscd/aicache.c (addhstaiX): Do not cache negative results of
26661         transient errors.
26662         * nscd/grpcache.c (cache_addgr): Likewise.
26663         * nscd/hstcache.c (cache_addhst): Likewise.
26664         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26665         * nscd/pwdcache.c (cache_addpw): Likewise.
26666         * nscd/servicescache.c (cache_addserv): Likewise.
26667
26668 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
26669
26670         * malloc/malloc.c: Various cleanups.
26671         * malloc/hooks.c: Likewise.
26672
26673         * stdlib/Makefile (tests): Add bug-fmtmsg1.
26674         * stdlib/bug-fmtmsg1.c: New file.
26675
26676         * stdlib/fmtmsg.c (init): Add missing unlock.
26677         Patch by Peng Haitao <penght@cn.fujitsu.com>.
26678
26679 2012-01-12  Marek Polacek  <polacek@redhat.com>
26680
26681         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
26682         and _GNU_SOURCE.
26683
26684 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
26685
26686         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
26687         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
26688         macro to ensure uniqueness of label name.
26689         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
26690         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
26691
26692 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
26693
26694         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
26695
26696         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
26697         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
26698         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
26699         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
26700
26701 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
26702
26703         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
26704
26705         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
26706         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
26707         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
26708
26709         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
26710
26711         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
26712         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
26713         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
26714         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
26715
26716         * math/bits/math-finite.h: Add ldexp support.
26717
26718 2012-01-10  Marek Polacek  <polacek@redhat.com>
26719
26720         * locale/programs/localedef.h (show_archive_content): Add noreturn
26721         attribute.
26722
26723 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
26724
26725         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
26726
26727 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26728
26729         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
26730
26731         * io/Makefile (headers): Add bits/poll2.h.
26732
26733 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
26734
26735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
26736         typo #include statement.
26737
26738 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26739
26740         * include/sys/cdefs.h: Define __attribute_alloc_size.
26741         * catgets/gencat.c: Add alloc_size attribute and apply consistently
26742         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
26743         * elf/pldd.c: Likewise.
26744         * iconv/iconv_charmap.c: Likewise.
26745         * iconv/iconvconfig.c: Likewise.
26746         * iconv/strtab.c: Likewise.
26747         * locale/programs/locale.c: Likewise.
26748         * locale/programs/localedef.h: Likewise.
26749         * locale/programs/simple-hash.c: Likewise.
26750         * nscd/nscd.h: Likewise.
26751         * nss/makedb.c: Likewise.
26752         * sysdeps/generic/ldconfig.h: Likewise.
26753         * locale/programs/localedef.c: Remove xmalloc prototype.
26754         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
26755
26756 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26757
26758         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
26759         appropriate.
26760
26761 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26762
26763         * math/Makefile (tests): Add tst-CMPLX.
26764         * math/tst-CMPLX.c: New file.
26765
26766         * math/complex.h (CMPLXL): Fix typo.
26767
26768         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
26769         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
26770         GLIBC_2.16.
26771         * debug/tst-chk1.c: Add poll and ppoll tests.
26772         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
26773         * include/sys/poll.h: Add hidden proto for ppoll.
26774         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
26775         * sysdeps/mach/hurd/ppoll.c: Likewise.
26776         * io/ppoll.c: Likewise.
26777         * debug/poll_chk.c: New file.
26778         * debug/ppoll_chk.c: New file.
26779         * include/bits/poll2.h: New file.
26780         * io/bits/poll2.h: New file.
26781
26782         [BZ #1350]
26783         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
26784
26785         * configure.in: static is always set to yes.  Remove.
26786         * config.make.in: Don't set build-static.
26787         * Makeconfig: Remove use of build-static.
26788         * dlfcn/Makefile: Likewise.
26789         * elf/Makefile: Likewise.
26790         * math/Makefile: Likewise.
26791         * misc/Makefile: Likewise.
26792         * nptl/Makefile: Likewise.
26793         * sysdeps/mach/hurd/Makefile: Likewise.
26794
26795         * configure.in: PWD_P is not used anymore.
26796         * config.make.in: Remove PWD_P entry.
26797
26798         * configure.in: Remove last remnants of RANLIB.
26799         No need to check for signed size_t anymore.
26800         Don't set libc_commonpagesize and libc_relro_required here for Alpha
26801         and IA-64.
26802         Remove __builtin_expect test because we require at least gcc 3.4.
26803         * aclocal.m4: Likewise.
26804
26805         * wcsmbs/mbrtoc16.c: Implement using towc function.
26806         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
26807         * wcsmbs/wcsmbsload.c: Likewise.
26808         * iconv/gconv_simple.c: Likewise.
26809         * iconv/gconv_int.h: Likewise.
26810         * iconv/gconv_builtin.h: Likewise.
26811         * iconv/iconv_prog.c: Remove CHAR16 handling.
26812
26813         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
26814
26815         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
26816
26817         * configure.in: Remove --with-elf and --enable-bounded options.
26818         Dont set base_machine for ia64.  More non-ELF conditions removed.
26819         Remove testing and setting of leading underscore information.
26820         * config.make.in (build-bounded): Set to no.
26821         * config.h.in: Remove NO_UNDERSCORES entry.
26822         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
26823         them.
26824         * csu/start.c: Remove !NO_UNDERSCORE code.
26825         * locale/localeinfo.h: Likewise.
26826         * sysdeps/generic/machine-gmon.h: Likewise.
26827         * sysdeps/generic/sysdep.h: Likewise.
26828         * sysdeps/i386/sysdep.h: Likewise.
26829         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
26830         * sysdeps/mach/sysdep.h: Likewise.
26831         * sysdeps/s390/s390-32/sysdep.h: Likewise.
26832         * sysdeps/s390/s390-64/sysdep.h: Likewise.
26833         * sysdeps/sh/sysdep.h: Likewise.
26834         * sysdeps/sparc/sparc32/alloca.S: Likewise.
26835         * sysdeps/unix/i386/sysdep.S: Likewise.
26836         * sysdeps/unix/sparc/start.c: Likewise.
26837         * sysdeps/unix/sparc/sysdep.S: Likewise.
26838         * sysdeps/unix/sparc/sysdep.h: Likewise.
26839         * sysdeps/unix/start.c: Likewise.
26840         * sysdeps/unix/x86_64/sysdep.S: Likewise.
26841         * sysdeps/x86_64/sysdep.h: Likewise.
26842
26843 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
26844
26845         [BZ #13553]
26846         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
26847         for non-gcc.
26848         * argp/argp-fmtstream.h: Use const instead __const.
26849         * argp/argp.h: Likewise.
26850         * assert/assert.h: Likewise.
26851         * bits/fenv.h: Likewise.
26852         * bits/sched.h: Likewise.
26853         * bits/sigset.h: Likewise.
26854         * bits/sigthread.h: Likewise.
26855         * catgets/nl_types.h: Likewise.
26856         * conform/data/pthread.h-data: Likewise.
26857         * crypt/crypt-private.h: Likewise.
26858         * crypt/crypt.h: Likewise.
26859         * crypt/crypt_util.c: Likewise.
26860         * ctype/ctype.h: Likewise.
26861         * debug/execinfo.h: Likewise.
26862         * debug/mbsnrtowcs_chk.c: Likewise.
26863         * debug/mbsrtowcs_chk.c: Likewise.
26864         * debug/wcsnrtombs_chk.c: Likewise.
26865         * debug/wcsrtombs_chk.c: Likewise.
26866         * debug/wcstombs_chk.c: Likewise.
26867         * dirent/dirent.h: Likewise.
26868         * dlfcn/dlfcn.h: Likewise.
26869         * elf/neededtest4.c: Likewise.
26870         * grp/grp.h: Likewise.
26871         * gshadow/gshadow.h: Likewise.
26872         * iconv/gconv.h: Likewise.
26873         * iconv/gconv_int.h: Likewise.
26874         * iconv/gconv_simple.c: Likewise.
26875         * iconv/iconv.h: Likewise.
26876         * iconv/loop.c: Likewise.
26877         * iconv/skeleton.c: Likewise.
26878         * include/aio.h: Likewise.
26879         * include/aliases.h: Likewise.
26880         * include/argz.h: Likewise.
26881         * include/arpa/inet.h: Likewise.
26882         * include/assert.h: Likewise.
26883         * include/dirent.h: Likewise.
26884         * include/dlfcn.h: Likewise.
26885         * include/execinfo.h: Likewise.
26886         * include/fcntl.h: Likewise.
26887         * include/fenv.h: Likewise.
26888         * include/glob.h: Likewise.
26889         * include/grp.h: Likewise.
26890         * include/libintl.h: Likewise.
26891         * include/mntent.h: Likewise.
26892         * include/netdb.h: Likewise.
26893         * include/pwd.h: Likewise.
26894         * include/rpc/netdb.h: Likewise.
26895         * include/sched.h: Likewise.
26896         * include/search.h: Likewise.
26897         * include/shadow.h: Likewise.
26898         * include/signal.h: Likewise.
26899         * include/stdio.h: Likewise.
26900         * include/stdlib.h: Likewise.
26901         * include/string.h: Likewise.
26902         * include/sys/socket.h: Likewise.
26903         * include/sys/stat.h: Likewise.
26904         * include/sys/statfs.h: Likewise.
26905         * include/sys/statvfs.h: Likewise.
26906         * include/sys/syslog.h: Likewise.
26907         * include/sys/time.h: Likewise.
26908         * include/sys/uio.h: Likewise.
26909         * include/time.h: Likewise.
26910         * include/unistd.h: Likewise.
26911         * include/utmp.h: Likewise.
26912         * include/wchar.h: Likewise.
26913         * include/wctype.h: Likewise.
26914         * inet/aliases.h: Likewise.
26915         * inet/arpa/inet.h: Likewise.
26916         * inet/netinet/ether.h: Likewise.
26917         * inet/netinet/in.h: Likewise.
26918         * intl/libintl.h: Likewise.
26919         * io/bits/fcntl2.h: Likewise.
26920         * io/fcntl.h: Likewise.
26921         * io/ftw.h: Likewise.
26922         * io/sys/poll.h: Likewise.
26923         * io/sys/stat.h: Likewise.
26924         * io/sys/statfs.h: Likewise.
26925         * io/sys/statvfs.h: Likewise.
26926         * io/utime.h: Likewise.
26927         * libio/bits/stdio.h: Likewise.
26928         * libio/bits/stdio2.h: Likewise.
26929         * libio/libio.h: Likewise.
26930         * libio/libioP.h: Likewise.
26931         * libio/stdio.h: Likewise.
26932         * locale/lc-ctype.c: Likewise.
26933         * locale/locale.h: Likewise.
26934         * login/utmp.h: Likewise.
26935         * malloc/arena.c: Likewise.
26936         * malloc/malloc.c: Likewise.
26937         * malloc/malloc.h: Likewise.
26938         * malloc/mcheck.c: Likewise.
26939         * malloc/mtrace.c: Likewise.
26940         * math/bits/mathcalls.h: Likewise.
26941         * math/fenv.h: Likewise.
26942         * math/math_private.h: Likewise.
26943         * misc/bits/error.h: Likewise.
26944         * misc/bits/syslog.h: Likewise.
26945         * misc/err.h: Likewise.
26946         * misc/error.h: Likewise.
26947         * misc/fstab.h: Likewise.
26948         * misc/mntent.h: Likewise.
26949         * misc/regexp.h: Likewise.
26950         * misc/search.h: Likewise.
26951         * misc/sgtty.h: Likewise.
26952         * misc/sys/mman.h: Likewise.
26953         * misc/sys/syslog.h: Likewise.
26954         * misc/sys/uio.h: Likewise.
26955         * misc/sys/xattr.h: Likewise.
26956         * misc/ttyent.h: Likewise.
26957         * nis/rpcsvc/ypclnt.h: Likewise.
26958         * nss/nss.h: Likewise.
26959         * posix/bits/unistd.h: Likewise.
26960         * posix/fnmatch.h: Likewise.
26961         * posix/glob.h: Likewise.
26962         * posix/sched.h: Likewise.
26963         * posix/spawn.h: Likewise.
26964         * posix/sys/wait.h: Likewise.
26965         * posix/unistd.h: Likewise.
26966         * posix/wordexp.h: Likewise.
26967         * pwd/pwd.h: Likewise.
26968         * resolv/netdb.h: Likewise.
26969         * resource/sys/resource.h: Likewise.
26970         * rt/aio.h: Likewise.
26971         * rt/bits/mqueue2.h: Likewise.
26972         * rt/mqueue.h: Likewise.
26973         * shadow/shadow.h: Likewise.
26974         * signal/signal.h: Likewise.
26975         * socket/send.c: Likewise.
26976         * socket/sendto.c: Likewise.
26977         * socket/sys/socket.h: Likewise.
26978         * stdio-common/printf.h: Likewise.
26979         * stdlib/bits/stdlib.h: Likewise.
26980         * stdlib/fmtmsg.h: Likewise.
26981         * stdlib/monetary.h: Likewise.
26982         * stdlib/stdlib.h: Likewise.
26983         * stdlib/ucontext.h: Likewise.
26984         * streams/stropts.h: Likewise.
26985         * string/argz.h: Likewise.
26986         * string/bits/string2.h: Likewise.
26987         * string/string.h: Likewise.
26988         * string/strings.h: Likewise.
26989         * sunrpc/rpc/auth.h: Likewise.
26990         * sunrpc/rpc/auth_des.h: Likewise.
26991         * sunrpc/rpc/clnt.h: Likewise.
26992         * sunrpc/rpc/netdb.h: Likewise.
26993         * sunrpc/rpc/pmap_clnt.h: Likewise.
26994         * sunrpc/rpc/xdr.h: Likewise.
26995         * sysdeps/generic/inttypes.h: Likewise.
26996         * sysdeps/generic/net/if.h: Likewise.
26997         * sysdeps/generic/sys/swap.h: Likewise.
26998         * sysdeps/gnu/net/if.h: Likewise.
26999         * sysdeps/gnu/utmpx.h: Likewise.
27000         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
27001         * sysdeps/i386/i486/bits/string.h: Likewise.
27002         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
27003         * sysdeps/s390/bits/string.h: Likewise.
27004         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
27005         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
27006         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27007         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
27008         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
27009         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
27010         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
27011         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
27012         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
27013         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27014         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
27015         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
27016         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
27017         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
27018         * sysdeps/unix/sysv/linux/readv.c: Likewise.
27019         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
27020         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
27021         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27022         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27023         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27024         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27025         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
27026         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
27027         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
27028         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
27029         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
27030         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
27031         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27032         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
27033         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
27034         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
27035         * sysvipc/sys/ipc.h: Likewise.
27036         * sysvipc/sys/msg.h: Likewise.
27037         * sysvipc/sys/sem.h: Likewise.
27038         * sysvipc/sys/shm.h: Likewise.
27039         * termios/termios.h: Likewise.
27040         * time/sys/time.h: Likewise.
27041         * time/time.h: Likewise.
27042         * wcsmbs/bits/wchar2.h: Likewise.
27043         * wcsmbs/uchar.h: Likewise.
27044         * wcsmbs/wchar.h: Likewise.
27045         * wctype/wctype.h: Likewise.
27046
27047         [BZ #13551]
27048         * Makeconfig: Remove all but ELF support including AIX support.
27049         * Makerules: Likewise.
27050         * config.h.in: Likewise.
27051         * config.make.in: Likewise.
27052         * configure: Likewise.
27053         * configure.in: Likewise.
27054         * csu/Makefile: Likewise.
27055         * csu/version.c: Likewise.
27056         * debug/Makefile: Likewise.
27057         * dlfcn/Makefile: Likewise.
27058         * elf/Makefile: Likewise.
27059         * extra-lib.mk: Likewise.
27060         * iconv/Makefile: Likewise.
27061         * include/libc-symbols.h: Likewise.
27062         * include/shlib-compat.h: Likewise.
27063         * resolv/Makefile: Likewise.
27064         * resolv/res_libc.c: Likewise.
27065         * rt/Makefile: Likewise.
27066         * sysdeps/i386/asm-syntax.h: Likewise.
27067         * sysdeps/i386/sysdep.h: Likewise.
27068         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27069         * sysdeps/mach/sysdep.h: Likewise.
27070         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
27071         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
27072         * sysdeps/s390/asm-syntax.h: Likewise.
27073         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27074         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27075         * sysdeps/sh/sysdep.h: Likewise.
27076         * sysdeps/unix/sparc/sysdep.h: Likewise.
27077         * sysdeps/wordsize-32/divdi3.c: Likewise.
27078         * sysdeps/x86_64/sysdep.h: Likewise.
27079
27080         * argp/Versions: Remove _argp_unlock_xxx.
27081
27082         [BZ #13559]
27083         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
27084         * abilist/libBrokenLocale.abilist: Likewise.
27085         * abilist/libanl.abilist: Likewise.
27086         * abilist/libc.abilist: Likewise.
27087         * abilist/libcrypt.abilist: Likewise.
27088         * abilist/libdl.abilist: Likewise.
27089         * abilist/libm.abilist: Likewise.
27090         * abilist/libnsl.abilist: Likewise.
27091         * abilist/libpthread.abilist: Likewise.
27092         * abilist/libresolv.abilist: Likewise.
27093         * abilist/librt.abilist: Likewise.
27094         * abilist/libthread_db.abilist: Likewise.
27095         * abilist/libutil.abilist: Likewise.
27096         * abilist/libnss_db.abilist: New file.
27097
27098         * scripts/abilist.awk: Add support for indirect functions.
27099
27100         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
27101
27102         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
27103
27104         * shlib-versions: Remove entries for ports architectures.
27105
27106         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
27107         files in ports.
27108         * elf/stackguard-macros.h: Remove support for IA-64.
27109         * elf/tst-auditmod1.c: Likewise.
27110         * sysdeps/generic/ldsodefs.h: Likewise.
27111
27112         * sysdeps/unix/sysv/linux/configure.in: Ports should define
27113         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
27114         configure files.
27115
27116         [BZ #13552]
27117         * configure.in: Remove --enable-omitfp support.
27118         * FAQ.in: Adjust.
27119         * config.make.in: Likewise.
27120         * Makeconfig: Likewise.
27121         * manual/install.texi: Likewise.
27122
27123         In case anyone cares, the IA-64 architecture could move to ports.
27124         * sysdeps/ia64/*: Removed.
27125         * sysdeps/unix/sysv/linux/ia64/*: Removed.
27126         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
27127
27128         [BZ #13555]
27129         * configure.in: Remove entries for unsupported architectures.
27130
27131         [BZ #13533]
27132         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
27133         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
27134         routines.
27135         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
27136         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
27137         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
27138         fall back to using wcrtomb.
27139         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
27140         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
27141         renaming.
27142         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
27143         * wcsmbs/tst-c16c32-1.c: New file.
27144
27145         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
27146         local variable.
27147
27148         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
27149
27150         * elf/tst-unique3.cc: Add explicit declaration of gets.
27151         * elf/tst-unique3lib.cc: Likewise.
27152         * elf/tst-unique3lib2.cc: Likewise.
27153         * elf/tst-unique4.cc: Likewise.
27154
27155         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
27156
27157 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
27158
27159         [BZ #13566]
27160         * assert/assert.h (static_assert): Don't define for C++.
27161         * libio/stdio.h (gets): Do declare for C++ <= C++11.
27162         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
27163
27164 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
27165
27166         * iconv/loop.c (single loop): Fix assertion in storing of
27167         remaining bytes.
27168
27169         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
27170
27171 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
27172
27173         * posix/getconf.c: Update copyright year.
27174         * nss/getent.c: Likewise.
27175         * nss/makedb.c: Likewise.
27176         * iconv/iconvconfig.c: Likewise.
27177         * iconv/iconv_prog.c: Likewise.
27178         * elf/ldconfig.c: Likewise.
27179         * elf/pldd.c: Likewise.
27180         * elf/sotruss.ksh: Likewise.
27181         * catgets/gencat.c: Likewise.
27182         * csu/version.c: Likewise.
27183         * elf/ldd.bash.in: Likewise.
27184         * elf/sprof.c (print_version): Likewise.
27185         * locale/programs/locale.c: Likewise.
27186         * locale/programs/localedef.c: Likewise.
27187         * login/programs/pt_chown.c: Likewise.
27188         * nscd/nscd.c (print_version): Likewise.
27189         * debug/xtrace.sh: Likewise.
27190         * malloc/memusage.sh: Likewise.
27191         * malloc/mtrace.pl: Likewise.
27192         * debug/catchsegv.sh: Likewise.
27193
27194 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
27195
27196         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
27197         pure attribute.
27198
27199 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
27200
27201         [BZ #13533]
27202         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
27203         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
27204         transformations.
27205         * iconv/gconv_int.h: Likewise.
27206         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
27207         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
27208         from libc for GLIBC_2.16.
27209         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
27210         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
27211         * wcsmbs/uchar.h: Really define mbstate_t.
27212         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
27213         * wcsmbs/c16rtomb.c: New file.
27214         * wcsmbs/mbrtoc16.c: New file.
27215         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
27216         for C/POSIX locale.
27217         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
27218         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
27219
27220         * wcsmbs/wchar.h: Add missing __restrict.
27221
27222 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27223
27224         [BZ #13532]
27225         * time/Makefile (routines): Add timespec_get.
27226         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
27227         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
27228         timespec for ISO C11.
27229         * time/timespec_get.c: New file.
27230         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
27231         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
27232
27233         [BZ #13531]
27234         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
27235         * stdlib/stdlib.h: Declare aligned_alloc.
27236         * Versions.def: Add GLIBC_2.16 for libc.
27237         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
27238
27239         [BZ 13527]
27240         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
27241         ISO C11.
27242
27243         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
27244         code.
27245
27246         [BZ #13528]
27247         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
27248
27249         [BZ #13529]
27250         * assert/assert.h (static_assert): Define.
27251
27252         * version.h: Update for 2.16 development version.
27253
27254         [BZ #13526]
27255         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
27256         _ISOC11_SOURCE.
27257
27258         * version.h (RELEASE): Bump for 2.15 release.
27259         * include/features.h (__GLIBC_MINOR__): Bump to 15.
27260
27261         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
27262         Patch by Marek Polacek <mpolacek@redhat.com>.
27263
27264         * bits/byteswap.h: Protect long long constants with __extension__.
27265         * sysdeps/i386/bits/byteswap.h: Likewise.
27266         * sysdeps/ia64/bits/byteswap.h: Likewise.
27267         * sysdeps/s390/bits/byteswap.h: Likewise.
27268         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27269
27270 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27271
27272         [BZ #13540]
27273         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
27274         destination buffer.
27275         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
27276
27277 2011-12-23  Marek Polacek  <polacek@redhat.com>
27278
27279         * elf/dl-addr.c (determine_info): Add inline keyword.
27280         * elf/tst-auditmod4b.c (check_avx): Likewise.
27281         * elf/tst-auditmod6b.c (check_avx): Likewise.
27282         * elf/tst-auditmod6c.c (check_avx): Likewise.
27283         * elf/tst-auditmod7b.c (check_avx): Likewise.
27284
27285 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27286
27287         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
27288         !__SSE_MATH__.
27289
27290 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27291
27292         [BZ #13540]
27293         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
27294         processing for last bytes.
27295
27296 2011-08-06  Bruno Haible  <bruno@clisp.org>
27297
27298         [BZ #13061]
27299         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
27300         U+0385, not to U+1FEE.
27301
27302         [BZ #13062]
27303         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
27304         entry for U+00A5 U+0301.
27305
27306 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27307
27308         [BZ #13166]
27309         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
27310         buffer for the output is too small.
27311
27312         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
27313         optimization.
27314
27315         [BZ #13185]
27316         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
27317         SSE flags if possible.
27318
27319 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27320
27321         [BZ #13540]
27322         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
27323         processing for last bytes.
27324
27325 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
27326
27327         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
27328         (syscall-list-default-options, syscall-list-default-condition)
27329         (syscall-list-includes): Define.
27330         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
27331         list of ABIs and options and #if conditions for each ABI.  Do not
27332         handle common syscalls between ABIs specially.
27333         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
27334         Remove.
27335         (syscall-list-variants, syscall-list-32bit-options)
27336         (syscall-list-32bit-condition, syscall-list-64bit-options)
27337         (syscall-list-64bit-condition): Define.
27338         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
27339         (syscall-list-variants, syscall-list-32bit-options)
27340         (syscall-list-32bit-condition, syscall-list-64bit-options)
27341         (syscall-list-64bit-condition): Define.
27342         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
27343         Remove.
27344         (syscall-list-variants, syscall-list-32bit-options)
27345         (syscall-list-32bit-condition, syscall-list-64bit-options)
27346         (syscall-list-64bit-condition): Define.
27347         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
27348         Remove.
27349         (syscall-list-variants, syscall-list-32bit-options)
27350         (syscall-list-32bit-condition, syscall-list-64bit-options)
27351         (syscall-list-64bit-condition): Define.
27352
27353 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27354
27355         * locale/iso-639.def: Add brx entry.
27356
27357         [BZ #13328]
27358         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
27359         Proposed by Mariusz_Cukr <marcukr@op.pl>.
27360
27361         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
27362         __feraiseexcept_renamed.
27363
27364 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
27365
27366         [BZ #13538]
27367         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
27368         EPOLLET with unsigned values.
27369         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27370         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27371
27372         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
27373         to large cancellation.
27374         * math/s_cacoshf.c: Likewise.
27375         * math/s_cacoshl.c: Likewise.
27376
27377 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
27378
27379         [BZ #13305]
27380         [BZ #12786]
27381         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
27382         * math/s_cacoshf.c: Likewise.
27383         * math/s_cacoshl.c: Likewise.
27384
27385 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
27386
27387         [BZ #13439]
27388         * iconv/gconv.h: Define __GCONV_SWAP.
27389         * iconvdata/unicode.c: The swap bit must be stored in __flags.
27390         * iconvdata/utf-16.c: Likewise.
27391         * iconvdata/utf-32.c: Likewise.
27392
27393 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
27394
27395         [BZ #13524]
27396         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
27397         numerator after shifting it by one limb.
27398
27399 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
27400
27401         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
27402         under [__USE_EXTERN_INLINES].
27403
27404 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
27405
27406         [BZ #13446]
27407         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
27408
27409 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27410
27411         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
27412         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
27413         optimized code.
27414         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
27415         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
27416         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
27417         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
27418         for strncasecmp/strncasecmp_l compilation.
27419         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
27420         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
27421
27422 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
27423
27424         [BZ #13484]
27425         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
27426         of __asm__.
27427
27428 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
27429
27430         [BZ #13506]
27431         * time/tzfile.c (__tzfile_read): Check values from file header.
27432
27433 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
27434
27435         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
27436         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
27437         * powerpc/powerpc32/dl-start.S: Likewise.
27438         * powerpc/powerpc32/elf/start.S: Likewise.
27439         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
27440         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
27441         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
27442         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
27443         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
27444         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
27445         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
27446         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
27447         * powerpc/powerpc32/fpu/s_round.S: Likewise.
27448         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
27449         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
27450         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
27451         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
27452         * powerpc/powerpc32/memset.S: Likewise.
27453         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
27454         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
27455         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
27456         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
27457         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
27458         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
27459         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
27460         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
27461         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
27462         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
27463         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
27464         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
27465         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
27466
27467 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27468
27469         * math/libm-test.inc: Added more nearbyint tests.
27470         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
27471         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
27472         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
27473         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
27474
27475 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
27476
27477         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
27478         FD_CLOEXEC.
27479
27480 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27481
27482         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
27483         Add wcscpy-ssse3 wcscpy-c.
27484         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
27485         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
27486         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
27487         * sysdeps/x86_64/wcschr.S: New file.
27488         * sysdeps/x86_64/wcsrchr.S: New file.
27489         * string/test-strcmp.c: Remove checking of wcscmp function for
27490         wrong alignments.
27491         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
27492         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
27493         wcsrchr-sse2 wcsrchr-c.
27494         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
27495         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
27496         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
27497         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
27498         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
27499         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
27500         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
27501         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
27502         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
27503         * wcsmbc/wcschr.c (WCSCHR): New macro.
27504
27505 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27506
27507         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
27508         * wcsmbs/test-wcsrchr.c: New file.
27509         * string/test-strrchr.c: Add wcsrchr support.
27510         (WIDE): New macro.
27511         * wcsmbs/test-wcscpy.c: New file.
27512         * string/test-strcpy.c: Add wcscpy support.
27513         (WIDE): New macro.
27514
27515 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
27516
27517         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
27518         the inner loop.
27519
27520 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
27521
27522         [BZ #13472]
27523         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
27524
27525 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
27526
27527         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
27528         Minor optimizations.
27529
27530         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
27531         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
27532         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
27533
27534 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
27535
27536         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
27537         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
27538         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
27539         for gcc to avoid warnings.
27540         * inet/Makefile (tests): Add tst-checks.
27541         * inet/tst-checks.c: New file.
27542
27543         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
27544         warning.
27545
27546         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
27547         __wmemcmp_sse2.
27548
27549         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
27550         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
27551
27552         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
27553
27554 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
27555
27556         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
27557         problem.
27558
27559         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
27560
27561 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
27562
27563         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
27564         conditional on GCC version.
27565         (__arch_compare_and_exchange_val_8_acq)
27566         (__arch_compare_and_exchange_val_16_acq)
27567         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
27568         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
27569         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
27570
27571 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
27572
27573         * sysdeps/sh/backtrace.c: New file.
27574
27575 2011-12-02  Andreas Schwab  <schwab@redhat.com>
27576
27577         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
27578         parenthesis.
27579
27580 2011-12-01  Andreas Schwab  <schwab@redhat.com>
27581
27582         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
27583         falling back to utime.
27584
27585 2011-11-30  Andreas Schwab  <schwab@redhat.com>
27586
27587         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
27588         expectations for float.
27589
27590 2011-11-29  Andreas Schwab  <schwab@redhat.com>
27591
27592         * locale/weight.h (findidx): Add parameter len.
27593         * locale/weightwc.h (findidx): Likewise.
27594         * posix/fnmatch_loop.c (FCT): Adjust caller.
27595         * posix/regcomp.c (build_equiv_class): Likewise.
27596         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
27597         * posix/regexec.c (check_node_accept_bytes): Likewise.
27598         * string/strcoll_l.c (STRCOLL): Likewise.
27599         * string/strxfrm_l.c (STRXFRM): Likewise.
27600
27601 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
27602
27603         * Makefile.in: Remove CVSOPT handling.
27604         * configure.in: Remove use of AC_REVISION.
27605         * iconvdata/Makefile (distribute): No need to filter out CVS.
27606         * scripts/list-sources.sh: Remove CVS, subversion and monotone
27607         handling.
27608
27609 2011-11-16  Andreas Schwab  <schwab@redhat.com>
27610
27611         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
27612         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
27613         [USE_AS_STRNCASECMP_L]: Likewise.
27614         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
27615         NO_TLS_DIRECT_SEG_REFS.
27616         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
27617         Fix argument offsets for non-PIC.
27618         [USE_AS_STRNCASECMP_L]: Likewise.
27619         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
27620         NO_TLS_DIRECT_SEG_REFS.
27621
27622 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
27623
27624         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
27625         O_CLOEXEC.
27626         * locale/loadlocale.c (_nl_load_locale): Likewise.
27627
27628 2011-11-15  Andreas Schwab  <schwab@redhat.com>
27629
27630         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
27631         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
27632         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
27633         (SYSCALL_GETTIME): Set errno on error.
27634
27635         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
27636         count references to noai6ai_cached.
27637
27638 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
27639
27640         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
27641
27642         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
27643         FD_CLOEXEC for /proc/self/maps.
27644
27645         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
27646         FD_CLOEXEC for /proc/meminfo.
27647
27648         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
27649         gai.conf.
27650
27651         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
27652         FD_CLOEXEC for given file.
27653
27654         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
27655
27656         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
27657         FD_CLOEXEC for /etc/hosts.
27658         (_gethtent): Likewise.
27659
27660         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
27661
27662         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
27663         cancellation and set FD_CLOEXEC for /etc/netgroup.
27664
27665         * nss/nss_files/files-key.c (search): Don't allow cancellation when
27666         reading /etc/publickey.
27667
27668         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
27669         allow cancellation when reading /etc/group.
27670
27671         * nss/nss_files/files-alias.c (internal_setent): Don't allow
27672         cancellation.
27673         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
27674
27675         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
27676         when using data file.
27677
27678         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
27679
27680         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
27681         (write_nis_obj): Use "c" and "e" in fopen.
27682
27683         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
27684
27685         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
27686
27687         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
27688
27689         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
27690
27691         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
27692         locale.alias.
27693
27694         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
27695
27696         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
27697
27698         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
27699
27700         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
27701         file parsing and set FD_CLOEXEC.
27702
27703 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
27704
27705         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
27706
27707 2011-11-14  Andreas Schwab  <schwab@redhat.com>
27708
27709         * malloc/arena.c (arena_get2): Don't call reused_arena when
27710         _int_new_arena failed.
27711
27712 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
27713
27714         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
27715         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
27716         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
27717         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27718         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27719         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
27720         to compile strcasecmp and strncasecmp.
27721         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
27722         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
27723
27724         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
27725
27726 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
27727
27728         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
27729         locale-defines.sym to gen-as-const-headers.
27730         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
27731         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
27732         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
27733         to compile strcasecmp and strncasecmp.
27734         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
27735         strcasecmp_l and strncasecmp_l.
27736         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
27737         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
27738         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
27739         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
27740         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
27741         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
27742         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
27743         * sysdeps/i386/i686/multiarch/strncase.S: New file.
27744         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
27745         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
27746         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
27747
27748 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
27749
27750         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
27751         result of SYSDEP_GETTIME_CPU to retval.
27752         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
27753         parameter list to macro.  Remove trailing semicolon.  Adjust users.
27754
27755         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
27756         variable.
27757
27758         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
27759         mantissa words.
27760         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
27761
27762         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
27763         from unused variable.
27764
27765         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
27766         DWARF definitions.
27767         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
27768         for assembling.
27769
27770         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
27771         over namespaces.
27772
27773         * sunrpc/rpc_prot.c (rejected): Fix case value.
27774
27775         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
27776         unsigned long long int to avoid warnings in shift.
27777
27778         * posix/regex_internal.c (re_string_reconstruct): Actually use result
27779         of use of trans.
27780         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
27781         variable tmp.
27782
27783         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
27784         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
27785         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
27786
27787         * nis/nis_table.c (nis_list): Use variable of correct type for
27788         result of __follow_path call.
27789
27790 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27791
27792         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
27793         of math functions ceil, trunc, floor, round, and sqrt, when
27794         avaliable on the platform.
27795         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
27796         name clash.
27797         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
27798         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
27799         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
27800
27801 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
27802
27803         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
27804         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
27805
27806 2011-11-11  Roland McGrath  <roland@hack.frob.com>
27807
27808         * include/unistd.h: Fix __readlink return type.
27809         Reported by Chris Metcalf <cmetcalf@tilera.com>.
27810
27811 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
27812
27813         * stdlib/ucontext.h: Undo last change for makecontext.
27814
27815 2011-11-11  Andreas Schwab  <schwab@redhat.com>
27816
27817         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
27818
27819         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
27820         * setjmp/setjmp.h: Mark functions as non-leaf.
27821         * setjmp/bits/setjmp2.h: Likewise.
27822         * stdlib/ucontext.h: Likewise.
27823
27824 2011-11-10  Andreas Schwab  <schwab@redhat.com>
27825
27826         * malloc/arena.c (_int_new_arena): Don't increment narenas.
27827         (reused_arena): Don't check arena limit.
27828         (arena_get2): Atomically check arena limit.
27829
27830 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
27831
27832         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
27833         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
27834
27835         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
27836         instructions.
27837
27838 2011-11-07  Andreas Schwab  <schwab@redhat.com>
27839
27840         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
27841         handler when locking.
27842
27843         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
27844         Fix size of allocated buffer.
27845
27846 2011-11-04  Andreas Schwab  <schwab@redhat.com>
27847
27848         [BZ #10103]
27849         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
27850         declarations for long double functions.
27851         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
27852
27853         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
27854
27855 2011-11-03  Andreas Schwab  <schwab@redhat.com>
27856
27857         * nscd/nscd.c (main): Don't start AVC thread until credentials are
27858         installed.
27859
27860         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
27861         is disabled.
27862
27863 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27864
27865         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
27866
27867 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
27868
27869         * include/alloca.h (stackinfo_alloca_round): Define.
27870         (extend_alloca): Use it.
27871         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
27872         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
27873         here.
27874
27875         * scripts/check-local-headers.sh: Ignore libaudit.h.
27876
27877         * nscd/Makefile (extra-objs): Make recursively expanded.
27878
27879 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
27880
27881         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
27882         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
27883
27884         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
27885         * posix/tst-rfc3484-2.c: Likewise.
27886         * posix/tst-rfc3484-3.c: Likewise.
27887
27888         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
27889         process_vm_writev.
27890         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
27891         process_vm_writev.
27892         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
27893         process_vm_writev from libc using GLIBC_2.15 version.
27894
27895         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
27896
27897 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
27898
27899         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
27900         stack usage.
27901
27902 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
27903
27904         [BZ #13367]
27905         * nss/getent.c (initgroups_keys): Show error message in case no group
27906         names are given.
27907
27908         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
27909         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
27910         __bump_nl_timestamp.
27911         * nscd/connections (nscd_init): When host database is served open
27912         netlink socket and request notification about configuration changes.
27913         (main_loop_poll): Track netlink file descriptor and bump timestamp
27914         in case data becomes available.
27915         (main_loop_epoll): Likewise.
27916         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
27917         (database_pers_head): Add extra_data fileds.
27918         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
27919         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
27920         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
27921         Adjust caller.
27922         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
27923         in6ai data, call __free_in6ai.
27924         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
27925         Add -DHAVE_NETLINK.
27926         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
27927         interface information.  Reuse previous data if netlink timestamp
27928         is not changed.
27929         (__bump_nl_timestamp): New function.
27930         (__free_in6ai): New function.
27931
27932 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
27933
27934         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
27935         close_not_cancel_no_status here.
27936         (__check_pf): Reorganize code a bit to not call close twice if OOM.
27937
27938 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
27939
27940         [BZ #13276]
27941         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
27942         return value.
27943
27944         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
27945         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
27946         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
27947
27948 2011-07-03  Andreas Jaeger  <aj@suse.de>
27949
27950         [BZ #10709]
27951         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
27952         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
27953         * math/libm-test.inc (sin_test): Add test case.
27954
27955 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
27956
27957         [BZ #13337]
27958         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
27959         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
27960
27961         * elf/chroot_canon.c (chroot_canon): Cleanups.
27962
27963         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
27964
27965         [BZ #13335]
27966         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
27967         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
27968
27969         * string/test-strchr.c: Make usable for strchrnul testing.
27970         * string/test-strchrnul.c: New file.
27971         * string/Makefile (strop-tests): Add strchrnul.
27972
27973         * po/it.po: Update from translation team.
27974         * po/es.po: Likewise.
27975
27976 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
27977
27978         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
27979         the three constants needed as parameters.  Drop the others.
27980         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
27981         __m128i_strloadu_tolower.
27982         Create and initialize variable zero and use it in all the places
27983         where _mm_setzero_si128 was used.
27984
27985         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
27986         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
27987         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
27988         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
27989         anymore.
27990         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
27991         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
27992         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
27993         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
27994         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
27995         __mpranred, __mptan.
27996         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
27997         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
27998         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
27999         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
28000         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
28001         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
28002         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
28003         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
28004         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
28005
28006 2011-10-28  Andreas Schwab  <schwab@redhat.com>
28007
28008         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
28009         redefine if SHARED.
28010         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
28011
28012         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
28013         wide char related routines to wcsmbs subdir.
28014
28015 2011-10-27  Andreas Schwab  <schwab@redhat.com>
28016
28017         [BZ #13344]
28018         * misc/sys/cdefs.h (__THROWNL): Define.
28019         * posix/unistd.h: Use __THREADNL instead of __THREAD
28020         for memory synchronization functions.
28021
28022 2011-10-26  Roland McGrath  <roland@hack.frob.com>
28023
28024         [BZ #13349]
28025         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
28026         doesn't exist.
28027         * manual/stdio.texi (Obstack Streams): Node removed.
28028
28029 2011-10-26  Andreas Schwab  <schwab@redhat.com>
28030
28031         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
28032         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28033         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28034
28035         * math/math_private.h (math_force_eval): Allow non-addressable
28036         arguments.
28037         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
28038
28039 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28040
28041         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
28042         file is not needed.
28043
28044         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
28045         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28046         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28047         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28048         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28049         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28050         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28051         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
28052         Add AVX variants.
28053         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
28054         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
28055         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
28056         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
28057         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
28058         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
28059         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
28060         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
28061         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
28062         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
28063         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
28064         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
28065         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
28066         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
28067         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
28068         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
28069         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
28070         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
28071         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
28072
28073         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
28074         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
28075
28076         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
28077         place.  Use VEX encoding when compiling for AVX.
28078
28079 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28080
28081         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
28082         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
28083
28084         * string/test-strchr.c (do_test): Don't generate NUL bytes.
28085
28086 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28087
28088         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
28089         useless if() expression.
28090         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28091         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28092         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28093         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28094         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28095         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28096         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28097         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28098         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28099         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28100         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28101         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28102         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28103         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28104         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28105         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28106         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28107         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28108         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28109
28110         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
28111
28112 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28113
28114         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
28115         condition.
28116         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28117
28118 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28119
28120         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
28121         .text section.  Avoid duplicate constants.
28122         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28123         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28124         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28125         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28126         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28127         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28128         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28129         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28130         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
28131         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
28132         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
28133         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
28134         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
28135         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
28136         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
28137         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
28138         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
28139         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
28140         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28141         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28142         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28143         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28144         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28145         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
28146         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
28147         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
28148         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
28149         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
28150         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
28151         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
28152         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
28153         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
28154         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
28155         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
28156         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
28157         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
28158         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
28159         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
28160         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
28161         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
28162         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
28163         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
28164         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
28165         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
28166         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
28167
28168 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
28169
28170         * sysdeps/x86_64/dla.h: Move to ...
28171         * sysdeps/x86_64/fpu/dla.h: ...here.
28172         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
28173         situations.  Use __builtin_fma only for gcc 4.6 and up.
28174
28175         * config.make.in: Add have-mfma4 entry.
28176         * configure.in: Substitute libc_cv_cc_fma4.
28177         * math/Makefile (dbl-only-routines): Add sincostab.
28178         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
28179         Use __sincostab not sincos.
28180         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
28181         name is a macro.
28182         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28183         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28184         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28185         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
28186         using __copysign.
28187         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
28188         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
28189         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
28190         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
28191         and __inv.
28192         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
28193         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
28194         __copysign.
28195         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
28196         define aliases when function name is a macro.
28197         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
28198         sysdeps/ieee754/dbl-64/sincos.tbl.
28199         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
28200         fma4-enabled routines.
28201         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
28202         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
28203         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
28204         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
28205         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
28206         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
28207         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
28208         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
28209         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
28210         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
28211         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
28212         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
28213         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
28214         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
28215         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
28216         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
28217         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
28218         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
28219         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
28220         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
28221         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
28222         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
28223         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
28224         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
28225         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
28226         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
28227         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
28228         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
28229         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
28230         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
28231
28232         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
28233         rename.
28234         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28235         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28236         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28237         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28238         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28239         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28240         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28241         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28242
28243 2011-10-24  Andreas Schwab  <schwab@redhat.com>
28244
28245         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
28246
28247 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28248
28249         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
28250
28251         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
28252         prediction.
28253         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
28254
28255         * string/strnlen.c: Don't define STRNLEN, reverse logic.
28256         Remove unused variable magic_bits.
28257         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
28258
28259         * string/strnlen.c: Define and use STRNLEN macro.
28260         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
28261         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
28262         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
28263         * wcsmbs/wcslen.c: Define and use WCSLEN.
28264         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
28265         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
28266         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
28267         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
28268         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
28269         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
28270         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
28271
28272 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28273
28274         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28275         strnlen-sse2-no-bsf.
28276         Rename strlen-no-bsf to strlen-sse2-no-bsf.
28277         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
28278         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
28279         Add strnlen support.
28280         (USE_AS_STRNLEN): New macro.
28281         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
28282         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
28283         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
28284         * sysdeps/x86_64/wcslen.S: New file.
28285
28286 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
28287
28288         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
28289         XMM-moves are used for copying on small sizes.
28290
28291 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28292
28293         * wcsmbs/Makefile (strop-tests): Add wcschr.
28294         * wcsmbs/test-wcschr.c: New file.
28295         * string/test-strchr.c: Update.
28296         Add wcschr support.
28297         (WIDE): New macro.
28298
28299 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28300
28301         * wcsmbs/Makefile (strop-tests): Add wcslen.
28302         * wcsmbs/test-wcslen.c: New file.
28303         * string/test-strlen.c: Update.
28304         Add wcslen support.
28305         (WIDE): New macro.
28306
28307 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28308
28309         * po/it.po: Update from translation team.
28310
28311 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28312
28313         * sysdeps/x86_64/wcscmp.S: Update.
28314         Fix wrong comparison semantics.
28315         wcscmp shall use signed comparison not unsigned.
28316         Don't use substraction to avoid overflow bug.
28317         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
28318         * wcsmbc/wcscmp.c: Likewise.
28319         * string/test-strcmp.c: Likewise.
28320         Add new tests to check cases with negative values.
28321
28322 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28323
28324         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
28325         * sysdeps/x86_64/dla.h: ...here.  New file.
28326         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
28327         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28328         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28329         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28330         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28331         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28332         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28333         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28334         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28335
28336 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
28337
28338         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
28339         __ynl_finite aliases.
28340
28341 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
28342
28343         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28344
28345         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
28346         define DLA_FMA.
28347         [DLA_FMA] (EMULV): Use DLA_FMA.
28348         [DLA_FMA] (MUL12): Use EMULV.
28349         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
28350         that are not needed.
28351         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28352         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28353         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28354         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28355         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28356         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28357         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28358
28359 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
28360
28361         * math/s_nan.c: Undef __nan.
28362         * math/s_nanf.c: Undef __nanf.
28363         * math/s_nanl.c: Undef __nanl.
28364         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
28365         "math_private.h".
28366
28367 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
28368
28369         * math/s_catan.c: Add branch predictions.
28370         * math/s_catanf.c: Likewise.
28371         * math/s_catanh.c: Likewise.
28372         * math/s_catanhf.c: Likewise.
28373         * math/s_catanhl.c: Likewise.
28374         * math/s_catanl.c: Likewise.
28375         * math/s_cexp.c: Likewise.
28376         * math/s_cexpf.c: Likewise.
28377         * math/s_cexpl.c: Likewise.
28378         * math/s_clog.c: Likewise.
28379         * math/s_clog10.c: Likewise.
28380         * math/s_clog10f.c: Likewise.
28381         * math/s_clog10l.c: Likewise.
28382         * math/s_clogf.c: Likewise.
28383         * math/s_clogl.c: Likewise.
28384         * math/s_csqrt.c: Likewise.
28385         * math/s_csqrtf.c: Likewise.
28386         * math/s_csqrtl.c: Likewise.
28387         * math/s_ctanf.c: Likewise.
28388         * math/s_ctanh.c: Likewise.
28389         * math/s_ctanhf.c: Likewise.
28390         * math/s_ctanhl.c: Likewise.
28391         * math/s_ctanl.c: Likewise.
28392
28393         * math/math_private.h: Define __nan, __nanf, __nanl.
28394         * math/s_cacosh.c: Include <math_private.h>.
28395         * math/s_cacoshl.c: Likewise.
28396         * math/s_casinh.c: Likewise.
28397         * math/s_casinhf.c: Likewise.
28398         * math/s_casinhl.c: Likewise.
28399         * math/s_ccos.c: Rely entire on ccosh.
28400         * math/s_ccosf.c: Rely entire on ccoshf.
28401         * math/s_ccosl.c: Rely entirely on ccoshl.
28402         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
28403         Remove tests for FE_INVALID.
28404         * math/s_ccoshf.c: Likewise.
28405         * math/s_ccoshl.c: Likewise.
28406         * math/s_csin.c: Likewise.
28407         * math/s_csinf.c: Likewise.
28408         * math/s_csinh.c Likewise.
28409         * math/s_csinhf.c: Likewise.
28410         * math/s_csinhl.c: Likewise.
28411         * math/s_csinl.c: Likewise.
28412         * math/s_ctan.c: Likewise.
28413         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
28414         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
28415         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
28416
28417 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
28418
28419         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
28420         compilation problems.
28421
28422         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
28423         __builtin_expect.
28424
28425 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
28426
28427         * sysdeps/i386/configure.in: Test for -mfma4 option.
28428         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
28429         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
28430         COMMON_CPUID_INDEX_80000001.
28431         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
28432         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
28433         use it if FMA3 is not supported.
28434         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
28435
28436         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
28437         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28438
28439 2011-10-20  Andreas Schwab  <schwab@redhat.com>
28440
28441         [BZ #12892]
28442         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
28443         it would create a cycle with a link time dependency.
28444
28445 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
28446
28447         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
28448         instruction.
28449         * string/Makefile (strop-tests): Add rawmemchr.
28450         * string/test-rawmemchr.c: New file.
28451
28452         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
28453         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
28454         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
28455         when compiling str{,n}casecmp and when AVX is available.  Hook up
28456         new optimized code in initializers.
28457
28458 2011-10-19  Andreas Schwab  <schwab@redhat.com>
28459
28460         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
28461         __feraiseexcept instead of feraiseexcept.
28462
28463 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
28464
28465         * math/math_private.h: Define defaults for libc_fetestexcept and
28466         libc_feupdateenv.
28467         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
28468         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
28469         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
28470         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
28471         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28472         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
28473         libc_fetestexcept and libc_feupdateenv.
28474
28475         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
28476         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
28477         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
28478         * sysdeps/x86_64/fpu/math_private.h: Define special version of
28479         libc_feholdexcept_setround.
28480
28481         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
28482         Add s_nearbyint-c and s_nearbyintf-c.
28483         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
28484         nearbyintf inlines.
28485         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
28486         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
28487         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
28488         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
28489
28490         * math/math_private.h: Define defaults for libc_fegetround,
28491         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
28492         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
28493         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
28494         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
28495         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
28496         standard functions.
28497         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
28498         Remove comments and hacks for old compiler versions.
28499         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
28500         libc_fegetround, libc_fesetround, libc_feholdexcept, and
28501         libc_feholdexceptl.
28502
28503 2011-10-18  Andreas Schwab  <schwab@redhat.com>
28504
28505         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
28506         (__feraiseexcept_renamed): Add __NTH.
28507         (feraiseexcept): Add __NTH.  Rename local variables to fix
28508         namespace violations.
28509
28510 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
28511
28512         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
28513
28514         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
28515
28516         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
28517         recently added interfaces.
28518         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
28519
28520         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
28521         about macro parameter expansion.
28522
28523         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
28524         __NO_MATH_INLINES is defined.  Cleanups.
28525
28526         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
28527         and __floorf is target has SSE4.1.
28528         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
28529         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
28530         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
28531         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
28532
28533         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
28534         name.
28535         (floorf): Likewise.
28536
28537         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
28538
28539 2011-10-17  Andreas Schwab  <schwab@redhat.com>
28540
28541         * misc/sys/cdefs.h: Fix last change.
28542
28543         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
28544         database lookup.
28545
28546 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
28547
28548         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
28549
28550         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
28551         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28552         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
28553         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28554         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28555         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28556         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28557         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28558         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28559         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
28560         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
28561         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
28562         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
28563         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
28564         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
28565         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
28566         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
28567         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
28568         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
28569         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
28570         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
28571         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
28572
28573         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
28574         ceil, ceilf, floor, floorf.
28575
28576         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
28577         Perform IRELATIVE relocations last.
28578
28579         * elf/do-rel.h: Add another parameter nrelative, replacing the
28580         local variable with the same name.  Change name of the function
28581         to end in Rel or Rela (uppercase).
28582         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
28583         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
28584         elf_dynamic_do_##reloc function.
28585
28586 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
28587
28588         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
28589         is sufficient, at least on modern CPUs.
28590
28591         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
28592
28593         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
28594         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
28595
28596         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
28597         __expl_finite.
28598         * math/bits/math-finite.h: Add entries for exp.
28599         * math/e_expl.c: Add __*_finite alias.
28600         * sysdeps/i386/fpu/e_exp.S: Likewise.
28601         * sysdeps/i386/fpu/e_expf.S: Likewise.
28602         * sysdeps/i386/fpu/e_expl.c: Likewise.
28603         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28604         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
28605         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
28606         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
28607         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
28608         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
28609         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
28610
28611         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
28612         is sufficient, at least on modern CPUs.
28613
28614         * ctype/ctype-info.c (__ctype_init): Define.
28615         * include/ctype.h (__ctype_init): Declare.
28616         (__ctype_b_loc): The variable is always initialized.
28617         (__ctype_toupper_loc): Likewise.
28618         (__ctype_tolower_loc): Likewise.
28619         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
28620         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
28621
28622 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
28623
28624         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
28625
28626         * configure.in: Also look in $cxxmachine/include for C++ system
28627         headers.
28628
28629 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28630
28631         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
28632         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
28633         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
28634         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
28635         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
28636         (USE_AS_WMEMCMP): New macro.
28637         Fixing indents.
28638         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
28639         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
28640         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
28641         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
28642         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28643         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
28644         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
28645         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
28646         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
28647         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
28648         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
28649         (USE_AS_WMEMCMP): New macro.
28650         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
28651         * sysdeps/string/test-memcmp.c: Update.
28652         Fix simple_wmemcmp.
28653         Add new tests.
28654         * wcsmbs/wmemcmp.c: Update.
28655         (WMEMCMP): New macro.
28656         Fix overflow bug.
28657
28658 2011-10-12  Andreas Jaeger  <aj@suse.de>
28659
28660         [BZ #13268]
28661         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
28662
28663 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
28664
28665         * libio/iofwide.c (do_length): Avoid warning.
28666
28667         * ctype/ctype.h (__isctype_f): Add missing __THROW.
28668
28669 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
28670
28671         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
28672
28673         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
28674         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
28675         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
28676         * sysdeps/i386/i686/fpu/e_log.S: New file.
28677         * sysdeps/i386/i686/fpu/e_logf.S: New file.
28678         * sysdeps/i386/i686/fpu/e_logl.S: New file.
28679
28680         * ctype/ctype.h: Add support for inlined isXXX functions when
28681         compiling C++ code.
28682
28683 2011-10-14  Andreas Schwab  <schwab@redhat.com>
28684
28685         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28686
28687         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
28688
28689 2011-10-13  Roland McGrath  <roland@hack.frob.com>
28690
28691         [BZ #13291]
28692         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
28693
28694 2011-10-13  Andreas Schwab  <schwab@redhat.com>
28695
28696         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
28697         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
28698         feraiseexcept.
28699
28700         * sysdeps/x86_64/memrchr.S: Check for zero size.
28701
28702         * string/stratcliff.c: Add memrchr tests.
28703
28704 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28705
28706         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28707         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
28708         rawmemchr-sse2 rawmemchr-sse2-bsf.
28709         * sysdeps/i386/i686/multiarch/memchr.S: New file.
28710         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
28711         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
28712         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
28713         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
28714         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
28715         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
28716         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
28717         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
28718         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
28719         * string/memrchr.c (MEMRCHR): New macro.
28720
28721 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
28722
28723         Add integration with gcc's -ffinite-math-only and optimize wrapper
28724         functions in libm.
28725         * Versions.def: Define GLIBC_2.15 version for libm.
28726         * math/Makefile (headers): Add bits/math-finite.h.
28727         * math/bits/math-finite.h: New file.
28728         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
28729         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
28730         * math/e_acoshl.c: Add __*_finite alias.
28731         * math/e_acosl.c: Likewise.
28732         * math/e_asinl.c: Likewise.
28733         * math/e_atan2l.c: Likewise.
28734         * math/e_atanhl.c: Likewise.
28735         * math/e_coshl.c: Likewise.
28736         * math/e_exp10.c: Likewise.
28737         * math/e_exp10f.c: Likewise.
28738         * math/e_exp10l.c: Likewise.
28739         * math/e_exp2l.c: Likewise.
28740         * math/e_fmodl.c: Likewise.
28741         * math/e_gammal_r.c: Likewise.
28742         * math/e_hypotl.c: Likewise.
28743         * math/e_j0l.c: Likewise.
28744         * math/e_j1l.c: Likewise.
28745         * math/e_jnl.c: Likewise.
28746         * math/e_lgammal_r.c: Likewise.
28747         * math/e_log10l.c: Likewise.
28748         * math/e_log2l.c: Likewise.
28749         * math/e_logl.c: Likewise.
28750         * math/e_powl.c: Likewise.
28751         * math/e_sinhl.c: Likewise.
28752         * math/e_sqrtl.c: Likewise.
28753         * math/e_scalb.c: Completely rewritten and optimized.
28754         * math/e_scalbf.c: Likewise.
28755         * math/e_scalbl.c: Likewise.
28756         * math/w_acos.c: Likewise.
28757         * math/w_acosf.c: Likewise.
28758         * math/w_acosl.c: Likewise.
28759         * math/w_acosh.c: Likewise.
28760         * math/w_acoshf.c: Likewise.
28761         * math/w_acoshl.c: Likewise.
28762         * math/w_asin.c: Likewise.
28763         * math/w_asinf.c: Likewise.
28764         * math/w_asinl.c: Likewise.
28765         * math/w_atan2.c: Likewise.
28766         * math/w_atan2f.c: Likewise.
28767         * math/w_atan2l.c: Likewise.
28768         * math/w_atanh.c: Likewise.
28769         * math/w_atanhf.c: Likewise.
28770         * math/w_atanhl.c: Likewise.
28771         * math/w_exp10.c: Likewise.
28772         * math/w_exp10f.c: Likewise.
28773         * math/w_exp10l.c: Likewise.
28774         * math/w_fmod.c: Likewise.
28775         * math/w_fmodf.c: Likewise.
28776         * math/w_fmodl.c: Likewise.
28777         * math/w_j0.c: Likewise.
28778         * math/w_j0f.c: Likewise.
28779         * math/w_j0l.c: Likewise.
28780         * math/w_j1.c: Likewise.
28781         * math/w_j1f.c: Likewise.
28782         * math/w_j1l.c: Likewise.
28783         * math/w_jn.c: Likewise.
28784         * math/w_jnf.c: Likewise.
28785         * math/w_log.c: Likewise.
28786         * math/w_logf.c: Likewise.
28787         * math/w_logl.c: Likewise.
28788         * math/w_log10.c: Likewise.
28789         * math/w_log10f.c: Likewise.
28790         * math/w_log10l.c: Likewise.
28791         * math/w_log2.c: Likewise.
28792         * math/w_log2f.c: Likewise.
28793         * math/w_log2l.c: Likewise.
28794         * math/w_pow.c: Likewise.
28795         * math/w_powf.c: Likewise.
28796         * math/w_powl.c: Likewise.
28797         * math/w_remainder.c: Likewise.
28798         * math/w_remainderf.c: Likewise.
28799         * math/w_remainderl.c: Likewise.
28800         * math/w_scalb.c: Likewise.
28801         * math/w_scalbf.c: Likewise.
28802         * math/w_scalbl.c: Likewise.
28803         * math/w_sqrt.c: Likewise.
28804         * math/w_sqrtf.c: Likewise.
28805         * math/w_sqrtl.c: Likewise.
28806         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
28807         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
28808         used.
28809         * math/math_private.h: Declare __kernel_standard_f.
28810         * math/w_cosh.c: Remove cruft and optimize a bit.
28811         * math/w_coshf.c: Likewise.
28812         * math/w_coshl.c: Likewise.
28813         * math/w_exp2.c: Likewise.
28814         * math/w_exp2f.c: Likewise.
28815         * math/w_exp2l.c: Likewise.
28816         * math/w_hypot.c: Likewise.
28817         * math/w_hypotf.c: Likewise.
28818         * math/w_hypotl.c: Likewise.
28819         * math/w_lgamma.c: Likewise.
28820         * math/w_lgamma_r.c: Likewise.
28821         * math/w_lgammaf.c: Likewise.
28822         * math/w_lgammaf_r.c: Likewise.
28823         * math/w_lgammal.c: Likewise.
28824         * math/w_lgammal_r.c: Likewise.
28825         * math/w_sinh.c: Likewise.
28826         * math/w_sinhf.c: Likewise.
28827         * math/w_sinhl.c: Likewise.
28828         * math/w_tgamma.c: Likewise.
28829         * math/w_tgammaf.c: Likewise.
28830         * math/w_tgammal.c: Likewise.
28831         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
28832         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28833         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
28834         Minor optimizations.  Pretty printing.  Remove cruft.
28835         * sysdeps/i386/fpu/e_acosf.S: Likewise.
28836         * sysdeps/i386/fpu/e_acosh.S: Likewise.
28837         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
28838         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
28839         * sysdeps/i386/fpu/e_acosl.c: Likewise.
28840         * sysdeps/i386/fpu/e_asin.S: Likewise.
28841         * sysdeps/i386/fpu/e_asinf.S: Likewise.
28842         * sysdeps/i386/fpu/e_atan2.S: Likewise.
28843         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
28844         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
28845         * sysdeps/i386/fpu/e_atanh.S: Likewise.
28846         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
28847         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
28848         * sysdeps/i386/fpu/e_exp10.S: Likewise.
28849         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
28850         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
28851         * sysdeps/i386/fpu/e_exp2.S: Likewise.
28852         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
28853         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
28854         * sysdeps/i386/fpu/e_fmod.S: Likewise.
28855         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
28856         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
28857         * sysdeps/i386/fpu/e_hypot.S: Likewise.
28858         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
28859         * sysdeps/i386/fpu/e_log.S: Likewise.
28860         * sysdeps/i386/fpu/e_log10.S: Likewise.
28861         * sysdeps/i386/fpu/e_log10f.S: Likewise.
28862         * sysdeps/i386/fpu/e_log10l.S: Likewise.
28863         * sysdeps/i386/fpu/e_log2.S: Likewise.
28864         * sysdeps/i386/fpu/e_log2f.S: Likewise.
28865         * sysdeps/i386/fpu/e_log2l.S: Likewise.
28866         * sysdeps/i386/fpu/e_logf.S: Likewise.
28867         * sysdeps/i386/fpu/e_logl.S: Likewise.
28868         * sysdeps/i386/fpu/e_pow.S: Likewise.
28869         * sysdeps/i386/fpu/e_powf.S: Likewise.
28870         * sysdeps/i386/fpu/e_powl.S: Likewise.
28871         * sysdeps/i386/fpu/e_remainder.S: Likewise.
28872         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
28873         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
28874         * sysdeps/i386/fpu/e_scalb.S: Likewise.
28875         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
28876         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
28877         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
28878         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
28879         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
28880         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
28881         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28882         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28883         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
28884         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
28885         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
28886         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
28887         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
28888         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28889         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
28890         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
28891         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
28892         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28893         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
28894         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
28895         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28896         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
28897         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
28898         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28899         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28900         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
28901         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
28902         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
28903         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
28904         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
28905         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
28906         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
28907         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
28908         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
28909         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
28910         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28911         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
28912         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28913         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
28914         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
28915         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
28916         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
28917         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
28918         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
28919         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
28920         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
28921         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
28922         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
28923         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
28924         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28925         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
28926         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
28927         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
28928         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
28929         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
28930         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
28931         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
28932         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
28933         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28934         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
28935         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
28936         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
28937         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
28938         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
28939         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
28940         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
28941         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
28942         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
28943         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
28944         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
28945         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
28946         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
28947         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
28948         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
28949         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
28950         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
28951         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
28952         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
28953         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
28954         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
28955         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28956         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
28957         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
28958         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
28959         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
28960         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28961         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
28962         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
28963         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
28964         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28965         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
28966         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28967         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
28968         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
28969         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
28970         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
28971         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
28972         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
28973         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
28974         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
28975         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
28976         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
28977         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
28978         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
28979         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
28980         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
28981         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
28982         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
28983         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
28984         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
28985         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
28986         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
28987         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
28988         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
28989         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
28990         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
28991         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
28992         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
28993         (__isnanf): Likewise.
28994         (__isinf_ns): Likewise.
28995         (__isinf_nsf): Likewise.
28996         (__finite): Likewise.
28997         (__finitef): Likewise.
28998         (__ieee754_sqrt): Define as macro.
28999         (__ieee754_sqrtf): Define as macro.
29000         (__ieee754_sqrtl): Define as macro.
29001         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
29002         inlined copy.
29003         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
29004         __FINITE_MATH_ONLY__ consistent.
29005         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
29006
29007 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
29008
29009         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
29010         of rawmemchr.
29011
29012         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
29013
29014 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
29015
29016         * po/ja.po: Update from translation team.
29017
29018 2011-10-08  Roland McGrath  <roland@hack.frob.com>
29019
29020         * locale/programs/locarchive.c (prepare_address_space): New function.
29021         (create_archive, enlarge_archive, open_archive): Use it.
29022
29023         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
29024         inside [SHARED], where it is used.
29025
29026         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
29027
29028         * nss/getent.c (netgroup_keys): Remove unused variable.
29029         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29030
29031 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
29032
29033         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
29034         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
29035         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
29036         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
29037         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
29038         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
29039         * math/Makefile (libm-calls): Add s_isinf_ns.
29040         * math/divtc3.c: Use __isinf_nsl instead of isinf.
29041         * math/multc3.c: Likewise.
29042         * math/s_casin.c: Likewise.
29043         * math/s_casinf.c: Likewise.
29044         * math/s_casinl.c: Likewise.
29045         * math/s_ccos.c: Likewise.
29046         * math/s_ccosf.c: Likewise.
29047         * math/s_ccosl.c: Likewise.
29048         * math/s_ctan.c: Likewise.
29049         * math/s_ctanf.c: Likewise.
29050         * math/s_ctanh.c: Likewise.
29051         * math/s_ctanhf.c: Likewise.
29052         * math/s_ctanhl.c: Likewise.
29053         * math/s_ctanl.c: Likewise.
29054         * math/w_fmod.c: Likewise.
29055         * math/w_fmodf.c: Likewise.
29056         * math/w_fmodl.c: Likewise.
29057         * math/w_remainder.c: Likewise.
29058         * math/w_remainderf.c: Likewise.
29059         * math/w_remainderl.c: Likewise.
29060         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
29061         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
29062         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
29063         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
29064         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
29065         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
29066         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
29067         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
29068
29069         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
29070         of the number.
29071         * stdio-common/printf_fphex.c: Likewise.
29072         * stdio-common/printf_size.c: Likewise.
29073
29074         * math/e_exp10.c: Include math_private.h using <...> not "...".
29075         * math/e_exp10f.c: Likewise.
29076         * math/e_exp10l.c: Likewise.
29077         * math/e_exp2l.c: Likewise.
29078         * math/e_j0l.c: Likewise.
29079         * math/e_j1l.c: Likewise.
29080         * math/e_jnl.c: Likewise.
29081         * math/e_lgammal_r.c: Likewise.
29082         * math/e_rem_pio2l.c: Likewise.
29083         * math/e_scalb.c: Likewise.
29084         * math/e_scalbf.c: Likewise.
29085         * math/e_scalbl.c: Likewise.
29086         * math/k_cosl.c: Likewise.
29087         * math/k_sinl.c: Likewise.
29088         * math/k_tanl.c: Likewise.
29089         * math/s_cacoshf.c: Likewise.
29090         * math/s_catan.c: Likewise.
29091         * math/s_catanf.c: Likewise.
29092         * math/s_catanh.c: Likewise.
29093         * math/s_catanhf.c: Likewise.
29094         * math/s_catanhl.c: Likewise.
29095         * math/s_catanl.c: Likewise.
29096         * math/s_ccosh.c: Likewise.
29097         * math/s_ccoshf.c: Likewise.
29098         * math/s_ccoshl.c: Likewise.
29099         * math/s_cexp.c: Likewise.
29100         * math/s_cexpf.c: Likewise.
29101         * math/s_cexpl.c: Likewise.
29102         * math/s_clog.c: Likewise.
29103         * math/s_clog10.c: Likewise.
29104         * math/s_clog10f.c: Likewise.
29105         * math/s_clog10l.c: Likewise.
29106         * math/s_clogf.c: Likewise.
29107         * math/s_clogl.c: Likewise.
29108         * math/s_csin.c: Likewise.
29109         * math/s_csinf.c: Likewise.
29110         * math/s_csinh.c: Likewise.
29111         * math/s_csinhf.c: Likewise.
29112         * math/s_csinhl.c: Likewise.
29113         * math/s_csinl.c: Likewise.
29114         * math/s_csqrt.c: Likewise.
29115         * math/s_csqrtf.c: Likewise.
29116         * math/s_csqrtl.c: Likewise.
29117         * math/s_ctan.c: Likewise.
29118         * math/s_ctanf.c: Likewise.
29119         * math/s_ctanh.c: Likewise.
29120         * math/s_ctanhf.c: Likewise.
29121         * math/s_ctanhl.c: Likewise.
29122         * math/s_ctanl.c: Likewise.
29123         * math/s_ldexp.c: Likewise.
29124         * math/s_ldexpf.c: Likewise.
29125         * math/s_ldexpl.c: Likewise.
29126         * math/s_significand.c: Likewise.
29127         * math/s_significandf.c: Likewise.
29128         * math/s_significandl.c: Likewise.
29129         * math/w_acos.c: Likewise.
29130         * math/w_acosf.c: Likewise.
29131         * math/w_acosh.c: Likewise.
29132         * math/w_acoshf.c: Likewise.
29133         * math/w_acoshl.c: Likewise.
29134         * math/w_acosl.c: Likewise.
29135         * math/w_asin.c: Likewise.
29136         * math/w_asinf.c: Likewise.
29137         * math/w_asinl.c: Likewise.
29138         * math/w_atan2.c: Likewise.
29139         * math/w_atan2f.c: Likewise.
29140         * math/w_atan2l.c: Likewise.
29141         * math/w_atanh.c: Likewise.
29142         * math/w_atanhf.c: Likewise.
29143         * math/w_atanhl.c: Likewise.
29144         * math/w_cosh.c: Likewise.
29145         * math/w_coshf.c: Likewise.
29146         * math/w_coshl.c: Likewise.
29147         * math/w_dremf.c: Likewise.
29148         * math/w_exp10.c: Likewise.
29149         * math/w_exp10f.c: Likewise.
29150         * math/w_exp10l.c: Likewise.
29151         * math/w_exp2.c: Likewise.
29152         * math/w_exp2f.c: Likewise.
29153         * math/w_fmod.c: Likewise.
29154         * math/w_fmodf.c: Likewise.
29155         * math/w_fmodl.c: Likewise.
29156         * math/w_hypot.c: Likewise.
29157         * math/w_hypotf.c: Likewise.
29158         * math/w_hypotl.c: Likewise.
29159         * math/w_j0.c: Likewise.
29160         * math/w_j0f.c: Likewise.
29161         * math/w_j0l.c: Likewise.
29162         * math/w_j1.c: Likewise.
29163         * math/w_j1f.c: Likewise.
29164         * math/w_j1l.c: Likewise.
29165         * math/w_jn.c: Likewise.
29166         * math/w_jnf.c: Likewise.
29167         * math/w_jnl.c: Likewise.
29168         * math/w_lgamma.c: Likewise.
29169         * math/w_lgamma_r.c: Likewise.
29170         * math/w_lgammaf.c: Likewise.
29171         * math/w_lgammaf_r.c: Likewise.
29172         * math/w_lgammal.c: Likewise.
29173         * math/w_lgammal_r.c: Likewise.
29174         * math/w_log.c: Likewise.
29175         * math/w_log10.c: Likewise.
29176         * math/w_log10f.c: Likewise.
29177         * math/w_log10l.c: Likewise.
29178         * math/w_log2.c: Likewise.
29179         * math/w_log2f.c: Likewise.
29180         * math/w_log2l.c: Likewise.
29181         * math/w_logf.c: Likewise.
29182         * math/w_logl.c: Likewise.
29183         * math/w_pow.c: Likewise.
29184         * math/w_powf.c: Likewise.
29185         * math/w_powl.c: Likewise.
29186         * math/w_remainder.c: Likewise.
29187         * math/w_remainderf.c: Likewise.
29188         * math/w_remainderl.c: Likewise.
29189         * math/w_scalb.c: Likewise.
29190         * math/w_scalbf.c: Likewise.
29191         * math/w_scalbl.c: Likewise.
29192         * math/w_sinh.c: Likewise.
29193         * math/w_sinhf.c: Likewise.
29194         * math/w_sinhl.c: Likewise.
29195         * math/w_sqrt.c: Likewise.
29196         * math/w_sqrtf.c: Likewise.
29197         * math/w_sqrtl.c: Likewise.
29198         * math/w_tgamma.c: Likewise.
29199         * math/w_tgammaf.c: Likewise.
29200         * math/w_tgammal.c: Likewise.
29201
29202         * po/ja.po: Update from translation team.
29203
29204 2011-09-29  Andreas Jaeger  <aj@suse.de>
29205
29206         [BZ #13179]
29207         * sunrpc/netname.c (netname2host): Fix logic.
29208
29209         [BZ #6779]
29210         [BZ #6783]
29211         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
29212         correctly.
29213         * math/w_remainder.c (__remainder): Likewise.
29214         * math/w_remainderf.c (__remainderf): Likewise.
29215         * math/libm-test.inc (remainder_test): Add test cases.
29216
29217 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29218
29219         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
29220         sdiv_qrnnd.
29221
29222 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29223
29224         * string/test-memcmp.c: Avoid unncessary #defines.
29225         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29226
29227 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29228
29229         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
29230         Use new sse2 version for core i3 - i7 as it's faster
29231         than sse42 version.
29232         (bit_Prefer_PMINUB_for_stringop): New.
29233         * sysdeps/x86_64/rawmemchr.S: Update.
29234         Replace with faster SSE2 version.
29235         * sysdeps/x86_64/memrchr.S: New file.
29236         * sysdeps/x86_64/memchr.S: Update.
29237         Replace with faster SSE2 version.
29238
29239 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
29240
29241         * elf/dl-load.c (lose): Add cast to avoid warning.
29242
29243 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29244
29245         * po/ca.po: Update from translation team.
29246
29247         * inet/getnetgrent_r.c: Hook up nscd.
29248         * nscd/Makefile (routines): Add nscd_netgroup.
29249         (nscd-modules): Add netgroupcache.
29250         (CFLAGS-netgroupcache.c): Define.
29251         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
29252         (cache_search): Add const to second parameter.
29253         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
29254         INNETGR.
29255         (dbs): Add netgrdb entry.
29256         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
29257         (verify_persistent_db): Handle netgrdb.
29258         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
29259         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
29260         GETFDNETGR.
29261         (netgroup_response_header): Define.
29262         (innetgroup_response_header): Define.
29263         (datahead): Add netgroup_response_header and innetgroup_response_header
29264         elements.
29265         * nscd/nscd.conf: Add entries for netgroup cache.
29266         * nscd/nscd.h (dbtype): Add netgrdb.
29267         (_PATH_NSCD_NETGROUP_DB): Define.
29268         (netgroup_iov_disabled): Declare.
29269         (xmalloc, xcalloc, xrealloc): Move declarations here.
29270         (cache_search): Adjust prototype.
29271         Add netgroup-related prototypes.
29272         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
29273         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
29274         (__nscd_innetgr): Declare.
29275         * nscd/selinux.c (perms): Use access_vector_t as element type and
29276         add netgroup-related initializers.
29277         * nscd/netgroupcache.c: New file.
29278         * nscd/nscd_netgroup.c: New file.
29279         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
29280         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
29281         For four parameters use innetgr.
29282         * nss/nss_files/files-init.c: Add definition and callback for netgr.
29283         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
29284         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
29285         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
29286
29287         * nscd/connections.c (register_traced_file): Don't register file
29288         for disabled databases.
29289
29290 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
29291
29292         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
29293
29294         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
29295         from tree and freeing node.
29296
29297 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
29298
29299         * nss/nsswitch.c (__nss_database_lookup): Handle
29300         nss_parse_service_list out of memory case.
29301
29302 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
29303
29304         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
29305         out of memory case.
29306
29307 2011-10-04  Andreas Schwab  <schwab@redhat.com>
29308
29309         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
29310         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
29311         pass it down.
29312         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
29313         elf_machine_rela, elf_machine_lazy_rel.
29314         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
29315         (ELF_DYNAMIC_DO_REL): Likewise.
29316         (ELF_DYNAMIC_DO_RELA): Likewise.
29317         (ELF_DYNAMIC_RELOCATE): Likewise.
29318         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
29319         to ELF_DYNAMIC_DO_REL.
29320         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
29321         (dl_main): In trace mode always set __RTLD_NOIFUNC.
29322         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
29323         elf_machine_rela.
29324         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
29325         skip_ifunc, don't call ifunc function if non-zero.
29326         (elf_machine_rela): Likewise.
29327         (elf_machine_lazy_rel): Likewise.
29328         (elf_machine_lazy_rela): Likewise.
29329         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
29330         (elf_machine_lazy_rel): Likewise.
29331         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
29332         Likewise.
29333         (elf_machine_lazy_rel): Likewise.
29334         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29335         Likewise.
29336         (elf_machine_lazy_rel): Likewise.
29337         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
29338         (elf_machine_lazy_rel): Likewise.
29339         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
29340         (elf_machine_lazy_rel): Likewise.
29341         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
29342         (elf_machine_lazy_rel): Likewise.
29343         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
29344         (elf_machine_lazy_rel): Likewise.
29345         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
29346         (elf_machine_lazy_rel): Likewise.
29347         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
29348         (elf_machine_lazy_rel): Likewise.
29349
29350 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
29351
29352         * nss/nss_files/files-init.c (_nss_files_init): Use static
29353         initialization for all the *_traced_file variables.
29354
29355 2011-09-28  Andreas Schwab  <schwab@redhat.com>
29356
29357         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29358
29359 2011-09-27  Roland McGrath  <roland@hack.frob.com>
29360
29361         [BZ #13226]
29362         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
29363
29364 2011-09-27  Andreas Schwab  <schwab@redhat.com>
29365
29366         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
29367         Reread the line before reparsing it.
29368
29369 2011-09-26  Andreas Schwab  <schwab@redhat.com>
29370
29371         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
29372
29373 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
29374             Maxim Kuvyrkov  <maxim@codesourcery.com>
29375             Joseph Myers  <joseph@codesourcery.com>
29376
29377         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
29378         if needed for __stack_chk_guard.
29379
29380 2011-09-19  Roland McGrath  <roland@hack.frob.com>
29381
29382         * sysdeps/posix/spawni.c (script_execute): Always define it.
29383         It will be optimized away if unused.
29384         (maybe_script_execute): New function.
29385         (__spawni): Call it.
29386
29387         * Makerules: Don't include tls.make.
29388         (config-tls): Always set to thread.
29389         * tls.make.c: File removed.
29390
29391 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
29392
29393         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
29394         * config.make.in (CPPFLAGS-config): New substituted variable.
29395
29396 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
29397
29398         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
29399
29400         [BZ #13192]
29401         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
29402         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
29403
29404 2011-09-15  Roland McGrath  <roland@hack.frob.com>
29405
29406         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
29407         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
29408         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
29409         (CALL_FAIL): Likewise.
29410         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
29411         (CALL_FAIL): Macro removed.
29412         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
29413
29414 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
29415
29416         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
29417         for __FINITE_MATH_ONLY__ == 1.
29418
29419 2011-09-15  Andreas Schwab  <schwab@redhat.com>
29420
29421         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
29422         __ieee754_sqrt instead of sqrt.
29423         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
29424         __ieee754_sqrtf instead of sqrtf.
29425         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
29426         __floorf instead of floorf.
29427         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
29428         __floorf, __truncf instead of floorf, truncf.
29429
29430 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
29431
29432         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
29433
29434         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
29435         __extern_always_inline.
29436         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
29437         32-bit.
29438
29439 2011-09-14  Andreas Schwab  <schwab@redhat.com>
29440
29441         * elf/rtld.c (dl_main): Also relocate in dependency order when
29442         doing symbol dependency testing.
29443
29444 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
29445
29446         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29447         Always define `refsym'.
29448
29449 2011-09-13  Andreas Schwab  <schwab@redhat.com>
29450
29451         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
29452         (__FD_ELT): Renamed from __FDELT.
29453         * misc/bits/select2.h (__FD_ELT): Likewise.
29454         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
29455         __FD_MASK instead of __FDELT, __FDMASK.
29456         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
29457         Likewise.
29458         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
29459         Likewise.
29460
29461         * elf/Makefile (gen-ldd): Fix pattern.
29462
29463         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
29464         (init_tls): Likewise.
29465
29466 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
29467
29468         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
29469
29470 2011-09-12  Andreas Schwab  <schwab@redhat.com>
29471
29472         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
29473         `struct cmsghdr *' instead of `void *'.
29474         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
29475         Likewise.
29476
29477 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
29478
29479         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
29480         if non-absolute.
29481         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
29482         ldd_rewrite_script.
29483
29484 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
29485
29486         * configure.in: Remove --with-tls option.
29487         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
29488         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
29489         out in case it is missing.
29490         * sysdeps/ia64/elf/configure.in: Likewise.
29491         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
29492         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
29493         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
29494         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
29495         * sysdeps/sh/elf/configure.in: Likewise.
29496         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
29497         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
29498         * sysdeps/x86_64/elf/configure.in: Likewise.
29499         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
29500         * sysdeps/mach/hurd/tls.h: Likewise.
29501
29502         [BZ #13067]
29503         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
29504
29505         [BZ #13090]
29506         * configure.in: Fix use of AC_INIT.
29507
29508         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
29509
29510 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
29511
29512         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
29513         __set_errno.
29514         * malloc/hooks.c: Likewise.
29515
29516         [BZ #11929]
29517         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
29518         variables statically.
29519         (narenas): Initialize.
29520         (list_lock): Initialize.
29521         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
29522         initializtion of main_arena and list_lock.  Small cleanups.
29523         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
29524         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
29525         Add initializers to main_arena and mp_.
29526         (malloc_state): Remove pagesize member.  Change all users to use
29527         GLRO(dl_pagesize).
29528
29529         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
29530         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
29531         is always initialized.
29532
29533         * malloc/malloc.c: Removed unused configurations and dead code.
29534         * malloc/arena.c: Likewise.
29535         * malloc/hooks.c: Likewise.
29536         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
29537
29538         * include/tls.h: Removed.  USE___THREAD must always be defined.
29539         * bits/libc-tsd.h: Don't handle !USE___THREAD.
29540         * elf/dl-libc.c: Likewise.
29541         * elf/dl-tsd.c: Likewise.
29542         * include/errno.h: Likewise.
29543         * include/netdb.h: Likewise.
29544         * include/resolv.h: Likewise.
29545         * inet/herrno-loc.c: Likewise.
29546         * inet/herrno.c: Likewise.
29547         * malloc/arena.c: Likewise.
29548         * malloc/hooks.c: Likewise.
29549         * malloc/malloc.c: Likewise.
29550         * resolv/res-state.c: Likewise.
29551         * resolv/res_libc.c: Likewise.
29552         * sysdeps/i386/dl-machine.h: Likewise.
29553         * sysdeps/ia64/dl-machine.h: Likewise.
29554         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29555         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29556         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29557         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29558         * sysdeps/sh/dl-machine.h: Likewise.
29559         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29560         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29561         * sysdeps/unix/i386/sysdep.S: Likewise.
29562         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
29563         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
29564         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
29565         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
29566         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
29567         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
29568         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
29569         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29570         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29571         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
29572         * sysdeps/unix/x86_64/sysdep.S: Likewise.
29573         * sysdeps/x86_64/dl-machine.h: Likewise.
29574         * tls.make.c: Likewise.
29575
29576         * configure.in: Remove --with-__thread option.  Make tests for
29577         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
29578         tls_model attribute fail if no support is available.  Remove
29579         USE_IN_LIBIO.
29580         * Makeconfig: Adjust for dropped configure option.  All features are
29581         now mandatory.
29582         * Makerules: Likewise.
29583         * Versions.def: Likewise.
29584         * argp/argp-fmtstream.c: Likewise.
29585         * argp/argp-fmtstream.h: Likewise.
29586         * argp/argp-help.c: Likewise.
29587         * assert/assert.c: Likewise.
29588         * config.h.in: Likewise.
29589         * config.make.in: Likewise.
29590         * configure: Likewise.
29591         * configure.in: Likewise.
29592         * csu/Versions: Likewise.
29593         * csu/init.c: Likewise.
29594         * elf/tst-audit2.c: Likewise.
29595         * elf/tst-tls10.c: Likewise.
29596         * elf/tst-tls10.h: Likewise.
29597         * elf/tst-tls11.c: Likewise.
29598         * elf/tst-tls12.c: Likewise.
29599         * elf/tst-tls14.c: Likewise.
29600         * elf/tst-tlsmod11.c: Likewise.
29601         * elf/tst-tlsmod12.c: Likewise.
29602         * elf/tst-tlsmod13.c: Likewise.
29603         * elf/tst-tlsmod13a.c: Likewise.
29604         * elf/tst-tlsmod14a.c: Likewise.
29605         * elf/tst-tlsmod15b.c: Likewise.
29606         * elf/tst-tlsmod16a.c: Likewise.
29607         * elf/tst-tlsmod16b.c: Likewise.
29608         * elf/tst-tlsmod7.c: Likewise.
29609         * elf/tst-tlsmod8.c: Likewise.
29610         * elf/tst-tlsmod9.c: Likewise.
29611         * gmon/gmon.c: Likewise.
29612         * grp/fgetgrent_r.c: Likewise.
29613         * grp/putgrent.c: Likewise.
29614         * hurd/fopenport.c: Likewise.
29615         * include/libc-symbols.h: Likewise.
29616         * include/tls.h: Likewise.
29617         * intl/gettextP.h: Likewise.
29618         * intl/loadinfo.h: Likewise.
29619         * locale/global-locale.c: Likewise.
29620         * locale/localeinfo.h: Likewise.
29621         * mach/devstream.c: Likewise.
29622         * malloc/arena.c: Likewise.
29623         * malloc/set-freeres.c: Likewise.
29624         * misc/err.c: Likewise.
29625         * misc/getttyent.c: Likewise.
29626         * misc/mntent_r.c: Likewise.
29627         * posix/getopt.c: Likewise.
29628         * posix/wordexp.c: Likewise.
29629         * pwd/fgetpwent_r.c: Likewise.
29630         * resolv/Versions: Likewise.
29631         * resolv/res_hconf.c: Likewise.
29632         * shadow/fgetspent_r.c: Likewise.
29633         * shadow/putspent.c: Likewise.
29634         * stdio-common/printf_fphex.c: Likewise.
29635         * stdio-common/tmpfile.c: Likewise.
29636         * stdlib/abort.c: Likewise.
29637         * stdlib/fmtmsg.c: Likewise.
29638         * sunrpc/auth_unix.c: Likewise.
29639         * sunrpc/clnt_perr.c: Likewise.
29640         * sunrpc/clnt_tcp.c: Likewise.
29641         * sunrpc/clnt_udp.c: Likewise.
29642         * sunrpc/clnt_unix.c: Likewise.
29643         * sunrpc/openchild.c: Likewise.
29644         * sunrpc/svc_simple.c: Likewise.
29645         * sunrpc/svc_tcp.c: Likewise.
29646         * sunrpc/svc_udp.c: Likewise.
29647         * sunrpc/svc_unix.c: Likewise.
29648         * sunrpc/xdr.c: Likewise.
29649         * sunrpc/xdr_array.c: Likewise.
29650         * sunrpc/xdr_rec.c: Likewise.
29651         * sunrpc/xdr_ref.c: Likewise.
29652         * sunrpc/xdr_stdio.c: Likewise.
29653
29654 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29655
29656         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29657
29658 2011-07-03  Andreas Jaeger  <aj@suse.de>
29659
29660         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
29661         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
29662         regenerate with gen-libm-tests.pl.
29663
29664 2010-05-12  Petr Baudis  <pasky@suse.cz>
29665
29666         [BZ #11589]
29667         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
29668         around j0() zero points by switching to j1().
29669         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29670         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29671         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29672         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29673
29674 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29675
29676         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
29677         instead of 0.
29678         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
29679         instead of 0.
29680         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29681         Patch in part by Pavel Roskin <proski@gnu.org>.
29682
29683         [BZ #13138]
29684         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
29685         realloc.
29686         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
29687         Free memory block if necessary.
29688
29689         [BZ #12847]
29690         * libio/genops.c (INTDEF): For string streams the _lock pointer can
29691         be NULL.  Don't lock in this case.
29692
29693 2011-09-09  Roland McGrath  <roland@hack.frob.com>
29694
29695         * elf/elf.h (ELFOSABI_GNU): New macro.
29696         (ELFOSABI_LINUX): Define to that.
29697
29698 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
29699
29700         * string/strncat.c (strncat): Undef the symbol in case it has been
29701         defined in bits/string.h.
29702
29703 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29704
29705         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
29706
29707         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
29708         link map.
29709
29710 2011-08-17  Andreas Jaeger  <aj@suse.de>
29711
29712         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
29713
29714 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
29715             Ian Lance Taylor  <iant@google.com>
29716
29717         * math/libm-test.inc (lround_test): New testcase.
29718         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
29719
29720 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
29721
29722         * Makefile: Remove support for automatic cvs check-ins.
29723         * Makerules: Likewise.
29724         * config.make.in: Likewise.
29725         * configure.in: Likewise.
29726         * intl/Makefile: Likewise.
29727         * locale/Makefile: Likewise.
29728         * po/Makefile: Likewise.
29729         * posix/Makefile: Likewise.
29730         * sysdeps/gnu/Makefile: Likewise.
29731         * sysdeps/mach/hurd/Makefile: Likewise.
29732         * sysdeps/sparc/sparc32/Makefile: Likewise.
29733
29734         [BZ #13118]
29735         * posix/Makefile (bug-regex32-ENV): Define.
29736         Patch by John Stanley <jpsinthemix@verizon.net>.
29737
29738         * misc/Makefile (headers): Add bits/select2.h.
29739         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
29740         * misc/bits/select2.h: New file.
29741         * include/bits/select2.h: New file.
29742         * debug/Makefile (routines): Add fdelt_chk.
29743         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
29744         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
29745         FD_ISSET.
29746         * debug/fdelt_chk.c: New file.
29747
29748         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
29749         * wcsmbs/test-wmemcmp.c: Likewise.
29750         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
29751         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
29752
29753 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29754
29755         * string/Makefile (strop-tests): Add memcmp.
29756         * string/test-wmemcmp.c: New file.
29757         * string/test-memcmp.c: Add wmemcmp support.
29758
29759 2011-09-08  Roland McGrath  <roland@hack.frob.com>
29760
29761         [BZ #13153]
29762         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
29763         2011-07-19 change.
29764
29765         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
29766         garbage value in a __mach_port_mod_refs call in the cases of the
29767         task-self and thread-self ports.
29768
29769 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29770
29771         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
29772
29773 2011-09-08  Andreas Schwab  <schwab@redhat.com>
29774
29775         * elf/dl-load.c (lose): Check for non-null L.
29776
29777 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
29778
29779         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
29780
29781         * elf/dl-libc.c (dlerror_run): Pass back error code from
29782         dl_catch_error.
29783
29784         [BZ #13123]
29785         * elf/dl-load.c (lose): Free l_origin if it is valid.
29786
29787         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
29788         names.
29789         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
29790         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
29791         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
29792         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
29793         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
29794         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
29795
29796 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29797
29798         * sysdeps/powerpc/fpu/e_hypot.c: New file.
29799         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
29800         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
29801         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
29802         * sysdeps/powerpc/fpu/k_cosf.c: New file.
29803         * sysdeps/powerpc/fpu/k_sinf.c: New file.
29804         * sysdeps/powerpc/fpu/s_cosf.c: New file.
29805         * sysdeps/powerpc/fpu/s_sinf.c: New file.
29806         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
29807         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
29808
29809 2011-08-15  Alan Modra  <amodra@gmail.com>
29810
29811         [BZ #13092]
29812         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
29813         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
29814         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
29815         ppc_mcount to static-only-routines.
29816         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
29817         __mcount_internal.
29818         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
29819         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
29820
29821 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
29822
29823         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
29824         for finite and infinity parameters.
29825
29826 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
29827
29828         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
29829         and add nop instructions for throughput optimization.
29830         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
29831
29832 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
29833
29834         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
29835         aligned copy for power7 with vector-scalar instructions.
29836         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
29837
29838 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
29839
29840         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
29841         AVX check.
29842
29843 2011-09-07  Andreas Schwab  <schwab@redhat.com>
29844
29845         [BZ #13144]
29846         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
29847         last change.
29848
29849 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
29850
29851         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29852         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
29853         syscall wrapper around clock_gettime in __vdso_clock_gettime.
29854         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
29855         clock_gettime.
29856
29857 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
29858
29859         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
29860         Forgot to demangle the pointer.
29861
29862         * sysdeps/i386/sysdep.h: Define atom_text_section.
29863         * sysdeps/x86_64/sysdep.h: Likewise.
29864         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
29865         section with atom_text_section.
29866         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
29867         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
29868         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
29869         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
29870         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
29871
29872         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
29873         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
29874         already be defined.  Change to take two parameters and don't assign
29875         result to variable.  Adjust all users.
29876         Define INTERNAL_GETTIME if not already defined.
29877         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
29878         call.
29879         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
29880         HAVE_CLOCK_GETTIME_VSYSCALL.
29881         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
29882
29883         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
29884         gettimeofday vsyscall, just use time.
29885
29886 2011-09-06  Andreas Schwab  <schwab@redhat.com>
29887
29888         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
29889         <errno.h>.
29890
29891 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
29892
29893         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
29894         syscall on x86-64.
29895         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
29896         syscall.
29897         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
29898         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
29899         syscall if possible.
29900
29901 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29902
29903         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
29904         e_ident.  Don't pass to find_mapsXX.
29905         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
29906
29907 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29908
29909         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29910         strchr-sse2-no-bsf strrchr-sse2-no-bsf
29911         * sysdeps/x86_64/multiarch/strchr.S: Update.
29912         Check bit_slow_BSF bit.
29913         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
29914         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
29915         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
29916
29917 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29918
29919         [BZ #13134]
29920         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
29921         before glibc 2.15.
29922         (tryshell): Define.
29923         (__spawni): Change last parameter to be flag.  Test
29924         SPAWN_XFLAGS_USE_PATH flag to use path or not.
29925         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
29926         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
29927         * posix/spawni.c: Likewise.
29928         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
29929         * posix/spawnp.c: Likewise.  Change normal version to use
29930         SPAWN_XFLAGS_USE_PATH.
29931         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
29932         SPAWN_XFLAGS_TRY_SHELL.
29933
29934         [BZ #13150]
29935         * posix/glob.h: Remove gcc 1.x support.
29936
29937         [BZ #13068]
29938         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
29939
29940 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29941
29942         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29943         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
29944         strrchr-sse2-bsf
29945         * sysdeps/i386/i686/multiarch/strchr.S: New file.
29946         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
29947         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
29948         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
29949         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
29950         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
29951
29952 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29953
29954         * sysdeps/x86_64/wcscmp.S: New file.
29955
29956         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
29957         wcscmp-c wcscmp-sse2
29958         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
29959         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
29960         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
29961         * wcsmbs/wcscmp.c: Allow renaming.
29962
29963 2011-09-05  David S. Miller  <davem@davemloft.net>
29964
29965         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
29966         stack slot, rather than the struct return pointer slot.
29967         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
29968         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
29969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
29970         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
29971
29972 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29973
29974         * po/ja.po: Update from translation team.
29975
29976         [BZ #13144]
29977         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
29978         kernel in 64-bit binaries.
29979
29980 2011-09-01  David S. Miller  <davem@davemloft.net>
29981
29982         * elf/elf.h (HWCAP_SPARC_*): Move to..
29983         * sysdeps/sparc/sysdep.h: this new file and add new values.
29984         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
29985         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
29986         _DL_HWCAP_COUNT to 24.
29987         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
29988         entries.
29989         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
29990         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
29991         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
29992         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
29993         instead of magic constants.
29994         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29995
29996 2011-08-31  David S. Miller  <davem@davemloft.net>
29997
29998         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
29999         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
30000         Reimplement to do errno handling inline.
30001         (SYSCALL_ERROR_HANDLER): New macro.
30002         (__SYSCALL_STRING): Do not do errno handling in asm.
30003         (__CLONE_SYSCALL_STRING): Delete.
30004         (__INTERNAL_SYSCALL_STRING): Delete.
30005         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
30006         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
30007         (PSEUDO): Reimplement to do errno handling inline.
30008         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
30009         (SYSCALL_ERROR_HANDLER): New macro.
30010         (__SYSCALL_STRING): Do not do errno handling in asm.
30011         (__CLONE_SYSCALL_STRING): Delete.
30012         (__INTERNAL_SYSCALL_STRING): Delete.
30013         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
30014         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
30015         i386.
30016         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
30017         (inline_syscall*): Add 'err' argument.
30018         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
30019         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
30020         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
30021         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
30022
30023         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
30024         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
30025
30026 2011-08-30  Andreas Schwab  <schwab@redhat.com>
30027
30028         * elf/rtld.c (dl_main): Relocate objects in dependency order.
30029
30030 2011-08-29  Jiri Olsa <jolsa@redhat.com>
30031
30032         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
30033         directive.
30034
30035 2011-08-24  David S. Miller  <davem@davemloft.net>
30036
30037         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
30038
30039 2011-08-24  Andreas Schwab  <schwab@redhat.com>
30040
30041         * elf/Makefile: Add rules to build and run unload8 test.
30042         * elf/unload8.c: New file.
30043         * elf/unload8mod1.c: New file.
30044         * elf/unload8mod1x.c: New file.
30045         * elf/unload8mod2.c: New file.
30046         * elf/unload8mod3.c: New file.
30047
30048         * elf/dl-close.c (_dl_close_worker): Reset private search list if
30049         it wasn't used.
30050
30051 2011-08-23  David S. Miller  <davem@davemloft.net>
30052
30053         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
30054         subtract stack bias.
30055         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
30056         %sp not %fp in calculations.
30057         (_JMPBUF_UNWINDS_ADJ): Likewise.
30058
30059         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
30060         (aio_suspend): Call it to force an exception region around the
30061         AIO_MISC_WAIT() invocation.
30062
30063 2011-08-23  Andreas Schwab  <schwab@redhat.com>
30064
30065         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
30066         backslash.
30067
30068 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
30069
30070         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
30071         protection macro.
30072         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
30073         and <dl-machine.h>.
30074         (Elf64_FuncDesc): Remove.
30075
30076 2011-08-22  David S. Miller  <davem@davemloft.net>
30077
30078         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
30079         sigaltstack check, add missing cfi directives.
30080         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
30081         missing cfi directives, and sigaltstack handling.
30082
30083 2011-08-16  Andreas Schwab  <schwab@redhat.com>
30084
30085         [BZ #11724]
30086         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
30087         object is seen twice.
30088         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30089
30090         * elf/Makefile (distribute): Add tst-initorder2.c.
30091         (tests): Add tst-initorder2.
30092         (modules-names): Add tst-initorder2a tst-initorder2b
30093         tst-initorder2c tst-initorder2d.  Add rules to build them.
30094         ($(objpfx)tst-initorder2.out): New rule.
30095         * elf/tst-initorder2.c: New file.
30096         * elf/tst-initorder2.exp: New file.
30097
30098 2011-08-22  Andreas Schwab  <schwab@redhat.com>
30099
30100         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
30101
30102         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
30103         dependencies back to end of function.
30104
30105         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
30106         $(elfobjdir)/ld.so.
30107
30108 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
30109
30110         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
30111         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
30112         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
30113         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
30114         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
30115         of __vdso_gettimeofday.
30116         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
30117         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
30118         attribute_hidden.
30119         (_libc_vdso_platform_setup): Remove initialization of
30120         __vdso_gettimeofday and __vdso_time.
30121
30122 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30123
30124         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
30125         and fgetc_unlocked.
30126         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
30127         getc_unlocked.
30128
30129         * elf/dl-open.c (add_to_global): Report additions to the global scope
30130         for LD_DEBUG=scopes.
30131         (dl_open_worker): Also print scope of newly loaded dependencies.
30132         (_dl_show_scope): Indicate if there is no scope.
30133
30134         [BZ #13114]
30135         * stdio-common/Makefile (tests): Add bug24.
30136         * stdio-common/bug24.c: New file.
30137
30138 2011-08-19  Andreas Jaeger  <aj@suse.de>
30139
30140         [BZ #13114]
30141         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
30142         non-existant file when using close-on-exec mode.
30143
30144 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30145
30146         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
30147         the very first instruction.
30148
30149         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
30150         the CFI state in the end.
30151         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
30152         inclusion of dl-trampoline.h.
30153         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
30154
30155 2011-08-19  Andreas Schwab  <schwab@redhat.com>
30156
30157         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
30158         expectations for long double.
30159
30160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
30161         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
30162
30163 2011-08-14  David S. Miller  <davem@davemloft.net>
30164
30165         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
30166         artificual limit depends upon the system page size.
30167
30168 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30169
30170         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
30171         * resolv/Makefile: Define CFLAGS-libresolv.
30172
30173 2011-08-17  Andreas Schwab  <schwab@redhat.com>
30174
30175         * nss/makedb.c (compute_tables): Make variables used in nested
30176         function static.
30177
30178 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30179
30180         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
30181         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
30182         if buffer was too small.
30183
30184         * elf/pldd.c (main): Attach to all threads in the process.
30185         Rewrite /proc handling to use *at functions.
30186
30187 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
30188
30189         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
30190         specifies first scope to show.
30191         (dl_open_worker): Update callers.  Move printing scope of new
30192         object to before the relocation.
30193         * elf/rtld.c (dl_main): Update _dl_show_scope call.
30194         * sysdeps/generic/ldsodefs.h: Update declaration.
30195
30196         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
30197         string for the scope number.
30198
30199 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
30200
30201         * nscd/servicescache.c (cache_addserv): Make sure written is always
30202         initialized.
30203
30204 2011-08-14  Roland McGrath  <roland@hack.frob.com>
30205
30206         * sysdeps/i386/i486/bits/atomic.h
30207         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
30208         statement expression, so as to suppress "set but not used" warning.
30209         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
30210
30211         * string/strncat.c (STRNCAT): Use prototype definition.
30212
30213         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
30214         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
30215         -Iprograms here.
30216         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
30217         (localedef-modules): Add localedef.
30218         (locale-modules): Add locale.
30219
30220         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
30221         * elf/rtld.c (dl_main): Invert order of assignment in last change,
30222         to avoid a warning.
30223
30224 2011-08-14  David S. Miller  <davem@davemloft.net>
30225
30226         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
30227         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
30228
30229 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
30230
30231         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
30232         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
30233         * elf/rtld.c (dl_main): Set l_name of vDSO.
30234         Call _dl_show_scope when DL_DEBUG_SCOPES.
30235         (process_dl_debug): Recognize scopes flag and also set it for all.
30236         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
30237         Declare _dl_show_scope.
30238
30239         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
30240         (do_dlopen): Pass caller_dlopen to dl_open.
30241         (__libc_dlopen_mode): Initialize caller_dlopen.
30242
30243         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
30244         of libc.  Make tolower call locale-independent.  Optimize a bit by
30245         using isdigit instead of isalnum.
30246         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
30247
30248 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
30249
30250         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
30251         was a dependency or dynamically loaded.
30252
30253 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
30254
30255         * intl/l10nflist.c: Allow architecture-specific pop function.
30256         * sysdeps/x86_64/l10nflist.c: New file.
30257
30258         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
30259         classification.
30260
30261 2011-08-10  Andreas Schwab  <schwab@redhat.com>
30262
30263         * include/dirent.h: Add libc_hidden_proto for scandirat and
30264         scandirat64.  Don't declare __scandirat64.
30265         * dirent/scandirat.c: Add libc_hidden_def.
30266         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
30267         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
30268
30269 2011-08-10  David S. Miller  <davem@davemloft.net>
30270
30271         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
30272         enum.
30273         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30274         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30275         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30276
30277 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
30278
30279         * Versions.def [libc]: Add GLIBC_2.15.
30280         * dirent/Makefile (routines): Add scandirat and scandirat64.
30281         * dirent/Versions [libc]: Export scandirat and scandirat64 for
30282         GLIBC_2.15.
30283         * dirent/dirent.h: Declare scandirat and scandirat64.
30284         * dirent/scandirat.c: New file.
30285         * dirent/scandirat64.c: New file.
30286         * sysdeps/wordsize-64/scandirat.c: New file.
30287         * sysdeps/wordsize-64/scandirat64.c: New file.
30288         * dirent/opendir.c: Define opendirat.
30289         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
30290         using scandirat.
30291         * dirent/scandir64.c: Adjust for scandir.c change.
30292         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
30293         __scandirat64, and __scandir_cancel_handler.
30294         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
30295         additional parameter and use openat instead of open (outside of ld.so).
30296         Add new __opendir as wrapper around __opendirat.
30297         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
30298         here without requiring old scandirat implementation.
30299
30300 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
30301
30302         * dirent/scandir.c (cancel_handler): Renamed to
30303         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
30304         defined.  Adjust users.
30305         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
30306         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
30307
30308 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
30309
30310         * string/test-string.h (IMPL): Use __STRING to expand name and then
30311         stringify it.
30312
30313         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
30314         of cleanups.
30315
30316 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30317
30318         * string/Makefile: Update.
30319         (strop-tests): Append strncat.
30320         * string/test-wcscmp.c: New file.
30321         New comprehensive test for wcscmp.
30322         * string/test-strcmp.c: Update.
30323         (WIDE): New define.
30324
30325 2011-07-22  Andreas Schwab  <schwab@redhat.com>
30326
30327         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
30328         line.
30329
30330 2011-07-26  Andreas Schwab  <schwab@redhat.com>
30331
30332         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
30333         encoding to ACE if AI_IDN.
30334
30335 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
30336
30337         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
30338         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
30339
30340 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30341
30342         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
30343         Fix overflow bug in strncat.
30344         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30345
30346         * string/test-strncat.c: Update.
30347         Add new tests for checking overflow bugs.
30348
30349 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30350
30351         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30352         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
30353         * sysdeps/i386/i686/multiarch/strcat.S: New file.
30354         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
30355         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
30356         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
30357         * sysdeps/i386/i686/multiarch/strncat.S: New file.
30358         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
30359         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
30360
30361         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
30362         (USE_AS_STRCAT): Define.
30363         Add strcat and strncat support.
30364         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30365
30366 2011-07-25  Andreas Schwab  <schwab@redhat.com>
30367
30368         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
30369         __n bigger than INT_MAX+1.
30370         (__strncmp_g): Likewise.
30371
30372 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
30373
30374         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
30375         * libio/stido.h: Likewise.
30376
30377         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
30378         (AF_NFC): Define.
30379         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
30380         (AF_NFC): Define.
30381
30382         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
30383         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30384         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30385         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30386         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30387
30388         [BZ #13021]
30389         * scripts/test-installation.pl: Don't expect libnss_test1 to be
30390         installed.
30391
30392         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
30393         typo.
30394         (_dl_x86_64_save_sse): Likewise.
30395
30396 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
30397
30398         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
30399         OSXSAVE.
30400         (_dl_x86_64_save_sse): Likewise.
30401
30402         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
30403
30404         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
30405
30406 2011-07-21  Andreas Schwab  <schwab@redhat.com>
30407
30408         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
30409         change.
30410         (_dl_x86_64_save_sse): Use correct AVX check.
30411
30412 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30413
30414         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
30415         bug in strncpy/strncat.
30416         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30417
30418 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
30419
30420         * string/tester.c (test_strcat): Add tests for different alignments
30421         of source and destination.
30422         (test_strncat): Likewise.
30423
30424 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
30425
30426         [BZ #12852]
30427         * posix/glob.c (glob): Check passed in values before using them in
30428         expressions to avoid some overflows.
30429         (glob_in_dir): Likewise.
30430
30431         [BZ #13007]
30432         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
30433         check for AVX enablement so that we don't crash with old kernels and
30434         new hardware.
30435         * elf/tst-audit4.c: Add same checks here.
30436         * elf/tst-audit6.c: Likewise.
30437
30438         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
30439
30440 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
30441
30442         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
30443
30444 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
30445
30446         * po/cs.po: Update from translation team.
30447         * po/bg.po: Likewise.
30448
30449 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
30450
30451         * misc/sys/cdefs.h: Add support for const attribute.
30452         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
30453         to gnu_dev_{major,minor,makedev} functions.
30454
30455 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
30456
30457         * intl/dcigettext.c (get_output_charset): Add missing bracket.
30458
30459 2011-07-20  Andreas Schwab  <schwab@redhat.com>
30460
30461         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
30462         strlen results.
30463
30464 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30465
30466         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
30467         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
30468         register in order to avoid conflicts with the soft frame pointer
30469         being held in r11 when necessary.
30470         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30471         (INTERNAL_VSYSCALL_NCS): Likewise.
30472
30473 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
30474
30475         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
30476         * elf/dl-fini.c (_dl_fini): Adjust caller.
30477         * elf/dl-close.c (_dl_close_worker): Likewise.
30478         * sysdeps/generic/ldsodefs.h: Adjust declaration.
30479
30480 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
30481
30482         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
30483         "aux_cache->nlibs < 0".
30484
30485         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
30486         in the reload-count case.
30487
30488 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30489
30490         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30491         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
30492         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
30493         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
30494         * sysdeps/x86_64/multiarch/strcat.S: New file.
30495         * sysdeps/x86_64/multiarch/strncat.S: New file.
30496         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
30497         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
30498         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
30499         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
30500         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
30501         (USE_AS_STRCAT): Define.
30502         Add strcat and strncat support.
30503         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30504         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30505         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
30506         * string/strncat.c: Update.
30507         (USE_AS_STRNCAT): Define.
30508         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30509         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
30510         and i7.
30511         * sysdeps/x86_64/multiarch/init-arch.h
30512         (bit_Prefer_PMINUB_for_stringop): New.
30513         (index_Prefer_PMINUB_for_stringop): Likewise.
30514         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
30515         bit_Prefer_PMINUB_for_stringop.
30516
30517 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
30518
30519         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
30520         buffer64.
30521         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
30522         of casting of buffer.
30523         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
30524         buffer32 and buffer64.
30525         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
30526         writes instead of casting of buffer.
30527         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
30528         buffer32.
30529         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
30530         casting of buffer.
30531
30532 2011-07-19  Andreas Schwab  <schwab@redhat.com>
30533
30534         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
30535
30536 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
30537
30538         * nscd/nscd.c (termination_handler): Don't do anything for a database
30539         if it has not yet been initialized.
30540
30541 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
30542
30543         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
30544
30545 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
30546
30547         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
30548
30549 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
30550
30551         * po/nl.po: Update from translation team.
30552         * po/sv.po: Likewise.
30553
30554 2011-07-16  Roland McGrath  <roland@hack.frob.com>
30555
30556         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
30557         now disallowed by GCC.
30558
30559         * configure.in (use-default-link): Default to yes if a test -shared
30560         link meets our qualifications.
30561         * configure: Regenerated.
30562
30563         * config.make.in (output-format): New variable.
30564         * configure.in: Check for ld --print-output-format support.
30565         * configure: Regenerated.
30566         * Makerules ($(common-objpfx)format.lds)
30567         [$(output-format) != unknown]: Just use $(output-format),
30568         instead of the linker-script munging.
30569
30570 2011-07-14  Roland McGrath  <roland@hack.frob.com>
30571
30572         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
30573         of $(common-objpfx)shlib.lds.
30574         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
30575
30576         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
30577         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
30578
30579         * configure.in (-z relro check): Adjust test code to add a large
30580         writable data section after it.
30581         * configure: Regenerated.
30582
30583 2011-07-11  Roland McGrath  <roland@hack.frob.com>
30584
30585         * configure.in (-z relro check): Fix test code to make the variable
30586         truly const.
30587         * configure: Regenerated.
30588
30589 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
30590
30591         * nscd/nscd.h (struct traced_file): Define.
30592         (struct database_dyn): Remove inotify_descr, reset_res, and filename
30593         elements.  Add traced_files.
30594         (inotify_fd): Declare.
30595         (register_traced_file): Declare.
30596         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
30597         (inotify_fd): Export.
30598         (resolv_conf_descr): Remove.
30599         (nscd_init): Move inotify descriptor creation to main.
30600         Don't register files for notification here.
30601         (register_traced_file): New function.
30602         (invalidate_cache): Don't use reset_res to determine whether to call
30603         res_init, go through the list of registered files.
30604         (main_loop_poll): The inotify descriptors are now stored in the
30605         structures for the traced files.
30606         (main_loop_epoll): Likewise
30607         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
30608         to __nss_disable_nscd.
30609         * nscd/cache.c (prune_cache): There is no single inotify descriptor
30610         for a database anymore.  Check the records for all the registered
30611         files instead.
30612         * nss/Makefile (libnss_files-routines): Add files-init.
30613         (libnss_db-routines): Add db-init.
30614         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
30615         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
30616         * nss/nss_db/db-init.c: New file.
30617         * nss/nss_files/files-init.c: New file.
30618         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
30619         __nss_lookup_function.
30620         (__nss_lookup_function): Call nss_load_library.
30621         (nss_load_all_libraries): New function.
30622         (__nss_disable_nscd): Take parameter with callback function for files
30623         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
30624         used for the cached services.
30625         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
30626         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
30627         options for features to all the files in nscd.
30628
30629         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
30630
30631 2011-07-10  Roland McGrath  <roland@hack.frob.com>
30632
30633         * csu/elf-init.c (__libc_csu_init): Comment typo.
30634
30635 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
30636
30637         * po/pl.po: Update from translation team.
30638         * po/ja.po: Likewise.
30639         * po/ru.po: Likewise.
30640         * po/ko.po: Likewise.
30641         * po/fr.po: Likewise.
30642
30643 2011-07-09  Roland McGrath  <roland@hack.frob.com>
30644
30645         * configure.in (.ctors/.dtors header and trailer check):
30646         Use an empirical test on a built program.
30647         * configure: Regenerated.
30648
30649         * configure.in (-z relro check): Use an empirical test on a built DSO.
30650         Detect, but do not require, on ia64.
30651         * configure: Regenerated.
30652
30653         * configure.in (READELF): Find it with AC_CHECK_TOOL.
30654         Update tests that use readelf to use $READELF instead.
30655         * configure: Regenerated.
30656
30657 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
30658
30659         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
30660         if the result is not used.
30661
30662 2011-07-05  Andreas Jaeger  <aj@suse.de>
30663
30664         [BZ#9696]
30665         * stdlib/tst-strtod.c: Add testcase.
30666
30667 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
30668
30669         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
30670         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
30671         The latter has a higher limit.  Take additional parameter to pass to
30672         the new function.
30673         (__pathconf): Pass file to __statfs_link_max.
30674         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
30675         __statfs_link_max.
30676         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
30677         __statfs_link_max.
30678
30679         [BZ #12868]
30680         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
30681         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
30682         Handle Lustre.
30683         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
30684         (__statfs_filesize_max): Likewise.
30685         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
30686
30687 2011-07-05  Andreas Jaeger  <aj@suse.de>
30688
30689         * resolv/res_comp.c (dn_skipname): Remove unused variable.
30690
30691 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
30692
30693         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
30694         `status' variable.
30695         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
30696         Likewise.
30697
30698 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
30699
30700         * Makefile (strop-tests): Add strncat.
30701         * string/test-strncat.c: New file.
30702
30703 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
30704
30705         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
30706
30707 2011-06-21  Andreas Jaeger  <aj@suse.de>
30708
30709         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
30710         Copy rule from iconvdata/Makefile.
30711
30712 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
30713
30714         [BZ #12922]
30715         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
30716         but no long options are defined, just return 'W'.
30717
30718 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
30719
30720         [BZ #9696]
30721         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
30722
30723 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
30724
30725         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
30726         netgroups to read.
30727         (innetgr): Likewise.
30728
30729 2011-07-05  Roland McGrath  <roland@hack.frob.com>
30730
30731         * config.make.in (install_root): Default to $(DESTDIR).
30732
30733 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
30734
30735         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
30736
30737 2011-07-02  Roland McGrath  <roland@hack.frob.com>
30738
30739         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
30740
30741         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
30742         containing directory rather than embedding absolute directory names.
30743
30744         * scripts/check-local-headers.sh: Rewritten using awk.
30745         Match by word, not by line.  Print error messages for matches.
30746         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
30747
30748         * Makerules [shlib-lds-flags empty]:
30749         ($(common-objpfx)libc_pic.opts): New target.
30750         ($(common-objpfx)libc_pic.os.clean): New target.
30751         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
30752
30753         * config.make.in (OBJCOPY): New variable.
30754         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
30755         * configure: Regenerated.
30756
30757         * config.make.in (use-default-link): New variable.
30758         * configure.in (use_default_link): Grok --with-default-link to set it.
30759         * configure: Regenerated.
30760         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
30761         (shlib-lds, shlib-lds-flags): Define to empty.
30762
30763         * Makerules (shlib-lds): New variable.
30764         (shlib-lds-flags): New variable.
30765         (build-shlib, build-moduile, build-module-asneeded): Use it.
30766         ($(common-objpfx)libc.so): Use $(shlib-lds).
30767         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
30768         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
30769
30770         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
30771         DT_FLAGS/DT_FLAGS_1 with zero flags.
30772
30773         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
30774         linker script munging.
30775
30776 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
30777
30778         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
30779         as 128-bit value.
30780         * crypt/sha512.c (sha512_process_block): Perform total addition using
30781         128-bit if possible.
30782         (__sha512_finish_ctx): Likewise.
30783         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
30784         as 64-bit value.
30785         * crypt/sha256.c (SWAP64): Define.
30786         (sha256_process_block): Perform total addition using 64-bit if
30787         possible.
30788         (__sha256_finish_ctx): Likewise.
30789
30790 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
30791
30792         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
30793         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30794         * nscd/hstcache.c (cache_addhst): Likewise.
30795         * nscd/grpcache.c (cache_addgr): Likewise.
30796         * nscd/aicache.c (addhstaiX): Likewise
30797         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
30798
30799 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
30800
30801         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
30802         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30803         * nscd/hstcache.c (cache_addhst): Likewise.
30804         * nscd/grpcache.c (cache_addgr): Likewise.
30805         * nscd/aicache.c (addhstaiX): Likewise
30806
30807 2011-07-01  Andreas Schwab  <schwab@redhat.com>
30808
30809         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
30810         domain only when needed.
30811
30812 2011-06-30  Andreas Schwab  <schwab@redhat.com>
30813
30814         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
30815         is always restored.
30816
30817 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
30818
30819         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
30820         are re-adding the entry.
30821         * nscd/servicescache.c (cache_addserv): Likewise.
30822
30823 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
30824
30825         * sysdeps/generic/dl-irel.h: fix protection against multiple
30826         inclusions.
30827         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
30828
30829 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
30830
30831         [BZ #12935]
30832         * malloc/memusage.sh: Fix quoting in message.
30833         * debug/xtrace.sh: Likewise.
30834
30835         * configure.in: Remove support for --experimental-malloc option, make
30836         it the default.
30837         * config.make.in: Likewise.
30838         * malloc/Makefile: Likewise.
30839
30840 2011-06-27  Andreas Schwab  <schwab@redhat.com>
30841
30842         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
30843         two-byte characters.
30844
30845 2011-06-27  Roland McGrath  <roland@hack.frob.com>
30846
30847         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
30848         AC_CACHE_CHECK invocation.
30849         * configure: Regenerated.
30850
30851         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
30852
30853 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
30854
30855         [BZ #12350]
30856         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
30857         bit from old_res_options.
30858
30859         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
30860
30861         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
30862         value type for setfct.
30863
30864 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
30865
30866         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
30867         __gettimeofday instead of gettimeofday.
30868
30869 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
30870
30871         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
30872
30873 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
30874
30875         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
30876
30877         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
30878         info.
30879
30880 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
30881
30882         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30883         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
30884         strcpy-sse2-unaligned strncpy-sse2-unaligned
30885         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
30886         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
30887         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
30888         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
30889         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
30890         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
30891         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
30892         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
30893         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
30894         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
30895         (STRCPY): Support SSE2 and SSSE3 versions.
30896
30897 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
30898
30899         [BZ #12874]
30900         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
30901         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
30902         kernels which artificially limit size of requests.
30903
30904 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
30905
30906         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30907         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
30908         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
30909         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
30910         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
30911         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
30912         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
30913         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
30914         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
30915         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
30916         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
30917         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
30918         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
30919         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
30920         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
30921         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30922         Enable unaligned load optimization for Intel Core i3, i5 and i7
30923         processors.
30924         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
30925         Define.
30926         (index_Fast_Unaligned_Load): Define.
30927         (HAS_FAST_UNALIGNED_LOAD): Define.
30928
30929 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
30930
30931         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
30932
30933 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
30934
30935         [BZ #12907]
30936         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
30937         until it is clear that the information is realy needed.
30938         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
30939
30940 2011-06-22  Andreas Schwab  <schwab@redhat.com>
30941
30942         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
30943
30944 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
30945
30946         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
30947         /sys/devices/system/cpu/online if it is usable.
30948
30949         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
30950         reading the information from the /proc filesystem to once a second.
30951
30952 2011-06-21  Andreas Jaeger  <aj@suse.de>
30953
30954         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
30955         NULL after inclusion of kernel headers.
30956
30957 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
30958
30959         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
30960         calls to internal_setent.
30961
30962         [BZ #12885]
30963         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
30964         addresses using gethostbyname4_r ignore IPv4 addresses.
30965
30966         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
30967         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
30968
30969         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
30970
30971 2011-06-20  David S. Miller  <davem@davemloft.net>
30972
30973         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
30974         inclusions.
30975         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
30976
30977         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
30978         (elf_irel): Use it.
30979         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
30980         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
30981         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
30982         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
30983         * sysdeps/x86_64/dl-irel.h: Likewise.
30984
30985         * elf/dl-runtime.c: Use elf_ifunc_invoke.
30986         * elf/dl-sym.c: Likewise.
30987
30988 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
30989
30990         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
30991         need to dereference resplen2.
30992
30993 2011-06-14  Andreas Schwab  <schwab@redhat.com>
30994
30995         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
30996
30997 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
30998
30999         * Makeconfig: Define vardbdir and inst_vardbdir.
31000         * nss/Makefile: Add rules to install db-Makefile.
31001
31002         * nss/nss_db/db-XXX.c: Cleanup.
31003
31004         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
31005         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
31006         GLIBC_PRIVATE.
31007         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
31008         * nss/makedb.c: Implement -g option to specify that value strings
31009         are generated and should not be added to table iterated over for
31010         get*ent calls.
31011         * nss/nss_db/db-initgroups.c: New file.
31012
31013         * nss/getent.c: Add support for initgroups lookups through getgrouplist
31014         interface.
31015
31016         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
31017         (internal_getgrouplist): Adjust to name change.
31018         Update use_initgroups_entry if this is not the first call.
31019         * nss/databases.def: Add initgroups entry.
31020
31021         * nss/makedb.c (compute_tables): Check result of multiple hash table
31022         sizes to minimize maximum chain length.
31023
31024 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
31025
31026         * Versions.def: Add entry for libnss_db.
31027         * shlib-versions: Likewise.
31028         * nss/Makefile: Add rules to build libnss_db.
31029         * nss/Versions: Add libnss_db information.  Organize libnss_files
31030         entries better.
31031         * nss/db-Makefile: Add gshadow support.  Change rules for the new
31032         makedb progra.  Some minor improvements to generate smaller files.
31033         * nss/nss_db/nss_db.h: Move NSS database header data structures to
31034         here from...
31035         * nss/makedb.c: ...here.
31036         Improve database format to be smaller and require less memory at
31037         runtime.
31038         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
31039         db anymore.
31040         * nss/nss_db/db-netgrp.c: Likewise.
31041         * nss/nss_db/db-open.c: Likewise.
31042         * nss/nss_files/flies-XXX.x: Adjust comments.
31043         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
31044         * nss/nss_files/files-grp.c: Likewise.
31045         * nss/nss_files/files-hosts.c: Likewise.
31046         * nss/nss_files/files-network.c: Likewise.
31047         * nss/nss_files/files-proto.c: Likewise.
31048         * nss/nss_files/files-pwd.c: Likewise.
31049         * nss/nss_files/files-rpc.c: Likewise.
31050         * nss/nss_files/files-service.c: Likewise.
31051         * nss/nss_files/files-sgrp.c: Likewise.
31052         * nss/nss_files/files-spwd.c: Likewise.
31053         * nss/nss_db/db-alias.c: Removed.
31054         * nss/nss_db/dummy-db.h: Removed.
31055
31056 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
31057
31058         * nss/makedb.c: Rewritten to not use database library.
31059         * nss/Makefile: Update to build new makedb program.
31060
31061 2011-06-14  Andreas Jaeger  <aj@suse.de>
31062
31063         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
31064         memset declaration.
31065
31066 2011-06-10  Andreas Schwab  <schwab@redhat.com>
31067
31068         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
31069         tmpbuf.
31070
31071 2011-06-10  Roland McGrath  <roland@hack.frob.com>
31072
31073         * Makerules (shlib.lds): Fail if the linker script comes out empty.
31074         * elf/Makefile ($(objpfx)ld.so): Likewise.
31075
31076         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
31077         Don't list ld.so twice in dependencies.
31078
31079         * posix/bug-regex31.c: Include <stdlib.h>.
31080
31081         * nscd/hstcache.c (cache_addhst): Remove unused variable.
31082
31083         * nis/nss_compat/compat-spwd.c
31084         (getspent_next_nss_netgr): Remove unused variable.
31085         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
31086
31087         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
31088         nonmembers" output to use the right array.
31089
31090         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
31091
31092         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
31093
31094         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
31095         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
31096         * catgets/gencat.c (read_input_file): Likewise.
31097         * locale/programs/locarchive.c (enlarge_archive): Likewise.
31098
31099         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
31100         variable definition inside #if's controlling its use.
31101
31102         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
31103
31104         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
31105
31106         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
31107
31108         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
31109         unreachable code.
31110
31111         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
31112
31113         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
31114         * configure: Regenerated.
31115
31116         * Makerules: Revert last change.
31117         * elf/Makefile: Likewise.
31118
31119 2011-06-09  Roland McGrath  <roland@hack.frob.com>
31120
31121         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
31122         * elf/Makefile ($(objpfx)librtld.os): Likewise.
31123         (reloc-link): Likewise.
31124
31125 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
31126
31127         * elf/Makefile: Add rules to build pldd.
31128         * elf/pldd.c: New file.
31129         * elf/pldd-xx.c: New file.
31130
31131 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
31132
31133         * version.h: Update for 2.15 development version.
31134
31135 2011-06-07  David S. Miller  <davem@davemloft.net>
31136
31137         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
31138         ifuncs.
31139         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
31140         elf_machine_lazy_rel): Likewise.
31141         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
31142         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
31143         elf_machine_lazy_rel): Likewise.
31144         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
31145         dl_hwcap via passed in argument.
31146         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
31147         Likewise.
31148
31149 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31150
31151         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
31152
31153 2011-06-06  Roland McGrath  <roland@hack.frob.com>
31154
31155         [BZ #12849]
31156         * manual/fdl-1.1.texi: New file, verbatim from:
31157         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
31158         * manual/lgpl-2.1.texi: New file, verbatim from:
31159         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
31160         * manual/Makefile (licenses): New variable, list those new file names.
31161         (texis): Use it.
31162         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
31163
31164         * manual/fdl.texi: File removed.
31165         * manual/lesser.texi: File removed.
31166         * manual/libc.texinfo (Copying, Documentation License):
31167         Use new @include file names, put @appendix directive before @include.
31168
31169 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
31170
31171         [BZ #12841]
31172         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
31173         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
31174         (mq_open): Add __NTH.
31175
31176 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
31177
31178         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31179         Assume Intel Core i3/i5/i7 processor if AVX is available.
31180
31181 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31182
31183         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
31184         typo.
31185
31186 2011-05-31  Andreas Schwab  <schwab@redhat.com>
31187
31188         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
31189         memory.  Use alloca_account.  Fix memory leak when retrying.
31190
31191 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31192
31193         * version.h (RELEASE): Bump for 2.14 release.
31194         * include/features.h (__GLIBC_MINOR__): Bump to 14.
31195
31196         * config.make.in (RANLIB): Remove entry.
31197
31198 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
31199
31200         * po/Makefile (po-sed-cmd): Add ksh to extensions.
31201         (libc.pot): Work around missing support for .ksh extension in xgettext.
31202
31203         [BZ #12684]
31204         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
31205         if both request failed.
31206         (send_dg): In case of server errors clear resplen or *resplen2.
31207
31208         [BZ #12454]
31209         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
31210         when there are multiple maps.
31211         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
31212         (_dl_fini): Remove test here.
31213
31214         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
31215
31216 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
31217
31218         [BZ #12350]
31219         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
31220         bit from old_res_options.
31221         (gaih_inet): Likewise.
31222
31223         [BZ #11099]
31224         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
31225         as signed.
31226
31227         * resolv/res_init.c (res_setoptions): Make the code more compact.
31228
31229         [BZ #11558]
31230         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
31231         set RES_USEVC.
31232
31233         [BZ #11634]
31234         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
31235
31236         * malloc/malloc.h: Mark malloc hook variables as deprecated.
31237
31238         [BZ #11781]
31239         * malloc/malloc.h: Declare malloc hook variables as volatile.
31240
31241         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
31242         in last patch.
31243
31244         [BZ #11799]
31245         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
31246         raise in the comment.
31247         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
31248         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
31249         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
31250
31251 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
31252
31253         [BZ #12811]
31254         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
31255         grow the buffers more if it already has to be sufficient.
31256         (build_wcs_upper_buffer): Likewise.
31257         * posix/regexec.c (check_matching): Likewise.
31258         (clean_state_log_if_needed): Likewise.
31259         (extend_buffers): Don't enlarge buffers beyond size of the input
31260         buffer.
31261         Patches mostly by Emil Wojak <emil@wojak.eu>.
31262         * posix/bug-regex32.c: New file.
31263         * posix/Makefile (tests): Add bug-regex32.
31264
31265         * locale/findlocale.c (_nl_find_locale): Return right away if
31266         _nl_explode_name failed.
31267         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
31268
31269         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
31270
31271         * debug/xtrace.sh: Unify messages.
31272         * malloc/memusage.sh: Likewise.
31273
31274         [BZ #12813]
31275         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
31276         time symbol from vDSO.  Substitute with vsyscall if not available.
31277         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
31278         __vdso_time.
31279
31280         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
31281         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
31282         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
31283         Add sendmmsg and internal_sendmmsg.
31284         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
31285         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
31286         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
31287
31288         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
31289         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
31290         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
31291
31292 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
31293
31294         [BZ #12813]
31295         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
31296         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
31297         available.
31298         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
31299         __vdso_getcpu.
31300
31301         [BZ #12814]
31302         * iconvdata/Makefile (tests): Add bug-iconv9.
31303         * iconvdata/bug-iconv9.c: New file.
31304
31305 2011-05-27  Andreas Schwab  <schwab@redhat.com>
31306
31307         [BZ #12814]
31308         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
31309
31310 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
31311
31312         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31313         (struct user_regs_struct): Change intcs field back to cs.
31314
31315 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
31316
31317         * po/ja.po: Update from translation team.
31318
31319 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
31320
31321         [BZ #12795]
31322         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
31323         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
31324
31325 2011-05-20  Andreas Schwab  <schwab@redhat.com>
31326
31327         * stdlib/longlong.h: Update from GCC.
31328
31329 2011-05-23  Andreas Schwab  <schwab@redhat.com>
31330
31331         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
31332         parameter name.
31333         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
31334         Add parameter name.
31335         (__sysconf): Pass it down.
31336
31337 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
31338
31339         [BZ #12671]
31340         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
31341         some situations.
31342         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31343         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
31344         add in in __libc_use_alloca calls.  Adjust callers.
31345         (glob): Use malloc in some situations.
31346
31347         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
31348         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
31349         pltexit.
31350
31351 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
31352
31353         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
31354         and CLOCK_BOOTTIME_ALARM.
31355
31356         [BZ #12782]
31357         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
31358         is returned.
31359
31360         * string/_strerror.c (__strerror_r): Print negative errors as signed
31361         numbers.
31362
31363         [BZ #12777]
31364         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
31365         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
31366         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
31367
31368         * configure.in: Fix typo in redirection and correct removal of test
31369         files in two cases.
31370
31371         [BZ #12788]
31372         * locale/setlocale.c (new_composite_name): Fix test to check for
31373         identical name of all categories.
31374
31375         [BZ #12792]
31376         * libio/filedoalloc.c (local_isatty): New function.
31377         (_IO_file_doallocate): Use local_isatty.
31378         * stdio-common/perror.c (perror): In case a new stream is used
31379         forward the stream error.
31380         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
31381         error flag.
31382
31383 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
31384
31385         [BZ #11869]
31386         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
31387         alloca.
31388         * include/alloca.h (extend_alloca_account): Define.
31389
31390         [BZ #11857]
31391         * posix/regex.h: Fix comments with documentation of user-accessible
31392         fields after compilation and describe correct free'ing of pattern
31393         after re_compile_pattern.
31394         Patch by Reuben Thomas <rrt@sc3d.org>.
31395
31396 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
31397
31398         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
31399         and -mno-altivec to prevent the compiler from using Altivec and/or
31400         VSX instructions when the corresponding registers are not available.
31401
31402 2011-05-19  Andreas Schwab  <schwab@redhat.com>
31403
31404         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
31405
31406 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
31407
31408         * libio/freopen.c (freopen): Use __dup2, not dup2.
31409         * libio/freopen64.c (freopen64): Likewise.
31410
31411 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31412
31413         [BZ #12775]
31414         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
31415         * math/Makefile (tests): Add test-powl.
31416         (CFLAGS-test-powl.c): Define.
31417         * math/test-powl.c: New file.
31418
31419 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31420
31421         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
31422
31423 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
31424
31425         [BZ #11837]
31426         * iconvdata/gb18030.c: Update to GB18020-2005.
31427
31428 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
31429
31430         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
31431         RE_SYNTAX_POSIX_AWK): Update to match recent development.
31432         Patch by Aharon Robbins <arnold@skeeve.com>.
31433
31434         [BZ #11892]
31435         * stdlib/putenv.c (putenv): Don't always create copy of the variable
31436         on the stack.
31437
31438         [BZ #11895]
31439         * misc/pselect.c (__pselect): Handle timeout value errors hidden
31440         through underflows.
31441
31442         [BZ #12766]
31443         * misc/error.c (error_at_line): Ensure file_name and old_file_name
31444         point to strings before performing equality test for error_one_per_line
31445         mode.
31446
31447         [BZ #11697]
31448         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
31449
31450         [BZ #11820]
31451         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31452         (struct user_fpregs_struct): Avoid __uint*_t types.
31453
31454         [BZ #6420]
31455         * malloc/mtrace.c (tr_where): Add additional parameter to point to
31456         symbol info.  Use it instead of calling _dl_addr locally.
31457         (lock_and_info): New function.
31458         (tr_freehook): Call lock_and_info and pass symbol info as additional
31459         parameter to tr_where.
31460         (tr_mallochook): Likewise.
31461         (tr_reallochook): Likewise.
31462         (tr_memalignhook): Likewise.
31463
31464         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
31465         used and couldn't be at all thread-safe.
31466
31467 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
31468
31469         * libio/freopen.c (freopen): Don't close old file descriptor
31470         before the new one is opened.  Instead dup the new file descriptor
31471         to the old one after the new stream is created.
31472         * libio/freopen64.c (freopen64): Likewise.
31473         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
31474         * libio/fileops.c (_IO_new_file_close_it): Handle new
31475         _IO_FLAGS2_NOCLOSE flag.
31476         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
31477         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
31478         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
31479         _IO_FLAGS2_NOCLOSE flag.
31480         * include/unistd.h: Add hidden_proto for dup3.
31481         Define __have_dup3.
31482         * io/dup3.c: Define hidden symbol.
31483         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
31484
31485         [BZ #7101]
31486         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
31487         when an incomplete long option is used.
31488         * posix/tst-getopt_long1.c: New file.
31489         * posix/Makefile (tests): Add tst-getopt_long1.
31490
31491         [BZ #10138]
31492         * scripts/config.guess: Update from autoconf-2.68.
31493         * scripts/config.sub: Likewise.
31494
31495         [BZ #10157]
31496         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
31497         tests into ...
31498         (has_cpuclock): ...this.  New function.
31499         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
31500         macro here based on has_cpuclock code.
31501
31502         [BZ #10149]
31503         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
31504         First byte (not low byte) is now always NUL.
31505         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
31506
31507         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
31508         Use non-cancelable interfaces.
31509
31510         [BZ #9809]
31511         * locale/iso-639.def: Add entry for Sorani.
31512
31513         [BZ #11901]
31514         * include/stdlib.h: Move include protection to the right place.
31515         Define abort_msg_s.  Declare __abort_msg with it.
31516         * stdlib/abort.c (__abort_msg): Adjust type.
31517         * assert/assert.c (__assert_fail_base): New function.  Majority
31518         of code from __assert_fail.  Allocate memory for __abort_msg with
31519         mmap.
31520         (__assert_fail): Now call __assert_fail_base.
31521         * assert/assert-perr.c: Remove bulk of implementation.  Use
31522         __assert_fail_base.
31523         * include/assert.hL Declare __assert_fail_base.
31524         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
31525         mmap.
31526         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
31527
31528 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
31529
31530         [BZ #11952]
31531         [BZ #12453]
31532         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
31533         until all modules are registered in the DTV.
31534         * elf/Makefile: Add rules to build and run tst-tls19.
31535         * elf/tst-tls19.c: New file.
31536         * elf/tst-tls19mod1.c: New file.
31537         * elf/tst-tls19mod2.c: New file.
31538         * elf/tst-tls19mod3.c: New file.
31539         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
31540
31541         [BZ #12083]
31542         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
31543         correctly.
31544
31545         [BZ #12601]
31546         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
31547         two-byte sequence errors.
31548         * iconvdata/Makefile (tests): Add bug-iconv8.
31549         * iconvdata/bug-iconv8.c: New file.
31550
31551         [BZ #12626]
31552         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
31553         buf2 definition.
31554
31555         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
31556
31557         [BZ #12432]
31558         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
31559         (dummy_getcfa): New function.
31560         (init): Get _Unwind_GetCFA address, use dummy if not found.
31561         (backtrace_helper): In recursion check, also check whether CFA changes.
31562         (__backtrace): Completely initialize arg.
31563
31564         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
31565         storing incomplete byte sequence in state object.  Avoid testing for
31566         guaranteed too small input if we know there is enough data available.
31567
31568 2011-05-11  Andreas Schwab  <schwab@redhat.com>
31569
31570         * Makeconfig (+link-pie): Indent.
31571         * Rules (binaries-pie): Define if $(have-fpie) and
31572         $(build-shared).
31573         (binaries-shared): Also filter out $(binaries-pie).
31574         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
31575         * nscd/Makefile (others-pie): Add nscd.
31576         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
31577         ($(objpfx)nscd): Remove command override.
31578         * login/Makefile (others-pie): Add pt_chown.
31579         ($(objpfx)pt_chown): Remove command override.
31580         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
31581         remove command overrides.
31582
31583 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
31584
31585         * libio/tst_putwc.c: Fix error messages.
31586
31587         [BZ #12724]
31588         * libio/fileops.c (_IO_new_file_close_it): Always flush when
31589         currently writing and seek to current position when not.
31590         * libio/Makefile (tests): Add bug-fclose1.
31591         * libio/bug-fclose1.c: New file.
31592
31593 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
31594
31595         [BZ #12511]
31596         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
31597         don't set DF_1_NODELETE here.
31598         (do_lookup_x): When entering new entry test for copy relocation
31599         and if necessary set DF_1_NODELETE flag.
31600         * elf/tst-unique4.cc: New file.
31601         * elf/tst-unique4.h: New file.
31602         * elf/tst-unique4lib.cc: New file.
31603         * elf/Makefile: Add rules to build and run tst-unique4.
31604         Patch by Piotr Bury <pbury@goahead.com>.
31605
31606 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
31607
31608         [BZ #12052]
31609         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
31610
31611         [BZ #12625]
31612         * misc/mntent_r.c (addmntent): Flush the stream after the output
31613
31614         [BZ #12393]
31615         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
31616         (is_trusted_path_normalize): Skip initial colon.  Append slash
31617         to empty buffer.  Duplicate is_trusted_path code but allow
31618         constructed patch to be prefix.
31619         (is_dst): Allow $ORIGIN followed by /.
31620         (_dl_dst_substitute): Correct clearing of check_for_trusted.
31621         Correct testing of result of is_trusted_path_normalize
31622         (decompose_rpath): Fix warning.
31623
31624 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
31625
31626         [BZ #11257]
31627         * grp/initgroups.c (internal_getgrouplist): When we found the service
31628         list through the initgroups entry in nsswitch.conf do not always
31629         continue on a successful lookup.  Don't always use the
31630         __nss_group_database value if it is set.
31631         * nss/nsswitch.conf (initgroups): Change action for successful db
31632         lookup to continue for compatibility.
31633
31634 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
31635
31636         [BZ #11532]
31637         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
31638         and CP774 modules.
31639         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
31640         and CP774 modules.
31641         * iconvdata/tst-tables.sh: Likewise.
31642         * iconvdata/cp770.c: New file.
31643         * iconvdata/cp771.c: New file.
31644         * iconvdata/cp772.c: New file.
31645         * iconvdata/cp773.c: New file.
31646         * iconvdata/cp774.c: New file.
31647         * iconvdata/testdata/CP770: New file.
31648         * iconvdata/testdata/CP770..UTF8: New file.
31649         * iconvdata/testdata/CP771: New file.
31650         * iconvdata/testdata/CP771..UTF8: New file.
31651         * iconvdata/testdata/CP772: New file.
31652         * iconvdata/testdata/CP772..UTF8: New file.
31653         * iconvdata/testdata/CP773: New file.
31654         * iconvdata/testdata/CP773..UTF8: New file.
31655         * iconvdata/testdata/CP774: New file.
31656         * iconvdata/testdata/CP774..UTF8: New file.
31657
31658         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
31659         END CHARMAP line.
31660         * iconvdata/gen-8bit-gap.sh: Likewise.
31661         * iconvdata/gen-8bit.sh: Likewise.
31662
31663         * locale/iso-639.def: Add ary entry.
31664
31665         [BZ #11258]
31666         * locale/C-translit.h.in: Add U20A1 transliteration.
31667
31668         [BZ #12178]
31669         * locale/iso-639.def: Add wae entry.
31670         Patch by Kevin Bortis <bortis@translate-wae.ch>.
31671
31672         [BZ #12545]
31673         * locale/programs/localedef.c (construct_output_path): Use ssize_t
31674         for n.
31675
31676         [BZ #12711]
31677         * locale/C-translit.h.in: Add entry for U20B9.
31678         Patch by pravin.d.s@gmail.com.
31679
31680 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
31681
31682         [BZ #12713]
31683         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
31684         ENAMETOOLONG use generic getcwd.
31685         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
31686         in rtld.  Use *stat64.
31687         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
31688         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
31689         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
31690         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
31691         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
31692         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
31693         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
31694         __fstatat64 macros.
31695         * include/dirent.h: Add libc_hidden_proto for rewinddir.
31696         * dirent/rewinddir.c: Add libc_hidden_def.
31697         * sysdeps/mach/hurd/rewinddir.c: Likewise.
31698         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
31699
31700         * include/dirent.h (__alloc_dir): Add flags parameter.
31701         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
31702         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
31703         __alloc_dir.
31704         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
31705         from fdopendir if O_CLOEXEC is already set.
31706
31707 2011-03-15  Alan Modra  <amodra@gmail.com>
31708
31709         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
31710         l_tls_firstbyte_offset non-zero.  Save padding offset in
31711         l_tls_firstbyte_offset for later use.
31712         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
31713         freeing static tls block.
31714
31715 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
31716
31717         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
31718         where #ifdef was intended.  The intent is to prevent ARG_MAX from
31719         being defined by the kernel headers.
31720
31721 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
31722
31723         [BZ #12734]
31724         * resolv/resolv.h: Define RES_NOTLDQUERY.
31725         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
31726         no-tld-query and set RES_NOTLDQUERY.
31727         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
31728         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
31729         modern BIND to search name as TLD unless forbidden.
31730
31731 2011-05-07  Petr Baudis  <pasky@suse.cz>
31732             Ulrich Drepper  <drepper@gmail.com>
31733
31734         [BZ #12393]
31735         * elf/dl-load.c (fillin_rpath): Move trusted path check...
31736         (is_trusted_path): ...to here.
31737         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
31738         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
31739         using is_trusted_path_normalize() in setuid scripts.
31740
31741 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
31742
31743         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
31744         __BEGIN/__END_DECLS.
31745
31746 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
31747
31748         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
31749         NSS_STATUS_NOTFOUND if no record was found.
31750
31751 2011-05-05  Andreas Schwab  <schwab@redhat.com>
31752
31753         * sunrpc/Makefile (headers): Add rpc/netdb.h.
31754         (headers-not-in-tirpc): Remove rpc/netdb.h
31755         * resolv/netdb.h: Revert last change.
31756
31757 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31758
31759         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
31760         circular dependency between libgcc.a and libc.a.
31761
31762 2011-05-05  Andreas Schwab  <schwab@redhat.com>
31763
31764         * resolv/netdb.h: Don't include <rpc/netdb.h>.
31765         * nis/Makefile: Don't install rpcsvc/*.
31766         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
31767         instead of <rpc/types.h>.
31768         (MAXHOSTNAMELEN): Define.
31769
31770 2011-05-03  Andreas Schwab  <schwab@redhat.com>
31771
31772         * elf/ldconfig.c (add_dir): Don't crash on empty path.
31773
31774 2011-04-28  Maciej Babinski  <mbabinski@google.com>
31775
31776         [BZ #12714]
31777         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
31778         gethostbyname4_r when IPv6 results are possible.
31779
31780 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
31781
31782         [BZ #12723]
31783         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
31784         _PC_PIPE_BUF handling.
31785
31786 2011-04-30  Bruno Haible  <bruno@clisp.org>
31787
31788         [BZ #12717]
31789         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
31790         * resolv/netdb.h (getnameinfo): Change type of flags parameter
31791         to 'int'.
31792         * inet/getnameinfo.c (getnameinfo): Likewise.
31793
31794 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
31795
31796         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
31797         to groups setting in database lookup.
31798         * nss/nsswitch.conf: Add initgroups entry.
31799
31800 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
31801
31802         [BZ #12685]
31803         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
31804         mode string.
31805         Patch by Eric Blake <eblake@redhat.com>.
31806
31807 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
31808
31809         * sunrpc/Makefile (need-export-routines): Add svc_run.
31810         (routines): Remove svc_run.
31811         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
31812         * sunrpc/clnt_perr.c (clnt_perrno): Export.
31813         * sunrpc/svc_run.c (svc_run): Likewise.
31814         * sunrpc/svc_udp.c (svcudp_create): Likewise.
31815
31816 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
31817
31818         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
31819         problem in reallocation in last patch.
31820
31821 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
31822
31823         * sunrpc/Makefile: Move inclusion of Rules.
31824
31825 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
31826
31827         * nss/nss_files/files-initgroups.c: New file.
31828         * nss/Makefile (libnss_files-routines): Add files-initgroups.
31829         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
31830         _nss_files_initgroups_dyn.
31831
31832 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
31833
31834         * elf/elf.h (R_ARM_IRELATIVE): Define.
31835
31836 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
31837
31838         * po/ru.po: Update from translation team.
31839
31840 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
31841
31842         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
31843         dependencies.
31844
31845 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
31846
31847         [BZ #12653]
31848         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
31849         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
31850         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
31851         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31852         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
31853
31854 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
31855
31856         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
31857         differing bytes.
31858         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
31859         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
31860         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
31861
31862 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
31863
31864         [BZ #12420]
31865         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
31866         storing it.
31867         * stdlib/bug-getcontext.c: New file.
31868         * stdlib/Makefile: Add rules to build and run bug-getcontext.
31869
31870 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31871
31872         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
31873         instructions into .machine "z9-109".
31874         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
31875         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
31876
31877 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31878
31879         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
31880         between environment variables and auxiliary vector.
31881
31882 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
31883
31884         * Makefile: Add rules to build linkobj/libc.so.
31885         * include/libc-symbols.h: Define libc_hidden_nolink.
31886         * include/rpc/auth.h: Mark functions which are to be hidden.
31887         * include/rpc/auth_des.h: Likewise.
31888         * include/rpc/auth_unix.h: Likewise.
31889         * include/rpc/clnt.h: Likewise.
31890         * include/rpc/des_crypt.h: Likewise.
31891         * include/rpc/key_prot.h: Likewise.
31892         * include/rpc/pmap_clnt.h: Likewise.
31893         * include/rpc/pmap_prot.h: Likewise.
31894         * include/rpc/pmap_rmt.h: Likewise.
31895         * include/rpc/rpc_msg.h: Likewise.
31896         * include/rpc/svc.h: Likewise.
31897         * include/rpc/svc_auth.h: Likewise.
31898         * include/rpc/xdr.h: Likewise.
31899         * nis/Makefile: Link all DSOs against linkobj/libc.so.
31900         * nss/Makefile: Likewise.
31901         * sunrpc/Makefile: Don't install headers.  Build library with normal
31902         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
31903         * sunrpc/auth_des.c: Hide exported symbols by default, export some
31904         for the compat linking library.  Remove use of INTDEF/INTUSE.
31905         * sunrpc/auth_none.c: Likewise.
31906         * sunrpc/auth_unix.c: Likewise.
31907         * sunrpc/authdes_prot.c: Likewise.
31908         * sunrpc/authuxprot.c: Likewise.
31909         * sunrpc/clnt_gen.c: Likewise.
31910         * sunrpc/clnt_perr.c: Likewise.
31911         * sunrpc/clnt_raw.c: Likewise.
31912         * sunrpc/clnt_simp.c: Likewise.
31913         * sunrpc/clnt_tcp.c: Likewise.
31914         * sunrpc/clnt_udp.c: Likewise.
31915         * sunrpc/clnt_unix.c: Likewise.
31916         * sunrpc/des_crypt.c: Likewise.
31917         * sunrpc/des_soft.c: Likewise.
31918         * sunrpc/get_myaddr.c: Likewise.
31919         * sunrpc/key_call.c: Likewise.
31920         * sunrpc/key_prot.c: Likewise.
31921         * sunrpc/netname.c: Likewise.
31922         * sunrpc/pm_getmaps.c: Likewise.
31923         * sunrpc/pm_getport.c: Likewise.
31924         * sunrpc/pmap_clnt.c: Likewise.
31925         * sunrpc/pmap_prot.c: Likewise.
31926         * sunrpc/pmap_prot2.c: Likewise.
31927         * sunrpc/pmap_rmt.c: Likewise.
31928         * sunrpc/publickey.c: Likewise.
31929         * sunrpc/rpc_cmsg.c: Likewise.
31930         * sunrpc/rpc_common.c: Likewise.
31931         * sunrpc/rpc_dtable.c: Likewise.
31932         * sunrpc/rpc_prot.c: Likewise.
31933         * sunrpc/rpc_thread.c: Likewise.
31934         * sunrpc/rtime.c: Likewise.
31935         * sunrpc/svc.c: Likewise.
31936         * sunrpc/svc_auth.c: Likewise.
31937         * sunrpc/svc_authux.c: Likewise.
31938         * sunrpc/svc_raw.c: Likewise.
31939         * sunrpc/svc_run.c: Likewise.
31940         * sunrpc/svc_simple.c: Likewise.
31941         * sunrpc/svc_tcp.c: Likewise.
31942         * sunrpc/svc_udp.c: Likewise.
31943         * sunrpc/svc_unix.c: Likewise.
31944         * sunrpc/svcauth_des.c: Likewise.
31945         * sunrpc/xcrypt.c: Likewise.
31946         * sunrpc/xdr.c: Likewise.
31947         * sunrpc/xdr_array.c: Likewise.
31948         * sunrpc/xdr_float.c: Likewise.
31949         * sunrpc/xdr_intXX_t.c: Likewise.
31950         * sunrpc/xdr_mem.c: Likewise.
31951         * sunrpc/xdr_rec.c: Likewise.
31952         * sunrpc/xdr_ref.c: Likewise.
31953         * sunrpc/xdr_sizeof.c: Likewise.
31954         * sunrpc/xdr_stdio.c: Likewise.
31955
31956 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
31957
31958         [BZ #12650]
31959         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
31960         * sysdeps/ia64/dl-tls.h: Likewise.
31961         * sysdeps/powerpc/dl-tls.h: Likewise.
31962         * sysdeps/s390/dl-tls.h: Likewise.
31963         * sysdeps/sh/dl-tls.h: Likewise.
31964         * sysdeps/sparc/dl-tls.h: Likewise.
31965         * sysdeps/x86_64/dl-tls.h: Likewise.
31966         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
31967
31968 2011-03-14  Andreas Schwab  <schwab@redhat.com>
31969
31970         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
31971         rpath element also skip the following colon.
31972         (expand_dynamic_string_token): Add is_path parameter and pass
31973         down to DL_DST_REQUIRED and _dl_dst_substitute.
31974         (decompose_rpath): Call expand_dynamic_string_token with
31975         non-zero is_path.  Ignore empty rpaths.
31976         (_dl_map_object_from_fd): Call expand_dynamic_string_token
31977         with zero is_path.
31978
31979 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
31980
31981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
31982         Make cancelable.
31983
31984 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
31985
31986         [BZ #12655]
31987         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
31988         Patch by Filipe David Manana <fdmanana@apache.org>.
31989
31990 2011-04-07  Andreas Schwab  <schwab@redhat.com>
31991
31992         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
31993         Maintain aligned stack.
31994         (CHECK_RSP): Remove unused macro.
31995
31996 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
31997
31998         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
31999         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
32000
32001 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
32002
32003         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
32004
32005         * include/features.h: Mention __USE_XOPEN2K8 in comment.
32006
32007 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
32008
32009         [BZ #12518]
32010         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
32011         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
32012         * sysdeps/x86_64/memmove.c: New file.
32013         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
32014         (memcpy): Renamed to ...
32015         (__new_memcpy): This.
32016         (memcpy): Provide GLIBC_2_14 memcpy.
32017         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
32018         (memcpy): Provide GLIBC_2_2_5 memcpy.
32019
32020 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32021
32022         [BZ #12631]
32023         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
32024
32025 2011-03-30  Andreas Schwab  <schwab@redhat.com>
32026
32027         * misc/syncfs.c: New file.
32028         * misc/Makefile (routines): Add syncfs.
32029         * posix/unistd.h: Declare syncfs.
32030         * sysdeps/unix/syscalls.list: Add syncfs.
32031
32032 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32033
32034         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
32035         open_by_handle_at.
32036         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
32037         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32038         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32039         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32040         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32041         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
32042         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32043
32044 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32045
32046         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
32047         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32048         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
32049         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32050         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32051         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32052         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32053
32054         * io/Makefile: Compile fallocate.c, fallocate64.c, and
32055         sync_file_range.c with -fexceptions.
32056         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
32057         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
32058         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32059         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32060         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
32061         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
32062         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
32063         sync_file_range as cancellation point
32064         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
32065         now a wrapper around __call_sync_file_range with cancellation handling.
32066         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
32067         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
32068         function name to __call_sync_file_range.
32069         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
32070         Add call_sync_file_range.
32071
32072 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32073
32074         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
32075         bits/timex.h.
32076
32077 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32078
32079         * iconv/iconv.h: Fix typo in comment.
32080         * io/fcntl.h: Likewise.
32081         * libio/stdio.h: Likewise.
32082         * posix/spawn.h: Likewise.
32083         * posix/unistd.h: Likewise.
32084         * stdlib/stdlib.h: Likewise.
32085         * time/time.h: Likewise.
32086         * wcsmbs/wchar.h: Likewise.
32087
32088         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
32089         open_by_handle): Add.
32090         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
32091         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
32092         Augment a few comments.
32093         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32094         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32095         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32096         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32097         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32098         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
32099         open_by_handle.
32100
32101         * io/fcntl.h (AT_EMPTY_PATH): Define.
32102
32103 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
32104
32105         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
32106         * sysdeps/unix/sysv/linux/bits/time.h: New file.
32107         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
32108         to...
32109         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
32110         * Versions.def: Add GLIBC_2.14.
32111         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
32112         Export.
32113
32114 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
32115
32116         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
32117         round counter.
32118         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32119
32120 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
32121
32122         [BZ #12597]
32123         * string/test-strncmp.c (do_page_test): New function.
32124         (check2): Likewise.
32125         (test_main): Call check2.
32126         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
32127
32128 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
32129
32130         [BZ #12587]
32131         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
32132         Handle cache information in CPU leaf 4.
32133         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32134
32135 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
32136
32137         [BZ #12583]
32138         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
32139         character representation.
32140         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
32141
32142 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
32143
32144         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
32145         END(__isnan) to END(__isnanf) to match function entry point/label
32146         EALIGN(__isnanf,...).
32147
32148 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32149
32150         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
32151
32152 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
32153
32154         [BZ #12510]
32155         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
32156         copy from the symbol referenced in the relocation to initialize the
32157         used variable.
32158         Patch by Piotr Bury <pbury@goahead.com>.
32159         * elf/Makefile: Add rules to build and tst-unique3.
32160         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
32161         * elf/tst-unique3.cc: New file.
32162         * elf/tst-unique3.h: New file.
32163         * elf/tst-unique3lib.cc: New file.
32164         * elf/tst-unique3lib2.cc: New file.
32165
32166         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
32167
32168 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
32169
32170         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
32171         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
32172         to _start.
32173
32174 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
32175
32176         * elf/dl-load.c (_dl_map_object): If we are looking for the first
32177         to-be-loaded object along a path to loader is ld.so.
32178
32179 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32180             Ulrich Drepper  <drepper@gmail.com>
32181
32182         * sysdeps/x86_64/memset.S: After aligning destination, code
32183         branches to different locations depending on the value of
32184         misalignment, when multiarch is enabled. Fix this.
32185
32186 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32187
32188         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
32189         Set _x86_64_preferred_memory_instruction for AMD processsors.
32190         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32191         Set bit_Prefer_SSE_for_memop for AMD processors.
32192
32193 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
32194
32195         * libio/fmemopen.c (fmemopen): Optimize a bit.
32196
32197 2011-03-03  Andreas Schwab  <schwab@redhat.com>
32198
32199         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
32200
32201 2011-03-03  Roland McGrath  <roland@redhat.com>
32202
32203         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
32204
32205 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
32206
32207         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
32208         __bzero_ultra1 instead of __memset_ultra1.
32209
32210 2011-02-23  Andreas Schwab  <schwab@redhat.com>
32211             Ulrich Drepper  <drepper@gmail.com>
32212
32213         [BZ #12509]
32214         * include/link.h (struct link_map): Add l_orig_initfini.
32215         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
32216         returning unsuccessfully.
32217         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
32218         close of a file loaded at startup, restore the original l_initfini
32219         list.
32220         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
32221         list, store the pointer.
32222         * elf/Makefile ($(objpfx)noload-mem): New rule.
32223         (noload-ENV): Define.
32224         (tests): Add $(objpfx)noload-mem.
32225         * elf/noload.c: Include <memcheck.h>.
32226         (main): Call mtrace.  Close all opened handles.
32227
32228 2011-02-17  Andreas Schwab  <schwab@redhat.com>
32229
32230         [BZ #12454]
32231         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
32232         dependencies are missing.
32233
32234 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32235
32236         Fix __if_freereq crash: Unlike the generic version which uses free,
32237         Hurd needs munmap.
32238         * sysdeps/mach/hurd/ifreq.h: New file.
32239
32240 2011-01-27  Petr Baudis  <pasky@suse.cz>
32241             Ulrich Drepper  <drepper@gmail.com>
32242
32243         [BZ 12445]#
32244         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
32245         to extend_alloca().
32246         * stdio-common/bug23.c: New file.
32247         * stdio-common/Makefile (tests): Add bug23.
32248
32249 2010-09-28  Andreas Schwab  <schwab@redhat.com>
32250             Ulrich Drepper  <drepper@gmail.com>
32251
32252         [BZ #12489]
32253         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
32254         before performing relro protection.  At old place add assertion
32255         to make sure nothing changed.
32256
32257 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
32258             Glauber de Oliveira Costa  <glommer@gmail.com>
32259
32260         * elf/elf.h: Add new ARM TLS relocs.
32261
32262 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
32263
32264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
32265         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
32266         cast from r3.
32267         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
32268         'tests' variable.
32269         * sysdeps/wordsize-64/tst-writev.c: New file.
32270
32271 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
32272
32273         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
32274         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
32275         insns in _dl_start to prevent a TOC reference before relocs are
32276         resolved.
32277
32278 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
32279
32280         [BZ #12469]
32281         * Makeconfig: Remove RANLIB definition.
32282         * Makerules: Don't use RANLIB.
32283         * aclocal.m4: Remove ranlib test.
32284         * configure.in: No need to check for ranlib.
32285         * elf/rtld-Rules: Don't use RANLIB.
32286
32287 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32288
32289         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
32290         protection macro.
32291         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
32292         inclusion protection macro.
32293
32294         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
32295         SIGRTMIN and SIGRTMAX and print information in that case only when
32296         SIGRTMIN is defined.
32297
32298 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
32299
32300         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
32301         arginfo fn returning -1.
32302
32303         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
32304         and thousands string is zero terminated.
32305
32306 2011-02-03  Andreas Schwab  <schwab@redhat.com>
32307
32308         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
32309         sysdeps/unix/sysv/linux/bits/socket.h.
32310
32311 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32312
32313         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
32314         (__CPU_COUNT): Remove old macros.
32315         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
32316         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
32317         (__CPU_ALLOC, __CPU_FREE): Add macros.
32318         (__sched_cpualloc, __sched_cpufree): Add declarations.
32319
32320 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
32321
32322         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
32323         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
32324         * nscd/aicache.c (addhstaiX): Return timeout of added value.
32325         (readdhstai): Return value of addhstaiX call.
32326         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
32327         (addgrbyX): Return value returned by cache_addgr.
32328         (readdgrbyname): Return value returned by addgrbyX.
32329         (readdgrbygid): Likewise.
32330         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
32331         (addpwbyX): Return value returned by cache_addpw.
32332         (readdpwbyname): Return value returned by addhstbyX.
32333         (readdpwbyuid): Likewise.
32334         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
32335         (addservbyX): Return value returned by cache_addserv.
32336         (readdservbyname): Return value returned by addservbyX:
32337         (readdservbyport): Likewise.
32338         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
32339         (addhstbyX): Return value returned by cache_addhst.
32340         (readdhstbyname): Return value returned by addhstbyX.
32341         (readdhstbyaddr): Likewise.
32342         (readdhstbynamev6): Likewise.
32343         (readdhstbyaddrv6): Likewise.
32344         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
32345         (readdinitgroups): Return value returned by addinitgroupsX.
32346         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
32347         (prune_cache): Keep track of timeout value of re-added entries.
32348         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
32349         * nscd/nscd.h: Adjust prototypes of readd* functions.
32350
32351 2011-02-04  Roland McGrath  <roland@redhat.com>
32352
32353         * nis/nis_server.c (nis_servstate): Use the right name for 0.
32354         (nis_stats): Likewise.
32355         * nis/nis_modify.c (nis_modify): Likewise.
32356         * nis/nis_remove.c (nis_remove): Likewise.
32357         * nis/nis_add.c (nis_add): Likewise.
32358
32359         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
32360
32361         * posix/fnmatch_loop.c: Add some consts.
32362
32363         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
32364
32365 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
32366
32367         [BZ #12460]
32368         * config.make.in (config-cflags-novzeroupper): Define.
32369         * configure.in: Substitute libc_cv_cc_novzeroupper.
32370         * elf/Makefile (AVX-CFLAGS): Define.
32371         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
32372         (CFLAGS-tst-auditmod4a.c): Likewise.
32373         (CFLAGS-tst-auditmod4b.c): Likewise.
32374         (CFLAGS-tst-auditmod6b.c): Likewise.
32375         (CFLAGS-tst-auditmod6c.c): Likewise.
32376         (CFLAGS-tst-auditmod7b.c): Likewise.
32377         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
32378
32379 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
32380
32381         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
32382         function to the callback.
32383         Patch partly by Jiri Olsa <jolsa@redhat.com>.
32384
32385 2011-02-02  Andreas Schwab  <schwab@redhat.com>
32386
32387         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
32388         of errno.
32389
32390 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
32391
32392         [BZ #11724]
32393         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
32394         of constructors.
32395         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
32396         of destructors.
32397         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
32398
32399         [BZ #11724]
32400         * elf/Makefile: Add rules to build and run new test.
32401         * elf/tst-initorder.c: New file.
32402         * elf/tst-initorder.exp: New file.
32403         * elf/tst-initordera1.c: New file.
32404         * elf/tst-initordera2.c: New file.
32405         * elf/tst-initordera3.c: New file.
32406         * elf/tst-initordera4.c: New file.
32407         * elf/tst-initorderb1.c: New file.
32408         * elf/tst-initorderb2.c: New file.
32409         * elf/tst-order-a1.c: New file.
32410         * elf/tst-order-a2.c: New file.
32411         * elf/tst-order-a3.c: New file.
32412         * elf/tst-order-a4.c: New file.
32413         * elf/tst-order-b1.c: New file.
32414         * elf/tst-order-b2.c: New file.
32415         * elf/tst-order-main.c: New file.
32416         New test case by George Gensure <werkt0@gmail.com>.
32417
32418 2010-10-01  Andreas Schwab  <schwab@redhat.com>
32419
32420         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
32421         decoding ACE if AI_CANONIDN.
32422
32423 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
32424
32425         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
32426
32427 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
32428
32429         * version.h (RELEASE): Bump for 2.13 release.
32430         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
32431
32432         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
32433
32434         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
32435         MADV_NOHUGEPAGE.
32436         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
32437         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
32438         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
32439         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
32440         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
32441         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
32442
32443         * posix/getconf.c: Update copyright year.
32444         * catgets/gencat.c: Likewise.
32445         * csu/version.c: Likewise.
32446         * debug/catchsegv.sh: Likewise.
32447         * debug/xtrace.sh: Likewise.
32448         * elf/ldconfig.c: Likewise.
32449         * elf/ldd.bash.in: Likewise.
32450         * elf/sprof.c (print_version): Likewise.
32451         * iconv/iconv_prog.c: Likewise.
32452         * iconv/iconvconfig.c: Likewise.
32453         * locale/programs/locale.c: Likewise.
32454         * locale/programs/localedef.c: Likewise.
32455         * malloc/memusage.sh: Likewise.
32456         * malloc/mtrace.pl: Likewise.
32457         * nscd/nscd.c (print_version): Likewise.
32458         * nss/getent.c: Likewise.
32459
32460         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
32461         PF_CAIF, and PF_ALG.
32462         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
32463
32464 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
32465
32466         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
32467         (modules-names): Use them.
32468         (ifunc-test-modules, ifunc-pie-tests): Define.
32469         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
32470         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
32471         (test-extras): Likewise.
32472         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
32473         $(compile-command.c).
32474         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
32475         (all-built-dso): Define.
32476         (check-textrel.out, check-execstack.out): Depend on it.
32477
32478         * configure.in: Don't override --enable-multi-arch.
32479
32480 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
32481
32482         [BZ #6812]
32483         * nscd/hstcache.c (tryagain): Define.
32484         (cache_addhst): Return tryagain not notfound for temporary errors.
32485         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
32486         failed.
32487
32488 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
32489
32490         [BZ #10563]
32491         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
32492         to make the syscall.
32493         * sysdeps/unix/sysv/linux/setgroups.c: New file.
32494
32495         [BZ #12378]
32496         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
32497         and fall back to matching as normal character if the string ends before
32498         the matching ']' is found.  This is what POSIX requires.
32499         * posix/testfnm.c: Adjust test result.
32500         * posix/globtest.sh: Adjust test result.  Add new test.
32501         * posix/tst-fnmatch.input: Likewise.
32502         * posix/tst-fnmatch2.c: Add new test.
32503
32504 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
32505
32506         * elf/Makefile (check-execstack): Revert last change.  Depend on
32507         check-execstack.h.
32508         (check-execstack.h): New target.
32509         (generated): Add check-execstack.h.
32510         * elf/check-execstack.c: Include "check-execstack.h".
32511         (main): Revert last change.
32512         (handle_file): Return zero if GNU_STACK is absent and
32513         DEFAULT_STACK_PERMS doesn't include PF_X.
32514
32515 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
32516
32517         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
32518         in child fails because the descriptor is already closed.
32519         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
32520         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
32521         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
32522
32523         [BZ #12397]
32524         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
32525         syscall.
32526
32527         [BZ #10484]
32528         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
32529         temporary buffer used to handle multi lookups locally.
32530         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
32531
32532 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
32533
32534         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
32535         loader is ld.so.
32536
32537 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
32538
32539         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
32540         alignment for SSE2.
32541
32542 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
32543
32544         [BZ #12394]
32545         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
32546         characters.  When rounding increased number of integer digits recompute
32547         number of groups.
32548         * stdio-common/tst-grouping.c: New file.
32549         * stdio-common/Makefile: Add rules to build and run tst-grouping.
32550
32551 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
32552
32553         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
32554         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
32555
32556         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
32557         void.
32558         * bits/select.h: Likewise.
32559
32560 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
32561
32562         * po/ja.po: Update from translation team.
32563
32564 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
32565
32566         [BZ #11155]
32567         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
32568         implementation just like for lxstat, fxstatat, et al.
32569
32570 2010-12-27  Jim Meyering  <meyering@redhat.com>
32571
32572         [BZ #12348]
32573         * posix/regexec.c (build_trtable): Return failure indication upon
32574         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
32575
32576 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
32577
32578         [BZ #12201]
32579         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
32580         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
32581         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
32582         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
32583
32584         [BZ #12207]
32585         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
32586
32587         [BZ #12204]
32588         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
32589         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
32590
32591 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
32592
32593         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
32594         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
32595         script has SORT_BY_INIT_PRIORITY.
32596         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
32597         NO_CTORS_DTORS_SECTIONS is defined.
32598         * elf/soinit.c: Likewise.
32599         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
32600         NO_CTORS_DTORS_SECTIONS is defined.
32601         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
32602         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
32603         * sysdeps/sh/init-first.c: Likewise.
32604         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
32605
32606 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
32607
32608         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
32609         always use the slow path.
32610
32611 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
32612
32613         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
32614         similar rule which adds the sysdep directories to the header search in
32615         order to pick up the correct platform stackinfo.h.
32616         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
32617         perform test if it is, otherwise return successfully without testing.
32618         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
32619         DEFAULT_STACK_PERMS define in stackinfo.h.
32620         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
32621         defined in stackinfo.h.
32622         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
32623         DEFAULT_STACK_PERMS defined in stackinfo.h.
32624         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
32625         * sysdeps/ia64/stackinfo.h: Likewise.
32626         * sysdeps/s390/stackinfo.h: Likewise.
32627         * sysdeps/sh/stackinfo.h: Likewise.
32628         * sysdeps/sparc/stackinfo.h: Likewise.
32629         * sysdeps/x86_64/stackinfo.h: Likewise.
32630         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
32631         PF_X for powerpc64.  Retain PF_X for powerpc32.
32632
32633 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
32634
32635         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
32636         accurately.
32637         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
32638         GETDENTS_64BIT_ALIGNED.
32639
32640 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
32641
32642         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
32643
32644 2010-12-10  Andreas Schwab  <schwab@redhat.com>
32645
32646         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
32647         _GNU_SOURCE.
32648
32649         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
32650         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
32651         Remove __restrict.
32652         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
32653         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
32654
32655 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
32656
32657         [BZ #11655]
32658         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
32659         are initialized.
32660
32661 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
32662
32663         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
32664
32665 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
32666
32667         * po/it.po: Update from translation team.
32668
32669 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
32670
32671         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
32672         unused codes.
32673
32674 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
32675
32676         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
32677
32678 2010-11-24  Andreas Schwab  <schwab@redhat.com>
32679
32680         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
32681         specially.
32682         (gaih_getanswer_slice): Likewise.
32683
32684 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
32685
32686         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
32687
32688 2010-05-31  Petr Baudis  <pasky@suse.cz>
32689
32690         [BZ #11149]
32691         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
32692         silently even in the chroot mode.
32693
32694 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
32695
32696         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
32697         last patch a bit.  Pretty printing
32698
32699 2010-05-31  Petr Baudis <pasky@suse.cz>
32700
32701         [BZ #10085]
32702         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
32703         initialization of skip_initgroups_dyn.
32704
32705 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
32706
32707         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
32708         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
32709
32710 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
32711
32712         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
32713
32714 2010-11-11  Andreas Schwab  <schwab@redhat.com>
32715
32716         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
32717         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
32718         (tst-fnmatch-ENV): Set MALLOC_TRACE.
32719         ($(objpfx)tst-fnmatch-mem): New rule.
32720         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
32721         * posix/tst-fnmatch.c (main): Call mtrace.
32722
32723 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
32724
32725         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32726         Support Intel processor model 6 and model 0x2c.
32727
32728 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
32729
32730         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
32731           signed comparison.
32732
32733 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
32734
32735         [BZ #12205]
32736         * string/test-strncasecmp.c (check_result): New function.
32737         (do_one_test): Use it.
32738         (check1): New function.
32739         (test_main): Use it.
32740         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
32741         Support strcasecmp and strncasecmp.
32742
32743 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
32744
32745         [BZ #12194]
32746         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
32747         * sysdeps/x86_64/bits/byteswap.h: Likewise.
32748
32749 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
32750
32751         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
32752         IFUNC support.
32753         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32754         memset-x86-64.
32755         * sysdeps/x86_64/multiarch/bzero.S: New file.
32756         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
32757         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
32758         * sysdeps/x86_64/multiarch/memset.S: New file.
32759         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
32760         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32761         Set bit_Prefer_SSE_for_memop for Intel processors.
32762         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
32763         Define.
32764         (index_Prefer_SSE_for_memop): Define.
32765         (HAS_PREFER_SSE_FOR_MEMOP): Define.
32766
32767 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
32768
32769         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
32770         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
32771
32772 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
32773
32774         [BZ #12191]
32775         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
32776         (__x86_64_raw_data_cache_size_half): Likewise.
32777         (__x86_64_raw_shared_cache_size): Likewise.
32778         (__x86_64_raw_shared_cache_size_half): Likewise.
32779
32780         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
32781         (__x86_64_raw_data_cache_size_half): Likewise.
32782         (__x86_64_raw_shared_cache_size): Likewise.
32783         (__x86_64_raw_shared_cache_size_half): Likewise.
32784         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
32785         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
32786         and __x86_64_raw_shared_cache_size_half.  Round
32787         __x86_64_data_cache_size_half, __x86_64_data_cache_size
32788         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
32789         to multiple of 256 bytes.
32790
32791 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
32792
32793         [BZ #12167]
32794         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
32795         of inacessible symlinks.  Verify result of symlink before returning it.
32796         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
32797         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
32798
32799 2010-10-28  Erich Ritz  <erichritz@gmail.com>
32800
32801         * math/math.h (isinf): Fix typo in comment.
32802
32803 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
32804
32805         * po/da.po: Update from translation team.
32806
32807 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
32808
32809         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
32810         is added to the list.
32811
32812 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32813             Ulrich Drepper  <drepper@gmail.com>
32814
32815         * elf/dl-object.c (_dl_new_object): Don't append the new object to
32816         the global list here.  Move code to...
32817         (_dl_add_to_namespace_list): ...here.  New function.
32818         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
32819         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
32820         * elf/dl-load.c (lose): Don't remove the element from the list.
32821         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
32822         (_dl_map_object): Likewise.
32823
32824 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
32825
32826         [BZ #12159]
32827         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
32828         into all bytes of SSE register.
32829         Patch by Richard Li <richardpku@gmail.com>.
32830
32831 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
32832
32833         [BZ #12140]
32834         * malloc/malloc.c (_int_free): Fill correct number of bytes when
32835         perturbing.
32836
32837 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
32838
32839         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
32840         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
32841         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
32842         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
32843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
32844         submachine.
32845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
32846
32847 2010-10-22  Andreas Schwab  <schwab@redhat.com>
32848
32849         * include/dlfcn.h (__RTLD_SECURE): Define.
32850         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
32851         mode & __RTLD_SECURE instead.
32852         (open_path): Rename preloaded parameter to secure.
32853         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
32854         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
32855         * elf/dl-deps.c (openaux): Likewise.
32856         * elf/rtld.c (struct map_args): Remove is_preloaded.
32857         (map_doit): Don't use it.
32858         (dl_main): Likewise.
32859         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
32860         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
32861
32862 2010-09-09  Andreas Schwab  <schwab@redhat.com>
32863
32864         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
32865         (sysd-rules-targets): Remove duplicates.
32866         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
32867         rtld-%.$o dependency.
32868
32869 2010-10-18  Andreas Schwab  <schwab@redhat.com>
32870
32871         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
32872         _dl_map_object do it.
32873
32874 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
32875
32876         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
32877         fast fma builtins, define the macros in the C99 standard.
32878         (FP_FAST_FMAF): Likewise.
32879         (FP_FAST_FMAL): Likewise.
32880         * sysdeps/x86_64/bits/mathdef.h: Likewise.
32881
32882         * bits/mathdef.h: Update copyright year.
32883         * sysdeps/powerpc/bits/mathdef.h: Likewise.
32884
32885 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
32886
32887         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
32888         builtins, define the macros in the C99 standard.
32889         (FP_FAST_FMAF): Likewise.
32890         (FP_FAST_FMAL): Likewise.
32891         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
32892         multiply/add.
32893         (FP_FAST_FMAF): Likewise.
32894
32895 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
32896
32897         [BZ #3268]
32898         * math/libm-test.inc (fma_test): Some new testcases.
32899         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
32900         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
32901         y and infinite z.  Do multiplication by C already in long double.
32902         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
32903         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
32904         y and infinite z.  Do bitwise or of inexact bit into u.d.
32905         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
32906         * sysdeps/i386/fpu/s_fmaf.S: Removed.
32907         * sysdeps/i386/fpu/s_fma.S: Removed.
32908         * sysdeps/i386/fpu/s_fmal.S: Removed.
32909
32910 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
32911
32912         [BZ #3268]
32913         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
32914         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
32915         computation is not scheduled after fetestexcept.  Fix value
32916         of minimum denormal long double.
32917
32918 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
32919
32920         [BZ #3268]
32921         * math/libm-test.inc (fma_test): Add some more tests.
32922         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
32923         correctly.
32924
32925 2010-10-15  Andreas Schwab  <schwab@redhat.com>
32926
32927         * scripts/data/localplt-s390-linux-gnu.data: New file.
32928         * scripts/data/localplt-s390x-linux-gnu.data: New file.
32929
32930 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
32931
32932         [BZ #3268]
32933         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
32934         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
32935         instead of dbl-64.
32936         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
32937         inlines.
32938         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
32939         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
32940         if one of x and y is very large and the other is subnormal.
32941         * sysdeps/s390/fpu/s_fmaf.c: New file.
32942         * sysdeps/s390/fpu/s_fma.c: New file.
32943         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
32944         * sysdeps/powerpc/fpu/s_fma.S: New file.
32945         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
32946         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
32947         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
32948
32949 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
32950
32951         [BZ #3268]
32952         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
32953         fma tests.
32954         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
32955         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
32956         * sysdeps/i386/i686/multiarch/s_fma.c: Include
32957         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
32958         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
32959         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
32960         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
32961
32962 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
32963
32964         [BZ #12078]
32965         * posix/regcomp.c (parse_branch): One more memory leak plugged.
32966         * posix/bug-regex31.input: Add test case.
32967
32968 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
32969
32970         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
32971         * posix/bug-regex31.input: New file.
32972
32973         [BZ #12078]
32974         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
32975         (parse_sub_exp): Fix last change, use postorder.
32976
32977         * posix/bug-regex31.c: New file.
32978         * posix/Makefile: Add rules to build and run bug-regex31.
32979
32980         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
32981
32982         [BZ #12078]
32983         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
32984
32985         [BZ #12108]
32986         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
32987         to have entries in sys_siglist.
32988
32989         [BZ #12093]
32990         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
32991         be NULL.
32992
32993 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
32994
32995         [BZ #3268]
32996         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
32997         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
32998         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
32999         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
33000         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33001         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
33002         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
33003         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
33004         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
33005         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
33006         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
33007         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
33008         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
33009         * math/ftestexcept.c (fetestexcept): Likewise.
33010         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
33011         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
33012         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
33013         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
33014         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
33015         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
33016         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
33017
33018 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33019
33020         [BZ #12107]
33021         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
33022         newline.
33023
33024 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
33025
33026         * string/bug-strstr1.c: New file.
33027         * string/Makefile: Add rules to build and run bug-strstr1.
33028
33029 2010-10-05  Eric Blake  <eblake@redhat.com>
33030
33031         [BZ #12092]
33032         * string/str-two-way.h (two_way_long_needle): Always clear memory
33033         when skipping input due to the shift table.
33034
33035 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
33036
33037         [BZ #12005]
33038         * malloc/mcheck.c: Handle large requests.
33039
33040         [BZ #12077]
33041         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
33042         for strncmp and strncasecmp.
33043         * string/stratcliff.c: Add tests for strcmp and strncmp.
33044         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
33045
33046 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33047
33048         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
33049         __set_fpscr.
33050
33051 2010-09-30  Andreas Jaeger  <aj@suse.de>
33052
33053         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
33054         (CGROUP_SUPER_MAGIC): Define.
33055         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33056         Handle btrfs and cgroup file systems.
33057         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
33058         Likewise.
33059
33060 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
33061
33062         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
33063         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
33064
33065 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33066
33067         [BZ #12067]
33068         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
33069         trying to locate the ELF header.
33070
33071 2010-09-27  Andreas Schwab  <schwab@redhat.com>
33072
33073         [BZ #11611]
33074         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
33075         Mask out sign-bit copies when constructing f_fsid.
33076
33077 2010-09-24  Petr Baudis <pasky@suse.cz>
33078
33079         * debug/stack_chk_fail_local.c: Add missing licence exception.
33080         * debug/warning-nop.c: Likewise.
33081
33082 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
33083
33084         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
33085         implementing getdents64 using getdents syscall, set d_type if
33086         __ASSUME_GETDENTS32_D_TYPE.
33087
33088 2010-09-16  Andreas Schwab  <schwab@redhat.com>
33089
33090         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
33091         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
33092
33093 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
33094
33095         [BZ #12037]
33096         * posix/unistd.h: Undo change of feature selection for ftruncate from
33097         2010-01-11.
33098
33099 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
33100
33101         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
33102         detection.
33103
33104 2010-09-20  Andreas Schwab  <schwab@redhat.com>
33105
33106         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
33107         fanotify_mark.
33108         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33109
33110 2010-09-14  Andreas Schwab  <schwab@redhat.com>
33111
33112         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
33113         variables after CHECK_SP call.
33114         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
33115
33116 2010-09-13  Andreas Schwab  <schwab@redhat.com>
33117             Ulrich Drepper  <drepper@redhat.com>
33118
33119         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
33120         re-relocationg ld.so.
33121         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
33122         _dl_init_paths call.
33123         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
33124         here anymore.
33125
33126 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
33127
33128         * resolv/res_init.c (__res_vinit): Count the default server we added.
33129
33130 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
33131             Ulrich Drepper  <drepper@redhat.com>
33132
33133         [BZ #11968]
33134         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33135         (____longjmp_chk): Use %ebx for saving value across system call.
33136         Add unwind info.
33137
33138 2010-09-06  Andreas Schwab  <schwab@redhat.com>
33139
33140         * manual/Makefile: Don't mix pattern rules with normal rules.
33141
33142 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
33143
33144         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
33145         operation.
33146         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
33147         * libio/iofopncook.c (_IO_cookie_init): Likewise.
33148         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
33149         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
33150         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33151         Likewise.
33152
33153 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
33154
33155         [BZ #11979]
33156         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
33157         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
33158
33159 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
33160
33161         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
33162         * sysdeps/x86_64/addmul_1.S: Likewise.
33163         * sysdeps/x86_64/lshift.S: Likewise.
33164         * sysdeps/x86_64/mul_1.S: Likewise.
33165         * sysdeps/x86_64/rshift.S: Likewise.
33166         * sysdeps/x86_64/sub_n.S: Likewise.
33167         * sysdeps/x86_64/submul_1.S: Likewise.
33168
33169 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33170
33171         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
33172         Define __sched_param instead of SCHED_* and sched_param when
33173         <bits/sched.h> is included with __need_schedparam defined.
33174         * bits/sched.h [__need_schedparam]
33175         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
33176         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
33177         (__defined_schedparam): Define to 1.
33178         (__sched_param): New structure, identical to sched_param.
33179         (__need_schedparam): Undefine.
33180
33181 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
33182
33183         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
33184         (epoll_create1): Declare.
33185
33186         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
33187
33188 2010-08-31  Andreas Schwab  <schwab@redhat.com>
33189
33190         [BZ #7066]
33191         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
33192         shifting retval into place.
33193
33194 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
33195
33196         * nis/rpcsvc/nis.h: Update copyright notice.
33197         * nis/rpcsvc/nis.x: Likewise.
33198         * nis/rpcsvc/nis_callback.h: Likewise.
33199         * nis/rpcsvc/nis_callback.x: Likewise.
33200         * nis/rpcsvc/nis_object.x: Likewise.
33201         * nis/rpcsvc/nis_tags.h: Likewise.
33202         * nis/rpcsvc/yp.h: Likewise.
33203         * nis/rpcsvc/yp.x: Likewise.
33204         * nis/rpcsvc/ypupd.h: Likewise.
33205         * nis/yp_xdr.c: Likewise.
33206         * nis/ypupdate_xdr.c: Likewise.
33207
33208         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
33209         mainly the body of pmap_getport.  Add parameters to specify timeouts.
33210         (pmap_getport): Use __libc_rpc_getport.
33211         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
33212         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
33213         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
33214
33215 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
33216
33217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
33218         fanotify_mark.
33219
33220 2010-08-27  Roland McGrath  <roland@redhat.com>
33221
33222         * sysdeps/i386/i686/multiarch/Makefile
33223         (CFLAGS-varshift.c): New variable.
33224
33225 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
33226
33227         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
33228         * sysdeps/i386/i686/multiarch/varshift.c: New file.
33229
33230         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
33231
33232         * sysdeps/x86_64/strlen.S: Minimal code improvement.
33233
33234 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
33235
33236         * sysdeps/x86_64/strlen.S: Unroll the loop.
33237         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33238         strlen-sse2 strlen-sse2-bsf.
33239         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
33240         __strlen_no_bsf if bit_Slow_BSF is set.
33241         (__strlen_sse42): Removed.
33242         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
33243         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
33244
33245 2010-08-25  Roland McGrath  <roland@redhat.com>
33246
33247         * sysdeps/x86_64/multiarch/varshift.S: File removed.
33248         * sysdeps/x86_64/multiarch/varshift.c: New file.
33249         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
33250         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
33251         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
33252         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
33253
33254 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
33255
33256         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33257         strlen-sse2 strlen-sse2-bsf.
33258         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
33259         __strlen_sse2_bsf if bit_Slow_BSF is unset.
33260         (__strlen_sse2): Removed.
33261         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
33262         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
33263         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
33264         bit_Slow_BSF for Atom.
33265         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
33266         (index_Slow_BSF): Define.
33267         (HAS_SLOW_BSF): Define.
33268
33269 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
33270
33271         [BZ #10851]
33272         * resolv/res_init.c (__res_vinit): When no server address at all
33273         is given default to loopback.
33274
33275 2010-08-24  Roland McGrath  <roland@redhat.com>
33276
33277         * configure.in: Remove config-name.h generation.
33278         * configure: Regenerated.
33279         * config-name.in: File removed.
33280         * scripts/config-uname.sh: New file.
33281         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
33282         ($(objdir)config-name.h): New target.
33283
33284         * sunrpc/rpc_parse.h: Avoid nested comment.
33285
33286 2010-08-24  Richard Henderson  <rth@redhat.com>
33287             Ulrich Drepper  <drepper@redhat.com>
33288             H.J. Lu  <hongjiu.lu@intel.com>
33289
33290         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
33291         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
33292         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
33293         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
33294         _mm_alignr_epi8 with _mm_loadu_si128.
33295         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
33296         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
33297         (__m128i_shift_right): Removed.
33298         * sysdeps/i386/i686/multiarch/varshift.h: New file.
33299         * sysdeps/i386/i686/multiarch/varshift.S: New file.
33300         * sysdeps/x86_64/multiarch/varshift.h: New file.
33301         * sysdeps/x86_64/multiarch/varshift.S: New file.
33302
33303 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
33304
33305         * configure.in: Move assembler checks to before sysdep dir checking.
33306
33307 2010-08-20  Petr Baudis  <pasky@suse.cz>
33308
33309         * LICENSES: Sync the sunrpc license.
33310
33311 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
33312
33313         * sunrpc/auth_des.c: Update copyright notice once again.
33314         * sunrpc/auth_none.c: Likewise.
33315         * sunrpc/auth_unix.c: Likewise.
33316         * sunrpc/authdes_prot.c: Likewise.
33317         * sunrpc/authuxprot.c: Likewise.
33318         * sunrpc/bindrsvprt.c: Likewise.
33319         * sunrpc/clnt_gen.c: Likewise.
33320         * sunrpc/clnt_perr.c: Likewise.
33321         * sunrpc/clnt_raw.c: Likewise.
33322         * sunrpc/clnt_simp.c: Likewise.
33323         * sunrpc/clnt_tcp.c: Likewise.
33324         * sunrpc/clnt_udp.c: Likewise.
33325         * sunrpc/clnt_unix.c: Likewise.
33326         * sunrpc/des_crypt.c: Likewise.
33327         * sunrpc/des_soft.c: Likewise.
33328         * sunrpc/get_myaddr.c: Likewise.
33329         * sunrpc/getrpcport.c: Likewise.
33330         * sunrpc/key_call.c: Likewise.
33331         * sunrpc/key_prot.c: Likewise.
33332         * sunrpc/openchild.c: Likewise.
33333         * sunrpc/pm_getmaps.c: Likewise.
33334         * sunrpc/pm_getport.c: Likewise.
33335         * sunrpc/pmap_clnt.c: Likewise.
33336         * sunrpc/pmap_prot.c: Likewise.
33337         * sunrpc/pmap_prot2.c: Likewise.
33338         * sunrpc/pmap_rmt.c: Likewise.
33339         * sunrpc/rpc/auth.h: Likewise.
33340         * sunrpc/rpc/auth_unix.h: Likewise.
33341         * sunrpc/rpc/clnt.h: Likewise.
33342         * sunrpc/rpc/des_crypt.h: Likewise.
33343         * sunrpc/rpc/key_prot.h: Likewise.
33344         * sunrpc/rpc/netdb.h: Likewise.
33345         * sunrpc/rpc/pmap_clnt.h: Likewise.
33346         * sunrpc/rpc/pmap_prot.h: Likewise.
33347         * sunrpc/rpc/pmap_rmt.h: Likewise.
33348         * sunrpc/rpc/rpc.h: Likewise.
33349         * sunrpc/rpc/rpc_des.h: Likewise.
33350         * sunrpc/rpc/rpc_msg.h: Likewise.
33351         * sunrpc/rpc/svc.h: Likewise.
33352         * sunrpc/rpc/svc_auth.h: Likewise.
33353         * sunrpc/rpc/types.h: Likewise.
33354         * sunrpc/rpc/xdr.h: Likewise.
33355         * sunrpc/rpc_clntout.c: Likewise.
33356         * sunrpc/rpc_cmsg.c: Likewise.
33357         * sunrpc/rpc_common.c: Likewise.
33358         * sunrpc/rpc_cout.c: Likewise.
33359         * sunrpc/rpc_dtable.c: Likewise.
33360         * sunrpc/rpc_hout.c: Likewise.
33361         * sunrpc/rpc_main.c: Likewise.
33362         * sunrpc/rpc_parse.c: Likewise.
33363         * sunrpc/rpc_parse.h: Likewise.
33364         * sunrpc/rpc_prot.c: Likewise.
33365         * sunrpc/rpc_sample.c: Likewise.
33366         * sunrpc/rpc_scan.c: Likewise.
33367         * sunrpc/rpc_scan.h: Likewise.
33368         * sunrpc/rpc_svcout.c: Likewise.
33369         * sunrpc/rpc_tblout.c: Likewise.
33370         * sunrpc/rpc_util.c: Likewise.
33371         * sunrpc/rpc_util.h: Likewise.
33372         * sunrpc/rpcinfo.c: Likewise.
33373         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
33374         * sunrpc/rpcsvc/key_prot.x: Likewise.
33375         * sunrpc/rpcsvc/klm_prot.x: Likewise.
33376         * sunrpc/rpcsvc/mount.x: Likewise.
33377         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
33378         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
33379         * sunrpc/rpcsvc/rex.x: Likewise.
33380         * sunrpc/rpcsvc/rstat.x: Likewise.
33381         * sunrpc/rpcsvc/rusers.x: Likewise.
33382         * sunrpc/rpcsvc/sm_inter.x: Likewise.
33383         * sunrpc/rpcsvc/spray.x: Likewise.
33384         * sunrpc/rpcsvc/yppasswd.x: Likewise.
33385         * sunrpc/rtime.c: Likewise.
33386         * sunrpc/svc.c: Likewise.
33387         * sunrpc/svc_auth.c: Likewise.
33388         * sunrpc/svc_authux.c: Likewise.
33389         * sunrpc/svc_raw.c: Likewise.
33390         * sunrpc/svc_run.c: Likewise.
33391         * sunrpc/svc_simple.c: Likewise.
33392         * sunrpc/svc_tcp.c: Likewise.
33393         * sunrpc/svc_udp.c: Likewise.
33394         * sunrpc/svc_unix.c: Likewise.
33395         * sunrpc/svcauth_des.c: Likewise.
33396         * sunrpc/xcrypt.c: Likewise.
33397         * sunrpc/xdr.c: Likewise.
33398         * sunrpc/xdr_array.c: Likewise.
33399         * sunrpc/xdr_float.c: Likewise.
33400         * sunrpc/xdr_mem.c: Likewise.
33401         * sunrpc/xdr_rec.c: Likewise.
33402         * sunrpc/xdr_ref.c: Likewise.
33403         * sunrpc/xdr_sizeof.c: Likewise.
33404         * sunrpc/xdr_stdio.c: Likewise.
33405
33406         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
33407         handling.
33408
33409 2010-08-19  Andreas Schwab  <schwab@redhat.com>
33410
33411         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
33412
33413 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
33414
33415         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
33416         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
33417         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
33418         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
33419         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
33420         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
33421         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
33422         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
33423         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
33424         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
33425         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
33426         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
33427         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
33428         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
33429
33430 2010-07-26  Anton Blanchard  <anton@samba.org>
33431
33432         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
33433         * malloc/arena.c (heap_trim): Likewise.
33434
33435 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
33436
33437         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
33438         here.  Not...
33439         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
33440         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
33441
33442 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33443
33444         * sysdeps/i386/elf/Makefile: New file.
33445
33446 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
33447
33448         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
33449         from fanotify_init.
33450         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
33451         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
33452
33453 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
33454
33455         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
33456         of strncasecmp_l.
33457         * sysdeps/multiarch/strcmp.S: Likewise.
33458
33459 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
33460
33461         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
33462         strncase_l-nonascii.
33463         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
33464         Add strncase_l-ssse3.
33465         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
33466         * sysdeps/x86_64/strcmp.S: Likewise.
33467         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
33468         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
33469         * sysdeps/x86_64/strncase.S: New file.
33470         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
33471         * sysdeps/x86_64/strncase_l.S: New file.
33472         * string/Makefile (strop-tests): Add strncasecmp.
33473         * string/test-strncasecmp.c: New file.
33474
33475         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
33476         warning.
33477
33478         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
33479         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
33480
33481 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
33482
33483         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
33484
33485 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
33486
33487         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
33488         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
33489         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
33490
33491 2010-05-01  Alan Modra  <amodra@gmail.com>
33492
33493         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
33494         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
33495         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
33496         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
33497         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
33498         tidying.  Don't tail-call __sigjmp_save for static lib.
33499         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
33500         save location.
33501         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
33502         (CALL_MCOUNT): Add eh info, and nop after bl.
33503         (TAIL_CALL_SYSCALL_ERROR): New macro.
33504         (PSEUDO_RET): Use it.
33505         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
33506         Correct save location of integer regs and cr.
33507         (_dl_profile_resolve): Correct cr save location.  Delete nops
33508         after bl when SHARED.  Reduce cfi size a little by better
33509         placement of cfi directives.
33510         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
33511         make a stack frame.  Instead use parm save area as a temp.
33512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
33513         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
33514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
33515         Don't make a stack frame for parent, use parm save area.
33516         Increase child stack frame to 112 bytes.  Don't save unused reg,
33517         and adjust reg usage.  Set up cfi on error recovery and
33518         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
33519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
33520         (__makecontext): Add dummy nop after jump to exit.
33521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
33522         Use correct parm save area and cr save, reduce stack frame.
33523         Correct cfi for possible PSEUDO_RET frame setup.
33524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
33525         Branch to local label emitted by PSEUDO_RET rather than
33526         __syscall_error.
33527
33528 2010-08-12  Andreas Schwab  <schwab@redhat.com>
33529
33530         [BZ #11904]
33531         * locale/programs/locale.c (print_assignment): New function.
33532         (show_locale_vars): Use it.
33533
33534 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
33535
33536         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
33537         field.
33538         (struct statfs64): Likewise.
33539         (_STATFS_F_FLAGS): Define.
33540         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
33541         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33542         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
33543         (ST_VALID): Define locally.
33544         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
33545         __statvfs_getflags, use the provided value.
33546         * sysdeps/unix/sysv/linux/kernel-features.h: Define
33547         __ASSUME_STATFS_F_FLAGS.
33548
33549         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
33550
33551         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
33552         Add sys/fanotify.h.
33553         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
33554         fanotify_mask for GLIBC_2.13.
33555         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
33556         fanotify_init and fanotify_mark.
33557         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
33558         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
33559
33560         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
33561         Add prlimit.
33562         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
33563         prlimit64 for GLIBC_2.13.
33564         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
33565         prlimit64.
33566         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
33567         syscall.
33568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
33569         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33570         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
33571         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
33572         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
33573         add prlimit alias.
33574         * sysdeps/unix/sysv/linux/prlimit.c: New file.
33575
33576         [BZ #11903]
33577         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
33578         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
33579
33580         * nss/Makefile: Add rules to build and run tst-nss-test1.
33581         * shlib-versions: Add entry for libnss_test1.
33582         * nss/nss_test1.c: New file.
33583         * nss/tst-nss-test1.c: New file.
33584
33585         * nss/nsswitch.c (__nss_database_custom): Define new variable.
33586         (__nss_configure_lookup): Set appropriate entry in
33587         __nss_configure_lookup to true.
33588         * nss/nsswitch.h: Define enum with indeces of databases in
33589         databases and __nss_database_custom arrays.  Declare
33590         __nss_database_custom.
33591         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
33592         to avoid using nscd when custom rules are installed.
33593         * nss/getXXbyYY_r.c: Likewise.
33594         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
33595
33596         * nss/nss_files/files-parse.c: Whitespace fixes.
33597
33598 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
33599
33600         [BZ #11883]
33601         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
33602         * posix/fnmatch_loop.c: Likewise.
33603
33604 2010-07-17  Andi Kleen  <ak@linux.intel.com>
33605
33606         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
33607         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
33608         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
33609         * Versions.def [GLIBC_2.13]: Add.
33610
33611 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
33612
33613         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33614         Also fail if tpwd after pwuid call is NULL.
33615
33616 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33617
33618         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
33619         when converting to ms.
33620
33621 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33622
33623         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
33624         EOPNOTSUPP errors with ENOTTY.
33625         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
33626         EOPNOTSUPP errors with ENOTTY.
33627
33628 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
33629
33630         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
33631         Add strcasecmp_l-ssse3.
33632         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
33633         strcasecmp.
33634         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
33635         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
33636         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
33637
33638 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
33639
33640         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
33641
33642         * string/Makefile (strop-tests): Add strcasecmp.
33643         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
33644         strcasecmp_l-nonascii.
33645         (gen-as-const-headers): Add locale-defines.sym.
33646         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
33647         * sysdeps/x86_64/strcasecmp.S: New file.
33648         * sysdeps/x86_64/strcasecmp_l.S: New file.
33649         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
33650         * sysdeps/x86_64/locale-defines.sym: New file.
33651         * string/test-strcasecmp.c: New file.
33652
33653         * string/test-strcasestr.c: Test both ends of the range of characters.
33654         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
33655
33656 2010-07-29  Roland McGrath  <roland@redhat.com>
33657
33658         [BZ #11856]
33659         * manual/locale.texi (Yes-or-No Questions): Fix example code.
33660
33661 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
33662
33663         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
33664         for ld.so.
33665
33666 2010-07-27  Andreas Schwab  <schwab@redhat.com>
33667
33668         * manual/memory.texi (Malloc Tunable Parameters): Document
33669         M_PERTURB.
33670
33671 2010-07-26  Roland McGrath  <roland@redhat.com>
33672
33673         [BZ #11840]
33674         * configure.in (-fgnu89-inline check): Set and substitute
33675         gnu89_inline, not libc_cv_gnu89_inline.
33676         * configure: Regenerated.
33677         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
33678
33679 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
33680
33681         * string/test-strnlen.c: New file.
33682         * string/Makefile (strop-tests): Add strnlen.
33683         * string/tester.c (test_strnlen): Add a few more test cases.
33684         * string/tst-strlen.c: Better error reporting.
33685
33686         * sysdeps/x86_64/strnlen.S: New file.
33687
33688 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
33689
33690         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
33691         lower-latency instructions.
33692
33693 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
33694
33695         * string/test-strcasestr.c: New file.
33696         * string/test-strstr.c: New file.
33697         * string/Makefile (strop-tests): Add strstr and strcasestr.
33698         * string/str-two-way.h: Don't undefine MAX.
33699         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
33700
33701 2010-07-21  Andreas Schwab  <schwab@redhat.com>
33702
33703         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33704         strcasestr-nonascii.
33705         (CFLAGS-strcasestr-nonascii.c): Define.
33706         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
33707         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
33708         Remove unused attribute.
33709
33710 2010-07-20  Roland McGrath  <roland@redhat.com>
33711
33712         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
33713         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
33714         ld.so.cache was broken.  With it, there is no way to disable dsocaps
33715         like LD_HWCAP_MASK can disable hwcaps.
33716
33717 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
33718
33719         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
33720
33721 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
33722
33723         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
33724         call in strcasestr.
33725         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
33726         __strcasestr_sse42_nonascii.
33727         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
33728         strcasestr-nonascii.c.
33729         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
33730
33731 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
33732
33733         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
33734         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
33735         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
33736         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
33737
33738 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
33739
33740         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
33741         fcntl.
33742
33743 2010-07-06  Andreas Schwab  <schwab@redhat.com>
33744
33745         [BZ #11577]
33746         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
33747         dl_signal_cerror.
33748
33749 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
33750
33751         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
33752         _PC_PIPE_BUF using F_GETPIPE_SZ.
33753
33754 2010-07-05  Roland McGrath  <roland@redhat.com>
33755
33756         * manual/arith.texi (Rounding Functions): Fix rint description
33757         implicit in round description.
33758
33759 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
33760
33761         * elf/Makefile: Fix linking for a few tests to make recent linker
33762         happy.
33763
33764 2010-06-30  Andreas Schwab  <schwab@redhat.com>
33765
33766         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
33767         $(common-objpfx)libc_nonshared.a.
33768
33769 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
33770
33771         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
33772         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
33773         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
33774         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
33775         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
33776         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
33777         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
33778         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
33779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
33780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
33781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
33782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
33783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
33784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
33785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
33786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
33787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
33788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
33789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
33790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
33791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
33792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
33793         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
33794         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
33795         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
33796         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
33797         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
33798         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
33799         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
33800         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
33801         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
33802         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
33803         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
33804         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
33805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
33806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
33807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
33808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
33809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
33810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
33811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
33812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
33813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
33814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
33815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
33816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
33817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
33818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
33819
33820 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
33821
33822         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
33823         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
33824         * string/memmove.c (memmove): Renamed to ...
33825         (MEMMOVE): ...this.  Default to memmove.
33826         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
33827         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
33828         (END_CHK): Define.
33829         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33830         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
33831         mempcpy-ssse3-back memmove-ssse3-back.
33832         * sysdeps/x86_64/multiarch/bcopy.S: New file .
33833         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
33834         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
33835         * sysdeps/x86_64/multiarch/memcpy.S: New file.
33836         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
33837         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
33838         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
33839         * sysdeps/x86_64/multiarch/memmove.c: New file.
33840         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
33841         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
33842         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
33843         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
33844         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
33845         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
33846         Define.
33847         (index_Fast_Copy_Backward): Define.
33848         (HAS_ARCH_FEATURE): Define.
33849         (HAS_FAST_REP_STRING): Define.
33850         (HAS_FAST_COPY_BACKWARD): Define.
33851
33852 2010-06-21  Andreas Schwab  <schwab@redhat.com>
33853
33854         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33855         Restore proper fallback handling.
33856
33857 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
33858
33859         [BZ #11701]
33860         * posix/group_member.c (__group_member): Correct checking loop.
33861
33862         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
33863         OOM in getpwuid_r correctly.  Return error number when the caller
33864         should return, otherwise -1.
33865         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
33866         call returning > 0 value.
33867         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
33868
33869 2010-06-07  Andreas Schwab  <schwab@redhat.com>
33870
33871         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
33872         libc_nonshared.a from targets in modules-names.
33873
33874 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
33875
33876         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
33877         requires it.
33878
33879 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
33880
33881         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
33882         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
33883         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
33884         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
33885
33886 2010-06-02  Andreas Schwab  <schwab@redhat.com>
33887
33888         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
33889
33890 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
33891
33892         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
33893         and F_GETPIPE_SZ.
33894         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
33895         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
33896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
33897         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
33898         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
33899         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
33900
33901 2010-06-14  Roland McGrath  <roland@redhat.com>
33902
33903         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
33904
33905 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
33906
33907         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
33908         __REDIRECT followed by __THROW.
33909         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
33910         * posix/getopt.h (getopt): Likewise.
33911
33912 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
33913
33914         * hurd/lookup-at.c (__file_name_lookup_at): Accept
33915         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
33916         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
33917         in AT_FLAGS.
33918         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
33919         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
33920
33921 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
33922
33923         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
33924
33925 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
33926
33927         [BZ #11640]
33928         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33929         Properly check family and model.
33930
33931 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
33932
33933         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
33934
33935 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
33936
33937         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
33938
33939 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
33940
33941         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
33942         symbol reference.
33943
33944 2010-05-19  Andreas Schwab  <schwab@redhat.com>
33945
33946         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
33947         symbol reference.
33948
33949 2010-05-21  Andreas Schwab  <schwab@redhat.com>
33950
33951         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
33952         and internal_recvmmsg.
33953         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
33954         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
33955         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
33956         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
33957
33958         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
33959         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
33960         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
33961
33962 2010-05-20  Andreas Schwab  <schwab@redhat.com>
33963
33964         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
33965
33966 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
33967
33968         POWER7 optimizations.
33969         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
33970         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
33971
33972 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
33973
33974         * version.h: Update for 2.13 development version.
33975
33976 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
33977
33978         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
33979         exceptions.  Return 0.
33980
33981 2010-05-07  Roland McGrath  <roland@redhat.com>
33982
33983         * elf/ldconfig.c (main): Add a const.
33984
33985 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
33986
33987         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
33988         (args_options): Add no-idn option.
33989         (ahosts_keys_int): Add idn_flags to ai_flags.
33990         (parse_option): Handle 'i' option to clear idn_flags.
33991
33992         * malloc/malloc.c (_int_free): Possible race in the most recently
33993         added check.  Only act on the data if no current modification
33994         happened.
33995
33996 See ChangeLog.17 for earlier changes.