Fix careless merge.
[platform/upstream/glibc.git] / ChangeLog
1 2013-10-07  Alan Modra  <amodra@gmail.com>
2
3         * README: Fix careless merge.
4
5 2013-10-05  Alan Modra  <amodra@gmail.com>
6
7         * NEWS: Mention powerpc64le support and bugs fixed.
8         * README: Both big-endian and little-endian powerpc64 supported.
9
10 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11
12         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
13         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
14         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
15         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
16
17 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
18
19         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
20         match prototype.
21
22 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
23
24         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
25         Move -mhard-float appending from
26         ports/sysdeps/powerpc/powerpc32/Makefile.
27         [$(with-fp) = yes] (ASFLAGS): Likewise.
28         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
29         * sysdeps/powerpc/nofpu: Move directory from
30         ports/sysdeps/powerpc/nofpu.
31         * sysdeps/powerpc/soft-fp: Move directory from
32         ports/sysdeps/powerpc/soft-fp.
33         * sysdeps/powerpc/powerpc32/405: Move directory from
34         ports/sysdeps/powerpc/powerpc32/405.
35         * sysdeps/powerpc/powerpc32/440: Move directory from
36         ports/sysdeps/powerpc/powerpc32/440.
37         * sysdeps/powerpc/powerpc32/464: Move directory from
38         ports/sysdeps/powerpc/powerpc32/464.
39         * sysdeps/powerpc/powerpc32/476: Move directory from
40         ports/sysdeps/powerpc/powerpc32/476.
41         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
42         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
44         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
45         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
46         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
47         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
48         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
49         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
50         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
51         * README: Update for powerpc-*-linux-gnu software floating point
52         support in libc.
53
54         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
55         case to powerpc/powerpc32*.
56         * sysdeps/unix/sysv/linux/configure: Regenerated.
57
58         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
59         (_FPU_MASK_OM): Define as 0x04.
60         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
61         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
62         0x00c10080.
63         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
64         0x0000003c.
65         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
66
67         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
68         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
69         getcontext_e500.
70         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
71         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
72         setcontext_e500.
73         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
74         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
75         and setcontext_e500.
76
77 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
78
79         * locale/iso-3166.def: Update iso-1366.def and related occurrences
80
81 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
82
83         * manual/threads.texi (Default Thread Attributes): Fix typo.
84
85 2013-10-04  Will Newton  <will.newton@linaro.org>
86
87         * malloc/Makefile: Add tst-memalign.
88         * malloc/tst-memalign.c: New file.
89
90         * malloc/tst-posix_memalign.c: Add comments.
91         (do_test): Add comments and call free on all potentially
92         allocated pointers. Add space after cast.
93
94         * malloc/tst-pvalloc.c: Add comments.
95         (do_test): Add comments and call free on all potentially
96         allocated pointers. Remove duplicate check for NULL pointer.
97         Add space after cast.
98
99         * malloc/tst-valloc.c: Add comments.
100         (do_test): Add comments and call free on all potentially
101         allocated pointers. Remove duplicate check for NULL pointer.
102         Add space after cast.
103
104 2013-10-04  Alan Modra  <amodra@gmail.com>
105
106         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
107         Use stdint types in rather than __attribute__((mode())).
108         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
109
110 2013-10-04  Alan Modra  <amodra@gmail.com>
111
112         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
113         Correct handling of unaligned relocs for little-endian.
114         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
115
116 2013-10-04  Alan Modra  <amodra@gmail.com>
117
118         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
119         * configure: Regenerate.
120         * nptl/shlib-versions: Powerpc*le starts at 2.18.
121         * shlib-versions: Likewise.
122
123 2013-10-04  Alan Modra  <amodra@gmail.com>
124
125         * string/tester.c (test_memrchr): Increment reported test cycle.
126
127 2013-10-04  Alan Modra  <amodra@gmail.com>
128
129         * string/test-memcpy.c (do_one_test): When reporting errors, print
130         string address and don't overrun end of string.
131
132 2013-10-04  Alan Modra  <amodra@gmail.com>
133
134         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
135         insrdi.  Make better use of reg selection to speed exit slightly.
136         Schedule entry path a little better.  Remove useless "are we done"
137         checks on entry to main loop.  Handle wrapping around zero address.
138         Correct main loop count.  Handle single left-over word from main
139         loop inline rather than by using loop_small.  Remove extra word
140         case in loop_small caused by wrong loop count.  Add little-endian
141         support.
142         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
143         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
144         cache hint.
145         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
146         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
147         support.  Avoid rlwimi.
148         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
149
150 2013-10-04  Alan Modra  <amodra@gmail.com>
151
152         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
153         insrdi.  Formatting.
154         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
155         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
156         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
157         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
158         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
159         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
160
161 2013-10-04  Alan Modra  <amodra@gmail.com>
162
163         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
164         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
165         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
166         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
167         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
168         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
169         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
170         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
171         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
172         use of regs.  Use power7 mtocrf.  Tidy function tails.
173
174 2013-10-04  Alan Modra  <amodra@gmail.com>
175
176         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
177         Formatting.  Consistently use rXXX register defines or rN defines.
178         Use early exit labels that avoid restoring unused non-volatile regs.
179         Make cr field use more consistent with rWORDn compares.  Rename
180         regs used as shift registers for unaligned loop, using rN defines
181         for short lifetime/multiple use regs.
182         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
183         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
184         addi 1,1,64 to pop stack frame.  Simplify return value code.
185         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
186
187 2013-10-04  Alan Modra  <amodra@gmail.com>
188
189         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
190         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
191         rather than rlwimi.
192         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
193         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
194         little-endian support.  Correct typos.
195         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
196         rather than rlwimi.
197         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
198         in loop and entry code to keep "and." results.
199         (strchr): Add little-endian support.  Comment.  Move cntlzd
200         earlier in tail.
201         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
202
203 2013-10-04  Alan Modra  <amodra@gmail.com>
204
205         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
206         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
207         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
208         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
209
210 2013-10-04  Alan Modra  <amodra@gmail.com>
211
212         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
213         (rTMP): Define as r11.
214         (strcmp): Add little-endian support.  Optimise tail.
215         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
216         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
217         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
218         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
219         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
220         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
221         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
222
223 2013-10-04  Alan Modra  <amodra@gmail.com>
224
225         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
226         little-endian support.  Remove unnecessary "are we done" tests.
227         Handle "s" wrapping around zero and extremely large "size".
228         Correct main loop count.  Handle single left-over word from main
229         loop inline rather than by using small_loop.  Correct comments.
230         Delete "zero" tail, use "end_max" instead.
231         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
232
233 2013-10-04  Alan Modra  <amodra@gmail.com>
234
235         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
236         support.  Don't branch over align.
237         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
238         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
239         support.  Rearrange tmp reg use to suit.  Comment.
240         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
241
242 2013-10-04  Alan Modra  <amodra@gmail.com>
243
244         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
245
246 2013-10-04  Alan Modra  <amodra@gmail.com>
247
248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
249         conditional form of branch and link when obtaining pc.
250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
251
252 2013-10-04  Alan Modra  <amodra@gmail.com>
253
254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
255         HIWORD/LOWORD.
256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
258
259 2013-10-04  Alan Modra  <amodra@gmail.com>
260
261         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
262         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
263         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
264         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
265         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
266         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
267         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
268         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
269         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
270         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
271
272 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
273             Alistair Popple <alistair@ozlabs.au.ibm.com>
274             Alan Modra <amodra@gmail.com>
275
276         [BZ #15723]
277         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
278         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
279         _dl_hwcap access for little-endian.
280         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
281         destroy vmx regs when saving unaligned.
282         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
283         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
284         destroy vmx regs when saving unaligned.
285
286 2013-10-04  Alan Modra  <amodra@gmail.com>
287
288         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
289         Don't use a union to pack hi/low value.
290
291 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
292
293         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
294         for little-endian.
295         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
296         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
297         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
298         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
299         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
300
301 2013-10-04  Alan Modra  <amodra@gmail.com>
302
303         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
304         constants to usual value for .cst8 section, and remove redundant
305         high address load.
306         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
307         constant for 0x1p52.  Load little-endian words of double from
308         correct stack offsets.
309
310 2013-10-04  Alan Modra  <amodra@gmail.com>
311
312         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
313         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
314         words of double from correct stack offsets.
315         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
316         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
317         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
318         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
319         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
320         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
321         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
322         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
323         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
324         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
325         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
326         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
327         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
328         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
329         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
330         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
331         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
332
333 2013-10-04  Alan Modra  <amodra@gmail.com>
334
335         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
336         64-bit int/double union.
337         (_FPU_SETCW): Likewise.
338         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
339         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
340
341 2013-10-04  Alan Modra  <amodra@gmail.com>
342
343         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
344         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
345
346 2013-10-04  Alan Modra  <amodra@gmail.com>
347
348         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
349         use vector int constants.
350         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
351
352 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
353
354         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
355         array with long long.
356         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
357         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
358         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
359         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
360         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
361         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
362         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
363         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
364         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
365         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
366         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
367         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
368         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
369
370 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
371
372         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
373         (__signbit): Likewise.  Correct for little-endian.
374         (__signbitl): Call __signbit.
375         (lrint): Correct for little-endian.
376         (lrintf): Call lrint.
377
378 2013-10-04  Alan Modra  <amodra@gmail.com>
379
380         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
381         union 32-bit int array member with 64-bit int array.
382         (t515, tm256): Double rather than long double.
383         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
384
385 2013-10-04  Alan Modra  <amodra@gmail.com>
386
387         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
388         Delete.
389         (IEEE854_LONG_DOUBLE_BIAS): Delete.
390         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
391         version of math_ldbl.h.
392
393 2013-10-04  Alan Modra  <amodra@gmail.com>
394
395         [BZ #15734], [BZ #15735]
396         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
397         all uses of ieee875 long double macros and unions.  Simplify test
398         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
399         ldbl_extract_mantissa value for ix,iy exponents.  Properly
400         normalize after ldbl_extract_mantissa, and don't add hidden bit
401         already handled.  Don't treat low word of ieee854 mantissa like
402         low word of IBM long double and mask off bit when testing for
403         zero.
404         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
405         all uses of ieee875 long double macros and unions.  Simplify tests
406         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
407         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
408         two1022, instead use their values.  Recognise that tests for large
409         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
410         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
411         Rewrite all uses of ieee875 long double macros and unions.  Simplify
412         test for 0.0L and nan.  Correct negation.
413         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
414         ieee875 long double macros and unions.  Correct output for large
415         magnitude x.  Correct absolute value calculation.
416         (__erfcl): Likewise.
417         * math/libm-test.inc: Add tests for errors discovered in IBM long
418         double versions of fmodl, remainderl, erfl and erfcl.
419
420 2013-10-04  Alan Modra  <amodra@gmail.com>
421
422         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
423         all uses of ieee854 long double macros and unions.  Simplify tests
424         for long doubles that are fully specified by the high double.
425         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
426         Likewise.
427         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
428         Remove dead code too.
429         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
430         (__ieee754_ynl): Likewise.
431         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
432         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
433         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
434         Remove dead code too.
435         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
436         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
437         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
438         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
439         Simplify.
440         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
441         Simplify.
442         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
443         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
444         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
445         Comment on variable precision.
446         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
447         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
448         Likewise.
449         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
450         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
451         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
452         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
453         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
454
455 2013-10-04  Alan Modra  <amodra@gmail.com>
456
457         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
458         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
459         all uses of ieee854 long double macros and unions.
460         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
461         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
462         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
463         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
464         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
465         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
466         Likewise.
467         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
468         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
469         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
470         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
471         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
472         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
473         Simplify sign and nan test too.
474         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
475         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
476         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
477         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
478         Likewise.
479         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
480         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
481         Likewise.
482         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
483         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
484         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
485         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
486         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
487         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
488
489 2013-10-04  Alan Modra  <amodra@gmail.com>
490
491         * stdio-common/printf_size.c (__printf_size): Don't use
492         union ieee854_long_double in fpnum union.
493         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
494         signbit macro to retrieve sign from long double.
495         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
496         retrieve sign from long double.
497         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
498         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
499         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
500         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
501         * math/test-misc.c (main): Don't use union ieee854_long_double.
502
503 2013-10-04  Alan Modra  <amodra@gmail.com>
504
505         [BZ #15680]
506         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
507         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
508         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
509         calculation.  Remove unnecessary test for denormal exponent.
510         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
511         Correct handling of denormals.  Avoid undefined shift behaviour.
512         Correct normalisation of low mantissa when low double is denormal.
513         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
514         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
515         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
516         Correct normalisation of low mantissa.  Test for overflow of high
517         mantissa and normalise.
518         (ldbl_nearbyint): Use more readable constant for two52.
519         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
520         (__mpn_construct_long_double): Fix test for overflow of high
521         mantissa and correct normalisation.  Avoid undefined shift.
522
523 2013-10-04  Alan Modra  <amodra@gmail.com>
524
525         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
526         (union ibm_extended_long_double): Define as an array of ieee754_double.
527         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
528         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
529         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
530         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
531         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
532         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
533         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
534         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
535         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
536         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
537         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
538
539 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
540
541         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
542         page size instead of calling getpagesize.
543
544         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
545         (LOCFILE_ALIGN_MASK): Likewise.
546         (LOCFILE_ALIGN_UP): Likewise.
547         (LOCFILE_ALIGNED_P): Likewise.
548         * locale/programs/ld-collate.c (collate_output): Use the new
549         macros instead of __alignof__ (int32_t).
550         * locale/weight.h (findidx): Likewise.
551
552 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
553
554         [BZ #431]
555         * manual/string.texi: Fix strncat and wcsncat.
556
557 2013-10-03  Brooks Moses  <bmoses@google.com>
558
559         [BZ #15915]
560         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
561         * Makerules: ...here, and adjust associated comments.
562
563 2013-10-02  Will Newton  <will.newton@linaro.org>
564
565         * malloc/Makefile: Add tst-pvalloc.
566         * malloc/tst-pvalloc.c: New file.
567
568 2013-10-02  Will Newton  <will.newton@linaro.org>
569
570         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
571         improve test coverage.
572
573 2013-10-02  Will Newton  <will.newton@linaro.org>
574
575         * malloc/Makefile: Add tst-posix_memalign.
576         * malloc/tst-posix_memalign.c: New file.
577
578 2013-10-01  Eric Blake  <eblake@redhat.com>
579
580         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
581         Use __THROWNL rather than __THROW on static functions.
582
583 2013-09-30  Petr Machata  <pmachata@redhat.com>
584
585         * elf/elf.h (R_AARCH64_ABS16): New macro.
586         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
587         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
588         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
589         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
590         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
591         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
592         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
593         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
594         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
595         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
596         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
597         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
598         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
599         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
600         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
601         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
602         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
603         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
604         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
605         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
606         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
607         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
608         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
609         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
610         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
611         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
612         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
613         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
614         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
615         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
616         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
617         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
618         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
619         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
620         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
621         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
622         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
623         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
624         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
625         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
626         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
627         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
628         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
629         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
630         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
631         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
632         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
633         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
634         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
635         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
636         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
637         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
638         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
639         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
640         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
641         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
642         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
643         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
644         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
645         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
646         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
647         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
648         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
649         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
650         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
651         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
652         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
653         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
654         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
655         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
656         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
657         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
658         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
659         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
660         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
661         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
662         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
663         (R_AARCH64_TLSDESC_LDR): Likewise.
664         (R_AARCH64_TLSDESC_ADD): Likewise.
665         (R_AARCH64_TLSDESC_CALL): Likewise.
666
667 2013-09-30  Andreas Schwab  <schwab@suse.de>
668
669         [BZ #15048]
670         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
671         the nss database lookup.
672         * nscd/initgrcache.c (addinitgroupsX): Likewise.
673         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
674
675 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
676
677         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
678
679 2013-09-28  P. J. McDermott  <pj@pehjota.net>
680
681         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
682         ${Bash-specific parameter/pattern/string} parameter expansion.
683         * sysdeps/unix/make-syscalls.sh: Likewise.
684
685 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
686
687         * sysdeps/sh/stackguard-macros.h: New file.
688
689 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
690
691         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
692         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
693         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
694         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
695         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
696         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
697
698 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
699
700         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
701         Fix thread ID register.
702
703 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
704
705         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
706         [POSIX || UNIX98]: Require rather than permitting all symbols from
707         <time.h>.
708         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
709         element of struct sched_param.
710         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
711         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
712         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
713         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
714         constant.
715
716 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
717
718         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
719         argument calculation.
720
721 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
722
723         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
724         Expect macro.
725         [POSIX] (pthread_attr_t): Do not require type.
726         [POSIX] (pthread_cond_t): Likewise.
727         [POSIX] (pthread_condattr_t): Likewise.
728         [POSIX] (pthread_key_t): Likewise.
729         [POSIX] (pthread_mutex_t): Likewise.
730         [POSIX] (pthread_mutexattr_t): Likewise.
731         [POSIX] (pthread_once_t): Likewise.
732         [POSIX] (pthread_t): Likewise.
733         [POSIX-based standards] (pthread_atfork): Expect function.
734
735 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
736             Richard Sandiford  <richard@codesourcery.com>
737
738         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
739         (swap_endianness_p): New extern variable.
740         (set_big_endian): New inline function.
741         (maybe_swap_uint32): Likewise.
742         (maybe_swap_uint32_array): Likewise.
743         (maybe_swap_uint32_obstack): Likewise.
744         * locale/programs/locfile.c: Include <stdbool.h>.
745         (swap_endianness_p): New variable.
746         (add_locale_uint32): Call maybe_swap_uint32.
747         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
748         (write_locale_data): Call maybe_swap_uint32_array.
749         * locale/programs/ld-collate.c (obstack_int32_grow): Call
750         maybe_swap_uint32.
751         (obstack_int32_grow_fast): Likewise.
752         (output_weightwc): Call maybe_swap_uint32_obstack.
753         (collate_output): Likewise.
754         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
755         (OPT_LITTLE_ENDIAN): Likewise.
756         (options): Add --little-endian and --big-endian options.
757         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
758         * locale/programs/locarchive.c: Include "locfile.h".
759         (GET): New macro.
760         (SET): Likewise.
761         (INC): Likewise.
762         (create_archive): Use the new macros to access fields of
763         structures directly mapped from or written to locale archives.
764         (oldlocrecentcmp): Likewise.
765         (enlarge_archive): Likewise.
766         (insert_name): Likewise.
767         (add_alias): Likewise.
768         (add_locale): Likewise.
769         (delete_locales_from_archive): Likewise.
770         (show_archive_content): Likewise.
771         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
772         locale data.
773
774 2013-09-24  Roland McGrath  <roland@hack.frob.com>
775
776         * manual/freemanuals.texi: Updated from (newly) canonical copy at
777         http://www.gnu.org/doc/freemanuals.texi.
778         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
779
780 2013-09-24  Will Newton  <will.newton@linaro.org>
781
782         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
783         macro.
784
785 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
786
787         * locale/hashval.h (compute_hashval): Interpret bytes of key as
788         unsigned char.
789
790 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
791
792         * manual/threads.texi (POSIX Threads): Fix a typo.
793
794 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
795
796         [BZ #14547]
797         * string/tst-strcoll-overflow.c: New test case.
798         * string/Makefile (xtests): Add tst-strcoll-overflow.
799         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
800         cache if string sizes may cause integer overflow.
801
802         [BZ #14547]
803         * string/strcoll_l.c (coll_seq): New members rule, idx,
804         save_idx and back_us.
805         (get_next_seq_nocache): New function.
806         (do_compare_nocache): New function.
807         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
808         when malloc fails.
809
810 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
811
812         [BZ #15754]
813         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
814         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
815         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
816
817         [BZ #15754]
818         * elf/Makefile (tests): Add tst-ptrguard1.
819         (tests-static): Add tst-ptrguard1-static.
820         (tst-ptrguard1-ARGS): Define.
821         (tst-ptrguard1-static-ARGS): Define.
822         * elf/tst-ptrguard1.c: New file.
823         * elf/tst-ptrguard1-static.c: New file.
824         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
825         * sysdeps/i386/stackguard-macros.h: Likewise.
826         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
827         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
828         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
829         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
830         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
831         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
832
833 2013-09-23  Hector Marco  <hecmargi@upv.es>
834             Ismael Ripoll  <iripoll@disca.upv.es>
835             Carlos O'Donell  <carlos@redhat.com>
836
837         [BZ #15754]
838         * sysdeps/generic/stackguard-macros.h: Define
839         __pointer_chk_guard_local and POINTER_CHK_GUARD.
840         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
841         Define __pointer_chk_guard_local.
842         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
843         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
844
845 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
846
847         [BZ #15859]
848         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
849
850 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
851
852         * include/string.h (__ffs): Declare as hidden.
853         * string/ffs.c (__ffs): Define as hidden.
854         * sysdeps/i386/ffs.c (__ffs): Likewise.
855         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
856         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
857         * sysdeps/s390/ffs.c (__ffs): Likewise.
858         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
859
860 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
861
862         * NEWS: Mention malloc probes.
863
864         * malloc/arena.c (new_heap): New memory_heap_new probe.
865         (grow_heap): New memory_heap_more probe.
866         (shrink_heap): New memory_heap_less probe.
867         (heap_trim): New memory_heap_free probe.
868         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
869         (systrim): New memory_sbrk_less probe.
870         * manual/probes.texi: Document them.
871
872         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
873         * manual/probes.texi: Document it.
874
875         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
876         (__libc_realloc): Add memory_realloc_retry probe.
877         (__libc_memalign): Add memory_memalign_retry probe.
878         (__libc_valloc): Add memory_valloc_retry probe.
879         (__libc_pvalloc): Add memory_pvalloc_retry probe.
880         (__libc_calloc): Add memory_calloc_retry probe.
881         * manual/probes.texi: Document them.
882
883         * malloc/arena.c (get_free_list): Add probe
884         memory_arena_reuse_free_list.
885         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
886         and memory_arena_reuse.
887         (arena_get2) [!PER_THREAD]: Likewise.
888         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
889         memory_arena_reuse_realloc.
890         * manual/probes.texi: Document them.
891
892         * malloc/malloc.c (__libc_free): Add
893         memory_mallopt_free_dyn_thresholds probe.
894         (__libc_mallopt): Add multiple memory_mallopt probes.
895         * manual/probes.texi: Document them.
896
897         * malloc/malloc.c: Include stap-probe.h.
898         (__libc_mallopt): Add memory_mallopt probe.
899         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
900         * manual/probes.texi: New.
901         * manual/Makefile (chapters): Add probes.
902         * manual/threads.texi: Set next node.
903
904 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
905
906         [BZ #15963, #13985]
907         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
908         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
909         Add `Chinese' to `nan' entry name.
910
911 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
912
913         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
914         (POLYNOMIAL): Likewise.
915         (TAYLOR_SINCOS): Likewise.
916         (TAYLOR_SLOW): Likewise.
917         (__sin): Use TAYLOR_SINCOS.
918         (__cos): Likewise.
919         (slow): Use TAYLOR_SLOW.
920         (sloww): Likewise.
921         (bsloww): Likewise.
922         (csloww): Likewise.
923
924 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
925
926         * stdlib/strtod_l.c: Fix buffer overrun.
927
928 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
929
930         * benchtests/Makefile (bench): Add sincos.
931         * benchtests/bench-sincos.c: New file.
932
933         * math/libm-test.inc (cos_test_data): New test inputs.
934         (sin_test_data): Likewise.
935
936         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
937         macro.
938         (__sin): Use it.
939         (__cos): Likewise.
940         (slow1): Likewise.
941         (slow2): Likewise.
942         (sloww1): Likewise.
943         (sloww2): Likewise.
944         (bsloww1): Likewise.
945         (bsloww2): Likewise.
946         (cslow2): Likewise.
947         (csloww1): Likewise.
948         (csloww2): Likewise.
949
950         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
951         function.
952         (__sin): Use it.
953         (__cos): Likewise.
954
955         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
956         gotos.
957         (__cos): Likewise.
958
959 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
960
961         * config.h.in (HAVE_MIPS_NAN2008): New macro.
962         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
963         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
964         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
965         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
966         * elf/cache.c (print_entry): Handle the new cache flags.
967
968 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
969             Aldy Hernandez  <aldyh@redhat.com>
970
971         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
972         Change condition to [_SOFT_FLOAT].
973         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
974         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
975         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
976         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
977         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
978         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
979         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
980         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
981         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
982         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
983         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
984         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
985         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
986         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
987         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
988         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
989         declaration.
990
991 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
992
993         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
994         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
995         (__longjmp): Use LOAD_GP to load saved GPRs.
996         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
997         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
998         (__sigsetjmp): Use SAVE_GP to save GPRs.
999
1000         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
1001         Do not append -msoft-float.
1002         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
1003
1004 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1005
1006         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
1007
1008 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
1009
1010         [BZ #15966]
1011         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
1012         (_FPU_GETCW): Use initial "__" on variable and field names but not
1013         on macro parameter name.
1014         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
1015         parentheses around reference to macro parameter.
1016
1017 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
1018
1019         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
1020         prototype.
1021         (ctype_startup): Use uint32_t in cast and sizeof for
1022         ctype->charnames.
1023
1024 2013-09-11  Jia Liu  <proljc@gmail.com>
1025
1026         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
1027         __daddr_t_defined.
1028         [__FreeBSD__]: Likewise.
1029
1030 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
1031
1032         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1033         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
1034         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
1035         (strchr): Remove __strchr_sse42 ifunc selection.
1036         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
1037         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
1038
1039 2013-09-11  Will Newton  <will.newton@linaro.org>
1040
1041         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
1042         parameter to RES. Remove hardcoded 1000 value.
1043         * benchtests/bench-skeleton.c (main): Pass RES parameter
1044         to TIMING_INIT and multiply result by 1000.
1045
1046 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1047
1048         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1049
1050 2013-09-11  Andreas Schwab  <schwab@suse.de>
1051
1052         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
1053         if not defined.
1054         (O_TMPFILE) [__USE_GNU]: Define.
1055         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
1056         Define.
1057
1058 2013-09-11  Will Newton  <will.newton@linaro.org>
1059
1060         [BZ #15857]
1061         * malloc/malloc.c (__libc_memalign): Check the value of bytes
1062         does not overflow.
1063
1064 2013-09-11  Will Newton  <will.newton@linaro.org>
1065
1066         [BZ #15856]
1067         * malloc/malloc.c (__libc_valloc): Check the value of bytes
1068         does not overflow.
1069
1070 2013-09-11  Will Newton  <will.newton@linaro.org>
1071
1072         [BZ #15855]
1073         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
1074         does not overflow.
1075
1076 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
1077
1078         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
1079         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1080         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1081         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1082         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1083
1084 2013-09-10  Allan McRae  <allan@archlinux.org>
1085
1086         [BZ #15748]
1087         * manual/arith.texi (Parsing of Floats): Clarify
1088         cross-reference.
1089
1090         [BZ #15849]
1091         * manual/install.texi (Running make install): Mention
1092         --enable-pt-chown.
1093         * INSTALL: Regenerated.
1094
1095 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1096
1097         * csu/init-first.c (_init): Remove the !SHARED condition around
1098         FPU control word initialization.
1099         * elf/dl-support.c (_dl_fpu_control): New variable.
1100         (_dl_aux_init) <AT_FPUCW>: Initialize it.
1101         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
1102         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
1103         * math/test-fpucw-static.c: New file.
1104         * math/test-fpucw-ieee.c: New file.
1105         * math/test-fpucw-ieee-static.c: New file.
1106         * math/Makefile (tests): Add `test-fpucw-ieee' and
1107         `$(tests-static)'.
1108         (tests-static): New variable.
1109         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
1110         dependency to...
1111         [($(build-shared),yes)]
1112         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
1113         ... this.
1114         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
1115         New dependency.
1116
1117 2013-09-09  Allan McRae  <allan@archlinux.org>
1118
1119         [BZ #15939]
1120         * manual/string.texi (Collation Functions): Fix typo in
1121         strcoll example.
1122         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
1123
1124         [BZ #15893]
1125         * stdlib/isomac.c (get_null_defines): Fix memory leak.
1126
1127         [BZ #15892]
1128         * libio/memstream.c (open_memstream): Fix memory leak.
1129         * libio/wmemstream.c (open_wmemstream): Likewise.
1130
1131         [BZ #15895]
1132         * nscd/netgroupcache.c: Fix nesting of ifdefs.
1133
1134 2013-09-09  Will Newton  <will.newton@linaro.org>
1135
1136         * malloc/Makefile: Add tst-realloc to tests.
1137         * malloc/tst-realloc.c: New file.
1138
1139 2013-09-09  Allan McRae  <allan@archlinux.org>
1140
1141         [BZ #15844]
1142         * COPYING: Update from GNU website to fix FSF address.
1143         * COPYING.LIB: Likewise.
1144
1145 2013-09-06  David S. Miller  <davem@davemloft.net>
1146
1147         * po/zh_TW.po: Update Chinese (traditional) translation from
1148         translation project.
1149
1150 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
1151             Joseph Myers  <joseph@codesourcery.com>
1152
1153         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
1154         "localeinfo.h".
1155         (obstack_chunk_alloc): New macro.
1156         (obstack_chunk_free): Likewise.
1157         (record_offset): New function.
1158         (init_locale_data): Likewise.
1159         (align_locale_data): Likewise.
1160         (add_locale_empty): Likewise.
1161         (add_locale_raw_data): Likewise.
1162         (add_locale_raw_obstack): Likewise.
1163         (add_locale_string): Likewise.
1164         (add_locale_wstring): Likewise.
1165         (add_locale_uint32): Likewise.
1166         (add_locale_uint32_array): Likewise.
1167         (add_locale_char): Likewise.
1168         (start_locale_structure): Likewise.
1169         (end_locale_structure): Likewise.
1170         (start_locale_prelude): Likewise.
1171         (end_locale_prelude): Likewise.
1172         (write_locale_data): Take locale_file structure rather than an
1173         iovec.
1174         * locale/programs/locfile.h: Include "obstack.h".
1175         (struct locale_file): Change to store locale file contents instead
1176         of header.
1177         (init_locale_data): New prototype.
1178         (align_locale_data): Likewise.
1179         (add_locale_empty): Likewise.
1180         (add_locale_raw_data): Likewise.
1181         (add_locale_raw_obstack): Likewise.
1182         (add_locale_string): Likewise.
1183         (add_locale_wstring): Likewise.
1184         (add_locale_uint32): Likewise.
1185         (add_locale_uint32_array): Likewise.
1186         (add_locale_char): Likewise.
1187         (start_locale_structure): Likewise.
1188         (end_locale_structure): Likewise.
1189         (start_locale_prelude): Likewise.
1190         (end_locale_prelude): Likewise.
1191         (write_locale_data): Update prototype.
1192         * locale/programs/3level.h (struct TABLE): Remove result field.
1193         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
1194         Use new locale_file interface.
1195         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
1196         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
1197         * locale/programs/ld-address.c (address_output): Use new
1198         locale_file interface.
1199         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
1200         NO_ADD_LOCALE.
1201         (collate_finish): Don't call collseq_table_finalize.
1202         (collate_output): Use new locale_file interface.
1203         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
1204         in file.
1205         (NO_FINALIZE): Change to NO_ADD_LOCALE.
1206         (TABLE): Move defines earlier in file.
1207         (ELEMENT): Likewise.
1208         (DEFAULT): Likewise.
1209         (wctrans_table_add): Move macro and inline function earlier in
1210         file.
1211         (struct wctype_table): Move type earlier in file.
1212         (add_locale_wctype_table): New static prototype.
1213         (struct locale_ctype_t): Use logical types instead of struct iovec
1214         pointers for members.
1215         (ctype_output): Use new locale_file interface.
1216         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
1217         new locale_file interface.
1218         (allocate_arrays): Update for use of new locale_file interface.
1219         * locale/programs/ld-identification.c (identification_output): Use
1220         new locale_file interface.
1221         * locale/programs/ld-measurement.c (measurement_output): Likewise.
1222         * locale/programs/ld-messages.c (messages_output): Likewise.
1223         * locale/programs/ld-monetary.c (monetary_output): Likewise.
1224         * locale/programs/ld-name.c (name_output): Likewise.
1225         * locale/programs/ld-numeric.c (numeric_output): Likewise.
1226         * locale/programs/ld-paper.c (paper_output): Likewise.
1227         * locale/programs/ld-telephone.c (telephone_output): Likewise.
1228         * locale/programs/ld-time.c (time_output): Likewise.
1229
1230 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1231
1232         * benchtests/Makefile: Add memrchr benchmark.
1233         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
1234         benchmark as memrchr.
1235         * benchtests/bench-memrchr-ifunc.c: New file.
1236         * benchtests/bench-memrchr.c: New file.
1237
1238 2013-09-06   Will Newton  <will.newton@linaro.org>
1239
1240         * benchtests/Makefile (string-bench): Add memcpy.
1241
1242 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
1243             Cong Wang  <amwang@redhat.com>
1244
1245         * sysdeps/unix/sysv/linux/bits/in.h
1246         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
1247         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
1248         before __USE_KERNEL_IPV6_DEFS uses.
1249         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
1250         IPPROTO_BEETPH.
1251         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
1252         sockaddr_in6, or ipv6_mreq.
1253
1254 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1255
1256         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
1257         memory access for final bytes in some large inputs.
1258         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
1259
1260 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1261
1262         * string/test-memrchr.c: New file.
1263         * string/test-memrchr-ifunc.c: New file.
1264         * string/Makefile: Add new memrchr testcase.
1265
1266 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
1267
1268         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
1269         fanotify_init returns EPERM.
1270
1271 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1272
1273         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
1274         errors.
1275         (top level): Treat second token from macro or constant entries for
1276         allowed headers as allowed.
1277         * include/complex.h: Condition internal declarations on
1278         [!_ISOMAC].
1279         * include/fenv.h: Condition include of <stdbool.h> and internal
1280         declarations on [!_ISOMAC].
1281
1282 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
1283
1284         [BZ #15923]
1285         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
1286
1287 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
1288
1289         * configure.in (--enable-versioning): Remove configure option.
1290         (libc_cv_asm_symver_directive): Remove configure test.
1291         (libc_cv_ld_version_script_option): Likewise.
1292         (VERSIONING): Remove variable and AC_SUBST.
1293         (DO_VERSIONING): Remove AC_DEFINE.
1294         * configure: Regenerated.
1295         * config.h.in (DO_VERSIONING): Remove macro.
1296         * Makerules [$(versioning) = yes]: Change conditionals to
1297         [$(build-shared) = yes].
1298         * config.make.in (versioning): Remove variable.
1299         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
1300         [$(build-shared) = yes].
1301         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
1302         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
1303         * elf/Makefile [$(versioning) = yes]: Change conditionals to
1304         [$(build-shared) = yes].
1305         * extra-lib.mk [$(versioning) = yes]: Likewise.
1306         * hurd/Makefile [$(versioning) = yes]: Likewise.
1307         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
1308         [SHARED].
1309         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
1310         [SHARED].
1311         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
1312         [SHARED && !NO_HIDDEN].
1313         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
1314         [SHARED].
1315         [SHARED && DO_VERSIONING]: Likewise..
1316         * libio/Makefile [$(versioning) = yes]: Change conditionals to
1317         [$(build-shared) = yes].
1318         * manual/install.texi (--disable-versioning): Remove
1319         documentation.
1320         * INSTALL: Regenerated.
1321         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
1322         to [SHARED].
1323         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
1324         [$(build-shared) = yes].
1325         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
1326         * sysdeps/i386/i686/multiarch/strstr-c.c
1327         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
1328         [SHARED && !NO_HIDDEN].
1329         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
1330         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
1331         * sysdeps/powerpc/powerpc32/dl-machine.c
1332         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
1333         * sysdeps/powerpc/powerpc32/sysdep.h
1334         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
1335         to [SHARED && PIC && !NO_HIDDEN].
1336         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
1337         conditional to [SHARED].
1338
1339 2013-09-04   Will Newton  <will.newton@linaro.org>
1340
1341         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
1342         * benchtests/bench-string.h: Include bench-timing.h instead
1343         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
1344         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
1345         call to HP_TIMING_DIFF_INIT.
1346         * benchtests/bench-memccpy.c: Use bench-timing.h macros
1347         instead of hp-timing.h macros.
1348         * benchtests/bench-memchr.c: Likewise.
1349         * benchtests/bench-memcmp.c: Likewise.
1350         * benchtests/bench-memcpy.c: Likewise.
1351         * benchtests/bench-memmem.c: Likewise.
1352         * benchtests/bench-memmove.c: Likewise.
1353         * benchtests/bench-memset.c: Likewise.
1354         * benchtests/bench-rawmemchr.c: Likewise.
1355         * benchtests/bench-strcasecmp.c: Likewise.
1356         * benchtests/bench-strcasestr.c: Likewise.
1357         * benchtests/bench-strcat.c: Likewise.
1358         * benchtests/bench-strchr.c: Likewise.
1359         * benchtests/bench-strcmp.c: Likewise.
1360         * benchtests/bench-strcpy.c: Likewise.
1361         * benchtests/bench-strcpy_chk.c: Likewise.
1362         * benchtests/bench-strlen.c: Likewise.
1363         * benchtests/bench-strncasecmp.c: Likewise.
1364         * benchtests/bench-strncat.c: Likewise.
1365         * benchtests/bench-strncmp.c: Likewise.
1366         * benchtests/bench-strncpy.c: Likewise.
1367         * benchtests/bench-strnlen.c: Likewise.
1368         * benchtests/bench-strpbrk.c: Likewise.
1369         * benchtests/bench-strrchr.c: Likewise.
1370         * benchtests/bench-strspn.c: Likewise.
1371         * benchtests/bench-strstr.c: Likewise.
1372
1373 2013-09-04  Will Newton  <will.newton@linaro.org>
1374
1375         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
1376
1377 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
1378
1379         [BZ #15427]
1380         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
1381         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
1382         * math/libm-test.inc (lgamma_test_data): Add more tests.
1383         * sysdeps/i386/fpu/libm-test-ulps: Update.
1384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1385
1386 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
1387
1388         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
1389         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1390         Add ifunc.
1391         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1392         Add strcmp-sse2-unaligned
1393         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
1394
1395 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
1396
1397         * Versions.def (libc): Add GLIBC_2.19.
1398
1399 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
1400
1401         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
1402         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
1403
1404 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
1405
1406         [BZ #14155]
1407         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
1408         intermediate calculations in recurrence.
1409         (__ieee754_ynf): Likewise.
1410         * math/libm-test.inc (jn_test_data): Do not allow spurious
1411         underflow exception.  Add more tests.
1412         (yn_test_data): Add more tests.
1413         * sysdeps/i386/fpu/libm-test-ulps: Update.
1414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1415
1416 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
1417
1418         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
1419
1420 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
1421
1422         * csu/init-first.c: Fix then/than typos.
1423         * locale/programs/ld-collate.c: Likewise.
1424         * locale/programs/linereader.h: Likewise.
1425         * manual/charset.texi: Likewise.
1426         * manual/filesys.texi: Likewise.
1427         * manual/stdio.texi: Likewise.
1428         * manual/string.texi: Likewise.
1429         * stdlib/fmtmsg.c: Likewise.
1430         * sysdeps/i386/stpncpy.S: Likewise.
1431         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1432         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
1433         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1434         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1435
1436 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
1437
1438         * elf/dl-open.c: Fix typos.
1439         * iconvdata/gbbig5.c: Likewise.
1440         * iconvdata/iso-2022-jp.c: Likewise.
1441         * iconv/gconv_int.h: Likewise.
1442         * iconv/loop.c: Likewise.
1443         * nis/rpcsvc/nis.h: Likewise.
1444         * resolv/ns_name.c: Likewise.
1445         * stdio-common/vfscanf.c: Likewise.
1446         * streams/stropts.h: Likewise.
1447         * sunrpc/rpc_thread.c: Likewise.
1448         * sysdeps/i386/strpbrk.S: Likewise.
1449         * sysdeps/ieee754/k_standard.c: Likewise.
1450         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1451         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1452         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1453         * sysdeps/mach/hurd/profil.c: Likewise.
1454         * sysdeps/s390/dl-procinfo.h: Likewise.
1455         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1456         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1457         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1458         * sysdeps/x86_64/dl-trampoline.S: Likewise.
1459         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1460
1461 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
1462
1463         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
1464         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
1465
1466 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
1467
1468         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
1469         aix specific files.
1470         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
1471         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
1472         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
1473         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
1474         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
1475         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
1476         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
1477         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
1478
1479 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
1480             Roland McGrath  <roland@hack.frob.com>
1481
1482         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
1483         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
1484
1485 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1486
1487         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
1488         __executable_start symbol instead of _start.
1489
1490 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
1491
1492         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
1493         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
1494         Move macros to...
1495         * sysdeps/gnu/ldsodefs.h: ... this new file.
1496
1497         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
1498         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
1499         instead of ELFOSABI_LINUX.
1500
1501         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
1502         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
1503         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
1504         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
1505         Likewise.
1506         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
1507         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
1508         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
1509         Likewise.
1510         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
1511         (ibm_extended_long_double): Add ieee_nan member.
1512         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
1513         (do_test): New function.
1514
1515         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
1516         TEST_TRUNC.
1517         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
1518         functions, renamed from truncdfsf_test, trunctfsf_test,
1519         trunctfdf_test.
1520         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
1521         functions.
1522         (do_test): Run all these.
1523
1524 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
1525
1526         * argp/argp-help.c: Fix typos.
1527         * argp/argp-parse.c: Likewise.
1528         * debug/backtracesyms.c: Likewise.
1529         * elf/elf.h: Likewise.
1530         * malloc/malloc.c: Likewise.
1531         * nis/nis_print.c: Likewise.
1532         * resolv/res_comp.c: Likewise.
1533         * stdlib/stdlib.h: Likewise.
1534         * sunrpc/clnt_tcp.c: Likewise.
1535         * sunrpc/clnt_udp.c: Likewise.
1536         * sunrpc/clnt_unix.c: Likewise.
1537         * sysdeps/unix/bsd/ptsname.c: Likewise.
1538         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1539         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
1540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
1541         Likewise.
1542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1543         Likewise.
1544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1545         Likewise.
1546         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1547
1548 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1549
1550         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
1551         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1552
1553 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
1554
1555         [BZ #15897]
1556         * dlfcn/Makefile (tests): Add bug-dl-leaf.
1557         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
1558         ($(objpfx)bug-dl-leaf): New rule.
1559         ($(objpfx)bug-dl-leaf.so): Likewise.
1560         ($(objpfx)bug-dl-leaf.out): Likewise.
1561         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
1562         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
1563         * dlfcn/bug-dl-leaf.c: New test.
1564         * dlfcn/bug-dl-leaf-lib.c: Likewise.
1565         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
1566         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
1567         (dlclose): Likewise.
1568         (dlmopen): Likewise.
1569
1570 2013-08-27  Roland McGrath  <roland@hack.frob.com>
1571
1572         * include/netdb.h [!_ISOMAC]:
1573         Don't include <tls.h>.
1574         (h_errno, __libc_h_errno): Move declaration and macros out of
1575         [_LIBC_REENTRANT].
1576
1577         * include/resolv.h [_RESOLV_H_]:
1578         Don't include <tls.h>.
1579         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
1580         * resolv/res_libc.c: Don't include <tls.h>.
1581         (_res): Use __attribute__ ((nocommon)) in place of
1582         __attribute__ ((section (".bss"))).
1583
1584         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
1585         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
1586
1587         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
1588
1589         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
1590         only under [SIOCGIFCONF && SIOCGIFNETMASK].
1591
1592         * resolv/res_mkquery.c: Include <sys/time.h>.
1593
1594         * inet/ifreq.c: Moved to ...
1595         * sysdeps/unix/ifreq.c: ... here.
1596         * inet/ifreq.c: New file, true stub version.
1597
1598         * socket/sa_len.c: New file.
1599         * socket/Makefile (aux): Add it.
1600         * sysdeps/unix/sysv/linux/Makefile
1601         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
1602         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
1603         and #include <socket/sa_len.c>.
1604         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
1605         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
1606
1607         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
1608         * bits/socket.h: ... here.
1609
1610         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
1611         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
1612         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
1613
1614 2013-08-27  Andreas Schwab  <schwab@suse.de>
1615
1616         [BZ #15736]
1617         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
1618         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
1619         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
1620         * string/test-strcasecmp.c (test_main): Run tests in several
1621         locales.
1622         * string/test-strncasecmp.c (test_main): Likewise.
1623
1624         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
1625         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
1626         to __strcasecmp_nonascii and __strncasecmp_nonascii.
1627         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
1628         (__strncasecmp_ssse3) [PIC]: Likewise.
1629
1630 2013-08-26  Roland McGrath  <roland@hack.frob.com>
1631
1632         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
1633
1634         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
1635         instead of explicitly declaring xdecrypt.
1636         * nis/nss_nis/nis-publickey.c: Likewise.
1637
1638 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1639
1640         [BZ #15890]
1641         * nscd/aicache.c: Include res_hconf.h.
1642         (addhstaiX): Initialize res_hconf.
1643
1644 2013-08-26  Andreas Schwab  <schwab@suse.de>
1645
1646         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
1647         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
1648
1649 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1650
1651         * nscd/aicache.c (addhstaiX): Fix indentation.
1652
1653 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
1654
1655         * configure.ac: Quote $build_pt_chown test.
1656         * configure: Regenerated.
1657
1658 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
1659
1660         [BZ #15532]
1661         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
1662         * math/s_cexpf.c (__cexpf): Likewise.
1663         * math/s_cexpl.c (__cexpl): Likewise.
1664         * math/libm-test.inc (cexp_test_data): Correct expected return
1665         value for NaN + i0.  Add another test.
1666
1667 2013-08-22  David S. Miller  <davem@davemloft.net>
1668
1669         * po/ca.po: Update Catalan translation from translation project.
1670         * po/uk.po: Add Ukrainian translations from translation project.
1671
1672 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
1673
1674         [BZ #15797]
1675         * math/s_fdim.c (__fdim): Check for infinite arguments if result
1676         is infinite, not alongside NaN test.
1677         * math/s_fdimf.c (__fdimf): Likewise.
1678         * math/s_fdiml.c (__fdiml): Likewise.
1679         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
1680         errno is unchanged.
1681
1682 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
1683
1684         * argp/argp-help.c: Fix typos.
1685         * crypt/speeds.c: Likewise.
1686         * csu/check_fds.c: Likewise.
1687         * elf/dl-load.c: Likewise.
1688         * elf/dl-open.c: Likewise.
1689         * elf/reldep3.c: Likewise.
1690         * elf/reldep.c: Likewise.
1691         * elf/sprof.c: Likewise.
1692         * iconv/iconv_charmap.c: Likewise.
1693         * iconv/skeleton.c: Likewise.
1694         * iconv/strtab.c: Likewise.
1695         * io/lockf64.c: Likewise.
1696         * libio/libioP.h: Likewise.
1697         * resolv/gai_notify.c: Likewise.
1698         * resolv/ns_name.c: Likewise.
1699         * resolv/ns_samedomain.c: Likewise.
1700         * resolv/res_send.c: Likewise.
1701         * stdlib/random.c: Likewise.
1702         * sunrpc/rpc/xdr.h: Likewise.
1703         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
1704         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
1705         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
1706         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
1707         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
1708         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
1709         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
1710         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
1711         * sysdeps/mach/hurd/check_fds.c: Likewise.
1712         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
1713         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1714         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
1715         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
1716         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1717         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
1718         * sysdeps/pthread/aio_notify.c: Likewise.
1719         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
1720         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
1721         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
1722         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1723         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
1724
1725 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1726
1727         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
1728         version if bit_Slow_SSE4_2 is set.
1729         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1730         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1731
1732 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1733
1734         [BZ #15867]
1735         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
1736         trampoline stack frame information.
1737         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
1738         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
1739         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
1740         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
1741         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
1742         * sysdeps/unix/sysv/linux/powerpc/init-first.c
1743         (_libc_vdso_platform_setup): Initialize the signal trampolines.
1744         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
1745         sa_flags value.
1746         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
1747         interrupting a syscall and set with option SA_SIGINFO.
1748
1749 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
1750
1751         [BZ #15531]
1752         * math/s_cproj.c (__cproj): Only return an infinity if one part of
1753         argument is infinite.
1754         * math/s_cprojf.c (__cprojf): Likewise.
1755         * math/s_cprojl.c (__cprojl): Likewise.
1756         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
1757         * math/libm-test.inc (cproj_test_data): Add more tests.
1758
1759         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
1760
1761         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
1762         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
1763         size.  Use __ffs to determine corresponding shift.
1764
1765 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
1766             Roland McGrath  <roland@hack.frob.com>
1767
1768         * Makefile (INSTALL): Remove trailing blank lines from output of
1769         makeinfo.
1770
1771 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1772
1773         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
1774         Align 32 bit compat elf_greg to 8 bytes.
1775
1776 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1777
1778         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
1779
1780 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1781
1782         * string/strcoll_l.c (coll_seq): New structure.
1783         (get_next_seq_cached): New function.
1784         (get_next_seq): New function.
1785         (do_compare): New function.
1786         (STRCOLL): Use GNU style definition.  Simplify implementation
1787         by using get_next_seq, get_next_seq_cached and do_compare.
1788
1789 2013-08-16  Florian Weimer  <fweimer@redhat.com>
1790
1791         [BZ #14699]
1792         CVE-2013-4237
1793         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
1794         member.
1795         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
1796         member.
1797         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
1798         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
1799         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
1800         conditional.
1801         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
1802         GETDENTS_64BIT_ALIGNED.
1803         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1804         * manual/filesys.texi (Reading/Closing Directory): Document
1805         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
1806         strongly.
1807         * manual/conf.texi (Limits for Files): Add portability note to
1808         NAME_MAX, PATH_MAX.
1809         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
1810
1811 2013-08-13  Andreas Schwab  <schwab@suse.de>
1812
1813         [BZ #15749]
1814         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
1815         of fabs.
1816         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
1817         LDBL_MAX_EXP >= 16384]: Add tests for it.
1818
1819 2013-08-12  David S. Miller  <davem@davemloft.net>
1820
1821         * version.h (RELEASE): Set to "development".
1822         (VERSION): Set to "2.18.90".
1823         * NEWS: Add 2.19 section.
1824
1825 2013-08-03  David S. Miller  <davem@davemloft.net>
1826
1827         * po/ko.po: Update Korean translation from translation project.
1828
1829 2013-08-01  David S. Miller  <davem@davemloft.net>
1830
1831         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
1832         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
1833         Bilka.
1834
1835 2013-07-30  David S. Miller  <davem@davemloft.net>
1836
1837         * po/fr.po: Update French translation from translation project.
1838
1839 2013-07-28  David S. Miller  <davem@davemloft.net>
1840
1841         * po/cs.po: Update Czech translation from translation project.
1842
1843         * po/sv.po: Update Swedish translation from translation project.
1844
1845 2013-07-27  David S. Miller  <davem@davemloft.net>
1846
1847         * po/eo.po: Update Esperanto translation from translation project.
1848
1849         * po/vi.po: Update Vietnamese translation from translation project.
1850
1851         * po/de.po: Update German translation from translation project.
1852
1853 2013-07-26  David S. Miller  <davem@davemloft.net>
1854
1855         * po/bg.po: Update Bulgarian translation from translation project.
1856
1857         * po/nl.po: Update Dutch translation from translation project.
1858         * po/pl.po: Update Polish translation from translation project.
1859         * po/ru.po: Update Russian translation from translation project.
1860
1861 2013-07-24  David S. Miller  <davem@davemloft.net>
1862
1863         * po/libc.pot: Update.
1864
1865 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1866
1867         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
1868         variable page size.
1869         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
1870         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
1871         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
1872
1873 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1874
1875         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
1876
1877 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1878             Andreas Schwab  <schwab@suse.de>
1879             Roland McGrath  <roland@hack.frob.com>
1880             Joseph Myers  <joseph@codesourcery.com>
1881             Carlos O'Donell  <carlos@redhat.com>
1882
1883         [BZ #15755]
1884         * config.h.in: Define HAVE_PT_CHOWN.
1885         * config.make.in (build-pt-chown): New variable.
1886         * configure.in (--enable-pt_chown): New configure option.
1887         * configure: Regenerate.
1888         * login/Makefile: Include Makeconfig.  Build pt_chown only if
1889         build-pt-chown is enabled.
1890         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
1891         pt_chown to fix pty ownership.
1892         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
1893         CLOSE_ALL_FDS.
1894         * manual/install.texi (Configuring and compiling): Mention
1895         --enable-pt_chown. Add @findex for grantpt.
1896         * INSTALL: Regenerate.
1897
1898 2013-07-20  David S. Miller  <davem@davemloft.net>
1899
1900         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
1901         difference between 32-bit and 64-bit.
1902
1903 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
1904
1905         [BZ #15711]
1906         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
1907         Avoid system header dependency with -ffreestanding.
1908         ($(objpfx)bits/syscall%d): Likewise.
1909
1910 2013-07-13  David S. Miller  <davem@davemloft.net>
1911
1912         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
1913         underflows from atanl/atan2l due to bug 15319.
1914         (casinh_test_data): Likewise.
1915
1916 2013-07-07  David S. Miller  <davem@davemloft.net>
1917
1918         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
1919
1920 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
1921
1922         * sysdeps/i386/fpu/libm-test-ulps: Update.
1923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1924
1925 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1926
1927         * configure.in (--enable-lock-elision): Fix message text.
1928         * INSTALL: Regenerate.
1929         * configure: Regenerate.
1930
1931 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1932
1933         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1934
1935 2013-07-03  Andreas Jaeger  <aj@suse.de>
1936
1937         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
1938         define.
1939         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
1940         (ptrace_peeksiginfo_args): Add.
1941         (__ptrace_peeksiginfo_flags): Add.
1942         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1943         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1944         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1945
1946 2013-07-03  Allan McRae  <allan@archlinux.org>
1947
1948         * sysdeps/i386/fpu/libm-test-ulps: Update.
1949
1950 2013-07-02  David S. Miller  <davem@davemloft.net>
1951
1952         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1953
1954 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
1955
1956         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1957
1958 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
1959
1960         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1962
1963 2013-07-02  Andi Kleen <ak@linux.intel.com>
1964
1965         * config.h.in (ENABLE_LOCK_ELISION): Add.
1966         * configure.in (--enable-lock-elision): Add option.
1967         * manual/install.texi: Document --enable lock elision.
1968         * configure: Regenerate
1969         * INSTALL: Regenerate.
1970
1971 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1972
1973         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
1974         SSE4.2 strcasecmp for libc.a.
1975         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
1976
1977 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
1978
1979         [BZ #13304]
1980         * soft-fp/op-common.h (_FP_FMA): New macro.
1981         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
1982         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
1983         (_FP_MUL_MEAT_1_imm): ... here.
1984         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
1985         (_FP_MUL_MEAT_1_wide): ... here.
1986         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
1987         (_FP_MUL_MEAT_1_hard): ... here.
1988         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
1989         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
1990         (_FP_MUL_MEAT_2_wide): ... here.
1991         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
1992         (_FP_MUL_MEAT_2_wide_3mul): ... here.
1993         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
1994         (_FP_MUL_MEAT_2_gmp): ... here.
1995         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
1996         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
1997         (_FP_MUL_MEAT_4_wide): ... here.
1998         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
1999         (_FP_MUL_MEAT_4_gmp): ... here.
2000         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
2001         (_FP_WFRACBITS_DW_S): Likewise.
2002         (_FP_WFRACXBITS_DW_S): Likewise.
2003         (_FP_HIGHBIT_DW_S): Likewise.
2004         (FP_FMA_S): Likewise.
2005         (_FP_FRAC_HIGH_DW_S): Likewise.
2006         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
2007         (_FP_WFRACBITS_DW_D): Likewise.
2008         (_FP_WFRACXBITS_DW_D): Likewise.
2009         (_FP_HIGHBIT_DW_D): Likewise.
2010         (FP_FMA_D): Likewise.
2011         (_FP_FRAC_HIGH_DW_D): Likewise.
2012         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
2013         (_FP_WFRACBITS_DW_E): Likewise.
2014         (_FP_WFRACXBITS_DW_E): Likewise.
2015         (_FP_HIGHBIT_DW_E): Likewise.
2016         (FP_FMA_E): Likewise.
2017         (_FP_FRAC_HIGH_DW_E): Likewise.
2018         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
2019         (_FP_WFRACBITS_DW_Q): Likewise.
2020         (_FP_WFRACXBITS_DW_Q): Likewise.
2021         (_FP_HIGHBIT_DW_Q): Likewise.
2022         (FP_FMA_Q): Likewise.
2023         (_FP_FRAC_HIGH_DW_Q): Likewise.
2024         * soft-fp/fmasf4.c: New file.
2025         * soft-fp/fmadf4.c: Likewise.
2026         * soft-fp/fmatf4.c: Likewise.
2027
2028 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2029
2030         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
2031         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
2032         Silvermont.
2033         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
2034         macro.
2035         (index_Slow_SSE4_2): Likewise.
2036         (index_Prefer_PMINUB_for_stringop): Likewise.
2037         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
2038         bit_Slow_SSE4_2 is set.
2039         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2040         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2041
2042 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2043
2044         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
2045         rtld_global._dl_hwcap2.
2046         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
2047         POWER8.
2048         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
2049         POWER8 feature descriptions defined in _dl_hwcap2.
2050         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
2051         string handling for POWER8 feature bits.
2052         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
2053         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
2054         _dl_powerpc_cap_flags.
2055         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
2056         * sysdeps/powerpc/rtld-global-offsets.sym
2057         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
2058         _dl_hwcap2 in the rtld_global_ro structure.
2059
2060 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2061
2062         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
2063         hardware capabilities in support of AT_HWCAP2.
2064         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
2065         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
2066         GLRO(dl_hwcap2).
2067         (_dl_show_auxv): Add support for calling _dl_procinfo to display
2068         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
2069         explicitly the unknown a_type display mechanism is used.
2070         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
2071         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
2072         struct member.
2073         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
2074         to macro prototype for AT_HWCAP2 support.
2075         * sysdeps/i386/dl-procinfo.h: Likewise.
2076         * sysdeps/s390/dl-procinfo.h: Likewise.
2077         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
2078         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
2079         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
2080         return -1 for unknown a_type display fallback.
2081         * sysdeps/sparc/dl-procinfo.h: Likewise.
2082         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2083         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
2084
2085 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
2086
2087         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
2088         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
2089
2090 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
2091
2092         [BZ #12492]
2093         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
2094         mprotect making __stack_prot writable.
2095
2096 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2097             Joseph Myers  <joseph@codesourcery.com>
2098
2099         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
2100         as being properly aligned.
2101
2102 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
2103
2104         * dlfcn/modstatic5.c: New file.
2105         * dlfcn/tststatic5.c: New file.
2106         * dlfcn/Makefile (tests): Add tststatic5.
2107         (tests-static): Likewise.
2108         (modules-names): Add modstatic5.
2109         (tststatic5-ENV): New variable.
2110         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
2111
2112         [BZ #15022]
2113         * elf/dl-support.c (_dl_main_map): New variable.
2114         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
2115         (_dl_nns, _dl_load_adds): Set to 1.
2116         (_dl_initial_searchlist): Refer to _dl_main_map.
2117         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
2118         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
2119         call to _dl_get_origin.
2120         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
2121         around call_map.
2122         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
2123         * dlfcn/modstatic3.c: New file.
2124         * dlfcn/tststatic3.c: New file.
2125         * dlfcn/tststatic4.c: New file.
2126         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
2127         (tests-static): Likewise.
2128         (modules-names): Add modstatic3.
2129         (tststatic3-ENV, tststatic4-ENV): New variables.
2130         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
2131         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
2132
2133 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
2134
2135         * configure.in (CC): Require GCC version 4.4 or later.
2136         * configure: Regenerated.
2137         * manual/install.texi (Tools for Compilation): Update GCC version
2138         requirement.
2139         * INSTALL: Regenerated.
2140
2141 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2142
2143         [BZ #15674]
2144         * string/test-memcmp.c (check2): New.
2145         (main): Call check2.
2146
2147         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
2148
2149 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
2150
2151         [BZ #15022]
2152         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
2153         over to...
2154         (dl_open_worker) [!SHARED]: ... here.
2155
2156 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2157
2158         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
2159
2160 2013-06-25  Richard Henderson  <rth@redhat.com>
2161
2162         * locale/programs/locarchive.c: Include <libc-internal.h>
2163
2164 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
2165
2166         * manual/texinfo.tex: Update to version 2013-06-21.17, with
2167         trailing whitespace removed.
2168
2169 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2170
2171         [BZ #10283]
2172         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
2173         * locale/programs/locarchive.c: Include libc-mmap.h.
2174         (prepare_address_space): Take two new outputs (the mmap base and len).
2175         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
2176         values.
2177         (create_archive): Declare new mmap base and len values for
2178         prepare_address_space, and store the result in ah.
2179         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
2180         (enlarge_archive): If ah->mmap_base is not NULL, use that and
2181         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2182         Declare new mmap base and len values for
2183         prepare_address_space, and store the result in new_ah.
2184         (open_archive): Declare new mmap base and len values for
2185         prepare_address_space, and store the result in ah.
2186         (close_archive): If ah->mmap_base is not NULL, use that and
2187         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2188         * sysdeps/generic/libc-mmap.h: New file.
2189
2190 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2191
2192         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
2193         (ALIGN_UP): Likewise.
2194         (PTR_ALIGN_DOWN): Likewise.
2195         (PTR_ALIGN_UP): Likewise.
2196
2197 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2198
2199         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
2200         entry mapped to PPC_PLATFORM_POWER8.
2201         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
2202         POWER8.
2203         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
2204         (_dl_string_platform): Add case for exporting platform position for
2205         POWER8.
2206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
2207         search path to sysdeps/powerpc/powerpc32/power8 directory.
2208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
2209         search path to sysdeps/powerpc/powerpc64/power8 directory.
2210         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
2211         power7 directories.
2212         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
2213         power7 directories.
2214
2215 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2216
2217         * INSTALL: Regenerate.
2218
2219         * nscd/connections.c (nscd_init): Fix comment.
2220
2221 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
2222
2223         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
2224
2225         [BZ #15667]
2226         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
2227         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
2228
2229 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2230
2231         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
2232         DL_DST_REQ_STATIC.
2233         (DL_DST_REQ_STATIC): Remove macro.
2234
2235 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
2236
2237         [BZ #7006]
2238         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
2239         with a shift of 0 bits.
2240
2241 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
2242
2243         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
2244         $(tststatic-ENV).
2245
2246 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2247
2248         [BZ #15655]
2249         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
2250
2251 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2252
2253         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
2254         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
2255         accepts -fno-tree-loop-distribute-patterns.
2256         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
2257         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
2258         recursive call.
2259         * string/memset.c (memset): Likewise.
2260         * string/test-memmove.c (simple_memmove): Disable loop transformation
2261         to library calls.
2262         * string/test-memset.c (simple_memset): Likewise.
2263         * benchtests/bench-memmove.c (simple_memmove): Likewise.
2264         * benchtests/bench-memset.c (simple_memset): Likewise.
2265         * configure: Regenerated.
2266
2267 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
2268
2269         * math/test-misc.c (main): Ignore fesetround failure when failures
2270         of subsequent rounding tests would be ignored.
2271
2272         [BZ #15654]
2273         * math/fedisblxcpt.c (fedisableexcept): Return 0.
2274         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
2275         * math/fegetenv.c (__fegetenv): Return 0.
2276         * math/fegetexcept.c (fegetexcept): Return 0.
2277         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
2278         FE_TONEAREST.
2279         * math/feholdexcpt.c (feholdexcept): Return 0.
2280         * math/fesetenv.c (__fesetenv): Return 0.
2281         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
2282         argument FE_TONEAREST.
2283         * math/feupdateenv.c (__feupdateenv): Return 0.
2284         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
2285
2286 2013-06-18  Roland McGrath  <roland@hack.frob.com>
2287
2288         * elf/rtld-Rules (rtld-compile-command.S): New variable.
2289         (rtld-compile-command.s, rtld-compile-command.c): New variables.
2290         ($(objpfx)rtld-%.os rules): Use them.
2291
2292 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2293
2294         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
2295         fields.
2296
2297 2013-06-17  Roland McGrath  <roland@hack.frob.com>
2298
2299         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
2300         length of target pattern, then descending length of dependency pattern.
2301         * configure.in (AWK): Require gawk 3.1.2 or newer.
2302         * manual/install.texi (Tools for Compilation): Say that we do.
2303         * configure: Regenerated.
2304
2305         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
2306         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
2307         * scripts/sysd-rules.awk: ... this new script.
2308         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
2309         than a glob-style pattern.
2310
2311 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
2312
2313         * math/test-misc.c (main): Do not treat incorrectly rounded
2314         conversions as failure unless ROUNDING_TESTS passes.
2315
2316 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
2317
2318         [BZ #15631]
2319         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
2320         restore exception state around main square root computation, then
2321         check for inexactness explicitly.
2322
2323         * math/libm-test.inc (fma_test_data): Add another test.
2324
2325 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2326
2327         * manual/threads.texi (Non-POSIX Extensions): New document
2328         node.  Document pthread_getattr_default_np and
2329         pthread_setattr_default_np.
2330
2331         * Versions.def (libpthread): Add GLIBC_2.18.
2332         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
2333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
2334         Likewise.
2335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
2336         Likewise.
2337         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
2338         Likewise.
2339         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
2340         Likewise.
2341         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
2342         Likewise.
2343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
2344         Likewise.
2345         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
2346         Likewise.
2347         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2348         Likewise.
2349         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
2350         Likewise.
2351
2352 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2353
2354         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2355         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
2356
2357 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2358             H.J. Lu  <hjl.tools@gmail.com>
2359
2360         [BZ #15627]
2361         * sysdeps/x86_64/rtld-memset.c: Remove file.
2362         * sysdeps/x86_64/rtld-memset.S: New file.
2363
2364 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
2365
2366         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
2367         (test_in_one_mode): Take arguments for whether the rounding mode
2368         is supported for each floating-point type.
2369         (do_test): Pass new arguments to test_in_one_mode using
2370         ROUNDING_TESTS.
2371
2372 2013-06-13  Roland McGrath  <roland@hack.frob.com>
2373
2374         * posix/tst-waitid.c (do_test): Distinguish different instances of
2375         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
2376         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
2377         before entering the kernel for waitpid.
2378
2379 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2380
2381         * NEWS: Fix note on clock function precision.  Text by Roland
2382         McGrath.
2383
2384 2013-06-13  Roland McGrath  <roland@hack.frob.com>
2385
2386         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
2387         it into place only when and if the sanity check passes.
2388
2389 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
2390
2391         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
2392         output for whether conversion result is exact.  Take argument
2393         indicating whether type is IBM long double.
2394         (round_for_all): Change need_exact field to ibm_ld.
2395         * stdlib/tst-strtod-round.c (struct exactness): New type.
2396         (struct test): Change bool ld_ok field to struct exactness exact.
2397         (TEST): Update all definitions for change to field.
2398         (tests): Regenerate array contents.
2399         (test_in_one_mode): Take pointer to new field instead of old ld_ok
2400         field value.  Check for IBM long double here.
2401         (do_test): Update calls to test_in_one_mode.
2402
2403 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
2404
2405         [BZ #12515]
2406         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
2407         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
2408
2409 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2410
2411         [BZ #15605]
2412         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
2413         generated by the compiler on loop optimizations.
2414         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
2415         general definitions.
2416
2417 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
2418
2419         * math/bug-nextafter.c: Include <math-tests.h>.
2420         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2421         the relevant type.
2422         * math/bug-nexttoward.c: Include <math-tests.h>.
2423         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2424         the relevant type.
2425         * math/test-misc.c: Include <math-tests.h>.
2426         (main): Only test for exceptions if EXCEPTION_TESTS is true for
2427         the relevant type.
2428
2429 2013-06-12  Andreas Jaeger  <aj@suse.de>
2430
2431         * po/ia.po: Update Interlingua translation from translation
2432         project.
2433
2434 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2435
2436         * include/fenv.h: Include stdbool.h.
2437         (struct rm_ctx): New structure.
2438         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
2439         Define macro.
2440         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
2441         (SET_RESTORE_ROUNDF): Likewise.
2442         (SET_RESTORE_ROUNDL): Likewise.
2443         (SET_RESTORE_ROUND_NOEX): Likewise.
2444         (SET_RESTORE_ROUND_NOEXF): Likewise.
2445         (SET_RESTORE_ROUND_NOEXL): Likewise.
2446         (SET_RESTORE_ROUND_53BIT): Likewise.
2447         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
2448         (libc_feresetround_noexf_ctx): Likewise.
2449         (libc_feresetround_noexl_ctx): Likewise.
2450         (libc_feholdsetround_53bit_ctx): Likewise.
2451         (libc_feresetround_53bit_ctx): Likewise.
2452         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
2453         (libc_feholdexcept_setround_sse_ctx): New function.
2454         (libc_fesetenv_sse_ctx): Likewise.
2455         (libc_feupdateenv_sse_ctx): Likewise.
2456         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
2457         (libc_feholdexcept_setround_387_ctx): Likewise.
2458         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
2459         (libc_feholdsetround_387_prec_ctx): Likewise.
2460         (libc_feholdsetround_387_ctx): Likewise.
2461         (libc_feholdsetround_387_53bit_ctx): Likewise.
2462         (libc_feholdsetround_sse_ctx): Likewise.
2463         (libc_feresetround_sse_ctx): Likewise.
2464         (libc_feresetround_387_ctx): Likewise.
2465         (libc_feupdateenv_387_ctx): Likewise.
2466         (libc_feholdexcept_setroundf_ctx): Define macro.
2467         (libc_fesetenvf_ctx): Likewise.
2468         (libc_feupdateenvf_ctx): Likewise.
2469         (libc_feholdsetroundf_ctx): Likewise.
2470         (libc_feresetroundf_ctx): Likewise.
2471         (libc_feholdexcept_setround_ctx): Likewise.
2472         (libc_fesetenv_ctx): Likewise.
2473         (libc_feupdateenv_ctx): Likewise.
2474         (libc_feholdsetround_ctx): Likewise.
2475         (libc_feresetround_ctx): Likewise.
2476         (libc_feholdexcept_setroundl_ctx): Likewise.
2477         (libc_feupdateenvl_ctx): Likewise.
2478         (libc_feholdsetroundl_ctx): Likewise.
2479         (libc_feresetroundl_ctx): Likewise.
2480         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
2481         (libc_feresetround_53bit_ctx): Likewise.
2482
2483 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2484
2485         * locale/iso-639.def: Convert to UTF-8.
2486
2487 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
2488
2489         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
2490         (EXCEPTION_TESTS_double): Likewise.
2491         (EXCEPTION_TESTS_long_double): Likewise.
2492         (EXCEPTION_TESTS): Likewise.
2493         * math/libm-test.inc (test_exceptions): Only test exceptions if
2494         EXCEPTION_TESTS (FLOAT).
2495
2496 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2497
2498         * benchtests/Makefile (string-bench): Add strcpy_chk and
2499         stpcpy_chk.
2500         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
2501         * benchtests/bench-stpcpy_chk.c: New file.
2502         * benchtests/bench-strcpy_chk-ifunc.c: New file.
2503         * benchtests/bench-strcpy_chk.c: New file.
2504         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
2505         code.
2506         (do_test): Likewise.
2507
2508 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2509
2510         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
2511         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
2512         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
2513         with tabs where appropriate.
2514         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
2515         dl-procinfo.h.
2516         [PPC_PLATFORM_PPC440]: Likewise.
2517         [PPC_PLATFORM_PPC464]: Likewise.
2518         [PPC_PLATFORM_PPC476]: Likewise.
2519         (_dl_string_platform): Add support for detecting ppc405, ppc440,
2520         ppc464, and ppc476 platform strings merging from ports/
2521         dl-procinfo.h.
2522
2523 2013-06-11  Andreas Schwab  <schwab@suse.de>
2524
2525         [BZ #14991]
2526         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
2527         (from_ucs4_idx): Regenerate.
2528         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
2529         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
2530         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
2531         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
2532         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
2533         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
2534         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
2535         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
2536         from FROM_LOOP and TO_LOOP specific macros.
2537         (BODY): Handle combining characters.
2538         * iconvdata/BIG5HKSCS.irreversible: Update.
2539         * iconvdata/BIG5HKSCS.precomposed: New file.
2540         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
2541         characters.
2542         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
2543
2544 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2545
2546         * include/sys/time.h: Fix indentation and add copyright header.
2547
2548         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
2549         (do_test): Likewise.
2550         * string/test-memchr.c (do_one_test): Likewise.
2551         (do_test): Likewise.
2552         * string/test-memcmp.c (do_one_test): Likewise.
2553         (do_test): Likewise.
2554         * string/test-memcpy.c (do_one_test): Likewise.
2555         (do_test): Likewise.
2556         * string/test-memmem.c (do_one_test): Likewise.
2557         (do_test): Likewise.
2558         (do_random_tests): Likewise.
2559         * string/test-memmove.c (do_one_test): Likewise.
2560         (do_test): Likewise.
2561         * string/test-memset.c (do_one_test): Likewise.
2562         (do_test): Likewise.
2563         * string/test-rawmemchr.c (do_one_test): Likewise.
2564         (do_test): Likewise.
2565         * string/test-strcasecmp.c (do_one_test): Likewise.
2566         (do_test): Likewise.
2567         * string/test-strcasestr.c (do_one_test): Likewise.
2568         (do_test): Likewise.
2569         * string/test-strcat.c (do_one_test): Likewise.
2570         (do_test): Likewise.
2571         * string/test-strchr.c (do_one_test): Likewise.
2572         (do_test): Likewise.
2573         * string/test-strcmp.c (do_one_test): Likewise.
2574         (do_test): Likewise.
2575         * string/test-strcpy.c (do_one_test): Likewise.
2576         (do_test): Likewise.
2577         * string/test-string.h: Likewise.
2578         (test_init): Likewise.
2579         * string/test-strlen.c (do_one_test): Likewise.
2580         (do_test): Likewise.
2581         * string/test-strncasecmp.c (do_one_test): Likewise.
2582         (do_test): Likewise.
2583         * string/test-strncat.c (do_one_test): Likewise.
2584         (do_test): Likewise.
2585         * string/test-strncmp.c (do_one_test): Likewise.
2586         (do_test_limit): Likewise.
2587         (do_test): Likewise.
2588         * string/test-strncpy.c (do_one_test): Likewise.
2589         (do_test): Likewise.
2590         * string/test-strnlen.c (do_one_test): Likewise.
2591         (do_test): Likewise.
2592         * string/test-strpbrk.c (do_one_test): Likewise.
2593         (do_test): Likewise.
2594         * string/test-strrchr.c (do_one_test): Likewise.
2595         (do_test): Likewise.
2596         * string/test-strspn.c (do_one_test): Likewise.
2597         (do_test): Likewise.
2598         * string/test-strstr.c (do_one_test): Likewise.
2599         (do_test): Likewise.
2600
2601         * benchtests/Makefile (string-bench): Add string benchmarks.
2602         * benchtests/bench-bcopy-ifunc.c: New file.
2603         * benchtests/bench-bcopy.c: New file.
2604         * benchtests/bench-bzero-ifunc.c: New file.
2605         * benchtests/bench-bzero.c: New file.
2606         * benchtests/bench-memccpy-ifunc.c: New file.
2607         * benchtests/bench-memccpy.c: New file.
2608         * benchtests/bench-memchr-ifunc.c: New file.
2609         * benchtests/bench-memchr.c: New file.
2610         * benchtests/bench-memcmp-ifunc.c: New file.
2611         * benchtests/bench-memcmp.c: New file.
2612         * benchtests/bench-memmem-ifunc.c: New file.
2613         * benchtests/bench-memmem.c: New file.
2614         * benchtests/bench-memmove-ifunc.c: New file.
2615         * benchtests/bench-memmove.c: New file.
2616         * benchtests/bench-mempcpy-ifunc.c: New file.
2617         * benchtests/bench-mempcpy.c: New file.
2618         * benchtests/bench-memset-ifunc.c: New file.
2619         * benchtests/bench-memset.c: New file.
2620         * benchtests/bench-rawmemchr-ifunc.c: New file.
2621         * benchtests/bench-rawmemchr.c: New file.
2622         * benchtests/bench-stpcpy-ifunc.c: New file.
2623         * benchtests/bench-stpcpy.c: New file.
2624         * benchtests/bench-stpncpy-ifunc.c: New file.
2625         * benchtests/bench-stpncpy.c: New file.
2626         * benchtests/bench-strcasecmp-ifunc.c: New file.
2627         * benchtests/bench-strcasecmp.c: New file.
2628         * benchtests/bench-strcasestr-ifunc.c: New file.
2629         * benchtests/bench-strcasestr.c: New file.
2630         * benchtests/bench-strcat-ifunc.c: New file.
2631         * benchtests/bench-strcat.c: New file.
2632         * benchtests/bench-strchr-ifunc.c: New file.
2633         * benchtests/bench-strchr.c: New file.
2634         * benchtests/bench-strchrnul-ifunc.c: New file.
2635         * benchtests/bench-strchrnul.c: New file.
2636         * benchtests/bench-strcmp-ifunc.c: New file.
2637         * benchtests/bench-strcmp.c: New file.
2638         * benchtests/bench-strcpy-ifunc.c: New file.
2639         * benchtests/bench-strcpy.c: New file.
2640         * benchtests/bench-strcspn-ifunc.c: New file.
2641         * benchtests/bench-strcspn.c: New file.
2642         * benchtests/bench-strlen-ifunc.c: New file.
2643         * benchtests/bench-strlen.c: New file.
2644         * benchtests/bench-strncasecmp-ifunc.c: New file.
2645         * benchtests/bench-strncasecmp.c: New file.
2646         * benchtests/bench-strncat-ifunc.c: New file.
2647         * benchtests/bench-strncat.c: New file.
2648         * benchtests/bench-strncmp-ifunc.c: New file.
2649         * benchtests/bench-strncmp.c: New file.
2650         * benchtests/bench-strncpy-ifunc.c: New file.
2651         * benchtests/bench-strncpy.c: New file.
2652         * benchtests/bench-strnlen-ifunc.c: New file.
2653         * benchtests/bench-strnlen.c: New file.
2654         * benchtests/bench-strpbrk-ifunc.c: New file.
2655         * benchtests/bench-strpbrk.c: New file.
2656         * benchtests/bench-strrchr-ifunc.c: New file.
2657         * benchtests/bench-strrchr.c: New file.
2658         * benchtests/bench-strspn-ifunc.c: New file.
2659         * benchtests/bench-strspn.c: New file.
2660         * benchtests/bench-strstr-ifunc.c: New file.
2661         * benchtests/bench-strstr.c: New file.
2662
2663         * benchtests/Makefile: Disable parallel execution of targets.
2664         (string-bench): Add memcpy.
2665         (benchset): New variable to store a list of benchmark sets.
2666         (bench-func): Renamed from bench.
2667         (bench-set): New target.
2668         (bench): Depend on bench-func and bench-set.
2669         * benchtests/README: Add section on benchmark sets.
2670         * benchtests/bench-memcpy-ifunc.c: New file.
2671         * benchtests/bench-memcpy.c: New file.
2672         * benchtests/bench-string.h: New file.
2673
2674 2013-06-11  Andreas Schwab  <schwab@suse.de>
2675
2676         [BZ #15577]
2677         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
2678         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
2679         values in the triple.
2680         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
2681         terminator in the group key.
2682
2683 2013-06-11  Andreas Jaeger  <aj@suse.de>
2684
2685         * po/zh_TW.po: Update Chinese (traditional) translation from
2686         translation project.
2687
2688 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2689
2690         * include/time.h (__clock_gettime): Add libc_hidden_proto.
2691         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
2692         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
2693         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2694         (clock_getcpuclockid): Likewise.
2695         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
2696         Add weak_alias and libc_hidden_def.
2697         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
2698         * rt/clock_gettime.c (clock_gettime): Rename to
2699         __clock_gettime.  Add weak_alias and libc_hidden_def.
2700         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
2701         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
2702         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
2703         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
2704         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
2705         Likewise.
2706         * rt/clock_settime.c (clock_settime): Rename to
2707         __clock_settime.  Add weak_alias and libc_hidden_def.
2708         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
2709
2710 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
2711
2712         * mach/err_boot.sub: Remove trailing whitespace.
2713         * mach/err_ipc.sub: Likewise.
2714         * mach/err_mach.sub: Likewise.
2715
2716         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
2717         (ROUNDING_TESTS_double): Likewise.
2718         (ROUNDING_TESTS_long_double): Likewise.
2719         (ROUNDING_TESTS): Likewise.
2720         * math/libm-test.inc: Include <math-tests.h>.
2721         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
2722         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
2723         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
2724         (IF_ROUND_INIT_FE_UPWARD): Likewise.
2725
2726 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2727
2728         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
2729         of assigning.
2730
2731 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
2732
2733         * sysdeps/gnu/errlist.awk: Do not generate space at end of
2734         otherwise empty TRANS lines.
2735         * sysdeps/gnu/errlist.c: Regenerated.
2736
2737         * catgets/gencat.c (error_print): Use (void) in function
2738         definition.
2739         * crypt/crypt_util.c (__init_des): Likewise.
2740         * crypt/speeds.c (Stop): Likewise.
2741         (main): Likewise.
2742         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
2743         * inet/ruserpass.c (token): Likewise.
2744         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
2745         * intl/localealias.c (extend_alias_table): Likewise.
2746         * intl/plural-exp.c (init_germanic_plural): Likewise.
2747         * libio/fcloseall.c (__fcloseall): Likewise.
2748         * libio/genops.c (_IO_flush_all): Likewise.
2749         (_IO_flush_all_linebuffered): Likewise.
2750         (_IO_cleanup): Likewise.
2751         (_IO_iter_begin): Likewise.
2752         (_IO_iter_end): Likewise.
2753         (_IO_list_lock): Likewise.
2754         (_IO_list_unlock): Likewise.
2755         (_IO_list_resetlock): Likewise.
2756         * libio/getchar.c (getchar): Likewise.
2757         * libio/getchar_u.c (getchar_unlocked): Likewise.
2758         * libio/getwchar.c (getwchar): Likewise.
2759         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
2760         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
2761         * login/getpt.c (__getpt): Likewise.
2762         * login/tst-utmp.c (main): Likewise.
2763         * malloc/hooks.c (__malloc_check_init): Likewise.
2764         * malloc/malloc.c (__malloc_stats): Likewise.
2765         * malloc/mtrace.c (tr_break): Likewise.
2766         (mtrace): Likewise.
2767         (muntrace): Likewise.
2768         * misc/fstab.c (endfsent): Likewise.
2769         * misc/getclktck.c (__getclktck): Likewise.
2770         * misc/getdtsz.c (__getdtablesize): Likewise.
2771         * misc/gethostid.c (gethostid): Likewise.
2772         * misc/getpagesize.c (__getpagesize): Likewise.
2773         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
2774         (__get_nprocs): Likewise.
2775         (__get_phys_pages): Likewise.
2776         (__get_avphys_pages): Likewise.
2777         * misc/getttyent.c (getttyent): Likewise.
2778         (setttyent): Likewise.
2779         (endttyent): Likewise.
2780         * misc/getusershell.c (getusershell): Likewise.
2781         (endusershell): Likewise.
2782         (setusershell): Likewise.
2783         (initshells): Likewise.
2784         * misc/hsearch.c (__hdestroy): Likewise.
2785         * misc/sync.c (sync): Likewise.
2786         * misc/syslog.c (closelog_internal): Likewise.
2787         (closelog): Likewise.
2788         * misc/ttyslot.c (ttyslot): Likewise.
2789         * misc/vhangup.c (vhangup): Likewise.
2790         * posix/fork.c (__fork): Likewise.
2791         * posix/getegid.c (__getegid): Likewise.
2792         * posix/geteuid.c (__geteuid): Likewise.
2793         * posix/getgid.c (__getgid): Likewise.
2794         * posix/getpid.c (__getpid): Likewise.
2795         * posix/getppid.c (__getppid): Likewise.
2796         * posix/getuid.c (__getuid): Likewise.
2797         * posix/pause.c (pause): Likewise.
2798         * posix/setpgrp.c (setpgrp): Likewise.
2799         * posix/setsid.c (__setsid): Likewise.
2800         * posix/test-vfork.c (noop): Likewise.
2801         * resolv/gethnamaddr.c (_endhtent): Likewise.
2802         (_gethtent): Likewise.
2803         (ht_endhostent): Likewise.
2804         (gethostent): Likewise.
2805         (dns_service): Likewise.
2806         * stdlib/drand48.c (drand48): Likewise.
2807         * stdlib/lrand48.c (lrand48): Likewise.
2808         * stdlib/mrand48.c (mrand48): Likewise.
2809         * stdlib/rand.c (rand): Likewise.
2810         * stdlib/random.c (__random): Likewise.
2811         * stdlib/setenv.c (clearenv): Likewise.
2812         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
2813         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
2814         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
2815         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
2816         (__get_nprocs): Likewise.
2817         (__get_phys_pages): Likewise.
2818         (__get_avphys_pages): Likewise.
2819         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
2820         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
2821         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
2822         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
2823         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
2824         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
2825         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
2826         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
2827         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
2828         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
2829         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
2830         * sysdeps/mach/hurd/sync.c (sync): Likewise.
2831         * sysdeps/posix/clock.c (clock): Likewise.
2832         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
2833         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
2834         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
2835         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2836         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
2837         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
2838         (__get_nprocs_conf): Likewise.
2839         (__get_phys_pages): Likewise.
2840         (__get_avphys_pages): Likewise.
2841         * time/clock.c (clock): Likewise.
2842         * time/tzset.c (__tzname_max): Likewise.
2843
2844 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
2845
2846         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
2847         (__bswap_32): Do not use "register".
2848         * crypt/crypt.c (_ufc_doit_r): Likewise.
2849         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
2850         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
2851         * gmon/gmon.c (__monstartup): Likewise.
2852         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
2853         * hurd/hurdmalloc.c (more_memory): Likewise.
2854         (malloc): Likewise.
2855         (free): Likewise.
2856         (realloc): Likewise.
2857         (malloc_fork_prepare): Likewise.
2858         (malloc_fork_parent): Likewise.
2859         (malloc_fork_child): Likewise.
2860         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
2861         (_svcauth_des): Likewise.
2862         * inet/inet_lnaof.c (inet_lnaof): Likewise.
2863         * inet/inet_net.c (inet_network): Likewise.
2864         * inet/inet_netof.c (inet_netof): Likewise.
2865         * inet/rcmd.c (__validuser2_sa): Likewise.
2866         * io/fts.c (fts_open): Likewise.
2867         (fts_load): Likewise.
2868         (fts_close): Likewise.
2869         (fts_read): Likewise.
2870         (fts_children): Likewise.
2871         (fts_build): Likewise.
2872         (fts_stat): Likewise.
2873         (fts_sort): Likewise.
2874         (fts_alloc): Likewise.
2875         (fts_lfree): Likewise.
2876         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
2877         (_IO_file_xsgetn): Likewise.
2878         (_IO_file_xsgetn_mmap): Likewise.
2879         * libio/iofopncook.c (_IO_cookie_read): Likewise.
2880         (_IO_cookie_write): Likewise.
2881         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
2882         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
2883         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
2884         * malloc/obstack.c (_obstack_begin): Likewise.
2885         (_obstack_begin_1): Likewise.
2886         (_obstack_newchunk): Likewise.
2887         (_obstack_allocated_p): Likewise.
2888         (obstack_free): Likewise.
2889         (_obstack_memory_used): Likewise.
2890         * misc/getttyent.c (getttynam): Likewise.
2891         (getttyent): Likewise.
2892         (skip): Likewise.
2893         (value): Likewise.
2894         * misc/getusershell.c (initshells): Likewise.
2895         * misc/syslog.c (__vsyslog_chk): Likewise.
2896         * misc/ttyslot.c (ttyslot): Likewise.
2897         * nis/nis_hash.c (__nis_hash): Likewise.
2898         * posix/fnmatch_loop.c (FCT): Likewise.
2899         * posix/getconf.c (print_all): Likewise.
2900         (main): Likewise.
2901         * posix/getopt.c (exchange): Likewise.
2902         * posix/glob.c (globfree): Likewise.
2903         (prefix_array): Likewise.
2904         (__glob_pattern_type): Likewise.
2905         * resolv/arpa/nameser.h (NS_GET16): Likewise.
2906         (NS_GET32): Likewise.
2907         (NS_PUT16): Likewise.
2908         (NS_PUT32): Likewise.
2909         * resolv/gethnamaddr.c (getanswer): Likewise.
2910         (gethostbyname2): Likewise.
2911         (gethostbyaddr): Likewise.
2912         (_gethtent): Likewise.
2913         (_gethtbyname2): Likewise.
2914         (_gethtbyaddr): Likewise.
2915         * resolv/ns_print.c (dst_s_get_int16): Likewise.
2916         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
2917         * resolv/res_init.c (__res_vinit): Likewise.
2918         (net_mask): Likewise.
2919         * resolv/res_mkquery.c (outchar): Likewise.
2920         (PRINT): Likewise.
2921         * stdio-common/printf_fp.c (outchar): Likewise.
2922         (PRINT): Likewise.
2923         * stdio-common/printf_fphex.c (outchar): Likewise.
2924         (PRINT): Likewise.
2925         * stdio-common/printf_size.c (outchar): Likewise.
2926         (PRINT): Likewise.
2927         * stdio-common/test_rdwr.c (main): Likewise.
2928         * stdio-common/tfformat.c (matches): Likewise.
2929         * stdio-common/vfprintf.c (outchar): Likewise.
2930         (printf_unknown): Likewise.
2931         (buffered_vfprintf): Likewise.
2932         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
2933         * stdio-common/xbug.c (AppendToBuffer): Likewise.
2934         (ReadFile): Likewise.
2935         * stdlib/qsort.c (SWAP): Likewise.
2936         (_quicksort): Likewise.
2937         * stdlib/setenv.c (__add_to_environ): Likewise.
2938         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
2939         * stdlib/strtol_l.c (__strtol_l): Likewise.
2940         * stdlib/tst-strtod.c (main): Likewise.
2941         * stdlib/tst-strtol.c (main): Likewise.
2942         * stdlib/tst-strtoll.c (main): Likewise.
2943         * string/bits/string2.h (__strcmp_cc): Likewise.
2944         (__strcmp_cg): Likewise.
2945         (__strcspn_c1): Likewise.
2946         (__strcspn_c2): Likewise.
2947         (__strcspn_c3): Likewise.
2948         (__strspn_c1): Likewise.
2949         (__strspn_c2): Likewise.
2950         (__strspn_c3): Likewise.
2951         (__strsep_1c): Likewise.
2952         (__strsep_2c): Likewise.
2953         (__strsep_3c): Likewise.
2954         * string/memccpy.c (__memccpy): Likewise.
2955         * string/stpcpy.c (__stpcpy): Likewise.
2956         * string/strcmp.c (strcmp): Likewise.
2957         * string/strrchr.c (strrchr): Likewise.
2958         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
2959         Likewise.
2960         * sysdeps/mach/hurd/getcwd.c
2961         (_hurd_canonicalize_directory_name_internal): Likewise.
2962         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
2963         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
2964         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
2965         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
2966         Likewise, in both definitions.
2967         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
2968         definitions.
2969         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
2970         64] (__bswap_64): Likewise.
2971         * time/test_time.c (main): Likewise.
2972         * time/tzfile.c (__tzfile_read): Likewise.
2973         (__tzfile_compute): Likewise.
2974         * time/tzset.c (__tzset_parse_tz): Likewise.
2975         (tzset_internal): Likewise.
2976         (compute_change): Likewise.
2977         * wcsmbs/wcscat.c (__wcscat): Likewise.
2978         * wcsmbs/wcschr.c (wcschr): Likewise.
2979         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
2980         * wcsmbs/wcscspn.c (wcscspn): Likewise.
2981         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
2982         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
2983         * wcsmbs/wcsspn.c (wcsspn): Likewise.
2984         * wcsmbs/wcsstr.c (wcsstr): Likewise.
2985         * wcsmbs/wmemchr.c (wmemchr): Likewise.
2986         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
2987         * wcsmbs/wmemset.c (wmemset): Likewise.
2988
2989 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
2990
2991         * scripts/config.guess: Update to version 2013-05-16.
2992         * scripts/config.sub: Update to version 2013-04-24.
2993         * scripts/install-sh: Update to version 2011-11-20.07.
2994         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
2995         * scripts/move-if-change: Update to version 2012-01-06 07:23.
2996
2997 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
2998
2999         * debug/fgetws_u_chk.c: Fix leading whitespaces.
3000         * elf/sln.c: Likewise.
3001         * hurd/hurd/ioctl.h: Likewise.
3002         * hurd/hurdmalloc.c: Likewise.
3003         * hurd/xattr.c: Likewise.
3004         * include/shlib-compat.h: Likewise.
3005         * inet/ruserpass.c: Likewise.
3006         * libio/iofgets_u.c: Likewise.
3007         * libio/iofgetws_u.c: Likewise.
3008         * locale/programs/ld-identification.c: Likewise.
3009         * locale/programs/ld-time.c: Likewise.
3010         * mach/msg-destroy.c: Likewise.
3011         * nss/nss_files/files-netgrp.c: Likewise.
3012         * resolv/res_data.c: Likewise.
3013         * soft-fp/op-1.h: Likewise.
3014         * soft-fp/op-2.h: Likewise.
3015         * soft-fp/op-4.h: Likewise.
3016         * soft-fp/op-common.h: Likewise.
3017         * stdio-common/printf_fphex.c: Likewise.
3018         * stdlib/strtod_l.c: Likewise.
3019         * sunrpc/rpc/clnt.h: Likewise.
3020         * sysdeps/generic/framestate.c: Likewise.
3021         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3022         * sysdeps/i386/bsd-setjmp.S: Likewise.
3023         * sysdeps/i386/__longjmp.S: Likewise.
3024         * sysdeps/i386/setjmp.S: Likewise.
3025         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3026         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3027         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3028         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3029         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3030         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3031         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3032         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3033         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3034         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3035         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3036         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3037         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3038         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3039         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3040         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3041         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3042         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
3043         * sysdeps/ieee754/support.c: Likewise.
3044         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3045         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
3046         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
3047         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
3048         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
3049         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
3050         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
3051         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
3052         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
3053         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
3054         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
3055         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
3056         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
3057         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
3058         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
3059         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
3060         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
3061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3062
3063 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
3064
3065         * posix/transbug.c: Remove executable mode.
3066
3067 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
3068
3069         * crypt/speeds.c: Remove trailing whitespace.
3070         * dlfcn/default.c: Likewise.
3071         * elf/ifuncdep2.c: Likewise.
3072         * elf/ifuncmain1.c: Likewise.
3073         * elf/ifuncmain1vis.c: Likewise.
3074         * elf/testobj.h: Likewise.
3075         * elf/tst-stackguard1.c: Likewise.
3076         * gmon/sys/gmon.h: Likewise.
3077         * hurd/hurdmsg.c: Likewise.
3078         * hurd/new-fd.c: Likewise.
3079         * hurd/ports-get.c: Likewise.
3080         * iconvdata/ibm1008_420.c: Likewise.
3081         * inet/tst-getni1.c: Likewise.
3082         * inet/tst-getni2.c: Likewise.
3083         * libio/ioungetc.c: Likewise.
3084         * libio/wfiledoalloc.c: Likewise.
3085         * manual/libm-err-tab.pl: Likewise.
3086         * math/w_dremf.c: Likewise.
3087         * misc/ftruncate.c: Likewise.
3088         * posix/bug-glob2.c: Likewise.
3089         * posix/tst-pcre.c: Likewise.
3090         * posix/wait4.c: Likewise.
3091         * resolv/README: Likewise.
3092         * resolv/res_debug.h: Likewise.
3093         * resolv/tst-inet_ntop.c: Likewise.
3094         * setjmp/bug269-setjmp.c: Likewise.
3095         * soft-fp/extended.h: Likewise.
3096         * soft-fp/op-1.h: Likewise.
3097         * soft-fp/op-2.h: Likewise.
3098         * soft-fp/op-4.h: Likewise.
3099         * soft-fp/op-8.h: Likewise.
3100         * soft-fp/testit.c: Likewise.
3101         * stdio-common/bug16.c: Likewise.
3102         * stdlib/random.c: Likewise.
3103         * sunrpc/rpcsvc/rquota.x: Likewise.
3104         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3105         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3106         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3107         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3108         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3109         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3110         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3111         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3112         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3113         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3114         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3115         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3116         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3117         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3118         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3119         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3120         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3121         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3122         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3123         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3124         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3125         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3126         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
3127         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3128         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3129         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3130         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3131         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
3132         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3133         * sysdeps/ieee754/s_lib_version.c: Likewise.
3134         * sysdeps/mach/hurd/check_fds.c: Likewise.
3135         * sysdeps/mach/hurd/getsockname.c: Likewise.
3136         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
3137         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3138         * sysdeps/powerpc/bits/link.h: Likewise.
3139         * sysdeps/powerpc/dl-procinfo.c: Likewise.
3140         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
3141         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
3142         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
3143         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
3144         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3145         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
3146         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3147         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
3148         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3149         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3150         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
3151         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
3152         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3153         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
3154         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3155         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3156         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3157         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3158         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3159         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
3160         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
3161         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3162         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3163         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3164         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3165         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3166         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3167         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3168         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3169         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3170         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3171         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3172         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3173         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
3174         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3175         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3176         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3177         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3178         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
3179         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3180         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3181         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3182         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3183         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3184         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
3185         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3186         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3187         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
3188         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
3189         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
3190         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
3191         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3192         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3193         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3194         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3195         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3196         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3197         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
3198         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3199         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3200         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3201         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
3202         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3203         * sysdeps/powerpc/sysdep.h: Likewise.
3204         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3205         * sysdeps/s390/s390-64/sub_n.S: Likewise.
3206         * sysdeps/sh/dl-trampoline.S: Likewise.
3207         * sysdeps/sh/memset.S: Likewise.
3208         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
3209         * sysdeps/sh/strlen.S: Likewise.
3210         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
3211         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
3212         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
3213         * sysdeps/sparc/sparc32/rem.S: Likewise.
3214         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
3215         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
3216         * sysdeps/sparc/sparc32/strchr.S: Likewise.
3217         * sysdeps/sparc/sparc32/udiv.S: Likewise.
3218         * sysdeps/sparc/sparc32/urem.S: Likewise.
3219         * sysdeps/sparc/sparc64/add_n.S: Likewise.
3220         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3221         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
3222         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
3223         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
3224         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
3225         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
3226         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
3227         * sysdeps/unix/bsd/times.c: Likewise.
3228         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
3229         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
3230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
3233         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
3234         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
3235         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
3236         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
3237         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
3238         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
3239         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
3240         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
3241         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
3242         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
3243         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3244         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3245         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3246         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
3247         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
3248         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
3249         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
3250         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
3251         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
3252         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
3253         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
3254         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
3255         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3256         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
3257         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
3258         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
3259         * sysdeps/x86_64/strcspn.S: Likewise.
3260
3261 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3262
3263         * locale/C-translit.h: Revert #include <stdint.h> because this is a
3264         generated file.  Regenerate properly from gen-translit.pl.
3265         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
3266         locale/C-translit.h.
3267
3268 2013-06-05  Andreas Schwab  <schwab@suse.de>
3269
3270         [BZ #15100]
3271         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
3272         week as 6 instead of -1.
3273         * time/tst-strptime.c (day_tests): Add test case.
3274
3275 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3276
3277         * sysdeps/generic/math_private.h
3278         (libc_feholdexcept_setround_53bit): Replace with
3279         libc_feholdsetround_53bit.
3280         (libc_feupdateenv_53bit): Replace with
3281         libc_feresetround_53bit.
3282         (SET_RESTORE_ROUND_53BIT): Adjust.
3283
3284 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
3285
3286         * string/test-strchrnul.c: Add copyright header.
3287
3288         * posix/tst-getaddrinfo4.c: Increase test timeout.
3289
3290 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
3291
3292         [BZ #15536]
3293         * math/libm-test.inc (MAX_EXP): Remove
3294         (MIN_EXP): Define.
3295         (ulp): Use MIN_EXP - MANT_DIG.
3296         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
3297
3298 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
3299
3300         * po/be.po: Revert last change.
3301         * po/zh_CN.po: Likewise.
3302         * po/header.pot: Likewise.
3303
3304 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
3305
3306         * Makefile ($(common-objpfx)linkobj/libc.so): Define
3307         link-libc-deps to empty as target-specific variable.
3308         * Makerules (link-libc-args): New variable.
3309         (libc-for-link): Likewise.
3310         (link-libc-deps): Likewise.
3311         (lib%.so): Depend on $(link-libc-deps).  Link with
3312         $(link-libc-args).
3313         (build-module): Link with $(link-libc-args).
3314         (build-module-asneeded): Likewise.
3315         (build-module-helper-objlist): Filter out $(link-libc-deps) from
3316         list of objects.
3317         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
3318         target-specific variable.
3319         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
3320         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
3321         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
3322         libc.
3323         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
3324         libc and ld.so.
3325         ($(objpfx)libpcprofile.so): Likewise.
3326         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
3327         libc_nonshared.a.
3328         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
3329         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
3330         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
3331         $(link-libc-deps).
3332         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
3333         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
3334         * login/Makefile ($(objpfx)libutil.so): Likewise.
3335         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
3336         * math/Makefile ($(objpfx)libm.so): Likewise.
3337         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
3338         $(objpfx)libnsl.so): Define libc-for-link as target-specific
3339         variable instead of depending directly on libc.
3340         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
3341         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
3342         $(link-libc-deps).
3343         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
3344         libc.
3345         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
3346         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
3347         ($(objpfx)libanl.so): Likewise.
3348         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
3349         ld.so.
3350         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
3351         $(link-libc-deps).
3352         * sysdeps/i386/fpu/Makefile: Remove file.
3353         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
3354         ($(objpfx)libm.so): Remove dependency on ld.so.
3355
3356 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
3357
3358         [BZ # 15553]
3359         * nis/yp_xdr.c (XDRMAXNAME): Define.
3360         (XDRMAXRECORD): Define.
3361         (xdr_domainname): Use XDRMAXNAME.
3362         (xdr_mapname): Likewise.
3363         (xdr_peername): Likewise.
3364         (xdr_keydat): Use XDRMAXRECORD.
3365         (xdr_valdat): Likewise.
3366
3367 2013-05-30  Jeff Law  <law@redhat.com>
3368
3369         [BZ #14256]
3370         * manual/errno.texi (ESTALE): Update to account for more than
3371         just NFS file systems.
3372         * sysdeps/gnu/errlist.c: Regenerated.
3373
3374 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3375
3376         [BZ #15465]
3377         * elf/Makefile (tests): Add tst-null-argv.
3378         (modules-names):  Add tst-null-argv-lib.
3379         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
3380         (tst-null-argv-ENV): Set environment for tst-null-argv.
3381         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
3382         (RTLD_PROGNAME): New macro.
3383         * elf/tst-null-argv.c: New test case.
3384         * elf/tst-null-argv-lib.c: Library for test case.
3385         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
3386         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3387         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
3388         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
3389         * elf/dl-init.c (call_init): Likewise.
3390         (_dl_init): Likewise.
3391         * elf/dl-load.c (print_search_path): Likewise.
3392         (_dl_map_object): Likewise.
3393         * elf/dl-lookup.c (do_lookup_x): Likewise.
3394         (add_dependency): Likewise.
3395         (_dl_lookup_symbol_x): Likewise.
3396         (_dl_debug_bindings): Likewise.
3397         * elf/dl-open.c (_dl_show_scope): Likewise.
3398         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
3399         * elf/dl-version.c (match_symbol): Likewise.
3400         (_dl_check_map_versions): Likewise.
3401         * elf/rtld.c (dl_main): Likewise.
3402         (print_unresolved): Use RTLD_PROGNAME.
3403         (print_missing_version): Likewise.
3404         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3405         (elf_machine_rela): Likewise.
3406         * sysdeps/powerpc/powerpc32/dl-machine.c
3407         (__process_machine_rela): Likewise.
3408         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3409         Likewise.
3410         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3411         Likewise.
3412         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
3413         Likewise.
3414         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3415         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
3416         Likewise.
3417         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
3418         Likewise.
3419         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3420
3421 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
3422
3423         * po/be.po: Add descriptive title.
3424         * po/zh_CN.po: Likewise.
3425         * po/header.pot: Likewise.
3426
3427 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
3428
3429         * locale/programs/locarchive.c (create_archive): Inlucde fname in
3430         error message.
3431         (enlarge_archive): Likewise.
3432
3433 2013-05-28  Ben North  <ben@redfrontdoor.org>
3434
3435         * manual/arith.texi (frexp): It is the magnitude of the return
3436         value which lies in [0.5, 1), not the return value itself.
3437
3438 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3439
3440         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3441
3442 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
3443
3444         * stdio-common/bug26.c (main): Correct fscanf template.
3445
3446         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
3447         declare _dl_skip_args.
3448
3449         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
3450         Don't declare.
3451
3452         * manual/platform.texi: Add missing @end deftypefun.
3453
3454 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
3455
3456         [BZ #15529]
3457         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
3458         bit of mantissa of 2^16382.
3459         * math/libm-test.inc (hypot_test_data): Add more tests.
3460
3461         * math/libm-test.inc: Add drem and pow10 to list of tested
3462         functions.
3463         (pow10_test): New function.
3464         (drem_test): Likewise.
3465         (drem_test_tonearest): Likewise.
3466         (drem_test_towardzero): Likewise.
3467         (drem_test_downward): Likewise.
3468         (drem_test_upward): Likewise.
3469         (main): Call the new functions.
3470
3471         * math/libm-test.inc (finite_test_data): Remove.
3472         (finite_test): Run tests from isfinite_test_data.
3473         (gamma_test_data): Remove.
3474         (gamma_test): Run tests from lgamma_test_data.
3475         * sysdeps/i386/fpu/libm-test-ulps: Update.
3476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3477
3478 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3479
3480         * manual/platform.texi: Add PowerPC PPR function set documentation.
3481         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
3482         implementation.
3483
3484 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
3485
3486         * math/libm-test.inc (MAX_EXP): Define.
3487         (ULPDIFF): Define.
3488         (ulp): New function.
3489         (check_float_internal): Use ULPDIFF.
3490         (cpow_test): Disable failing test.
3491         (check_ulp): Test ulp() implemetnation.
3492         (main): Call check_ulp before starting tests.
3493
3494 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
3495
3496         * math/gen-libm-test.pl (generate_testfile): Do not handle
3497         START_DATA and END_DATA.
3498         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
3499         END_DATA.
3500         (acos_tonearest_test_data): Likewise.
3501         (acos_towardzero_test_data): Likewise.
3502         (acos_downward_test_data): Likewise.
3503         (acos_upward_test_data): Likewise.
3504         (acosh_test_data): Likewise.
3505         (asin_test_data): Likewise.
3506         (asin_tonearest_test_data): Likewise.
3507         (asin_towardzero_test_data): Likewise.
3508         (asin_downward_test_data): Likewise.
3509         (asin_upward_test_data): Likewise.
3510         (asinh_test_data): Likewise.
3511         (atan_test_data): Likewise.
3512         (atanh_test_data): Likewise.
3513         (atan2_test_data): Likewise.
3514         (cabs_test_data): Likewise.
3515         (cacos_test_data): Likewise.
3516         (cacosh_test_data): Likewise.
3517         (carg_test_data): Likewise.
3518         (casin_test_data): Likewise.
3519         (casinh_test_data): Likewise.
3520         (catan_test_data): Likewise.
3521         (catanh_test_data): Likewise.
3522         (cbrt_test_data): Likewise.
3523         (ccos_test_data): Likewise.
3524         (ccosh_test_data): Likewise.
3525         (ceil_test_data): Likewise.
3526         (cexp_test_data): Likewise.
3527         (cimag_test_data): Likewise.
3528         (clog_test_data): Likewise.
3529         (clog10_test_data): Likewise.
3530         (conj_test_data): Likewise.
3531         (copysign_test_data): Likewise.
3532         (cos_test_data): Likewise.
3533         (cos_tonearest_test_data): Likewise.
3534         (cos_towardzero_test_data): Likewise.
3535         (cos_downward_test_data): Likewise.
3536         (cos_upward_test_data): Likewise.
3537         (cosh_test_data): Likewise.
3538         (cosh_tonearest_test_data): Likewise.
3539         (cosh_towardzero_test_data): Likewise.
3540         (cosh_downward_test_data): Likewise.
3541         (cosh_upward_test_data): Likewise.
3542         (cpow_test_data): Likewise.
3543         (cproj_test_data): Likewise.
3544         (creal_test_data): Likewise.
3545         (csin_test_data): Likewise.
3546         (csinh_test_data): Likewise.
3547         (csqrt_test_data): Likewise.
3548         (ctan_test_data): Likewise.
3549         (ctan_tonearest_test_data): Likewise.
3550         (ctan_towardzero_test_data): Likewise.
3551         (ctan_downward_test_data): Likewise.
3552         (ctan_upward_test_data): Likewise.
3553         (ctanh_test_data): Likewise.
3554         (ctanh_tonearest_test_data): Likewise.
3555         (ctanh_towardzero_test_data): Likewise.
3556         (ctanh_downward_test_data): Likewise.
3557         (ctanh_upward_test_data): Likewise.
3558         (erf_test_data): Likewise.
3559         (erfc_test_data): Likewise.
3560         (exp_test_data): Likewise.
3561         (exp_tonearest_test_data): Likewise.
3562         (exp_towardzero_test_data): Likewise.
3563         (exp_downward_test_data): Likewise.
3564         (exp_upward_test_data): Likewise.
3565         (exp10_test_data): Likewise.
3566         (exp2_test_data): Likewise.
3567         (expm1_test_data): Likewise.
3568         (fabs_test_data): Likewise.
3569         (fdim_test_data): Likewise.
3570         (finite_test_data): Likewise.
3571         (floor_test_data): Likewise.
3572         (fma_test_data): Likewise.
3573         (fma_towardzero_test_data): Likewise.
3574         (fma_downward_test_data): Likewise.
3575         (fma_upward_test_data): Likewise.
3576         (fmax_test_data): Likewise.
3577         (fmin_test_data): Likewise.
3578         (fmod_test_data): Likewise.
3579         (fpclassify_test_data): Likewise.
3580         (frexp_test_data): Likewise.
3581         (gamma_test_data): Likewise.
3582         (hypot_test_data): Likewise.
3583         (ilogb_test_data): Likewise.
3584         (isfinite_test_data): Likewise.
3585         (isgreater_test_data): Likewise.
3586         (isgreaterequal_test_data): Likewise.
3587         (isinf_test_data): Likewise.
3588         (isless_test_data): Likewise.
3589         (islessequal_test_data): Likewise.
3590         (islessgreater_test_data): Likewise.
3591         (isnan_test_data): Likewise.
3592         (isnormal_test_data): Likewise.
3593         (issignaling_test_data): Likewise.
3594         (isunordered_test_data): Likewise.
3595         (j0_test_data): Likewise.
3596         (j1_test_data): Likewise.
3597         (jn_test_data): Likewise.
3598         (ldexp_test_data): Likewise.
3599         (lgamma_test_data): Likewise.
3600         (lrint_test_data): Likewise.
3601         (lrint_tonearest_test_data): Likewise.
3602         (lrint_towardzero_test_data): Likewise.
3603         (lrint_downward_test_data): Likewise.
3604         (lrint_upward_test_data): Likewise.
3605         (llrint_test_data): Likewise.
3606         (llrint_tonearest_test_data): Likewise.
3607         (llrint_towardzero_test_data): Likewise.
3608         (llrint_downward_test_data): Likewise.
3609         (llrint_upward_test_data): Likewise.
3610         (log_test_data): Likewise.
3611         (log10_test_data): Likewise.
3612         (log1p_test_data): Likewise.
3613         (log2_test_data): Likewise.
3614         (logb_test_data): Likewise.
3615         (logb_downward_test_data): Likewise.
3616         (lround_test_data): Likewise.
3617         (llround_test_data): Likewise.
3618         (modf_test_data): Likewise.
3619         (nearbyint_test_data): Likewise.
3620         (nextafter_test_data): Likewise.
3621         (nexttoward_test_data): Likewise.
3622         (pow_test_data): Likewise.
3623         (pow_tonearest_test_data): Likewise.
3624         (pow_towardzero_test_data): Likewise.
3625         (pow_downward_test_data): Likewise.
3626         (pow_upward_test_data): Likewise.
3627         (remainder_test_data): Likewise.
3628         (remainder_tonearest_test_data): Likewise.
3629         (remainder_towardzero_test_data): Likewise.
3630         (remainder_downward_test_data): Likewise.
3631         (remainder_upward_test_data): Likewise.
3632         (remquo_test_data): Likewise.
3633         (rint_test_data): Likewise.
3634         (rint_tonearest_test_data): Likewise.
3635         (rint_towardzero_test_data): Likewise.
3636         (rint_downward_test_data): Likewise.
3637         (rint_upward_test_data): Likewise.
3638         (round_test_data): Likewise.
3639         (scalb_test_data): Likewise.
3640         (scalbn_test_data): Likewise.
3641         (scalbln_test_data): Likewise.
3642         (signbit_test_data): Likewise.
3643         (sin_test_data): Likewise.
3644         (sin_tonearest_test_data): Likewise.
3645         (sin_towardzero_test_data): Likewise.
3646         (sin_downward_test_data): Likewise.
3647         (sin_upward_test_data): Likewise.
3648         (sincos_test_data): Likewise.
3649         (sinh_test_data): Likewise.
3650         (sinh_tonearest_test_data): Likewise.
3651         (sinh_towardzero_test_data): Likewise.
3652         (sinh_downward_test_data): Likewise.
3653         (sinh_upward_test_data): Likewise.
3654         (sqrt_test_data): Likewise.
3655         (tan_test_data): Likewise.
3656         (tan_tonearest_test_data): Likewise.
3657         (tan_towardzero_test_data): Likewise.
3658         (tan_downward_test_data): Likewise.
3659         (tan_upward_test_data): Likewise.
3660         (tanh_test_data): Likewise.
3661         (tgamma_test_data): Likewise.
3662         (trunc_test_data): Likewise.
3663         (y0_test_data): Likewise.
3664         (y1_test_data): Likewise.
3665         (yn_test_data): Likewise.
3666         (significand_test_data): Likewise.
3667
3668         * math/gen-libm-test.pl (@functions): Remove variable.
3669         (generate_testfile): Don't handle START and END lines.
3670         * math/libm-test.inc (START): New macro.
3671         (END): Likewise.
3672         (END_COMPLEX): Likewise.
3673         (acos_test): Use END macro without arguments.
3674         (acos_test_tonearest): Likewise.
3675         (acos_test_towardzero): Likewise.
3676         (acos_test_downward): Likewise.
3677         (acos_test_upward): Likewise.
3678         (acosh_test): Likewise.
3679         (asin_test): Likewise.
3680         (asin_test_tonearest): Likewise.
3681         (asin_test_towardzero): Likewise.
3682         (asin_test_downward): Likewise.
3683         (asin_test_upward): Likewise.
3684         (asinh_test): Likewise.
3685         (atan_test): Likewise.
3686         (atanh_test): Likewise.
3687         (atan2_test): Likewise.
3688         (cabs_test): Likewise.
3689         (cacos_test): Use END_COMPLEX macro without arguments.
3690         (cacosh_test): Likewise.
3691         (carg_test): Use END macro without arguments.
3692         (casin_test): Use END_COMPLEX macro without arguments.
3693         (casinh_test): Likewise.
3694         (catan_test): Likewise.
3695         (catanh_test): Likewise.
3696         (cbrt_test): Use END macro without arguments.
3697         (ccos_test): Use END_COMPLEX macro without arguments.
3698         (ccosh_test): Likewise.
3699         (ceil_test): Use END macro without arguments.
3700         (cexp_test): Use END_COMPLEX macro without arguments.
3701         (cimag_test): Use END macro without arguments.
3702         (clog_test): Use END_COMPLEX macro without arguments.
3703         (clog10_test): Likewise.
3704         (conj_test): Likewise.
3705         (copysign_test): Use END macro without arguments.
3706         (cos_test): Likewise.
3707         (cos_test_tonearest): Likewise.
3708         (cos_test_towardzero): Likewise.
3709         (cos_test_downward): Likewise.
3710         (cos_test_upward): Likewise.
3711         (cosh_test): Likewise.
3712         (cosh_test_tonearest): Likewise.
3713         (cosh_test_towardzero): Likewise.
3714         (cosh_test_downward): Likewise.
3715         (cosh_test_upward): Likewise.
3716         (cpow_test): Use END_COMPLEX macro without arguments.
3717         (cproj_test): Likewise.
3718         (creal_test): Use END macro without arguments.
3719         (csin_test): Use END_COMPLEX macro without arguments.
3720         (csinh_test): Likewise.
3721         (csqrt_test): Likewise.
3722         (ctan_test): Likewise.
3723         (ctan_test_tonearest): Likewise.
3724         (ctan_test_towardzero): Likewise.
3725         (ctan_test_downward): Likewise.
3726         (ctan_test_upward): Likewise.
3727         (ctanh_test): Likewise.
3728         (ctanh_test_tonearest): Likewise.
3729         (ctanh_test_towardzero): Likewise.
3730         (ctanh_test_downward): Likewise.
3731         (ctanh_test_upward): Likewise.
3732         (erf_test): Use END macro without arguments.
3733         (erfc_test): Likewise.
3734         (exp_test): Likewise.
3735         (exp_test_tonearest): Likewise.
3736         (exp_test_towardzero): Likewise.
3737         (exp_test_downward): Likewise.
3738         (exp_test_upward): Likewise.
3739         (exp10_test): Likewise.
3740         (exp2_test): Likewise.
3741         (expm1_test): Likewise.
3742         (fabs_test): Likewise.
3743         (fdim_test): Likewise.
3744         (finite_test): Likewise.
3745         (floor_test): Likewise.
3746         (fma_test): Likewise.
3747         (fma_test_towardzero): Likewise.
3748         (fma_test_downward): Likewise.
3749         (fma_test_upward): Likewise.
3750         (fmax_test): Likewise.
3751         (fmin_test): Likewise.
3752         (fmod_test): Likewise.
3753         (fpclassify_test): Likewise.
3754         (frexp_test): Likewise.
3755         (gamma_test): Likewise.
3756         (hypot_test): Likewise.
3757         (ilogb_test): Likewise.
3758         (isfinite_test): Likewise.
3759         (isgreater_test): Likewise.
3760         (isgreaterequal_test): Likewise.
3761         (isinf_test): Likewise.
3762         (isless_test): Likewise.
3763         (islessequal_test): Likewise.
3764         (islessgreater_test): Likewise.
3765         (isnan_test): Likewise.
3766         (isnormal_test): Likewise.
3767         (issignaling_test): Likewise.
3768         (isunordered_test): Likewise.
3769         (j0_test): Likewise.
3770         (j1_test): Likewise.
3771         (jn_test): Likewise.
3772         (ldexp_test): Likewise.
3773         (lgamma_test): Likewise.
3774         (lrint_test): Likewise.
3775         (lrint_test_tonearest): Likewise.
3776         (lrint_test_towardzero): Likewise.
3777         (lrint_test_downward): Likewise.
3778         (lrint_test_upward): Likewise.
3779         (llrint_test): Likewise.
3780         (llrint_test_tonearest): Likewise.
3781         (llrint_test_towardzero): Likewise.
3782         (llrint_test_downward): Likewise.
3783         (llrint_test_upward): Likewise.
3784         (log_test): Likewise.
3785         (log10_test): Likewise.
3786         (log1p_test): Likewise.
3787         (log2_test): Likewise.
3788         (logb_test): Likewise.
3789         (logb_test_downward): Likewise.
3790         (lround_test): Likewise.
3791         (llround_test): Likewise.
3792         (modf_test): Likewise.
3793         (nearbyint_test): Likewise.
3794         (nextafter_test): Likewise.
3795         (nexttoward_test): Likewise.
3796         (pow_test): Likewise.
3797         (pow_test_tonearest): Likewise.
3798         (pow_test_towardzero): Likewise.
3799         (pow_test_downward): Likewise.
3800         (pow_test_upward): Likewise.
3801         (remainder_test): Likewise.
3802         (remainder_test_tonearest): Likewise.
3803         (remainder_test_towardzero): Likewise.
3804         (remainder_test_downward): Likewise.
3805         (remainder_test_upward): Likewise.
3806         (remquo_test): Likewise.
3807         (rint_test): Likewise.
3808         (rint_test_tonearest): Likewise.
3809         (rint_test_towardzero): Likewise.
3810         (rint_test_downward): Likewise.
3811         (rint_test_upward): Likewise.
3812         (round_test): Likewise.
3813         (scalb_test): Likewise.
3814         (scalbn_test): Likewise.
3815         (scalbln_test): Likewise.
3816         (signbit_test): Likewise.
3817         (sin_test): Likewise.
3818         (sin_test_tonearest): Likewise.
3819         (sin_test_towardzero): Likewise.
3820         (sin_test_downward): Likewise.
3821         (sin_test_upward): Likewise.
3822         (sincos_test): Likewise.
3823         (sinh_test): Likewise.
3824         (sinh_test_tonearest): Likewise.
3825         (sinh_test_towardzero): Likewise.
3826         (sinh_test_downward): Likewise.
3827         (sinh_test_upward): Likewise.
3828         (sqrt_test): Likewise.
3829         (tan_test): Likewise.
3830         (tan_test_tonearest): Likewise.
3831         (tan_test_towardzero): Likewise.
3832         (tan_test_downward): Likewise.
3833         (tan_test_upward): Likewise.
3834         (tanh_test): Likewise.
3835         (tgamma_test): Likewise.
3836         (trunc_test): Likewise.
3837         (y0_test): Likewise.
3838         (y1_test): Likewise.
3839         (yn_test): Likewise.
3840         (significand_test): Likewise.
3841
3842 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
3843
3844         [BZ #15381]
3845         * libio/genops.c (_IO_no_init): Initialize wide struct info.
3846
3847 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
3848
3849         [BZ #14894]
3850         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
3851         __ppc_mdoio and __ppc_mdoom.
3852         * manual/platform.texi: Document new functions __ppc_yield,
3853         __ppc_mdoio and __ppc_mdoom.
3854
3855 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
3856
3857         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
3858         (main): Mention "tls" pseudo-hwcap is legacy.
3859         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
3860
3861 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
3862
3863         * math/gen-libm-test.pl (parse_args): Output only string of
3864         arguments as text for test name, not full call or descriptions of
3865         tests for extra outputs.
3866         (generate_testfile): Do not pass function name to parse_args.
3867         Generate this_func variable from START.
3868         * math/libm-test.inc (struct test_f_f_data): Rename test_name
3869         field to arg_str.
3870         (struct test_ff_f_data): Likewise.
3871         (test_ff_f_data_nexttoward): Likewise.
3872         (struct test_fi_f_data): Likewise.
3873         (struct test_fl_f_data): Likewise.
3874         (struct test_if_f_data): Likewise.
3875         (struct test_fff_f_data): Likewise.
3876         (struct test_c_f_data): Likewise.
3877         (struct test_f_f1_data): Likewise.  Remove field extra_name.
3878         (struct test_fF_f1_data): Likewise.
3879         (struct test_ffI_f1_data): Likewise.
3880         (struct test_c_c_data): Rename test_name field to arg_str.
3881         (struct test_cc_c_data): Likewise.
3882         (struct test_f_i_data): Likewise.
3883         (struct test_ff_i_data): Likewise.
3884         (struct test_f_l_data): Likewise.
3885         (struct test_f_L_data): Likewise.
3886         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
3887         and extra2_name.
3888         (COMMON_TEST_SETUP): New macro.
3889         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
3890         (COMMON_TEST_CLEANUP): Likewise.
3891         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
3892         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
3893         macros.
3894         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
3895         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
3896         macros.
3897         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
3898         (RUN_TEST_fff_f): Take argument string.  Call new setup and
3899         cleanup macros.
3900         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
3901         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
3902         macros.
3903         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
3904         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
3905         macros.
3906         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
3907         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
3908         cleanup macros.
3909         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
3910         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
3911         cleanup macros.
3912         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
3913         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
3914         cleanup macros.
3915         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
3916         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
3917         macros.
3918         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
3919         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
3920         macros.
3921         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
3922         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
3923         macros.
3924         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
3925         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
3926         cleanup macros.
3927         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
3928         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
3929         cleanup macros.
3930         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
3931         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
3932         macros.
3933         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
3934         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
3935         cleanup macros.
3936         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
3937         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
3938         macros.
3939         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
3940         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
3941         macros.
3942         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
3943         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
3944         cleanup macros.
3945         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
3946
3947 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3948
3949         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
3950         to _sifields.sigfault.
3951         (si_addr_lsb): Define new macro.
3952         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
3953         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3954         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
3955
3956 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
3957
3958         [BZ #15441]
3959         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
3960         returns -1.
3961         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
3962         null return -1.
3963         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
3964         loading the domain.
3965
3966 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
3967
3968         * math/gen-libm-test.pl (parse_args): Do not include expected
3969         result in test name.
3970         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
3971         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3972         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3973         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3974         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3976
3977 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3978
3979         * benchtests/Makefile: Sort function entries.
3980
3981         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
3982         tanh, asinh, acosh, atanh.
3983         * benchtests/acos-inputs: New file.
3984         * benchtests/acosh-inputs: New file.
3985         * benchtests/asin-inputs: New file.
3986         * benchtests/asinh-inputs: New file.
3987         * benchtests/atanh-inputs: New file.
3988         * benchtests/cosh-inputs: New file.
3989         * benchtests/log-inputs: New file.
3990         * benchtests/sinh-inputs: New file.
3991         * benchtests/tanh-inputs: New file.
3992
3993 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
3994
3995         [BZ #15339]
3996         * posix/tst-getaddrinfo4.c: New test.
3997         * posix/Makefile (tests): Add it.
3998
3999 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4000
4001         [BZ #15339]
4002         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
4003         when no services were used.
4004         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
4005         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
4006
4007 2013-05-21  Andreas Schwab  <schwab@suse.de>
4008
4009         [BZ #15014]
4010         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
4011         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
4012         successful.
4013         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
4014         redundant variable declarations and reallocation of buffer when
4015         parsing as IPv6 address.  Always set NSS status when called from
4016         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
4017         buffer too small.  Correct computation of needed size.
4018         * nss/Makefile (tests): Add test-digits-dots.
4019         * nss/test-digits-dots.c: New test.
4020
4021 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4022
4023         * benchtests/Makefile: Remove instructions for adding
4024         benchmark tests.
4025         * benchtests/README: New file to explain how to execute and
4026         enhance the benchmark tests.
4027
4028 2013-05-21  Andreas Schwab  <schwab@suse.de>
4029
4030         [BZ #15493]
4031         * setjmp/Makefile (tests): Add tst-sigsetjmp.
4032         * setjmp/tst-sigsetjmp.c: New test.
4033
4034 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4035
4036         * sysdeps/x86_64/memset.S (memset): New implementation.
4037         (__bzero): Likewise.
4038         (__memset_tail): New function.
4039
4040 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4041
4042         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
4043         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
4044         __memcpy_sse2_unaligned ifunc selection.
4045         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
4046         Add memcpy-sse2-unaligned.S.
4047         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4048         Add: __memcpy_sse2_unaligned.
4049
4050 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
4051
4052         [BZ #15490]
4053         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4054         math_force_eval before restoring floating-point envrionment.
4055         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
4056         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4057         Likewise.
4058         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
4059         <math_private.h>.
4060         (__nearbyintl): Use math_force_eval before restoring
4061         floating-point environment.
4062         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
4063
4064         * math/gen-libm-test.pl (special_functions): Remove.
4065         (parse_args): Don't handle TEST_extra.  Handle functions with no
4066         return value.
4067         * math/libm-test.inc (struct test_sincos_data): Replace with
4068         struct test_fFF_11_data.
4069         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
4070         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
4071         (sincos_test_data): Change element type to struct
4072         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
4073         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
4074         RUN_TEST_LOOP_sincos.
4075         * math/README.libm-test: Don't mention special handling of
4076         individual functions.
4077         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
4078         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4079         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4080         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4081         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4083
4084         * math/gen-libm-test.pl (get_variable): Remove function.
4085         (parse_args): Don't show pointer parameters to call in test
4086         names.  Use "extra output N" in test names for extra outputs
4087         rather than naming variables.
4088
4089 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
4090
4091         [BZ #15488]
4092         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
4093         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
4094         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
4095         double tests.
4096         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
4097         disable.
4098         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
4099         check_long_double.
4100
4101         * math/gen-libm-test.pl (@tests): Remove variable.
4102         ($count): Likewise.
4103         (new_test): Remove function.
4104         (show_exceptions): New function.
4105         (special_functions): Use show_exceptions instead of new_test.
4106         (parse_args): Likewise.
4107         (generate_testfile): Pass only function name in generated call to
4108         print_max_error or print_complex_max_error.
4109         (get_ulps): Do not handle complex tests specially.
4110         (output_test): Rename to ...
4111         (get_all_ulps_for_test): ... this.  Return a string rather than
4112         printing to a file.  Require ulps to be present.
4113         (output_ulps): Generate arrays rather than #defines.
4114         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
4115         (struct ulp_data): New type.
4116         (BUILD_COMPLEX_ULP): Remove macro.
4117         (compare_ulp_data): New function.
4118         (find_ulps): Likewise.
4119         (find_test_ulps): Likewise.
4120         (find_function_ulps): Likewise.
4121         (find_complex_function_ulps): Likewise.
4122         (print_max_error): Determine allowed ulps using
4123         find_function_ulps.
4124         (print_complex_max_error): Determine allowed ulps using
4125         find_complex_function_ulps.
4126         (check_float_internal): Determine max ulps using find_test_ulps.
4127         (check_float): Do not take max_ulp parameter.  Update call to
4128         check_float_internal.
4129         (check_complex): Likewise.
4130         (check_int): Do not take max_ulp parameter.
4131         (check_long): Likewise.
4132         (check_bool): Likewise.
4133         (check_longlong): Likewise.
4134         (struct test_f_f_data): Remove max_ulp field.
4135         (struct test_ff_f_data): Likewise.
4136         (struct test_ff_f_data_nexttoward): Likewise.
4137         (struct test_fi_f_data): Likewise.
4138         (struct test_fl_f_data): Likewise.
4139         (struct test_if_f_data): Likewise.
4140         (struct test_fff_f_data): Likewise.
4141         (struct test_c_f_data): Likewise.
4142         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
4143         (struct test_fF_f1_data): Likewise.
4144         (struct test_ffI_f1_data): Likewise.
4145         (struct test_c_c_data): Remove max_ulp field.
4146         (struct test_cc_c_data): Likewise.
4147         (struct test_f_i_data): Likewise.
4148         (struct test_ff_i_data): Likewise.
4149         (struct test_f_l_data): Likewise.
4150         (struct test_f_L_data): Likewise.
4151         (struct test_sincos_data): Likewise.
4152         (RUN_TEST_f_f): Do not handle ulps.
4153         (RUN_TEST_LOOP_f_f): Likewise.
4154         (RUN_TEST_2_f): Likewise.
4155         (RUN_TEST_LOOP_2_f): Likewise.
4156         (RUN_TEST_fff_f): Likewise.
4157         (RUN_TEST_LOOP_fff_f): Likewise.
4158         (RUN_TEST_c_f): Likewise.
4159         (RUN_TEST_LOOP_c_f): Likewise.
4160         (RUN_TEST_f_f1): Likewise.
4161         (RUN_TEST_LOOP_f_f1): Likewise.
4162         (RUN_TEST_fF_f1): Likewise.
4163         (RUN_TEST_LOOP_fF_f1): Likewise.
4164         (RUN_TEST_fI_f1): Likewise.
4165         (RUN_TEST_LOOP_fI_f1): Likewise.
4166         (RUN_TEST_ffI_f1): Likewise.
4167         (RUN_TEST_LOOP_ffI_f1): Likewise.
4168         (RUN_TEST_c_c): Likewise.
4169         (RUN_TEST_LOOP_c_c): Likewise.
4170         (RUN_TEST_cc_c): Likewise.
4171         (RUN_TEST_LOOP_cc_c): Likewise.
4172         (RUN_TEST_f_i): Likewise.
4173         (RUN_TEST_LOOP_f_i): Likewise.
4174         (RUN_TEST_f_i_tg): Likewise.
4175         (RUN_TEST_LOOP_f_i_tg): Likewise.
4176         (RUN_TEST_ff_i_tg): Likewise.
4177         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4178         (RUN_TEST_f_b): Likewise.
4179         (RUN_TEST_LOOP_f_b): Likewise.
4180         (RUN_TEST_f_b_tg): Likewise.
4181         (RUN_TEST_LOOP_f_b_tg): Likewise.
4182         (RUN_TEST_f_l): Likewise.
4183         (RUN_TEST_LOOP_f_l): Likewise.
4184         (RUN_TEST_f_L): Likewise.
4185         (RUN_TEST_LOOP_f_L): Likewise.
4186         (RUN_TEST_sincos): Likewise.
4187         (RUN_TEST_LOOP_sincos): Likewise.
4188
4189 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
4190
4191         [BZ #15480]
4192         [BZ #15485]
4193         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
4194         main case of finite arguments, set rounding mode to FE_TONEAREST
4195         and discard exceptions.
4196         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
4197         exceptions.
4198         (remainder_tonearest_test_data): New variable.
4199         (remainder_test_tonearest): New function.
4200         (remainder_towardzero_test_data): New variable.
4201         (remainder_test_towardzero): New function.
4202         (remainder_downward_test_data): New variable.
4203         (remainder_test_downward): New function.
4204         (remainder_upward_test_data): New variable.
4205         (remainder_test_upward): New function.
4206         (main): Call the new test functions.
4207
4208         * math/libm-test.inc (struct test_f_f1_data): Remove field
4209         extra_init.
4210         (struct test_fF_f1_data): Likewise.
4211         (struct test_ffI_f1_data): Likewise.
4212         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
4213         based on value of EXTRA_EXPECTED.
4214         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4215         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
4216         EXTRA_VAR based on value of EXTRA_EXPECTED.
4217         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4218         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
4219         EXTRA_VAR based on value of EXTRA_EXPECTED.
4220         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4221         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
4222         EXTRA_VAR based on value of EXTRA_EXPECTED.
4223         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4224         * math/gen-libm-test.pl (parse_args): Don't output initializers
4225         for extra output values.
4226
4227         * math/libm-test.inc (check_int): Expect result to be exactly
4228         equal to expected value and do not handle ulps.
4229         (check_long): Likewise.
4230         (check_longlong): Likewise.
4231
4232         * math/libm-test.inc (ceil_test_data): Test for "inexact"
4233         exceptions.
4234         (cimag_test_data): Likewise.
4235         (conj_test_data): Likewise.
4236         (copysign_test_data): Likewise.
4237         (cproj_test_data): Likewise.
4238         (creal_test_data): Likewise.
4239         (fabs_test_data): Likewise.
4240         (fdim_test_data): Likewise.
4241         (finite_test_data): Likewise.
4242         (floor_test_data): Likewise.
4243         (fmax_test_data): Likewise.
4244         (fmin_test_data): Likewise.
4245         (fmod_test_data): Likewise.
4246         (fpclassify_test_data): Likewise.
4247         (frexp_test_data): Likewise.
4248         (ilogb_test_data): Likewise.
4249         (isfinite_test_data): Likewise.
4250         (isgreater_test_data): Likewise.
4251         (isgreaterequal_test_data): Likewise.
4252         (isinf_test_data): Likewise.
4253         (isless_test_data): Likewise.
4254         (islessequal_test_data): Likewise.
4255         (islessgreater_test_data): Likewise.
4256         (isnan_test_data): Likewise.
4257         (isnormal_test_data): Likewise.
4258         (issignaling_test_data): Likewise.
4259         (isunordered_test_data): Likewise.
4260         (ldexp_test_data): Likewise.
4261         (lrint_test_data): Likewise.
4262         (lrint_test_data) [TEST_FLOAT]: Disable one test.
4263         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
4264         (lrint_tonearest_test_data): Test for "inexact" exceptions.
4265         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4266         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
4267         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4268         test input.
4269         (lrint_towardzero_test_data): Test for "inexact" exceptions.
4270         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4271         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
4272         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
4273         that test input.
4274         (lrint_downward_test_data): Test for "inexact" exceptions.
4275         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
4276         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
4277         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
4278         test input.
4279         (lrint_upward_test_data): Test for "inexact" exceptions.
4280         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
4281         test input.
4282         (llrint_test_data): Test for "inexact" exceptions.
4283         (llrint_test_data) [TEST_FLOAT]: Disable one test.
4284         (llrint_tonearest_test_data): Test for "inexact" exceptions.
4285         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
4286         (llrint_towardzero_test_data): Test for "inexact" exceptions.
4287         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
4288         (llrint_downward_test_data): Test for "inexact" exceptions.
4289         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
4290         (llrint_upward_test_data): Test for "inexact" exceptions.
4291         (logb_test_data): Likewise.
4292         (logb_downward_test_data): Likewise.
4293         (nextafter_test_data): Likewise.
4294         (nexttoward_test_data): Likewise.
4295         (remainder_test_data): Likewise.
4296         (remquo_test_data): Likewise.
4297         (scalbn_test_data): Likewise.
4298         (scalbln_test_data): Likewise.
4299         (signbit_test_data): Likewise.
4300         (sqrt_test_data): Likewise.
4301         (significand_test_data): Likewise.
4302
4303 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4304
4305         [BZ #15424]
4306         * benchtests/bench-modf.c (struct args): Mark arg0 as
4307         volatile.
4308         * scripts/bench.pl: Mark members of struct args as volatile.
4309
4310 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4311
4312         [BZ # 15497]
4313         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
4314         negative infinity on POWER6 or lower.
4315         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
4316
4317 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
4318
4319         [BZ #15442]
4320         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
4321         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
4322         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
4323         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
4324         (_FP_SETQNAN): New macro.
4325         (_FP_SETQNAN_SEMIRAW): Likewise.
4326         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
4327         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
4328         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
4329         (FP_EXTEND): Use _FP_FRAC_SNANP.
4330         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
4331         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
4332         into account.
4333         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
4334         New macro.
4335         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
4336         Likewise.
4337
4338 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4339
4340         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
4341         with DIVIDE_BY_ZERO_EXCEPTION.
4342         (gamma_test_data): Likewise.
4343         (lgamma_test_data): Likewise.
4344         (log_test_data): Likewise.
4345         (log10_test_data): Likewise.
4346         (log2_test_data): Likewise.
4347         (tgamma_test_data): Likewise.
4348
4349         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
4350         (acos_test_tonearest): Likewise.
4351         (acos_test_towardzero): Likewise.
4352         (acos_test_downward): Likewise.
4353         (acos_test_upward): Likewise.
4354         (acosh_test): Likewise.
4355         (asin_test): Likewise.
4356         (asin_test_tonearest): Likewise.
4357         (asin_test_towardzero): Likewise.
4358         (asin_test_downward): Likewise.
4359         (asin_test_upward): Likewise.
4360         (asinh_test): Likewise.
4361         (atan_test): Likewise.
4362         (atanh_test): Likewise.
4363         (atan2_test): Likewise.
4364         (cabs_test): Likewise.
4365         (cacos_test): Likewise.
4366         (cacosh_test): Likewise.
4367         (casin_test): Likewise.
4368         (casinh_test): Likewise.
4369         (catan_test): Likewise.
4370         (catanh_test): Likewise.
4371         (cbrt_test): Likewise.
4372         (ccos_test): Likewise.
4373         (ccosh_test): Likewise.
4374         (cexp_test): Likewise.
4375         (clog_test): Likewise.
4376         (clog10_test): Likewise.
4377         (cos_test): Likewise.
4378         (cos_test_tonearest): Likewise.
4379         (cos_test_towardzero): Likewise.
4380         (cos_test_downward): Likewise.
4381         (cos_test_upward): Likewise.
4382         (cosh_test): Likewise.
4383         (cosh_test_tonearest): Likewise.
4384         (cosh_test_towardzero): Likewise.
4385         (cosh_test_downward): Likewise.
4386         (cosh_test_upward): Likewise.
4387         (cpow_test): Likewise.
4388         (csin_test): Likewise.
4389         (csinh_test): Likewise.
4390         (csqrt_test): Likewise.
4391         (ctan_test): Likewise.
4392         (ctan_test_tonearest): Likewise.
4393         (ctan_test_towardzero): Likewise.
4394         (ctan_test_downward): Likewise.
4395         (ctan_test_upward): Likewise.
4396         (ctanh_test): Likewise.
4397         (ctanh_test_tonearest): Likewise.
4398         (ctanh_test_towardzero): Likewise.
4399         (ctanh_test_downward): Likewise.
4400         (ctanh_test_upward): Likewise.
4401         (erf_test): Likewise.
4402         (erfc_test): Likewise.
4403         (exp_test): Likewise.
4404         (exp_test_tonearest): Likewise.
4405         (exp_test_towardzero): Likewise.
4406         (exp_test_downward): Likewise.
4407         (exp_test_upward): Likewise.
4408         (exp10_test): Likewise.
4409         (exp2_test): Likewise.
4410         (expm1_test): Likewise.
4411         (fmod_test): Likewise.
4412         (gamma_test): Likewise.
4413         (hypot_test): Likewise.
4414         (j0_test): Likewise.
4415         (j1_test): Likewise.
4416         (jn_test): Likewise.
4417         (lgamma_test): Likewise.
4418         (log_test): Likewise.
4419         (log10_test): Likewise.
4420         (log1p_test): Likewise.
4421         (log2_test): Likewise.
4422         (logb_test_downward): Likewise.
4423         (pow_test): Likewise.
4424         (pow_test_tonearest): Likewise.
4425         (pow_test_towardzero): Likewise.
4426         (pow_test_downward): Likewise.
4427         (pow_test_upward): Likewise.
4428         (remainder_test): Likewise.
4429         (remquo_test): Likewise.
4430         (sin_test): Likewise.
4431         (sin_test_tonearest): Likewise.
4432         (sin_test_towardzero): Likewise.
4433         (sin_test_downward): Likewise.
4434         (sin_test_upward): Likewise.
4435         (sincos_test): Likewise.
4436         (sinh_test): Likewise.
4437         (sinh_test_tonearest): Likewise.
4438         (sinh_test_towardzero): Likewise.
4439         (sinh_test_downward): Likewise.
4440         (sinh_test_upward): Likewise.
4441         (sqrt_test): Likewise.
4442         (tan_test): Likewise.
4443         (tan_test_tonearest): Likewise.
4444         (tan_test_towardzero): Likewise.
4445         (tan_test_downward): Likewise.
4446         (tan_test_upward): Likewise.
4447         (tanh_test): Likewise.
4448         (tgamma_test): Likewise.
4449         (y0_test): Likewise.
4450         (y1_test): Likewise.
4451         (yn_test): Likewise.
4452
4453         * math/gen-libm-test.pl (adjust_arg): Remove function.
4454         (special_function): Remove argument $in_func.  Only handle
4455         generating output for tables of tests, not inside functions.
4456         (parse_args): Likewise.
4457         (generate_testfile): Remove variable $in_func.  Update call to
4458         parse_args.
4459         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
4460         (MINUS_ZERO_INIT): Rename macro to minus_zero.
4461         (PLUS_INFTY_INIT): Rename macro to plus_infty.
4462         (MINUS_INFTY_INIT): Rename macro to minus_infty.
4463         (QNAN_VALUE_INIT): Rename macro to qnan_value.
4464         (MAX_VALUE_INIT): Rename macro to max_value.
4465         (MIN_VALUE_INIT): Rename macro to min_value.
4466         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
4467         (plus_zero): Remove variable.
4468         (minus_zero): Likewise.
4469         (plus_infty): Likewise.
4470         (minus_infty): Likewise.
4471         (qnan_value): Likewise.
4472         (max_value): Likewise.
4473         (min_value): Likewise.
4474         (min_subnorm_value): Likewise.
4475
4476 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4477
4478         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
4479         uint64_t or uint32_t usage.
4480         * crypt/sha256-block.c: Likewise.
4481         * crypt/sha256-crypt.c: Likewise.
4482         * crypt/sha256.c: Likewise.
4483         * crypt/sha512-block.c: Likewise.
4484         * crypt/sha512-crypt.c: Likewise.
4485         * crypt/sha512.c: Likewise.
4486         * debug/backtrace-tst.c: Likewise.
4487         * debug/pcprofiledump.c: Likewise.
4488         * elf/cache.c: Likewise.
4489         * elf/dl-cache.c: Likewise.
4490         * elf/dl-misc.c: Likewise.
4491         * elf/dl-profile.c: Likewise.
4492         * elf/dl-support.c: Likewise.
4493         * elf/ldconfig.c: Likewise.
4494         * elf/sprof.c: Likewise.
4495         * iconv/dummy-repertoire.c: Likewise.
4496         * iconv/iconv_charmap.c: Likewise.
4497         * iconv/skeleton.c: Likewise.
4498         * iconvdata/8bit-generic.c: Likewise.
4499         * iconvdata/cp737.h: Likewise.
4500         * iconvdata/cp775.h: Likewise.
4501         * iconvdata/ibm1008.h: Likewise.
4502         * iconvdata/ibm1025.h: Likewise.
4503         * iconvdata/ibm1046.h: Likewise.
4504         * iconvdata/ibm1097.h: Likewise.
4505         * iconvdata/ibm1112.h: Likewise.
4506         * iconvdata/ibm1122.h: Likewise.
4507         * iconvdata/ibm1123.h: Likewise.
4508         * iconvdata/ibm1124.h: Likewise.
4509         * iconvdata/ibm1129.h: Likewise.
4510         * iconvdata/ibm1130.h: Likewise.
4511         * iconvdata/ibm1132.h: Likewise.
4512         * iconvdata/ibm1133.h: Likewise.
4513         * iconvdata/ibm1137.h: Likewise.
4514         * iconvdata/ibm1140.h: Likewise.
4515         * iconvdata/ibm1141.h: Likewise.
4516         * iconvdata/ibm1142.h: Likewise.
4517         * iconvdata/ibm1143.h: Likewise.
4518         * iconvdata/ibm1144.h: Likewise.
4519         * iconvdata/ibm1145.h: Likewise.
4520         * iconvdata/ibm1146.h: Likewise.
4521         * iconvdata/ibm1147.h: Likewise.
4522         * iconvdata/ibm1148.h: Likewise.
4523         * iconvdata/ibm1149.h: Likewise.
4524         * iconvdata/ibm1153.h: Likewise.
4525         * iconvdata/ibm1154.h: Likewise.
4526         * iconvdata/ibm1155.h: Likewise.
4527         * iconvdata/ibm1156.h: Likewise.
4528         * iconvdata/ibm1157.h: Likewise.
4529         * iconvdata/ibm1158.h: Likewise.
4530         * iconvdata/ibm1160.h: Likewise.
4531         * iconvdata/ibm1161.h: Likewise.
4532         * iconvdata/ibm1162.h: Likewise.
4533         * iconvdata/ibm1163.h: Likewise.
4534         * iconvdata/ibm1164.h: Likewise.
4535         * iconvdata/ibm1166.h: Likewise.
4536         * iconvdata/ibm1167.h: Likewise.
4537         * iconvdata/ibm12712.h: Likewise.
4538         * iconvdata/ibm1390.h: Likewise.
4539         * iconvdata/ibm1399.h: Likewise.
4540         * iconvdata/ibm16804.h: Likewise.
4541         * iconvdata/ibm4517.h: Likewise.
4542         * iconvdata/ibm4899.h: Likewise.
4543         * iconvdata/ibm4909.h: Likewise.
4544         * iconvdata/ibm4971.h: Likewise.
4545         * iconvdata/ibm5347.h: Likewise.
4546         * iconvdata/ibm803.h: Likewise.
4547         * iconvdata/ibm856.h: Likewise.
4548         * iconvdata/ibm901.h: Likewise.
4549         * iconvdata/ibm902.h: Likewise.
4550         * iconvdata/ibm9030.h: Likewise.
4551         * iconvdata/ibm9066.h: Likewise.
4552         * iconvdata/ibm921.h: Likewise.
4553         * iconvdata/ibm922.h: Likewise.
4554         * iconvdata/ibm9448.h: Likewise.
4555         * iconvdata/isiri-3342.h: Likewise.
4556         * iconvdata/jis0201.h: Likewise.
4557         * include/link.h: Likewise.
4558         * include/netdb.h: Likewise.
4559         * inet/check_native.c: Likewise.
4560         * inet/check_pf.c: Likewise.
4561         * inet/getipv4sourcefilter.c: Likewise.
4562         * inet/getnameinfo.c: Likewise.
4563         * inet/getsourcefilter.c: Likewise.
4564         * inet/htonl.c: Likewise.
4565         * inet/setipv4sourcefilter.c: Likewise.
4566         * inet/setsourcefilter.c: Likewise.
4567         * inet/test-inet6_opt.c: Likewise.
4568         * inet/tst-network.c: Likewise.
4569         * locale/C-collate.c: Likewise.
4570         * locale/C-ctype.c: Likewise.
4571         * locale/C-time.c: Likewise.
4572         * locale/C-translit.h: Likewise.
4573         * locale/loadarchive.c: Likewise.
4574         * locale/programs/3level.h: Likewise.
4575         * locale/programs/charmap.c: Likewise.
4576         * locale/programs/charmap.h: Likewise.
4577         * locale/programs/ld-address.c: Likewise.
4578         * locale/programs/ld-collate.c: Likewise.
4579         * locale/programs/ld-ctype.c: Likewise.
4580         * locale/programs/ld-identification.c: Likewise.
4581         * locale/programs/ld-measurement.c: Likewise.
4582         * locale/programs/ld-messages.c: Likewise.
4583         * locale/programs/ld-monetary.c: Likewise.
4584         * locale/programs/ld-name.c: Likewise.
4585         * locale/programs/ld-numeric.c: Likewise.
4586         * locale/programs/ld-paper.c: Likewise.
4587         * locale/programs/ld-telephone.c: Likewise.
4588         * locale/programs/ld-time.c: Likewise.
4589         * locale/programs/linereader.c: Likewise.
4590         * locale/programs/locale.c: Likewise.
4591         * locale/programs/locarchive.c: Likewise.
4592         * locale/programs/locfile.h: Likewise.
4593         * locale/programs/repertoire.c: Likewise.
4594         * locale/programs/simple-hash.c: Likewise.
4595         * locale/programs/simple-hash.h: Likewise.
4596         * malloc/memusage.c: Likewise.
4597         * malloc/memusagestat.c: Likewise.
4598         * nis/nis_defaults.c: Likewise.
4599         * nis/nis_hash.c: Likewise.
4600         * nis/nis_print.c: Likewise.
4601         * nis/nis_xdr.c: Likewise.
4602         * nscd/connections.c: Likewise.
4603         * nscd/hstcache.c: Likewise.
4604         * nscd/nscd_gethst_r.c: Likewise.
4605         * nscd/nscd_getserv_r.c: Likewise.
4606         * nscd/nscd_helper.c: Likewise.
4607         * nscd/servicescache.c: Likewise.
4608         * nss/makedb.c: Likewise.
4609         * nss/nss_db/db-XXX.c: Likewise.
4610         * nss/nss_db/db-initgroups.c: Likewise.
4611         * nss/nss_db/db-netgrp.c: Likewise.
4612         * nss/nss_files/files-network.c: Likewise.
4613         * nss/nss_files/files-parse.c: Likewise.
4614         * posix/bug-regex5.c: Likewise.
4615         * posix/fnmatch_loop.c: Likewise.
4616         * posix/regcomp.c: Likewise.
4617         * posix/regexec.c: Likewise.
4618         * posix/tst-rfc3484-2.c: Likewise.
4619         * posix/tst-rfc3484-3.c: Likewise.
4620         * posix/tst-rfc3484.c: Likewise.
4621         * resolv/nss_dns/dns-canon.c: Likewise.
4622         * resolv/nss_dns/dns-network.c: Likewise.
4623         * resolv/res_init.c: Likewise.
4624         * resolv/res_mkquery.c: Likewise.
4625         * resolv/tst-aton.c: Likewise.
4626         * stdlib/cxa_atexit.c: Likewise.
4627         * stdlib/cxa_finalize.c: Likewise.
4628         * stdlib/gen-fpioconst.c: Likewise.
4629         * stdlib/strtol_l.c: Likewise.
4630         * string/tst-endian.c: Likewise.
4631         * sunrpc/auth_des.c: Likewise.
4632         * sunrpc/clnt_udp.c: Likewise.
4633         * sunrpc/rtime.c: Likewise.
4634         * sunrpc/svcauth_des.c: Likewise.
4635         * sunrpc/xdr.c: Likewise.
4636         * sunrpc/xdr_intXX_t.c: Likewise.
4637         * sunrpc/xdr_rec.c: Likewise.
4638         * sysdeps/generic/ldconfig.h: Likewise.
4639         * sysdeps/generic/ldsodefs.h: Likewise.
4640         * sysdeps/generic/memusage.h: Likewise.
4641         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
4642         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
4643         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
4644         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
4645         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
4646         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4647         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
4648         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
4649         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
4650         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4651         * sysdeps/posix/getaddrinfo.c: Likewise.
4652         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4653         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4654         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
4655         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4656         * sysdeps/powerpc/test-gettimebase.c: Likewise.
4657         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
4658         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
4659         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
4660         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
4661         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
4662         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4663         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4664         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
4665         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
4666         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
4667         * sysdeps/x86_64/dl-tls.h: Likewise.
4668         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
4669         * time/alt_digit.c: Likewise.
4670         * time/era.c: Likewise.
4671         * wcsmbs/tst-c16c32-1.c: Likewise.
4672
4673 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4674
4675         * math/libm-test.inc (struct test_sincos_data): New type.
4676         (RUN_TEST_LOOP_sincos): New macro.
4677         (sincos_test_data): New variable.
4678         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
4679
4680 2013-05-16  Richard Henderson  <rth@redhat.com>
4681
4682         * math/atest-exp2.c (LIMB64): New macro.
4683         (CONSTSZ): New macro.
4684         (mp_exp1, mp_exp_m1, mp_log2): New variables.
4685         (hexdig): Move ...
4686         (print_mpn_fp): ... to function scope.
4687         (read_mpn_hex): Remove.
4688         (get_log2): Remove.
4689         (exp2_mpn): Use mp_log2.
4690         (main): Use mp_exp1.
4691
4692 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
4693
4694         * math/libm-test.inc: Remove comment about not testing "inexact"
4695         exceptions.
4696         (INEXACT_EXCEPTION): New macro.
4697         (NO_INEXACT_EXCEPTION): Likewise.
4698         (INVALID_EXCEPTION_OK): Update value.
4699         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4700         (OVERFLOW_EXCEPTION_OK): Likewise.
4701         (UNDERFLOW_EXCEPTION_OK): Likewise.
4702         (IGNORE_ZERO_INF_SIGN): Likewise.
4703         (ERRNO_UNCHANGED): Likewise.
4704         (ERRNO_EDOM): Likewise.
4705         (ERRNO_ERANGE): Likewise.
4706         (test_exceptions): Handle testing "inexact" exceptions.
4707         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
4708         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
4709         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
4710         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
4711         INEXACT_EXCEPTION.
4712         (rint_towardzero_test_data): Likewise.
4713         (rint_downward_test_data): Likewise.
4714         (rint_upward_test_data): Likewise.
4715
4716         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
4717         with OVERFLOW_EXCEPTION.
4718         (exp10_test_data): Likewise.
4719         (exp2_test_data): Likewise.
4720         (expm1_test_data): Likewise.
4721         (lgamma_test_data): Likewise.
4722         (pow_test_data): Likewise.
4723         (tgamma_test_data): Likewise.
4724         (yn_test_data): Remove duplicate test of overflow.
4725
4726         * math/libm-test.inc (struct test_cc_c_data): New type.
4727         (RUN_TEST_LOOP_cc_c): New macro.
4728         (cpow_test_data): New variable.
4729         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
4730
4731         * math/libm-test.inc (struct test_f_L_data): New type.
4732         (RUN_TEST_LOOP_f_L): New macro.
4733         (llrint_test_data): New variable.
4734         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
4735         (llrint_tonearest_test_data): New variable.
4736         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
4737         (llrint_towardzero_test_data): New variable.
4738         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
4739         (llrint_downward_test_data): New variable.
4740         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
4741         (llrint_upward_test_data): New variable.
4742         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
4743         (llround_test_data): New variable.
4744         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
4745
4746 2013-05-13  Peter Collingbourne  <pcc@google.com>
4747
4748         * math/atest-exp2.c (get_log2): Remove const attribute.
4749
4750 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
4751
4752         * math/libm-test.inc (struct test_f_l_data): New type.
4753         (RUN_TEST_LOOP_f_l): New macro.
4754         (lrint_test_data): New variable.
4755         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
4756         (lrint_tonearest_test_data): New variable.
4757         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
4758         (lrint_towardzero_test_data): New variable.
4759         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
4760         (lrint_downward_test_data): New variable.
4761         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
4762         (lrint_upward_test_data): New variable.
4763         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
4764         (lround_test_data): New variable.
4765         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
4766
4767 2013-05-15  Peter Collingbourne  <pcc@google.com>
4768
4769         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
4770         (EXTRACT_WORDS64) Use where appropriate.
4771         (INSERT_WORDS64) Likewise.
4772
4773         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
4774         constraints with x constraints.
4775         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
4776
4777         * malloc/obstack.c (_obstack_compat): Add initializer.
4778
4779 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4780
4781         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
4782         si_trapno and add si_addr_lsb to _sifields.sigfault.
4783         (si_trapno): Remove macro.
4784         (si_addr_lsb): Define new macro.
4785         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
4786
4787 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
4788
4789         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
4790         instead of TEST_f_l.
4791         (llrint_test_tonearest): Likewise.
4792         (llrint_test_towardzero): Likewise.
4793         (llrint_test_downward): Likewise.
4794         (llrint_test_upward): Likewise.
4795         (llround_test): Likewise.
4796
4797         * math/libm-test.inc (struct test_f_i_data): Add comment.
4798         (RUN_TEST_LOOP_f_b): New macro.
4799         (RUN_TEST_LOOP_f_b_tg): Likewise.
4800         (finite_test_data): New variable.
4801         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
4802         (isfinite_test_data): New variable.
4803         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4804         (isinf_test_data): New variable.
4805         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4806         (isnan_test_data): New variable.
4807         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4808         (isnormal_test_data): New variable.
4809         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4810         (issignaling_test_data): New variable.
4811         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4812         (signbit_test_data): New variable.
4813         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4814
4815         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
4816         with INVALID_EXCEPTION.
4817         (acosh_test_data): Likewise.
4818         (asin_test_data): Likewise.
4819         (atanh_test_data): Likewise.
4820         (fmod_test_data): Likewise.
4821         (log_test_data): Likewise.
4822         (log10_test_data): Likewise.
4823         (log2_test_data): Likewise.
4824         (pow_test_data): Likewise.
4825         (sqrt_test_data): Likewise.
4826         (y0_test_data): Likewise.
4827         (y1_test_data): Likewise.
4828         (yn_test_data): Likewise.
4829
4830         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
4831         function contents.
4832
4833         * math/libm-test.inc (struct test_ff_i_data): New type.
4834         (RUN_TEST_LOOP_ff_i_tg): New macro.
4835         (isgreater_test_data): New variable.
4836         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4837         (isgreaterequal_test_data): New variable.
4838         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4839         (isless_test_data): New variable.
4840         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4841         (islessequal_test_data): New variable.
4842         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4843         (islessgreater_test_data): New variable.
4844         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4845         (isunordered_test_data): New variable.
4846         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4847
4848 2013-05-14  David S. Miller  <davem@davemloft.net>
4849
4850         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4851
4852 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
4853
4854         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
4855
4856         * math/libm-test.inc (struct test_fF_f1_data): Change type of
4857         extra_test to int.
4858         (struct test_f_i_data): Change type of max_ulp to int.
4859
4860         * math/libm-test.inc (test_ffI_f1_data): New type.
4861         (RUN_TEST_LOOP_ffI_f1): New macro.
4862         (remquo_test_data): New variable.
4863         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
4864
4865         * setjmp/tst-setjmp-fp.c: New file.
4866         * setjmp/Makefile (tests): Add tst-setjmp-fp.
4867         (link-libm): New variable.
4868         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
4869
4870         * math/libm-test.inc (struct test_f_i_data): New type.
4871         (RUN_TEST_LOOP_f_i): New macro.
4872         (RUN_TEST_LOOP_f_i_tg): Likewise.
4873         (fpclassify_test_data): New variable.
4874         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
4875         (ilogb_test_data): New variable.
4876         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
4877
4878         * math/libm-test.inc (scalbln_test): Correct function name in END
4879         call.
4880
4881         * math/libm-test.inc (struct test_f_f1_data): Add comment.
4882         (RUN_TEST_LOOP_fI_f1): New macro.
4883         (frexp_test_data): New variable.
4884         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
4885
4886         * math/libm-test.inc (struct test_fF_f1_data): New type.
4887         (RUN_TEST_LOOP_fF_f1): New macro.
4888         (modf_test_data): New variable.
4889         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
4890
4891         * math/libm-test.inc (struct test_f_f1_data): New type.
4892         (RUN_TEST_LOOP_f_f1): New macro.
4893         (gamma_test_data): New variable.
4894         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
4895         (lgamma_test_data): New variable.
4896         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
4897
4898 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
4899
4900         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
4901         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
4902         (main): Comment "tls" pseudo-hwcap.
4903
4904 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
4905
4906         * math/libm-test.inc (struct test_fl_f_data): New type.
4907         (RUN_TEST_LOOP_fl_f): New variable.
4908         (scalbln_test_data): New variable.
4909         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
4910
4911         * math/libm-test.inc (struct test_fi_f_data): New type.
4912         (RUN_TEST_LOOP_fi_f): New macro.
4913         (ldexp_test_data): New variable.
4914         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
4915         (scalbn_test_data): New variable.
4916         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
4917
4918         * math/libm-test.inc (struct test_c_f_data): New type.
4919         (RUN_TEST_LOOP_c_f): New macro.
4920         (cabs_test_data): New variable.
4921         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
4922         (carg_test_data): New variable.
4923         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
4924         (cimag_test_data): New variable.
4925         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
4926         (creal_test_data): New variable.
4927         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
4928
4929         * math/libm-test.inc (struct test_if_f_data): New type.
4930         (RUN_TEST_LOOP_if_f): New macro.
4931         (jn_test_data): New variable.
4932         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
4933         (yn_test_data): New variable.
4934         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
4935
4936         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
4937
4938 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4939
4940         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
4941         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
4942
4943 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
4944
4945         * benchtests/Makefile (CPPFLAGS-nonlib): Add
4946         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
4947         (bench-deps): Add bench-timing.h.
4948         * benchtests-bench-skeleton.c: Include bench-timing.h.
4949         (main): Use TIMING_* macros instead of clock_gettime.
4950         * benchtests/bench-timing.h: New file.
4951
4952         [BZ #14582]
4953         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
4954         Renamed from _LIB_VERSION.
4955         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
4956
4957 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
4958
4959         * math/libm-test.inc (struct test_fff_f_data): New type.
4960         (RUN_TEST_LOOP_fff_f): New macro.
4961         (fma_test_data): New variable.
4962         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
4963         (fma_towardzero_test_data): New variable.
4964         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
4965         (fma_downward_test_data): New variable.
4966         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
4967         (fma_upward_test_data): New variable.
4968         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
4969
4970         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
4971         (struct test_c_c_data): New type.
4972         (RUN_TEST_LOOP_c_c): New macro.
4973         (cacos_test_data): New variable.
4974         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
4975         (cacosh_test_data): New variable.
4976         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
4977         (casin_test_data): New variable.
4978         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
4979         (casinh_test_data): New variable.
4980         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
4981         (catan_test_data): New variable.
4982         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
4983         (catanh_test_data): New variable.
4984         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
4985         (ccos_test_data): New variable.
4986         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
4987         (ccosh_test_data): New variable.
4988         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
4989         (cexp_test_data): New variable.
4990         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
4991         (clog_test_data): New variable.
4992         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
4993         (clog10_test_data): New variable.
4994         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
4995         (conj_test_data): New variable.
4996         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
4997         (cproj_test_data): New variable.
4998         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
4999         (csin_test_data): New variable.
5000         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
5001         (csinh_test_data): New variable.
5002         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
5003         (csqrt_test_data): New variable.
5004         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
5005         (ctan_test_data): New variable.
5006         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
5007         (ctan_tonearest_test_data): New variable.
5008         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5009         (ctan_towardzero_test_data): New variable.
5010         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5011         (ctan_downward_test_data): New variable.
5012         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5013         (ctan_upward_test_data): New variable.
5014         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5015         (ctanh_test_data): New variable.
5016         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
5017         (ctanh_tonearest_test_data): New variable.
5018         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5019         (ctanh_towardzero_test_data): New variable.
5020         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5021         (ctanh_downward_test_data): New variable.
5022         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5023         (ctanh_upward_test_data): New variable.
5024         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5025         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
5026         of BUILD_COMPLEX.
5027
5028         * math/libm-test.inc (struct test_ff_f_data): New type.
5029         (struct test_ff_f_data_nexttoward): Likewise.
5030         (RUN_TEST_LOOP_2_f): New macro.
5031         (RUN_TEST_LOOP_ff_f): Likewise.
5032         (atan2_test_data): New variable.
5033         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
5034         (copysign_test_data): New variable.
5035         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
5036         (fdim_test_data): New variable.
5037         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
5038         (fmax_test_data): New variable.
5039         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
5040         (fmin_test_data): New variable.
5041         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
5042         (fmod_test_data): New variable.
5043         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
5044         (hypot_test_data): New variable.
5045         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
5046         (nextafter_test_data): New variable.
5047         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
5048         (nexttoward_test_data): New variable.
5049         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
5050         (pow_test_data): New variable.
5051         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
5052         (pow_tonearest_test_data): New variable.
5053         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
5054         (pow_towardzero_test_data): New variable.
5055         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
5056         (pow_downward_test_data): New variable.
5057         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
5058         (pow_upward_test_data): New variable.
5059         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
5060         (remainder_test_data): New variable.
5061         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
5062         (scalb_test_data): New variable.
5063         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
5064         * sysdeps/i386/fpu/libm-test-ulps: Update.
5065
5066 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
5067
5068         * math/libm-test.inc (fma_test): Use max_value instead of local
5069         variable fltmax.
5070         (nextafter_test): Likewise.
5071
5072         * math/libm-test.inc (acos_towardzero_test_data): New variable.
5073         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5074         (acos_downward_test_data): New variable.
5075         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5076         (acos_upward_test_data): New variable.
5077         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5078         (acosh_test_data): New variable.
5079         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
5080         (asin_test_data): New variable.
5081         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
5082         (asin_tonearest_test_data): New variable.
5083         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5084         (asin_towardzero_test_data): New variable.
5085         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5086         (asin_downward_test_data): New variable.
5087         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5088         (asin_upward_test_data): New variable.
5089         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5090         (asinh_test_data): New variable.
5091         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
5092         (atan_test_data): New variable.
5093         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
5094         (atanh_test_data): New variable.
5095         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
5096         (cbrt_test_data): New variable.
5097         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
5098         (ceil_test_data): New variable.
5099         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
5100         (cos_test_data): New variable.
5101         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
5102         (cos_tonearest_test_data): New variable.
5103         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5104         (cos_towardzero_test_data): New variable.
5105         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5106         (cos_downward_test_data): New variable.
5107         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5108         (cos_upward_test_data): New variable.
5109         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5110         (cosh_test_data): New variable.
5111         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
5112         (cosh_tonearest_test_data): New variable.
5113         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5114         (cosh_towardzero_test_data): New variable.
5115         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5116         (cosh_downward_test_data): New variable.
5117         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5118         (cosh_upward_test_data): New variable.
5119         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5120         (erf_test_data): New variable.
5121         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
5122         (erfc_test_data): New variable.
5123         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
5124         (exp_test_data): New variable.
5125         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
5126         (exp_tonearest_test_data): New variable.
5127         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5128         (exp_towardzero_test_data): New variable.
5129         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5130         (exp_downward_test_data): New variable.
5131         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5132         (exp_upward_test_data): New variable.
5133         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5134         (exp10_test_data): New variable.
5135         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
5136         (exp2_test_data): New variable.
5137         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
5138         (expm1_test_data): New variable.
5139         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
5140         (fabs_test_data): New variable.
5141         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
5142         (floor_test_data): New variable.
5143         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
5144         (j0_test_data): New variable.
5145         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
5146         (j1_test_data): New variable.
5147         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
5148         (log_test_data): New variable.
5149         (log_test): Run tests with RUN_TEST_LOOP_f_f.
5150         (log10_test_data): New variable.
5151         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
5152         (log1p_test_data): New variable.
5153         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
5154         (log2_test_data): New variable.
5155         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
5156         (logb_test_data): New variable.
5157         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
5158         (logb_downward_test_data): New variable.
5159         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5160         (nearbyint_test_data): New variable.
5161         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
5162         (rint_test_data): New variable.
5163         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
5164         (rint_tonearest_test_data): New variable.
5165         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5166         (rint_towardzero_test_data): New variable.
5167         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5168         (rint_downward_test_data): New variable.
5169         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5170         (rint_upward_test_data): New variable.
5171         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5172         (round_test_data): New variable.
5173         (round_test): Run tests with RUN_TEST_LOOP_f_f.
5174         (sin_test_data): New variable.
5175         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
5176         (sin_tonearest_test_data): New variable.
5177         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5178         (sin_towardzero_test_data): New variable.
5179         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5180         (sin_downward_test_data): New variable.
5181         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5182         (sin_upward_test_data): New variable.
5183         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5184         (sinh_test_data): New variable.
5185         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
5186         (sinh_tonearest_test_data): New variable.
5187         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5188         (sinh_towardzero_test_data): New variable.
5189         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5190         (sinh_downward_test_data): New variable.
5191         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5192         (sinh_upward_test_data): New variable.
5193         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5194         (sqrt_test_data): New variable.
5195         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
5196         (tan_test_data): New variable.
5197         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
5198         (tan_tonearest_test_data): New variable.
5199         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5200         (tan_towardzero_test_data): New variable.
5201         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5202         (tan_downward_test_data): New variable.
5203         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5204         (tan_upward_test_data): New variable.
5205         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5206         (tanh_test_data): New variable.
5207         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
5208         (tgamma_test_data): New variable.
5209         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
5210         (trunc_test_data): New variable.
5211         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
5212         (y0_test_data): New variable.
5213         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
5214         (y1_test_data): New variable.
5215         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
5216         (significand_test_data): New variable.
5217         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
5218
5219 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
5220
5221         [BZ #12387]
5222         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
5223
5224 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5225
5226         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
5227
5228 2013-05-10  Andreas Jaeger  <aj@suse.de>
5229
5230         [BZ #15448]
5231         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
5232         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
5233
5234 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5235
5236         * math/gen-libm-test.pl (adjust_arg): New function.
5237         (special_functions): Handle generating output in both functions
5238         and arrays.
5239         (parse_args): Likewise.
5240         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
5241         $in_func argument to parse_args.
5242         * math/libm-test.inc (struct test_f_f_data): New type.
5243         (IF_ROUND_INIT_): New macro.
5244         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
5245         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
5246         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
5247         (IF_ROUND_INIT_FE_UPWARD): Likewise.
5248         (ROUND_RESTORE_): Likewise.
5249         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
5250         (ROUND_RESTORE_FE_TONEAREST): Likewise.
5251         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
5252         (ROUND_RESTORE_FE_UPWARD): Likewise.
5253         (RUN_TEST_LOOP_f_f): New macro.
5254         (acos_test_data): New variable.
5255         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
5256         (acos_tonearest_test_data): New variable.
5257         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5258
5259 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5260
5261         * benchtests/bench-skeleton.c (startup): Fix coding style.
5262
5263 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
5264
5265         [BZ #6809]
5266         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
5267         negative infinity argument.
5268         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
5269         negative infinity argument.
5270         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
5271         negative infinity argument.
5272         * math/libm-test.inc (tgamma_test): Expect errno to be set for
5273         domain errors.
5274
5275 2013-05-10  Florian Weimer  <fweimer@redhat.com>
5276
5277         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
5278         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
5279         * iconv/iconv_prog.c (main): Likewise.
5280         * locale/programs/charmap-dir.c (charmap_readdir)
5281         (fopen_uncompressed): Likewise.
5282         * locale/programs/locfile.c (siblings_uncached)
5283         (write_locale_data): Use lstat64 instead of lstat.
5284         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
5285         stat.
5286
5287 2013-05-10  Andreas Jaeger  <aj@suse.de>
5288
5289         [BZ #15395]
5290         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
5291         localization.
5292         Include <locale.h>.
5293
5294 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
5295
5296         * elf/dl-close.c (_dl_close_worker): Add comments.
5297
5298 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
5299
5300         [BZ #15359]
5301         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
5302         high part of pi/2.
5303         (__ieee754_rem_pio2l): Update comments.
5304
5305         [BZ #15429]
5306         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
5307         high part of pi/2.
5308         (__ieee754_rem_pio2l): Update comments.
5309
5310         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
5311         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
5312
5313         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
5314         M_PI_4l.
5315
5316         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
5317         (M_PI_34_LOG10El): Likewise.
5318         (M_PI2_LOG10El): Likewise.
5319         (M_PI4_LOG10El): Likewise.
5320         (M_PI_LOG10El): Likewise.
5321
5322 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5323
5324         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5325
5326 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
5327
5328         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
5329         (MINUS_ZERO_INIT): Likewise.
5330         (PLUS_INFTY_INIT): Likewise.
5331         (MINUS_INFTY_INIT): Likewise.
5332         (QNAN_VALUE_INIT): Likewise.
5333         (MAX_VALUE_INIT): Likewise.
5334         (MIN_VALUE_INIT): Likewise.
5335         (MIN_SUBNORM_VALUE_INIT): Likewise.
5336         (plus_zero): Initialize with PLUS_ZERO_INIT.
5337         (minus_zero): Initialize with MINUS_ZERO_INIT.
5338         (plus_infty): Initialize with PLUS_INFTY_INIT.
5339         (minus_infty): Initialize with MINUS_INFTY_INIT.
5340         (qnan_value): Initialize with QNAN_VALUE_INIT.
5341         (max_value): Initialize with MAX_VALUE_INIT.
5342         (min_value): Initialize with MIN_VALUE_INIT.
5343         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
5344
5345         * math/libm-test.inc (RUN_TEST_if_f): New macro.
5346         (jn_test): Use TEST_if_f instead of TEST_ff_f.
5347         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
5348         (yn_test): Use TEST_if_f instead of TEST_ff_f.
5349
5350         * math/libm-test.inc (RUN_TEST_f_f): New macro.
5351         (RUN_TEST_2_f): Likewise.
5352         (RUN_TEST_ff_f): Likewise.
5353         (RUN_TEST_fi_f): Likewise.
5354         (RUN_TEST_fl_f): Likewise.
5355         (RUN_TEST_fff_f): Likewise.
5356         (RUN_TEST_c_f): Likewise.
5357         (RUN_TEST_f_f1): Likewise.
5358         (RUN_TEST_fF_f1): Likewise.
5359         (RUN_TEST_fI_f1): Likewise.
5360         (RUN_TEST_ffI_f1): Likewise.
5361         (RUN_TEST_c_c): Likewise.
5362         (RUN_TEST_cc_c): Likewise.
5363         (RUN_TEST_f_i): Likewise.
5364         (RUN_TEST_f_i_tg): Likewise.
5365         (RUN_TEST_ff_i_tg): Likewise.
5366         (RUN_TEST_f_b): Likewise.
5367         (RUN_TEST_f_b_tg): Likewise.
5368         (RUN_TEST_f_l): Likewise.
5369         (RUN_TEST_f_L): Likewise.
5370         (RUN_TEST_sincos): Likewise.
5371         * math/gen-libm-test.pl (new_test): Take new argument to indicate
5372         whether to show exceptions.  Do not include ");\n" in return
5373         value.
5374         (special_functions): Output call to RUN_TEST_sincos instead of
5375         check_float calls.  Update calls to new_test.
5376         (parse_args): Output call to single RUN_TEST_* macro instead of
5377         check_* calls and other assignments.  Update calls to new_test.
5378
5379         [BZ #2546]
5380         [BZ #2560]
5381         [BZ #5159]
5382         [BZ #15426]
5383         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
5384         input to result for tgamma overflow.
5385         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
5386         (gamma_coeff): New variable.
5387         (NCOEFF): New macro.
5388         (gamma_positive): New function.
5389         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
5390         underflow here.  Use gamma_positive instead of exp (lgamma) for
5391         other arguments.
5392         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
5393         (gamma_coeff): New variable.
5394         (NCOEFF): New macro.
5395         (gammaf_positive): New function.
5396         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
5397         underflow here.  Use gamma_positive instead of exp (lgamma) for
5398         other arguments.
5399         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
5400         (gamma_coeff): New variable.
5401         (NCOEFF): New macro.
5402         (gammal_positive): New function.
5403         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
5404         underflow here.  Use gamma_positive instead of exp (lgamma) for
5405         other arguments.
5406         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
5407         (gamma_coeff): New variable.
5408         (NCOEFF): New macro.
5409         (gammal_positive): New function.
5410         (__ieee754_gammal_r): Handle positive infinity, overflow and
5411         underflow here.  Handle NaN the same as positive infinity.  Remove
5412         check x < 0xffffffff for negative integers.  Use gamma_positive
5413         instead of exp (lgamma) for other arguments.
5414         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
5415         (gamma_coeff): New variable.
5416         (NCOEFF): New macro.
5417         (gammal_positive): New function.
5418         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
5419         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
5420         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
5421         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
5422         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
5423         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
5424         * sysdeps/generic/math_private.h (__gamma_productf): New
5425         prototype.
5426         (__gamma_product): Likewise.
5427         (__gamma_productl): Likewise.
5428         * math/Makefile (libm-calls): Add gamma_product.
5429         * math/libm-test.inc (tgamma_test): Add more tests.
5430         * sysdeps/i386/fpu/libm-test-ulps: Update.
5431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5432
5433 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
5434
5435         * benchtests/bench-skeleton.c (main): Preheat CPU.
5436
5437 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
5438
5439         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
5440
5441 2013-05-07  Roland McGrath  <roland@hack.frob.com>
5442
5443         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
5444         and _dl_skip_args_internal.
5445
5446 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
5447
5448         * manual/message.texi (Message Translation): Talk about users.
5449         Message to key mapping impacts design.
5450
5451 2013-05-06  Roland McGrath  <roland@hack.frob.com>
5452
5453         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
5454
5455         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
5456
5457         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
5458         * sysdeps/wordsize-64/glob64.c: ... here.
5459
5460         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
5461         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
5462         New macros.
5463
5464         * debug/getlogin_r_chk.c: Moved to ...
5465         * login/getlogin_r_chk.c: ... here.
5466         * debug/Makefile (routines): Move getlogin_r_chk to ...
5467         * login/Makefile (routines): ... here.
5468         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
5469         * login/Versions (libc: GLIBC_2.4): ... here.
5470
5471         * io/poll.c (__poll): Renamed from poll.
5472         Add libc_hidden_def.
5473         (poll): Define as weak alias.
5474
5475         * debug/ptsname_r_chk.c: Moved to ...
5476         * login/ptsname_r_chk.c: ... here.
5477         * debug/Makefile (routines): Move ptsname_r_chk to ...
5478         * login/Makefile (routines): ... here.
5479         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
5480         * login/Versions (libc: GLIBC_2.4): ... here.
5481
5482         * posix/getlogin.c: Moved to ...
5483         * login/getlogin.c: ... here.
5484         * posix/getlogin_r.c: Moved to ...
5485         * login/getlogin_r.c: ... here.
5486         * posix/getlogin_r.c: Moved to ...
5487         * login/getlogin_r.c: ... here.
5488         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
5489         * login/Makefile (routines): ... here.
5490         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
5491         * login/Versions (libc: GLIBC_2.0): ... here.
5492
5493         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
5494         (setrlimit): Define as weak alias.
5495
5496         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
5497         Call __ names for open, ftruncate, and close.
5498         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
5499         (truncate): Define as weak alias.
5500
5501 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
5502
5503         * math/gen-libm-test.pl (parse_args): Initialize x before each
5504         test of frexp, modf and remquo.
5505
5506         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
5507         test signgam value.
5508
5509 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5510
5511         [BZ #15418]
5512         [BZ #15419]
5513         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
5514         internal tests.
5515         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5516
5517 2013-05-06  Roland McGrath  <roland@hack.frob.com>
5518
5519         * elf/dl-writev.h: New file.
5520         * elf/dl-misc.c: Include it.
5521         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
5522         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
5523
5524 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
5525
5526         * math/libm-test.inc (noXFails): Remove variable.
5527         (noXPasses): Likewise.
5528         (BUILD_COMPLEX_INT): Remove macro.
5529         (print_screen): Remove xfail argument.
5530         (print_screen_max_error): Likewise.
5531         (update_stats): Likewise.
5532         (print_max_error): Likewise.  Update calls to other affected
5533         functions.
5534         (print_complex_max_error): Likewise.
5535         (test_single_exception): Update calls to print_screen.
5536         (test_single_errno): Likewise.
5537         (check_float_internal): Remove xfail argument.  Update calls to
5538         other affected functions.
5539         (check_float): Likewise.
5540         (check_complex): Likewise.
5541         (check_int): Likewise.
5542         (check_long): Likewise.
5543         (check_bool): Likewise.
5544         (check_longlong): Likewise.
5545         (main): Don't print noXFails and noXPasses.
5546         * math/gen-libm-test.pl (top level): Don't mention expected
5547         failure handling in comment.
5548         (new_test): Don't handle expected failures.
5549         (parse_args): Don't mention expected failure handling in comment.
5550         (generate_testfile): Don't handle expected failures.
5551         (parse_ulps): Likewise.
5552         (print_ulps_file): Likewise.
5553         (get_failure): Remove function.
5554         (output_test): Don't handle expected failures.
5555         * make/README.libm-test: Don't mention expected failure handling.
5556
5557         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
5558         (minus_zero): Likewise.
5559         (plus_infty): Likewise.
5560         (minus_infty): Likewise.
5561         (qnan_value): Likewise.
5562         (max_value): Likewise.
5563         (min_value): Likewise.
5564         (min_subnorm_value): Likewise.
5565         (initialize): Do not initialize those variables dynamically.
5566
5567 2013-05-03  Roland McGrath  <roland@hack.frob.com>
5568
5569         * io/open.c (__open_2): Moved to ...
5570         * io/open_2.c: ... this new file.
5571         * io/open64.c (__open64_2): Moved to ...
5572         * io/open64_2.c: ... this new file.
5573         * io/openat.c (__openat_2): Moved to ...
5574         * io/openat_2.c: ... this new file.
5575         * io/openat64.c (__openat64_2): Moved to ...
5576         * io/openat64_2.c: ... this new file.
5577         * io/Makefile (routines): Add them.
5578         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
5579         * sysdeps/unix/sysv/linux/open_2.c: File removed.
5580         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
5581         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
5582         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
5583         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
5584         (__openat64): Add hidden_ver.
5585         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
5586         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
5587
5588         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5589         Separately conditionalize setting of GLRO(dl_sysinfo) so
5590         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
5591         as well, but the actual setting is only under [NEED_DL_SYSINFO].
5592
5593 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5594
5595         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
5596         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
5597         definition.
5598         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
5599         * sysdeps/unix/sysv/linux/powerpc/init-first.c
5600         (_libc_vdso_platform_setup): Add __vdso_time initialization.
5601         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
5602         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
5603
5604 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
5605
5606         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
5607         test signgam value.
5608
5609         * math/libm-test.inc (hypot_test): Do not use
5610         IGNORE_ZERO_INF_SIGN.
5611
5612 2013-05-03  Andreas Jaeger  <aj@suse.de>
5613
5614         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
5615         Linux 3.9.
5616         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
5617         (PF_MAX): Adjust for VSOCK change.
5618
5619 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5620
5621         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5622
5623 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
5624
5625         [BZ #15264]
5626         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
5627         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
5628         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
5629
5630 2013-05-02  David S. Miller  <davem@davemloft.net>
5631
5632         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5633
5634 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
5635
5636         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
5637
5638 2013-05-01  Roland McGrath  <roland@hack.frob.com>
5639
5640         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
5641
5642 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
5643
5644         [BZ #14952]
5645         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
5646         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
5647         Use __attribute__ ((__gnu_inline__)).
5648         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
5649         Don't use __attribute__ ((__gnu_inline__)).
5650
5651 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
5652
5653         [BZ #15423]
5654         * math/s_catan.c (__catan): Handle small real or imaginary part of
5655         input specially to avoid spurious underflow.
5656         * math/s_catanf.c (__catanf): Likewise.
5657         * math/s_catanh.c (__catanh): Likewise.
5658         * math/s_catanhf.c (__catanhf): Likewise.
5659         * math/s_catanhl.c (__catanhl): Likewise.
5660         * math/s_catanl.c (__catanl): Likewise.
5661         * math/libm-test.inc (catan_test): Add more tests.
5662         (catanh_test): Likewise.
5663         * sysdeps/i386/fpu/libm-test-ulps: Update.
5664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5665
5666 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5667
5668         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5669
5670 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
5671
5672         [BZ #15416]
5673         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
5674         accurately for denominator in atan2.
5675         * math/s_catanf.c (__catanf): Likewise.
5676         * math/s_catanh.c (__catanh): Likewise.
5677         * math/s_catanhf.c (__catanhf): Likewise.
5678         * math/s_catanhl.c (__catanhl): Likewise.
5679         * math/s_catanl.c (__catanl): Likewise.
5680         * math/libm-test.inc (catan_test): Add more tests.
5681         (catanh_test): Likewise.
5682         * sysdeps/i386/fpu/libm-test-ulps: Update.
5683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5684
5685 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5686
5687         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
5688
5689         * benchtests/Makefile (bench): Remove slow benchmarks.
5690         * benchtests/atan-inputs: Add slow benchmark inputs.
5691         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
5692         (BENCH_FUNC): Accept variant offset.
5693         (VARIANT): Define.
5694         * benchtests/bench-skeleton.c (main): Run benchmark for each
5695         variant.
5696         * benchtests/cos-inputs: Add slow benchmark inputs.
5697         * benchtests/exp-inputs: Likewise.
5698         * benchtests/pow-inputs: Likewise.
5699         * benchtests/sin-inputs: Likewise.
5700         * benchtests/slowatan-inputs: Remove.
5701         * benchtests/slowatan.c: Remove.
5702         * benchtests/slowcos-inputs: Remove.
5703         * benchtests/slowcos.c: Remove.
5704         * benchtests/slowexp-inputs: Remove.
5705         * benchtests/slowexp.c: Remove.
5706         * benchtests/slowpow-inputs: Remove.
5707         * benchtests/slowpow.c: Remove.
5708         * benchtests/slowsin-inputs: Remove.
5709         * benchtests/slowsin.c: Remove.
5710         * benchtests/slowtan-inputs: Remove.
5711         * benchtests/slowtan.c: Remove.
5712         * benchtests/tan-inputs: Add slow benchmark inputs.
5713         * scripts/bench.pl: Parse comments and directives.
5714
5715         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
5716         in CPPFLAGS.
5717         ($(objpfx)bench-%.c): Remove *-ITER.
5718         * benchtests/bench-modf.c: Remove definition of ITER.
5719         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
5720         (main): Loop for DURATION seconds instead of fixed number of
5721         iterations.
5722         * scripts/bench.pl: Don't expect iterations in parameters.
5723
5724 2013-04-29  Roland McGrath  <roland@hack.frob.com>
5725
5726         * io/fchdir.c (__fchdir): Renamed from fchdir.
5727         (fchdir): Define as weak alias.
5728
5729 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
5730
5731         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
5732         (ERRNO_EDOM): Likewise.
5733         (ERRNO_ERANGE): Likewise.
5734         (noErrnoTests): New variable.
5735         (init_max_error): Set errno to 0.
5736         (test_single_errno): New function.
5737         (test_errno): Likewise.
5738         (check_float_internal): Call test_errno.  Set errno to 0.
5739         (check_complex): Refer to errno tests in comment.
5740         (check_int): Call test_errno.  Set errno to 0.
5741         (check_long): Likewise.
5742         (check_bool): Likewise.
5743         (check_longlong): Likewise.
5744         (cos_test): Use ERRNO_* flags for errno tests instead of
5745         check_int.
5746         (expm1_test): Likewise.
5747         (fmod_test): Likewise.
5748         (ilogb_test): Likewise.
5749         (lgamma_test): Likewise.
5750         (pow_test): Likewise.
5751         (remainder_test): Likewise.
5752         (sin_test): Likewise.
5753         (tan_test): Likewise.
5754         (yn_test): Likewise.
5755         (initialize): Set errno to 0.
5756         (main): Print number of errno tests.
5757         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
5758
5759 2013-04-29  Andreas Jaeger  <aj@suse.de>
5760
5761         [BZ #15084]
5762         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
5763         and RES_USEVC.
5764
5765         [BZ #15085]
5766         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
5767         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
5768         unimplemented.
5769
5770         [BZ #15380]
5771         * stdlib/random.c (__initstate): Return NULL if
5772         __initstate fails.
5773
5774         [BZ #15086]
5775         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
5776         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
5777         RES_SNGLKUPREOP.
5778
5779 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5780
5781         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5782
5783 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
5784
5785         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
5786         of individual tests.
5787         (casin_test): Likewise.
5788         (casinh_test): Likewise.
5789
5790 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
5791
5792         [BZ #15409]
5793         * math/s_catan.c (__catan): Handle arguments with large real or
5794         imaginary part separately without squaring.
5795         * math/s_catanf.c (__catanf): Likewise.
5796         * math/s_catanh.c (__catanh): Likewise.
5797         * math/s_catanhf.c (__catanhf): Likewise.
5798         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
5799         and redefine.
5800         (__catanhl): Handle arguments with large real or imaginary part
5801         separately without squaring.
5802         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
5803         and redefine.
5804         (__catanl): Handle arguments with large real or imaginary part
5805         separately without squaring.
5806         * math/libm-test.inc (catan_test): Add more tests.
5807         (catanh_test): Likewise.
5808         * sysdeps/i386/fpu/libm-test-ulps: Update.
5809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5810
5811 2013-04-27  Andreas Jaeger  <aj@suse.de>
5812
5813         [BZ #15007]
5814         * stdlib/stdlib.h: Update guards for qecvt.
5815         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
5816         <stdlib.h>.
5817
5818 2013-04-27  Allan McRae  <allan@archlinux.org>
5819
5820         * sysdeps/i386/fpu/libm-test-ulps: Update.
5821
5822 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
5823
5824         [BZ #15406]
5825         * math/s_catan.c: Include <float.h>.
5826         (__catan): Ensure underflow exception occurs for underflowed
5827         result.
5828         * math/s_catanf.c: Include <float.h>.
5829         (__catanf): Ensure underflow exception occurs for underflowed
5830         result.
5831         * math/s_catanh.c: Include <float.h>.
5832         (__catanh): Ensure underflow exception occurs for underflowed
5833         result.
5834         * math/s_catanhf.c: Include <float.h>.
5835         (__catanhf): Ensure underflow exception occurs for underflowed
5836         result.
5837         * math/s_catanhl.c: Include <float.h>.
5838         (__catanhl): Ensure underflow exception occurs for underflowed
5839         result.
5840         * math/s_catanl.c: Include <float.h>.
5841         (__catanl): Ensure underflow exception occurs for underflowed
5842         result.
5843         * math/libm-test.inc (catan_test): Add more tests.
5844         (catanh_test): Likewise.
5845
5846         [BZ #15405]
5847         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
5848         underflowed result.
5849         * math/s_ccoshf.c (__ccoshf): Likewise.
5850         * math/s_ccoshl.c (__ccoshl): Likewise.
5851         * math/s_csin.c (__csin): Likewise.
5852         * math/s_csinf.c (__csinf): Likewise.
5853         * math/s_csinh.c (__csinh): Likewise.
5854         * math/s_csinhf.c (__csinhf): Likewise.
5855         * math/s_csinhl.c (__csinhl): Likewise.
5856         * math/s_csinl.c (__csinl): Likewise.
5857         * math/libm-test.inc (ccos_test): Add more tests.
5858         (ccosh_test): Likewise.
5859         (csin_test): Likewise.
5860         (csinh_test): Likewise.
5861
5862 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5863
5864         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
5865         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
5866         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
5867         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
5868         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
5869         powerpc/power5+/fpu folders.
5870         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
5871
5872
5873 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
5874
5875         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5876
5877 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
5878
5879         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
5880         additions to variable.
5881         [$(config-machine) = x86_64] (modules-names): Likewise.
5882         ($(objpfx)tst-audit3): Remove dependency.
5883         ($(objpfx)tst-audit3.out): Likewise.
5884         ($(objpfx)tst-audit4): Likewise.
5885         ($(objpfx)tst-audit4.out): Likewise.
5886         ($(objpfx)tst-audit5): Likewise.
5887         ($(objpfx)tst-audit5.out): Likewise.
5888         ($(objpfx)tst-audit6): Likewise.
5889         ($(objpfx)tst-audit6.out): Likewise.
5890         ($(objpfx)tst-audit7): Likewise.
5891         ($(objpfx)tst-audit7.out): Likewise.
5892         (tst-audit3-ENV): Remove variable.
5893         (tst-audit4-ENV): Likewise.
5894         (tst-audit5-ENV): Likewise.
5895         (tst-audit6-ENV): Likewise.
5896         (tst-audit7-ENV): Likewise.
5897         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
5898         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
5899         addition to variable.
5900         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
5901         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
5902         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
5903         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
5904         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
5905         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
5906         tst-audit3, tst-audit4 and tst-audit5.
5907         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
5908         tst-audit6 and tst-audit7.
5909         [$(subdir) = elf] (modules-names): Add audit modules for those
5910         tests.
5911         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
5912         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
5913         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
5914         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
5915         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
5916         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
5917         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
5918         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
5919         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
5920         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
5921         [$(subdir) = elf] (tst-audit3-ENV): New variable.
5922         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
5923         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
5924         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
5925         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
5926         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
5927         Likewise.
5928         [$(subdir) = elf && $(config-cflags-avx) = yes]
5929         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
5930         [$(subdir) = elf && $(config-cflags-avx) = yes]
5931         (CFLAGS-tst-auditmod4a.c): Likewise.
5932         [$(subdir) = elf && $(config-cflags-avx) = yes]
5933         (CFLAGS-tst-auditmod4b.c): Likewise.
5934         [$(subdir) = elf && $(config-cflags-avx) = yes]
5935         (CFLAGS-tst-auditmod6b.c): Likewise.
5936         [$(subdir) = elf && $(config-cflags-avx) = yes]
5937         (CFLAGS-tst-auditmod6c.c): Likewise.
5938         [$(subdir) = elf && $(config-cflags-avx) = yes]
5939         (CFLAGS-tst-auditmod7b.c): Likewise.
5940         * elf/tst-audit3.c: Move to ...
5941         * sysdeps/x86_64/tst-audit3.c: ... here.
5942         * elf/tst-audit4.c: Move to ...
5943         * sysdeps/x86_64/tst-audit4.c: ... here.
5944         * elf/tst-audit5.c: Move to ...
5945         * sysdeps/x86_64/tst-audit5.c: ... here.
5946         * elf/tst-audit6.c: Move to ...
5947         * sysdeps/x86_64/tst-audit6.c: ... here.
5948         * elf/tst-audit7.c: Move to ...
5949         * sysdeps/x86_64/tst-audit7.c: ... here.
5950         * elf/tst-auditmod3a.c: Move to ...
5951         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
5952         * elf/tst-auditmod3b.c: Move to ...
5953         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
5954         * elf/tst-auditmod4a.c: Move to ...
5955         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
5956         * elf/tst-auditmod4b.c: Move to ...
5957         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
5958         * elf/tst-auditmod5a.c: Move to ...
5959         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
5960         * elf/tst-auditmod5b.c: Move to ...
5961         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
5962         * elf/tst-auditmod6a.c: Move to ...
5963         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
5964         * elf/tst-auditmod6b.c: Move to ...
5965         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
5966         * elf/tst-auditmod6c.c: Move to ...
5967         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
5968         * elf/tst-auditmod7a.c: Move to ...
5969         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
5970         * elf/tst-auditmod7b.c: Move to ...
5971         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
5972
5973 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5974
5975         [BZ #15366]
5976         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
5977         define unconditionally.
5978         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
5979         define unconditionally.
5980         (INT8_C, INT16_C, etc.): Likewise.
5981
5982 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
5983
5984         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
5985         __ehdr_start with hidden visibility.
5986
5987         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
5988
5989 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
5990
5991         * math/libm-test.inc (cos_test): Use accurate hex constants.
5992         (sincost_test): Likewise.
5993
5994 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
5995
5996         * math/libm-test.inc (catan_test): Add more tests.
5997         (catanh_test): Likewise.
5998
5999         * math/s_catanf.c (__catanf): Use suffixed floating-point
6000         constants.
6001         * math/s_catanhf.c (__catanhf): Likewise.
6002         * math/s_catanhl.c (__catanhl): Likewise.
6003         * math/s_catanl.c (__catanl): Likewise.
6004
6005         [BZ #15394]
6006         * math/s_catan.c (__catan): Calculate imaginary part of result
6007         with log1p not log unless computing log of number close to 0.
6008         * math/s_catanf.c (__catanf): Likewise.
6009         * math/s_catanl.c (__catanl): Likewise.
6010         * math/s_catanh.c (__catanh): Calculate real part of result with
6011         log1p not log unless computing log of number close to 0.
6012         * math/s_catanhf.c (__catanhf): Likewise.
6013         * math/s_catanhl.c (__catanhl): Likewise.
6014         * math/libm-test.inc (catan_test): Add more tests.
6015         (catanh_test): Likewise.
6016         * sysdeps/i386/fpu/libm-test-ulps: Update.
6017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6018
6019 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6020
6021         * benchtests/Makefile: Mention files in which fast and slow
6022         paths of math functions are implemented.
6023
6024 2013-04-23  Roland McGrath  <roland@hack.frob.com>
6025
6026         * sysdeps/posix/timespec_get.c: New file.
6027
6028 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6029
6030         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
6031         POWER.
6032         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
6033         for POWER.
6034         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
6035         powerpc/power5/fpu folders.
6036         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
6037         * benchtests/Makefile: Add modf testcase.
6038         * benchtests/bench-modf.c: New file: Benchmark test for mo
6039
6040 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
6041
6042         [BZ #14888]
6043         * time/Makefile (tests): Add tst-strptime-whitespace.
6044         * time/strptime_l.c (get_number): Use ISSPACE.
6045         (__strptime_internal): Likewise.
6046         * time/tst-strptime-whitespace.c: New test case.
6047
6048 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6049
6050         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
6051         member.
6052         (_nss_files_init): Set it here.
6053
6054 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
6055
6056         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
6057         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
6058         unsigned.
6059
6060 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
6061
6062         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
6063
6064 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6065
6066         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
6067         size just once.
6068
6069 2013-04-21  David S. Miller  <davem@davemloft.net>
6070
6071         * po/ru.po: Update Russion translation from translation project.
6072
6073 2013-04-17  Adam Conrad  <adconrad@0c3.net>
6074
6075         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
6076         and setfsgid.
6077
6078 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
6079
6080         * configure.in: Remove i386 configure warning. Remove i386 case.
6081         * configure: Regenerate.
6082         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
6083         Add example to error message.
6084         * sysdeps/i386/configure: Regenerate.
6085
6086 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
6087
6088         * benchtests/Makefile (bench): Add cos, tan, slowcos and
6089         slowtan.
6090         * benchtests/cos-inputs: New file.
6091         * benchtests/slowcos-inputs: New file.
6092         * benchtests/slowcos.c: New file.
6093         * benchtests/slowtan-inputs: New file.
6094         * benchtests/slowtan.c: New file.
6095         * benchtests/tan-inputs: New file.
6096
6097 2013-04-16  Roland McGrath  <roland@hack.frob.com>
6098
6099         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
6100         considered kosher.
6101
6102 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6103
6104         * benchtests/Makefile: Include cppflags-iterator.mk to add
6105         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
6106
6107         * Makefile.in (bench-clean): New target.
6108         * benchtests/Makefile (bench-clean): Likewise.
6109
6110 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
6111
6112         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
6113
6114 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6115
6116         * stdio-common/tstdiomisc.c: Fix coding-style violation.
6117
6118 2013-04-15  Andreas Schwab  <schwab@suse.de>
6119
6120         * nscd/grpcache.c (cache_addgr): Properly check for short write.
6121         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6122         * nscd/pwdcache.c (cache_addpw): Likewise.
6123         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
6124         more than recsize.
6125
6126 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6127
6128         * benchtests/Makefile (bench): Write all output to
6129         bench-out.tmp together.
6130
6131 2013-04-15  Andreas Schwab  <schwab@suse.de>
6132
6133         * nscd/nscd.c (main): Don't fork again after closing files.
6134
6135 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6136
6137         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
6138
6139         * benchtests/Rules (bench-deps): Collect dependencies into a
6140         single variable.  Add Makefile to dependencies.
6141         ($(objpfx)bench-%.c): Depend on bench-deps.
6142
6143 2013-04-12  Roland McGrath  <roland@hack.frob.com>
6144             Xavier Roche  <roche+kml2@exalead.com>
6145
6146         [BZ #15361]
6147         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
6148         just that it's a file descriptor.
6149         * manual/llio.texi (Synchronizing AIO Operations): Update description
6150         for EBADF error from aio_fsync.
6151
6152 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6153
6154         * Rules (bench): Move target definition...
6155         * benchtests/Makefile: ... here.
6156
6157 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
6158
6159         * math/libm-test.inc (cos_test): Fix PI/2 test.
6160         (sincos_test): Likewise.
6161         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6162         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6163
6164 2013-04-11  Andreas Schwab  <schwab@suse.de>
6165
6166         [BZ #13988]
6167         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
6168         accept exponent character only when digits were seen.
6169         * stdio-common/Makefile (tests): Add bug26.
6170         * stdio-common/bug26.c: New file.
6171
6172         [BZ #14293]
6173         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
6174         non-freeable.
6175
6176 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6177
6178         * Makeconfig (rtld-prefix): Define built linker prefix.
6179         * Rules (run-bench): Use it.
6180         * math/Makefile (run-regen-ulps): Likewise.
6181
6182         * Rules (bench): Remove eval.
6183
6184 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6185             Roland McGrath  <roland@hack.frob.com>
6186             Ondrej Bilka  <neleai@seznam.cz>
6187
6188         [BZ #15346]
6189         * time/getdate.c: Include ctype.h and alloca.h.
6190         (__getdate_r): Trim leading and trailing spaces of input.
6191         * time/tst-getdate.c (tests): Add tests with leading and
6192         trailing spaces.
6193
6194 2013-04-08  Roland McGrath  <roland@hack.frob.com>
6195
6196         [BZ #14280]
6197         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
6198         when computing value.
6199
6200 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6201
6202         * math/README.libm-test (How can I generate "libm-test-ulps"?):
6203         Use testrun.sh to run libm tests.
6204
6205         [BZ #15309]
6206         * elf/dl-open.c (dl_open_worker): memset all of seen array.
6207
6208 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
6209
6210         [BZ #15264]
6211         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
6212
6213 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6214
6215         * Makefile.in (regen-ulps): New target.
6216         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
6217         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
6218         [ifneq (no,$(PERL)] (regen-ulps): New target.
6219         [ifeq (no,$(PERL)] (regen-ulps): New target.
6220         * math/libm-test.inc (ulps_file_name): Define.
6221         (output_dir): New variable.
6222         (options): Add "output-dir" option.
6223         (parse_opt): Handle 'o' case.
6224         (main): If output_dir is non-NULL use it as a prefix
6225         otherwise use "".
6226         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
6227
6228 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6229
6230         [BZ #10060, #10062]
6231         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
6232         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
6233         fail configure if __sync_val_compare_and_swap is not inlined.
6234         * sysdeps/i386/configure: Regenerate.
6235         * configure.in: Build for i686 when configured for i386.
6236         * configure: Regenerate.
6237         * README: Remove i386 reference.
6238
6239 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
6240
6241         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
6242         * sysdeps/s390/s390-64/sysdep.h: Likewise.
6243
6244 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
6245
6246         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
6247         (lmsnanval): New variables.
6248         (F): Add conversion tests.
6249         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
6250         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
6251
6252         * stdio-common/tstdiomisc.c (F): Properly collect individual
6253         tests' results.
6254
6255         [BZ #14686, #15336]
6256         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
6257         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
6258         Instead, use input NaN values or generate a qNaN by arithmetic
6259         operation.  Also fix bugs to comply with the standard.
6260         * math/libm-test.inc (remainder_test): Add more tests.
6261
6262         [BZ #15335, #15342]
6263         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
6264         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
6265         input NaN values or generate a qNaN by arithmetic operation.
6266
6267         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
6268         unreachable code.
6269
6270         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
6271         definitions.
6272
6273 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
6274
6275         [BZ #14478]
6276         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
6277         underflowed result.
6278         * math/s_cexpf.c (__cexpf): Likewise.
6279         * math/s_cexpl.c (__cexpl): Likewise.
6280         * math/libm-test.inc (cexp_test): Add more tests.
6281
6282 2013-04-03  Andreas Schwab  <schwab@suse.de>
6283
6284         [BZ #15330]
6285         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
6286         order arrays from heap if bigger than alloca cutoff.
6287
6288 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6289
6290         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
6291         (SNAN_TESTS_double): Refer to GCC PR56831.
6292         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
6293         GCC PR56828.
6294
6295 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6296
6297         * Rules (bench): Move bench.out after the run is complete.
6298
6299         * Rules (bench): Echo currently running benchmark.
6300
6301         * benchtests/Makefile (bench): Add atan and slowatan.
6302         * benchtests/atan-inputs: New file.
6303         * benchtests/slowatan-inputs: New file.
6304         * benchtests/slowatan.c: New file.
6305
6306         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
6307         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
6308         its value.
6309
6310         [BZ #15305]
6311         * sysdeps/unix/sysv/linux/kernel-features.h
6312         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
6313         __ASSUME_XFS_RESTRICTED_CHOWN.
6314         * sysdeps/unix/sysv/linux/pathconf.c
6315         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
6316         Save and restore errno.
6317
6318 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
6319
6320         [BZ #15327]
6321         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
6322         arguments using __kernel_casinh.
6323         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
6324         arguments using __kernel_casinhf.
6325         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
6326         arguments using __kernel_casinhl.
6327         * math/libm-test.inc (cacosh_test): Add more tests.
6328         * sysdeps/i386/fpu/libm-test-ulps: Update.
6329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6330
6331 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
6332
6333         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
6334         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
6335
6336         * bench/Makefile (bench): Add sin and slowsin.
6337         * benchtests/sin-inputs: New file.
6338         * benchtests/slowsin-inputs: New file.
6339         * benchtests/slowsin.c: New file.
6340
6341         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
6342         (bench): Add slowexp and slowpow.
6343         (exp-ITER): Increase iterations.
6344         (pow-ITER): Likewise.
6345         * benchtests/exp-inputs: Change input.
6346         * benchtests/pow-inputs: Likewise.
6347         * benchtests/slowexp-inputs: New file.
6348         * benchtests/slowexp.c: New file.
6349         * benchtests/slowpow-inputs: New file.
6350         * benchtests/slowpow.c: New file.
6351
6352 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6353
6354         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
6355         instructions.
6356         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
6357         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
6358         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
6359         * benchtests/Makefile: Add rint benchtest.
6360         * benchtests/rint-inputs: Input for rint benchtest.
6361
6362 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
6363
6364         * Versions.def (libm): Add GLIBC_2.18.
6365         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
6366         hidden libm prototypes.
6367         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
6368         * math/Makefile (libm-calls): Add s_issignaling.
6369         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
6370         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
6371         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
6372         declaration.
6373         * math/math.h [__USE_GNU] (issignaling): New macro.
6374         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
6375         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
6376         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
6377         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
6378         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
6379         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
6380         * manual/arith.texi (issignaling): New section.
6381         * manual/libm-err-tab.pl (@all_functions): Update comment.
6382         * math/gen-libm-test.pl (parse_args): Apply special handling for
6383         issignaling.
6384         * math/libm-test.inc (print_float, issignaling_test): New
6385         functions.
6386         (check_float_internal): Add issignaling checks.
6387         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
6388         default definition.
6389         * sysdeps/powerpc/math-tests.h: New file.
6390         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
6391         tests.
6392         * math/test-snan.c (TEST_FUNC): Likewise.
6393
6394 2013-03-30  David S. Miller  <davem@davemloft.net>
6395
6396         * po/de.po: Update from translation team.
6397
6398 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
6399
6400         [BZ #10357]
6401         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6402         imaginary part less than 1.0 and real part less than 0.5
6403         specially.
6404         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6405         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6406         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
6407         (cacos_test): Add more tests.
6408         (casin_test): Likewise.
6409         (casinh_test): Likewise.
6410         * sysdeps/i386/fpu/libm-test-ulps: Update.
6411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6412
6413 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6414
6415         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
6416         ONE with its value.
6417
6418         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
6419         (__pow_mp): Replace ONE and MONE with their values.
6420         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6421         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
6422         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6423         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
6424         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6425         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6426
6427         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
6428
6429         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
6430         (__pow_mp): Replace ZERO and MZERO with their values.
6431         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
6432         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6433         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
6434         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
6435         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6436         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
6437         (__sqr): Likewise.
6438
6439         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
6440
6441         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
6442
6443 2013-03-28  Roland McGrath  <roland@hack.frob.com>
6444
6445         * include/stdlib.h [!SHARED] (__call_tls_dtors):
6446         Declare with __attribute__ ((weak)).
6447         * stdlib/exit.c (__libc_atexit) [!SHARED]:
6448         Call __call_tls_dtors only if it's not NULL.
6449
6450 2013-03-28  Roland McGrath  <roland@hack.frob.com>
6451
6452         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
6453         didn't do it already, then set _dl_phdr and _dl_phnum based on the
6454         magic __ehdr_start linker symbol if it's defined.
6455         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
6456         them up here if it was already done.
6457
6458         * elf/dl-support.c (_dl_phdr): Make pointer to const.
6459         (_dl_aux_init): Use const in cast when setting it.
6460         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
6461         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
6462         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
6463
6464         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
6465         Declare them here.
6466         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
6467         * csu/libc-tls.c: Nor here.
6468         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
6469
6470         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
6471         (__libc_message): Never call vsyslog.
6472
6473 2013-03-28  Alan Modra  <amodra@gmail.com>
6474
6475         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
6476         Define as empty.
6477         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
6478         Likewise.
6479
6480 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6481
6482         [BZ #15214]
6483         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
6484         underflow.
6485         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6486
6487 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6488
6489         [BZ #15304]
6490         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
6491         Don't add gid passed as argument.
6492
6493         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
6494
6495 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
6496
6497         [BZ #15307]
6498         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6499         imaginary part between 1.0 and 1.5 and real part less than 0.5
6500         specially.
6501         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6502         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6503         * math/libm-test.inc (cacos_test): Add more tests.
6504         (casin_test): Likewise.
6505         (casinh_test): Likewise.
6506         * sysdeps/i386/fpu/libm-test-ulps: Update.
6507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6508
6509 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6510
6511         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
6512         constants.
6513         (norm): Likewise.
6514         (denorm): Likewise.
6515         (__dbl_mp): Likewise.
6516         (add_magnitudes): Likewise.
6517         (sub_magnitudes): Likewise.
6518         (__add): Likewise.
6519         (__sub): Likewise.
6520         (__mul): Likewise.
6521         (__sqr): Likewise.
6522         (__inv): Likewise.
6523         (__dvd): Likewise.
6524
6525         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
6526         commented code.
6527         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
6528         (__dubcos): Likewise.
6529         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
6530         (__ieee754_acos): Likewise.
6531         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
6532         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
6533         (__exp1): Likewise.
6534         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
6535         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6536         (log1): Likewise.
6537         (my_log2): Likewise.
6538         (checkint): Likewise.
6539         * sysdeps/ieee754/dbl-64/e_remainder.c
6540         (__ieee754_remainder): Likewise.
6541         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
6542         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
6543         (bsloww): Likewise.
6544         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
6545
6546         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
6547         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
6548         MANTISSA_STORE_T to store computations on mantissa.  Use
6549         macros for rounding and division.
6550         (denorm): Likewise.
6551         (__dbl_mp): Likewise.
6552         (add_magnitudes): Likewise.
6553         (sub_magnitudes): Likewise.
6554         (__mul): Likewise.
6555         (__sqr): Likewise.
6556         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
6557         powers of two in terms of TWOPOW macro.
6558         (mp_no): Make type of mantissa as MANTISSA_T.
6559         [!RADIXI]: Define RADIXI.
6560         [!TWO52]: Define TWO52.
6561         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
6562
6563 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6564
6565         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
6566         llroundl symbol when building for PPC32.
6567
6568 2013-03-24  Mark H Weaver  <mhw@netris.org>
6569
6570         * manual/arith.texi (Normalization Functions): Fix prototypes for
6571         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
6572
6573 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6574
6575         [BZ #13889]
6576         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
6577         high value to check if expl overflow.
6578         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
6579         to check for underflow and overflow.
6580         * math/libm-test.inc: Add exp test.
6581
6582 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
6583
6584         [BZ #11120]
6585         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
6586         with NOT_IN_libc.
6587
6588 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6589
6590         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
6591         symbol.
6592
6593 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6594
6595         * math/gen-libm-test.pl (parse_args, special_functions): Properly
6596         wrap blocks consisting of several statements.
6597
6598         * sysdeps/generic/math-tests.h: New file.
6599         * sysdeps/i386/fpu/math-tests.h: Likewise.
6600         * math/test-snan.c: Include it.
6601         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
6602
6603 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
6604
6605         [BZ #15285]
6606         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
6607         (__ieee754_j0l): Do not improve calculations using cos of twice
6608         input for inputs above LDBL_MAX / 2.0L.
6609         (__ieee754_y0l): Likewise.
6610         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
6611         (__ieee754_j1l): Do not improve calculations using cos of twice
6612         input for inputs above LDBL_MAX / 2.0L.
6613         (__ieee754_y1l): Likewise.
6614         * math/libm-test.inc (j0_test): Add another test.
6615         (j1_test): Likewise.
6616         (y0_test): Likewise.
6617         (y1_test): Likewise.
6618         * sysdeps/i386/fpu/libm-test-ulps: Update.
6619
6620 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6621
6622         * Rules ($(objpfx)bench-%.c): Include code from a C source
6623         file.
6624
6625 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
6626
6627         [BZ #15287]
6628         * math/k_casinh.c (__kernel_casinh): Handle arguments with
6629         imaginary part 1.0 and real part less than 0.5 specially.
6630         * math/k_casinhf.c (__kernel_casinhf): Likewise.
6631         * math/k_casinhl.c (__kernel_casinhl): Likewise.
6632         * math/libm-test.inc (cacos_test): Add more tests.
6633         (casin_test): Likewise.
6634         (casinh_test): Likewise.
6635         * sysdeps/i386/fpu/libm-test-ulps: Update.
6636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6637
6638 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6639
6640         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
6641         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
6642
6643 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
6644
6645         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
6646         * config.make.in (config-cflags-sse4): Remove variable.
6647         (config-cflags-avx): Likewise.
6648         (config-cflags-sse2avx): Likewise.
6649         (config-cflags-novzeroupper): Likewise.
6650         (config-asflags-i686): Likewise.
6651         (have-mfma4): Likewise.
6652         (have-as-vis3): Likewise.
6653         (MIG): Likewise.
6654         * configure.in (MIG): Do not AC_SUBST.
6655         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
6656         (libc_cv_cc_sse4): Do not AC_SUBST.
6657         (libc_cv_cc_avx): Likewise.
6658         (libc_cv_cc_sse2avx): Likewise.
6659         (libc_cv_cc_novzeroupper): Likewise.
6660         (libc_cv_cc_fma4): Likewise.
6661         (libc_cv_as_i686): Likewise.
6662         (libc_cv_sparc_as_vis3): Likewise.
6663         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
6664         LIBC_CONFIG_VAR.
6665         (config-asflags-i686): Likewise.
6666         (config-cflags-avx): Likewise.
6667         (config-cflags-sse2avx): Likewise.
6668         (have-mfma4): Likewise.
6669         (config-cflags-novzeroupper): Likewise.
6670         * sysdeps/mach/configure.in (MIG): Likewise.
6671         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
6672         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
6673         LIBC_CONFIG_VAR.
6674         (config-cflags-avx): Likewise.
6675         (config-cflags-sse2avx): Likewise.
6676         (have-mfma4): Likewise.
6677         (config-cflags-novzeroupper): Likewise.
6678         * configure: Regenerated.
6679         * sysdeps/i386/configure: Likewise.
6680         * sysdeps/mach/configure: Likewise.
6681         * sysdeps/sparc/configure: Likewise.
6682         * sysdeps/x86_64/configure: Likewise.
6683
6684 2013-03-20  Roland McGrath  <roland@hack.frob.com>
6685
6686         [BZ #14812]
6687         * locale/programs/localedef.c (options): Put N_ translation marker
6688         on argument names, not just descriptions.
6689
6690 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6691
6692         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
6693
6694 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
6695
6696         [BZ #14176]
6697         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
6698
6699 2013-03-19  Roland McGrath  <roland@hack.frob.com>
6700
6701         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
6702         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
6703         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
6704         [!BEFORE_ABORT] (before_abort): New function.
6705         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
6706         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
6707         (writev_for_fatal): New function.
6708         (WRITEV_FOR_FATAL): New macro; call that.
6709         (backtrace_and_maps): New function.
6710         (BEFORE_ABORT): New macro; call that.
6711         (struct str_list): Type removed.
6712         (__libc_message, __libc_fatal): Functions removed.
6713         Include <sysdeps/posix/libc_fatal.c> instead.
6714
6715 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
6716
6717         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
6718         constants.
6719         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
6720         double constants.
6721
6722 2013-03-19  Andreas Schwab  <schwab@suse.de>
6723
6724         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
6725         * sysdeps/gnu/configure: Regenerate.
6726
6727         * configure.in: Substitute libc_cv_rtlddir.
6728         * configure: Regenerate.
6729         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
6730         * Makeconfig (rtlddir, inst_rtlddir): New variables.
6731         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
6732         * elf/Makefile (install-others, CFLAGS-interp.c)
6733         (ldso_install, common-ldd-rewrite): Likewise.
6734         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
6735         $(inst_slibdir)/$(rtld-installed-name).
6736         * scripts/rellns-sh: Add -p option.
6737         * Makerules (make-shlib-link): Use rellns-sh to get relative name
6738         for source.
6739
6740 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6741
6742         * manual/nptl.texi: Renamed to ...
6743         * manual/threads.texi: ... this.
6744         * manual/Makefile (chapters): Update.
6745
6746 2013-03-18  Roland McGrath  <roland@hack.frob.com>
6747
6748         [BZ #14812]
6749         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
6750         on argument names, not just descriptions.
6751         * malloc/memusagestat.c (options): Likewise.
6752         * nss/getent.c (options): Likewise.
6753
6754 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
6755
6756         [BZ #14812]
6757         * iconv/iconv_prog.c (options): Put N_ translation marker
6758         on argument names, not just descriptions.
6759         * iconv/iconvconfig.c (options): Likewise.
6760
6761 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
6762
6763         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
6764         implementation which is faster on all x86_64 architectures.
6765         Tested on AMD, Intel Nehalem, SNB, IVB.
6766         * sysdeps/x86_64/strnlen.S: Likewise.
6767
6768         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
6769         Remove all multiarch strlen and strnlen versions.
6770         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
6771         Remove strlen and strnlen related parts.
6772
6773         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
6774         Inline strlen part.
6775         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
6776
6777         * sysdeps/x86_64/multiarch/strlen.S: Remove.
6778         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
6779         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
6780         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
6781         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
6782         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
6783
6784 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
6785
6786         * manual/memory.texi (Malloc Tunable Parameters):
6787         Sort parameters alphabetically. Add comments for missing entries.
6788
6789 2013-03-17  David S. Miller  <davem@davemloft.net>
6790
6791         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6792
6793 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
6794
6795         [BZ #15283]
6796         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
6797         for arguments at most half maximum finite value.
6798         * math/libm-test.inc (j0_test): Add more tests.
6799         (j1_test): Likewise.
6800         (y0_test): Likewise.
6801         (y1_test): Likewise.
6802         * sysdeps/i386/fpu/libm-test-ulps: Update.
6803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6804
6805         [BZ #14155]
6806         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
6807         1 / x and functions P and Q for arguments above 0x1p256L.
6808         (__ieee754_y0l): Likewise.
6809         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6810         (__ieee754_y1l): Likewise.
6811         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
6812         (j1_test): Likewise.
6813         (y0_test): Likewise.
6814         (y1_test): Likewise.
6815
6816 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
6817
6818         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
6819         variable.
6820
6821 2013-03-15  Roland McGrath  <roland@hack.frob.com>
6822
6823         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
6824         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
6825         zero since it's initialized to EXEC_PAGESIZE.
6826
6827         * sysdeps/unix/sysv/linux/ldsodefs.h
6828         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
6829         * sysdeps/generic/ldsodefs.h: ... here.
6830
6831 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
6832
6833         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
6834
6835         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
6836         math/test-snan.c.
6837         * math/test-snan.c: Renamed from
6838         sysdeps/powerpc/fpu/test-powerpc-snan.c.
6839         * math/Makefile (tests): Add test-snan.
6840         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
6841         test-powerpc-snan.
6842
6843         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
6844         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
6845         functions.
6846         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
6847         __builtin_nan family of functions.
6848         * math/libm-test.inc (initialize): Initialize qnan_value with
6849         __builtin_nan family of functions.
6850         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
6851         Remove variables.
6852         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
6853         Remove functions.
6854         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
6855         storage class.  Initialize qNaN_var and sNaN_var with
6856         __builtin_nan and __builtin_nans families of functions,
6857         respectively.
6858
6859         * math/libm-test.inc (acosh_test): Also test with qNaN input.
6860         (sqrt_test): Remove duplicate test with qNaN input.
6861         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
6862         (round_test, signbit_test, significand_test): Note missing +/-Inf
6863         as well as qNaN tests.
6864
6865         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
6866         qNaN_var.  Fix a few strings, too.
6867         * math/libm-test.inc (nan_value): Rename to qnan_value.
6868         * math/gen-libm-test.pl (%beautify): Adjust to that.
6869         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
6870         * math/test-misc.c (main): Likewise.
6871         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
6872         to __qnan_bytes, and __qnan_union, respectively.
6873         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
6874         Likewise.
6875         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
6876         and lqnanval, respectively.
6877         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
6878         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
6879         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
6880         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
6881
6882         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
6883         * math/test-misc.c (main) [__x86_64__]: Enable test for long
6884         doubles.
6885
6886         * math/test-misc.c (main): Fix copy'n'pastos.
6887         * misc/tst-efgcvt.c (special): Likewise.
6888
6889         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
6890         Remove declarations.
6891
6892 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6893
6894         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
6895         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
6896         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
6897         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
6898
6899 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6900
6901         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
6902         macro to return vdso values correctly in IFUNC implementations.
6903         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
6904         Optimization by using IFUNC.
6905
6906 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6907             Richard Henderson  <rth@redhat.com>
6908             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6909
6910         * Makefile.in (bench): New target.
6911         * NEWS: Mention the benchmark framework.
6912         * Rules (bench): Likewise.
6913         (binaries-bench): Generate binaries for functions to
6914         benchmark.
6915         * benchtests/Makefile: New makefile for benchmark tests.
6916         * benchtests/bench-skeleton.c: New skeleton file for benchmark
6917         programs.
6918         * benchtests/exp-inputs: New input file for EXP function.
6919         * benchtests/pow-inputs: New input file for POW function.
6920         * scripts/bench.pl: New script to generate source files for
6921         benchmark programs.
6922
6923 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6924
6925         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
6926         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
6927         computations on mantissa.  Use macros for rounding and
6928         division.
6929         (denorm): Likewise.
6930         (__dbl_mp): Likewise.
6931         (add_magnitudes): Likewise.
6932         (sub_magnitudes): Likewise.
6933         (__mul): Likewise.
6934         (__sqr): Likewise.
6935         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
6936         powers of two in terms of TWOPOW macro.
6937         (mp_no): Make type of mantissa as MANTISSA_T.
6938         [!RADIXI]: Define RADIXI.
6939         [!TWO52]: Define TWO52.
6940         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
6941
6942         * manual/nptl.texi (cindex): Modify threads to pthreads.
6943
6944 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
6945
6946         * sysdeps/x86_64/preconfigure: Regenerated.
6947
6948 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
6949
6950         [BZ #14155]
6951         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
6952         0x1p28 and above.
6953         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
6954         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
6955         0x1p28 and above.
6956         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
6957         * math/libm-test.inc (j0_test): Do not allow one spurious
6958         underflow exception.
6959         (y1_test): Likewise.
6960
6961 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6962
6963         * manual/Makefile (chapters): Add nptl.
6964         * manual/debug.texi (Debugging Support): Add link to Threads
6965         chapter.
6966         * manual/nptl.texi: New file.
6967
6968         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
6969
6970 2013-03-14  Petr Baudis  <pasky@ucw.cz>
6971
6972         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
6973         for non-NULL pointer before the memory validity test. Pointed
6974         out by Holger Brunck <holger.brunck@keymile.com>.
6975
6976 2013-03-13  Andreas Schwab  <schwab@suse.de>
6977
6978         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
6979         instead of .os.
6980
6981 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
6982
6983         * timezone/zic.c: Update from tzcode 2013b.
6984
6985 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
6986
6987         * manual/install.texi (Configuring and compiling):
6988         Mention i686 and i586.
6989         * INSTALL: Regenerate.
6990
6991 2013-03-12  Roland McGrath  <roland@hack.frob.com>
6992
6993         * sysdeps/init_array/elf-init.c: New file.
6994         * csu/elf-init.c
6995         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
6996         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
6997
6998         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
6999         __gmon_start__ as global, but as static with a .preinit_array pointer.
7000         * sysdeps/init_array/gmon-start.c: New file.  Use that.
7001         * sysdeps/init_array/crti.S: New file, empty except for comments.
7002         * sysdeps/init_array/crtn.S: Likewise.
7003
7004 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
7005
7006         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
7007         definining bcopy.
7008         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7009         Remove Prefer_SSE_for_memop.
7010         * sysdeps/x86_64/multiarch/init-arch.h: Remove
7011         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
7012         HAS_PREFER_SSE_FOR_MEMOP.
7013         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7014         memset-x86-64.
7015         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7016         Remove bzero, memset ifunc support.
7017         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
7018         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
7019         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7020         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7021
7022 2013-03-11  Andreas Schwab  <schwab@suse.de>
7023
7024         [BZ #15234]
7025         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
7026         by SHLIB_COMPAT.
7027         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
7028         (GLIBC_2.16): Remove pthread_atfork.
7029
7030 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
7031
7032         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
7033         (ptestcases.h): Likewise.
7034
7035 2013-03-08  Roland McGrath  <roland@hack.frob.com>
7036
7037         * Makeconfig ($(common-objpfx)config.status): Depend on
7038         sysdeps/*/preconfigure{,.in} too.
7039
7040 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
7041
7042         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
7043         (__free_hook): Use void * instead of __malloc_ptr_t.
7044         (__malloc_hook): Likewise.
7045         (__realloc_hook): Likewise.
7046         (__memalign_hook): Likewise.
7047         (__after_morecore_hook): Likewise.
7048         * malloc/arena.c (save_malloc_hook): Likewise.
7049         (save_free_hook): Likewise.
7050         * malloc/hooks.c (malloc_hook_ini): Likewise.
7051         (realloc_hook_ini): Likewise.
7052         (memalign_hook_ini): Likewise.
7053         * malloc/malloc.c (malloc_hook_ini): Likewise.
7054         (realloc_hook_ini): Likewise.
7055         (memalign_hook_ini): Likewise.
7056         (__free_hook): Likewise.
7057         (__malloc_hook): Likewise.
7058         (__realloc_hook): Likewise.
7059         (__memalign_hook): Likewise.
7060         (__libc_malloc): Likewise.
7061         (__libc_free): Likewise.
7062         (__libc_realloc): Likewise.
7063         (__libc_memalign): Likewise.
7064         (__libc_valloc): Likewise.
7065         (__libc_pvalloc): Likewise.
7066         (__libc_calloc): Likewise.
7067         (__posix_memalign): Likewise.
7068         * malloc/morecore.c (__sbrk): Likewise.
7069         (__default_morecore): Likewise.
7070
7071         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
7072
7073         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
7074         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
7075         __malloc_ptrdiff_t.
7076
7077         * malloc/malloc.h (__malloc_size_t): Remove macro.
7078         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
7079         __malloc_size_t.
7080         (old_memalign_hook): Likewise.
7081         (old_realloc_hook): Likewise.
7082         (struct hdr): Likewise.
7083         (flood): Likewise.
7084         (mallochook): Likewise.
7085         (memalignhook): Likewise.
7086         (reallochook): Likewise.
7087         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
7088         (tr_old_realloc_hook): Likewise.
7089         (tr_old_memalign_hook): Likewise.
7090         (tr_mallochook): Likewise.
7091         (tr_reallochook): Likewise.
7092         (tr_memalignhook): Likewise.
7093
7094 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7095
7096         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
7097         default_ldbl_pack and using as default implementation.
7098         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
7099         implementation.
7100         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
7101         redundant definition.
7102         (ldbl_insert_mantissa): Likewise.
7103         (ldbl_canonicalize): Likewise.
7104         (ldbl_nearbyint): Likewise.
7105         (ldbl_pack): Rename to ldbl_pack_ppc.
7106         (ldbl_unpack): Rename to ldbl_unpack_ppc.
7107         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
7108         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
7109
7110 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
7111
7112         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
7113         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
7114         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
7115         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
7116         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
7117         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
7118         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
7119         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
7120
7121 2013-03-07  Andreas Jaeger  <aj@suse.de>
7122
7123         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7124         bits/mman-linux.h.
7125
7126 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7127
7128         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
7129         Include mpa.h and declare __MPEXP.
7130         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
7131         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7132         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7133         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
7134         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7135         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7136         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
7137
7138         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
7139         (__slowpow): Use long double EXPL and LOGL functions to
7140         compute POW.
7141         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7142         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7143         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
7144         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7145         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7146         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
7147
7148         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
7149         intermediate variable to calculate exponent.
7150         (__sqr): Likewise.
7151         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
7152         Likewise.
7153         (__sqr): Likewise.
7154
7155         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
7156         [!NO__SQR]: Define __sqr.
7157         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
7158         and NO__SQR.  Remove all code except __mul and __sqr.  Include
7159         sysdeps/ieee754/dbl-64/mpa.c.
7160         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7161
7162         [BZ #12723]
7163         * posix/Makefile (tests): Add tst-pathconf.
7164         * posix/tst-pathconf.c: New test case.
7165         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
7166         _PC_PIPE_BUF.
7167         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
7168
7169 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
7170
7171         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
7172
7173 2013-03-06  Andreas Jaeger  <aj@suse.de>
7174
7175         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
7176         definition via __MAP_ANONYMOUS.
7177
7178         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
7179         it's not part of Linux headers.
7180
7181         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
7182         (MAP_HUGE_MASK): Define.
7183
7184         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7185         Define.
7186         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7187         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7188         Define.
7189         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7190         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7191         Define.
7192         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7193         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
7194         Define.
7195         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7196
7197         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
7198         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
7199         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
7200         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
7201         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
7202         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
7203
7204         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
7205         Handle f2fs.
7206
7207         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7208         Handle f2fs and efivarfs.
7209
7210         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
7211         f2fs.
7212
7213         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
7214         (EFIVARFS_MAGIC): Add.
7215         (F2FS_LINK_MAX): Add.
7216
7217 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7218
7219         * stdio-common/vfprintf.c: Replace __builtin_expect with
7220         __glibc_unlikely.
7221
7222 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
7223
7224         [BZ #13550]
7225         * sysdeps/generic/bp-sym.h: Remove file.
7226         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
7227         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
7228         <bp-sym.h> and <bp-asm.h>.
7229         (__longjmp): Don't use BP_SYM.
7230         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
7231         and <bp-asm.h>.
7232         (memcpy): Don't use BP_SYM.
7233         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
7234         <bp-sym.h> and <bp-asm.h>.
7235         (memcpy): Don't use BP_SYM.
7236         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
7237         <bp-asm.h>.
7238         (memcpy): Don't use BP_SYM.
7239         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
7240         <bp-asm.h>.
7241         (memset): Don't use BP_SYM.
7242         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7243         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7244         (__bzero): Don't use BP_SYM.
7245         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7246         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7247         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
7248         <bp-sym.h> and <bp-asm.h>.
7249         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7250         pointers.
7251         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
7252         <bp-sym.h> and <bp-asm.h>.
7253         (memcpy): Don't use BP_SYM.
7254         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
7255         <bp-sym.h> and <bp-asm.h>.
7256         (memset): Don't use BP_SYM.
7257         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7258         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7259         (__bzero): Don't use BP_SYM.
7260         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7261         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7262         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
7263         <bp-sym.h> and <bp-asm.h>.
7264         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7265         pointers.
7266         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
7267         <bp-sym.h> and <bp-asm.h>.
7268         (memcpy): Don't use BP_SYM.
7269         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
7270         <bp-sym.h> and <bp-asm.h>.
7271         (memset): Don't use BP_SYM.
7272         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7273         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7274         (__bzero): Don't use BP_SYM.
7275         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7276         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7277         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
7278         <bp-sym.h> and <bp-asm.h>.
7279         (__memchr): Don't use BP_SYM.
7280         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
7281         <bp-sym.h> and <bp-asm.h>.
7282         (memcmp): Don't use BP_SYM.  Remove comment about bounded
7283         pointers.
7284         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
7285         <bp-sym.h> and <bp-asm.h>.
7286         (memcpy): Don't use BP_SYM.
7287         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
7288         <bp-sym.h> and <bp-asm.h>.
7289         (__mempcpy): Don't use BP_SYM.
7290         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
7291         <bp-sym.h> and <bp-asm.h>.
7292         (__memrchr): Don't use BP_SYM.
7293         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
7294         <bp-sym.h> and <bp-asm.h>.
7295         (memset): Don't use BP_SYM.
7296         (__bzero): Likewise.
7297         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
7298         <bp-sym.h> and <bp-asm.h>.
7299         (__rawmemchr): Don't use BP_SYM.
7300         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
7301         <bp-sym.h> and <bp-asm.h>.
7302         (__STRCMP): Don't use BP_SYM.
7303         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
7304         <bp-sym.h> and <bp-asm.h>.
7305         (strchr): Don't use BP_SYM.
7306         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
7307         <bp-sym.h> and <bp-asm.h>.
7308         (__strchrnul): Don't use BP_SYM.
7309         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
7310         <bp-sym.h> and <bp-asm.h>.
7311         (strlen): Don't use BP_SYM.
7312         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
7313         <bp-sym.h> and <bp-asm.h>.
7314         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7315         pointers.
7316         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
7317         <bp-sym.h> and <bp-asm.h>.
7318         (__strnlen): Don't use BP_SYM.
7319         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
7320         <bp-sym.h> and <bp-asm.h>.
7321         (__GI__setjmp): Don't use BP_SYM.
7322         (_setjmp): Likewise.
7323         (__sigsetjmp): Likewise.
7324         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
7325         (L(start_addresses)): Don't use BP_SYM.
7326         (_start): Likewise.
7327         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
7328         <bp-asm.h>.
7329         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
7330         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
7331         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7332         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7333         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
7334         <bp-asm.h>.
7335         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
7336         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
7337         about bounded pointers.
7338         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7339         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7340         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
7341         <bp-asm.h>.
7342         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
7343         about bounded pointers.  Remove GKM FIXME comments.
7344         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7345         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
7346         <bp-asm.h>.
7347         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
7348         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
7349         Remove GKM FIXME comments.
7350         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7351         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7352         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
7353         <bp-asm.h>.
7354         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
7355         about bounded pointers.  Remove GKM FIXME comment.
7356         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
7357         and <bp-asm.h>.
7358         (strncmp): Don't use BP_SYM.  Remove comment about bounded
7359         pointers.
7360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
7361         <bp-sym.h> and <bp-asm.h>.
7362         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
7363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
7364         <bp-sym.h> and <bp-asm.h>.
7365         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
7366         comment.
7367
7368 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7369
7370         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
7371         call free(NULL).
7372
7373 2013-03-05  David S. Miller  <davem@davemloft.net>
7374
7375         * po/es.po: Update from translation team.
7376
7377 2013-03-05  Andreas Jaeger  <aj@suse.de>
7378
7379         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
7380         <bits/mman-linux.h>.
7381         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7382         is fine.
7383         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
7384         <bits/mman-linux.h> to end of file.
7385         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7386         is fine.
7387         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
7388         <bits/mman-linux.h> to end of file.
7389         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
7390         is fine.
7391         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
7392         <bits/mman-linux.h> to end of file.
7393
7394         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
7395         (MCL_CURRENT, MCL_FUTURE): Define here.
7396
7397 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7398
7399         [BZ #15232]
7400         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
7401         attribute_hidden.
7402         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
7403
7404 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7405
7406         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
7407         fourth parameter needed for rt_sigprocmask syscall.
7408         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
7409         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
7410         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7411         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
7412         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7413         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
7414
7415 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
7416
7417         [BZ #13550]
7418         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
7419         comment about bounded pointers.
7420         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
7421         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
7422
7423 2013-03-04  Andreas Jaeger  <aj@suse.de>
7424
7425         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
7426         common definitions.
7427
7428         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
7429         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
7430         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
7431         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7432         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
7433         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
7434
7435 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7436
7437         [BZ #15055]
7438         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
7439         __ieee754_sqrl instead of __sqrl.
7440
7441 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
7442
7443         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
7444         * sysdeps/powerpc/fpu_control.h: ... here.
7445         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
7446         * sysdeps/powerpc/bits/fenvinline.h: ... here.
7447         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
7448         * sysdeps/powerpc/bits/mathinline.h: ... here.
7449
7450 2013-03-01  Roland McGrath  <roland@hack.frob.com>
7451
7452         * elf/dl-hwcaps.c (_dl_important_hwcaps):
7453         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
7454         to just [NEED_DL_SYSINFO_DSO].
7455         * elf/dl-support.c: Likewise.
7456         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
7457         * elf/rtld.c (dl_main): Likewise.
7458         * elf/setup-vdso.h (setup_vdso): Likewise.
7459         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
7460         * sysdeps/unix/sysv/linux/dl-sysdep.c
7461         (_dl_discover_osversion): Likewise.
7462
7463 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
7464
7465         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
7466         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
7467
7468 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
7469
7470         * NEWS: Mention libm performance improvements and non-x86 PI
7471         futex support.
7472
7473         * csu/libc-start.c (__pthread_initialize_minimal): Change
7474         function arguments.
7475         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
7476
7477 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
7478
7479         [BZ #13550]
7480         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
7481         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
7482         <bp-sym.h> and <bp-asm.h>.
7483         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7484         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
7485         and <bp-asm.h>.
7486         (memcpy): Don't use BP_SYM.
7487         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
7488         <bp-asm.h>.
7489         (__mpn_add_n): Don't use BP_SYM.
7490         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
7491         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
7492         and <bp-asm.h>.
7493         (__mpn_addmul_1): Don't use BP_SYM.
7494         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7495         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
7496         <bp-sym.h>.
7497         (_setjmp): Don't use BP_SYM.
7498         (__novmx_setjmp): Likewise.
7499         (__GI__setjmp): Likewise.
7500         (__vmx_setjmp): Likewise.
7501         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
7502         <bp-sym.h>.
7503         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
7504         (__bzero): Don't use BP_SYM.
7505         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
7506         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
7507         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
7508         <bp-sym.h> and <bp-asm.h>.
7509         (memcpy): Don't use BP_SYM.
7510         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
7511         <bp-sym.h> and <bp-asm.h>.
7512         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7513         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
7514         <bp-sym.h> and <bp-asm.h>.
7515         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
7516         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
7517         <bp-asm.h>.
7518         (__mpn_lshift): Don't use BP_SYM.
7519         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7520         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
7521         <bp-asm.h>.
7522         (memset): Don't use BP_SYM.
7523         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
7524         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
7525         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
7526         <bp-asm.h>.
7527         (__mpn_mul_1): Don't use BP_SYM.
7528         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7529         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
7530         <bp-sym.h> and <bp-asm.h>.
7531         (memcmp): Don't use BP_SYM.
7532         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
7533         <bp-sym.h> and <bp-asm.h>.
7534         (memcpy): Don't use BP_SYM.
7535         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
7536         <bp-sym.h> and <bp-asm.h>.
7537         (memset): Don't use BP_SYM.
7538         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
7539         <bp-sym.h> and <bp-asm.h>.
7540         (strncmp): Don't use BP_SYM.
7541         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
7542         <bp-sym.h> and <bp-asm.h>.
7543         (memcpy): Don't use BP_SYM.
7544         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
7545         <bp-sym.h> and <bp-asm.h>.
7546         (memset): Don't use BP_SYM.
7547         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
7548         <bp-sym.h> and <bp-asm.h>.
7549         (__memchr): Don't use BP_SYM.
7550         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
7551         <bp-sym.h> and <bp-asm.h>.
7552         (memcmp): Don't use BP_SYM.
7553         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
7554         <bp-sym.h> and <bp-asm.h>.
7555         (memcpy): Don't use BP_SYM.
7556         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
7557         <bp-sym.h> and <bp-asm.h>.
7558         (__mempcpy): Don't use BP_SYM.
7559         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
7560         <bp-sym.h> and <bp-asm.h>.
7561         (__memrchr): Don't use BP_SYM.
7562         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
7563         <bp-sym.h> and <bp-asm.h>.
7564         (memset): Don't use BP_SYM.
7565         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
7566         <bp-sym.h> and <bp-asm.h>.
7567         (__rawmemchr): Don't use BP_SYM.
7568         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
7569         <bp-sym.h> and <bp-asm.h>.
7570         (__STRCMP): Don't use BP_SYM.
7571         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
7572         <bp-sym.h> and <bp-asm.h>.
7573         (strchr): Don't use BP_SYM.
7574         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
7575         <bp-sym.h> and <bp-asm.h>.
7576         (__strchrnul): Don't use BP_SYM.
7577         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
7578         <bp-sym.h> and <bp-asm.h>.
7579         (strlen): Don't use BP_SYM.
7580         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
7581         <bp-sym.h> and <bp-asm.h>.
7582         (strncmp): Don't use BP_SYM.
7583         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
7584         <bp-sym.h> and <bp-asm.h>.
7585         (__strnlen): Don't use BP_SYM.
7586         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
7587         <bp-asm.h>.
7588         (__mpn_rshift): Don't use BP_SYM.
7589         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7590         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
7591         <bp-sym.h> and <bp-asm.h>.
7592         (__sigsetjmp): Don't use BP_SYM.
7593         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
7594         (L(start_addresses)): Don't use BP_SYM.
7595         (_start): Likewise.
7596         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
7597         <bp-asm.h>.
7598         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
7599         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7600         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7601         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
7602         <bp-asm.h>.
7603         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
7604         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7605         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7606         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
7607         <bp-asm.h>.
7608         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
7609         comments.
7610         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7611         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
7612         <bp-asm.h>.
7613         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
7614         FIXME comments.
7615         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7616         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
7617         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
7618         <bp-asm.h>.
7619         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
7620         comment.
7621         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
7622         and <bp-asm.h>.
7623         (strncmp): Don't use BP_SYM,
7624         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
7625         <bp-asm.h>.
7626         (__mpn_sub_n): Don't use BP_SYM.
7627         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7628         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
7629         and <bp-asm.h>.
7630         (__mpn_submul_1): Don't use BP_SYM.
7631         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
7633         <bp-sym.h> and <bp-asm.h>.
7634         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
7635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
7636         <bp-sym.h> and <bp-asm.h>.
7637         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
7638         comment.
7639
7640 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7641
7642         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
7643         Use ZK to minimize writes to Z.
7644         (sub_magnitudes): Simplify code a bit.
7645         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
7646         Use ZK to minimize writes to Z.
7647         (sub_magnitudes): Simplify code a bit.
7648
7649 2013-02-27  Roland McGrath  <roland@hack.frob.com>
7650
7651         * csu/gmon-start.c: Add special exception to license text.
7652
7653 2013-02-27  Richard Henderson  <rth@redhat.com>
7654
7655         * scripts/config.guess: Update from config.git.
7656         * scripts/config.sub: Likewise.
7657
7658 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7659
7660         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
7661
7662         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
7663
7664         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
7665
7666         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
7667
7668         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
7669
7670 2013-02-26  Roland McGrath  <roland@hack.frob.com>
7671
7672         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
7673         [$(build-shared = yes].
7674
7675 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7676
7677         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
7678         (__mul): Reduce iterations for calculating mantissa.
7679
7680         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
7681         MPTWO.
7682         (__mpranred): Likewise.
7683
7684         [BZ #15160]
7685         * malloc/memusagestat.c (main): Draw graphs for heap and stack
7686         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
7687
7688 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7689
7690         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
7691         Define __attribute__.
7692
7693 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7694
7695         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
7696         unused.
7697         * posix/regex_internal.h (__attribute): Remove.
7698         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
7699         (re_string_context_at): Likewise.
7700         (bitset_not): Use __attribute__ and mark function as possibly
7701         unused.
7702         (bitset_merge): Likewise.
7703         (bitset_mask): Likewise.
7704         (re_string_char_size_at): Likewise.
7705         (re_string_wchar_at): Likewise.
7706         (re_string_elem_size_at): Likewise.
7707
7708 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7709
7710         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
7711         code.
7712         (cc32): Likewise.
7713
7714         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
7715         (__acr): Likewise.
7716         (__cpy): Likewise.
7717         (norm): Likewise.
7718         (denorm): Likewise.
7719         (__dbl_mp): Likewise.
7720         (add_magnitudes): Likewise.
7721         (sub_magnitudes): Likewise.
7722         (__mul): Likewise.
7723         (__inv): Likewise.
7724
7725         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
7726         style.
7727
7728         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
7729         style.
7730
7731         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
7732         code.
7733
7734         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
7735         up changes with default code.
7736         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
7737         Likewise.
7738
7739 2013-02-24  Allan McRae  <allan@archlinux.org>
7740
7741         * manual/socket.texi (The Internet Namespace): Order menu items
7742         to match that in the file.
7743
7744         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
7745         node listing of the info page menu.
7746
7747 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
7748
7749         [BZ #13550]
7750         * sysdeps/i386/bp-asm.h: Remove file.
7751         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
7752         (PARMS): Do not use macros from bp-asm.h.
7753         (S1): Likewise.
7754         (S2): Likewise.
7755         (SIZE): Likewise.
7756         (__mpn_add_n): Do not use BP_SYM
7757         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
7758         "bp-asm.h".
7759         (PARMS): Do not use macros from bp-asm.h.
7760         (S1): Likewise.
7761         (SIZE): Likewise.
7762         (__mpn_addmul_1): Do not use BP_SYM
7763         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
7764         "bp-asm.h".
7765         (PARMS): Do not use macros from bp-asm.h.
7766         (SIGMSK): Likewise.
7767         (_setjmp): Likewise.  Do not use BP_SYM.
7768         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
7769         "bp-asm.h".
7770         (PARMS): Do not use macros from bp-asm.h.
7771         (SIGMSK): Likewise.
7772         (setjmp): Likewise.  Do not use BP_SYM.
7773         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
7774         "bp-asm.h".
7775         (PARMS): Do not use macros from bp-asm.h.
7776         (__frexp): Do not use BP_SYM.
7777         (frexp): Likewise.
7778         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
7779         "bp-asm.h".
7780         (PARMS): Do not use macros from bp-asm.h.
7781         (__frexpf): Do not use BP_SYM.
7782         (frexpf): Likewise.
7783         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
7784         "bp-asm.h".
7785         (PARMS): Do not use macros from bp-asm.h.
7786         (__frexpl): Do not use BP_SYM.
7787         (frexpl): Likewise.
7788         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
7789         "bp-asm.h".
7790         (PARMS): Do not use macros from bp-asm.h.
7791         (__remquo): Do not use BP_SYM.
7792         (remquo): Likewise.
7793         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
7794         "bp-asm.h".
7795         (PARMS): Do not use macros from bp-asm.h.
7796         (__remquof): Do not use BP_SYM.
7797         (remquof): Likewise.
7798         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
7799         "bp-asm.h".
7800         (PARMS): Do not use macros from bp-asm.h.
7801         (__remquol): Do not use BP_SYM.
7802         (remquol): Likewise.
7803         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
7804         "bp-asm.h".
7805         (PARMS): Do not use macros from bp-asm.h.
7806         (DEST): Likewise.
7807         (SRC): Likewise.
7808         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
7809         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
7810         "bp-asm.h".
7811         (PARMS): Do not use macros from bp-asm.h.
7812         (strlen): Do not use BP_SYM.
7813         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
7814         "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/i586/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/i586/bzero.S (__bzero): Do not use BP_SYM in
7827         weak_alias.
7828         (bzero): Likewise.
7829         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
7830         "bp-asm.h".
7831         (PARMS): Do not use macros from bp-asm.h.
7832         (S): Likewise.
7833         (SIZE): Likewise.
7834         (__mpn_lshift): Do not use BP_SYM.
7835         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
7836         "bp-asm.h".
7837         (PARMS): Do not use macros from bp-asm.h.
7838         (DEST): Likewise.
7839         (SRC): Likewise.
7840         (LEN): Likewise.
7841         (memcpy): Likewise.  Do not use BP_SYM.
7842         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
7843         libc_hidden_def and weak_alias.
7844         (mempcpy): Do not use BP_SYM in weak_alias.
7845         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
7846         "bp-asm.h".
7847         (PARMS): Do not use macros from bp-asm.h.
7848         (DEST): Likewise.
7849         (LEN): Likewise.
7850         [!BZERO_P] (CHR): Likewise.
7851         (memset): Likewise.  Do not use BP_SYM.
7852         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
7853         "bp-asm.h".
7854         (PARMS): Do not use macros from bp-asm.h.
7855         (S1): Likewise.
7856         (SIZE): Likewise.
7857         (__mpn_mul_1): Do not use BP_SYM.
7858         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
7859         "bp-asm.h".
7860         (PARMS): Do not use macros from bp-asm.h.
7861         (S): Likewise.
7862         (SIZE): Likewise.
7863         (__mpn_rshift): Do not use BP_SYM.
7864         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
7865         "bp-asm.h".
7866         (PARMS): Do not use macros from bp-asm.h.
7867         (STR): Likewise.
7868         (CHR): Likewise.
7869         (strchr): Likewise.  Do not use BP_SYM.
7870         (index): Do not use BP_SYM in weak_alias.
7871         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
7872         "bp-asm.h".
7873         (PARMS): Do not use macros from bp-asm.h.
7874         (DEST): Likewise.
7875         (SRC): Likewise.
7876         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
7877         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
7878         "bp-asm.h".
7879         (PARMS): Do not use macros from bp-asm.h.
7880         (strlen): Do not use BP_SYM.
7881         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
7882         "bp-asm.h".
7883         (PARMS): Do not use macros from bp-asm.h.
7884         (S1): Likewise.
7885         (S2): Likewise.
7886         (SIZE): Likewise.
7887         (__mpn_sub_n): Do not use BP_SYM.
7888         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
7889         "bp-asm.h".
7890         (PARMS): Do not use macros from bp-asm.h.
7891         (S1): Likewise.
7892         (SIZE): Likewise.
7893         (__mpn_submul_1): Do not use BP_SYM.
7894         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
7895         "bp-asm.h".
7896         (PARMS): Do not use macros from bp-asm.h.
7897         (S1): Likewise.
7898         (S2): Likewise.
7899         (SIZE): Likewise.
7900         (__mpn_add_n): Do not use BP_SYM.
7901         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
7902         weak_alias.
7903         (bzero): Likewise.
7904         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
7905         "bp-asm.h".
7906         (PARMS): Do not use macros from bp-asm.h.
7907         (BLK2): Likewise.
7908         (LEN): Likewise.
7909         (memcmp): Do not use BP_SYM.
7910         (bcmp): Do not use BP_SYM in weak_alias.
7911         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
7912         "bp-asm.h".
7913         (PARMS): Do not use macros from bp-asm.h.
7914         (DEST): Likewise.
7915         (SRC): Likewise.
7916         (LEN): Likewise.
7917         (memcpy): Likewise.  Do not use BP_SYM.
7918         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
7919         "bp-asm.h".
7920         (PARMS): Do not use macros from bp-asm.h.
7921         (DEST): Likewise.
7922         (SRC): Likewise.
7923         (LEN): Likewise.
7924         (memmove): Likewise.  Do not use BP_SYM.
7925         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
7926         "bp-asm.h".
7927         (PARMS): Do not use macros from bp-asm.h.
7928         (DEST): Likewise.
7929         (SRC): Likewise.
7930         (LEN): Likewise.
7931         (__mempcpy): Likewise.  Do not use BP_SYM.
7932         (mempcpy): Do not use BP_SYM in weak_alias.
7933         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
7934         "bp-asm.h".
7935         (PARMS): Do not use macros from bp-asm.h.
7936         (DEST): Likewise.
7937         (LEN): Likewise.
7938         [!BZERO_P] (CHR): Likewise.
7939         (memset): Likewise.  Do not use BP_SYM.
7940         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
7941         "bp-asm.h".
7942         (PARMS): Do not use macros from bp-asm.h.
7943         (STR2): Likewise.
7944         (strcmp): Do not use BP_SYM.
7945         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
7946         "bp-asm.h".
7947         (PARMS): Do not use macros from bp-asm.h.
7948         (STR): Likewise.
7949         (DELIM): Likewise.
7950         [USE_AS_STRTOK_R] (SAVE): Likewise.
7951         (FUNCTION): Likewise.  Do not use BP_SYM.
7952         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
7953         aliases.
7954         (strtok_r): Likewise.
7955         (__GI___strtok_r): Likewise.
7956         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
7957         (PARMS): Do not use macros from bp-asm.h.
7958         (S): Likewise.
7959         (SIZE): Likewise.
7960         (__mpn_lshift): Do not use BP_SYM.
7961         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
7962         (PARMS): Do not use macros from bp-asm.h.
7963         (STR): Likewise.
7964         (CHR): Likewise.
7965         (__memchr): Do not use BP_SYM.
7966         (memchr): Do not use BP_SYM in weak_alias.
7967         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
7968         (PARMS): Do not use macros from bp-asm.h.
7969         (BLK2): Likewise.
7970         (LEN): Likewise.
7971         (memcmp): Do not use BP_SYM.
7972         (bcmp): Do not use BP_SYM in weak_alias.
7973         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
7974         (PARMS): Do not use macros from bp-asm.h.
7975         (S1): Likewise.
7976         (SIZE): Likewise.
7977         (__mpn_mul_1): Do not use BP_SYM.
7978         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
7979         "bp-asm.h".
7980         (PARMS): Do not use macros from bp-asm.h.
7981         (STR): Likewise.
7982         (CHR): Likewise.
7983         (__rawmemchr): Do not use BP_SYM.
7984         (rawmemchr): Do not use BP_SYM in weak_alias.
7985         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
7986         (PARMS): Do not use macros from bp-asm.h.
7987         (S): Likewise.
7988         (SIZE): Likewise.
7989         (__mpn_rshift): Do not use BP_SYM.
7990         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
7991         (PARMS): Do not use macros from bp-asm.h.
7992         (SIGMSK): Likewise.
7993         (__sigsetjmp): Likewise.  Do not use BP_SYM.
7994         * sysdeps/i386/start.S: Do not include "bp-sym.h".
7995         (_start): Do not use BP_SYM.
7996         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
7997         (PARMS): Do not use macros from bp-asm.h.
7998         (DEST): Likewise.
7999         (SRC): Likewise.
8000         (__stpcpy): Likewise.  Do not use BP_SYM.
8001         (stpcpy): Do not use BP_SYM in weak_alias.
8002         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
8003         "bp-asm.h".
8004         (PARMS): Do not use macros from bp-asm.h.
8005         (DEST): Likewise.
8006         (SRC): Likewise.
8007         (LEN): Likewise.
8008         (__stpncpy): Likewise.  Do not use BP_SYM.
8009         (stpncpy): Do not use BP_SYM in weak_alias.
8010         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8011         (PARMS): Do not use macros from bp-asm.h.
8012         (STR): Likewise.
8013         (CHR): Likewise.
8014         (strchr): Likewise.  Do not use BP_SYM.
8015         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
8016         "bp-asm.h".
8017         (PARMS): Do not use macros from bp-asm.h.
8018         (STR): Likewise.
8019         (CHR): Likewise.
8020         (__strchrnul): Likewise.  Do not use BP_SYM.
8021         (strchrnul): Do not use BP_SYM in weak_alias.
8022         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
8023         "bp-asm.h".
8024         (PARMS): Do not use macros from bp-asm.h.
8025         (STOP): Likewise.
8026         (strcspn): Do not use BP_SYM.
8027         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
8028         "bp-asm.h".
8029         (PARMS): Do not use macros from bp-asm.h.
8030         (STR): Likewise.
8031         (STOP): Likewise.
8032         (strpbrk): Likewise.  Do not use BP_SYM.
8033         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
8034         "bp-asm.h".
8035         (PARMS): Do not use macros from bp-asm.h.
8036         (STR): Likewise.
8037         (CHR): Likewise.
8038         (strrchr): Likewise.  Do not use BP_SYM.
8039         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
8040         (PARMS): Do not use macros from bp-asm.h.
8041         (SKIP): Likewise.
8042         (strspn): Do not use BP_SYM.
8043         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
8044         (PARMS): Do not use macros from bp-asm.h.
8045         (STR): Likewise.
8046         (DELIM): Likewise.
8047         (SAVE): Likewise.
8048         (FUNCTION): Likewise.  Do not use BP_SYM.
8049         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
8050         aliases.
8051         (strtok_r): Likewise.
8052         (__GI___strtok_r): Likewise.
8053         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8054         (PARMS): Do not use macros from bp-asm.h.
8055         (S1): Likewise.
8056         (S2): Likewise.
8057         (SIZE): Likewise.
8058         (__mpn_sub_n): Do not use BP_SYM.
8059         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
8060         "bp-asm.h".
8061         (PARMS): Do not use macros from bp-asm.h.
8062         (S1): Likewise.
8063         (SIZE): Likewise.
8064         (__mpn_submul_1): Do not use BP_SYM.
8065         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
8066         <bp-sym.h>.
8067         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
8068         and <bp-asm.h>.
8069         (PARMS): Do not use macros from bp-asm.h.
8070         (FLAGS): Likewise.
8071         (PTID): Likewise.
8072         (TLS): Likewise.
8073         (CTID): Likewise.
8074         (__clone): Do not use BP_SYM.
8075         (clone): Do not use BP_SYM in weak_alias.
8076         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
8077         and <bp-asm.h>.
8078         (PARMS): Do not use macros from bp-asm.h.
8079         (LEN): Likewise.
8080         (__mmap64): Do not use BP_SYM.
8081         (mmap64): Do not use BP_SYM in weak_alias.
8082         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8083         <bp-sym.h> and <bp-asm.h>.
8084         (PARMS): Do not use macros from bp-asm.h.
8085         (__posix_fadvise64_l64): Do not use BP_SYM.
8086         * sysdeps/unix/sysv/linux/i386/semtimedop.S
8087         (PARMS): Do not use macros from bp-asm.h.
8088         (NSOPS): Likewise.
8089         (semtimedop): Do not use BP_SYM.
8090         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
8091         and <bp-asm.h>.
8092
8093 2013-02-21  Allan McRae  <allan@archlinux.org>
8094
8095         * manual/message.texi (Charset conversion in gettext):
8096         Move @end statement to beginning of line.
8097
8098 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8099
8100         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
8101         static.
8102         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
8103         Likewise.
8104
8105         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
8106         (denorm): Likewise.
8107         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
8108         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
8109
8110 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8111
8112         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
8113         tail-call to the resolved function if pltexit isn't needed.
8114
8115 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8116
8117         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
8118         or Y being zero as being unlikely.
8119         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
8120         Likewise.
8121
8122 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
8123
8124         * manual/nss.texi (System Databases and Name Service Switch):
8125         Remove frobnicate @pxref.
8126
8127 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8128
8129         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8130         __attribute__ ((unused)) to __attribute__ ((__unused__)).
8131
8132 2013-02-20  Petr Machata  <pmachata@redhat.com>
8133
8134         * elf/elf.h (R_ARM_TARGET1): New macro.
8135         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
8136         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
8137         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
8138         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
8139         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
8140         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
8141         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
8142         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
8143         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
8144         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
8145         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
8146         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
8147         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
8148         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
8149         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
8150         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
8151         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
8152         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
8153         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
8154         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
8155         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
8156         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
8157         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
8158         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
8159         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
8160         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
8161         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
8162         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
8163         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
8164         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
8165         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
8166         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
8167         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
8168         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
8169         (R_ARM_THM_GOT_BREL12): Likewise.
8170         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
8171         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
8172         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
8173         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
8174         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
8175         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
8176         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
8177         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
8178         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
8179
8180 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8181
8182         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8183         __attribute_used__ to __attribute__ ((unused)).
8184
8185 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8186
8187         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
8188         powerpc mpa.c.
8189         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
8190         comment formatting.
8191         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
8192
8193 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
8194
8195         [BZ #13550]
8196         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
8197         Remove macro.
8198         (ENTER): Remove both macro definitions.
8199         (LEAVE): Likewise.
8200         (CHECK_BOUNDS_LOW): Likewise.
8201         (CHECK_BOUNDS_HIGH): Likewise.
8202         (CHECK_BOUNDS_BOTH): Likewise.
8203         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
8204         (RETURN_BOUNDED_POINTER): Likewise.
8205         (RETURN_NULL_BOUNDED_POINTER): Likewise.
8206         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
8207         (POP_ERRNO_LOCATION_RETURN): Likewise.
8208         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
8209         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8210         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
8211         macros.
8212         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8213         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
8214         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
8215         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
8216         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
8217         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
8218         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
8219         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
8220         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
8221         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
8222         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
8223         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
8224         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8225         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
8226         removed macros.
8227         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8228         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
8229         macros.
8230         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8231         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
8232         * sysdeps/i386/i586/memset.S (memset): Likewise.
8233         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
8234         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8235         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
8236         macros.
8237         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8238         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
8239         Change uses of L(2) to L(out).
8240         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
8241         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
8242         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
8243         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8244         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
8245         removed macros.
8246         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8247         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
8248         macros.
8249         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8250         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
8251         (RETURN): Do not use macro LEAVE.
8252         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
8253         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
8254         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
8255         * sysdeps/i386/i686/memset.S (memset): Likewise.
8256         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
8257         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
8258         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8259         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
8260         Likewise.
8261         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8262         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
8263         L(1_2) and L(1_3) into L(1).
8264         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8265         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
8266         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8267         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
8268         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8269         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
8270         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
8271         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8272         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
8273         macros.
8274         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
8275         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8276         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
8277         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
8278         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
8279         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8280         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
8281         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
8282         * sysdeps/i386/strcspn.S (strcspn): Likewise.
8283         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
8284         * sysdeps/i386/strrchr.S (strrchr): Likewise.
8285         * sysdeps/i386/strspn.S (strspn): Likewise.
8286         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
8287         conditional code.
8288         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8289         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
8290         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
8291         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
8292         L(1_3) into L(1_1).
8293         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
8294         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8295         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
8296         macros.
8297         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8298
8299 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
8300
8301         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
8302         macro.
8303
8304 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
8305
8306         * math/atest-exp.c (exp_mpn): Remove ROUND.
8307         * math/atest-exp2.c (exp_mpn): Likewise.
8308         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
8309
8310         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
8311         * stdlib/tst-tls-atexit-lib.c: Likewise.
8312         * stdlib/tst-tls-atexit.c: Likewise.
8313
8314 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8315
8316         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
8317         and __attribute_alloc_size__.
8318
8319 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8320
8321         * include/programs/xmalloc.h: Change __attribute_alloc_size to
8322         __attribute_alloc_size__.
8323         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
8324         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
8325
8326 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
8327
8328         * include/programs/xmalloc.h: New file.
8329         * catgets/gencat.c: Include it.
8330         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
8331         * elf/pldd.c: Likewise.
8332         * iconv/iconv_charmap.c: Likewise.
8333         * iconv/iconvconfig.c: Likewise.
8334         * iconv/strtab.c: Likewise.
8335         * locale/programs/locale.c: Likewise.
8336         * locale/programs/localedef.h: Likewise.
8337         * locale/programs/simple-hash.c: Likewise.
8338         * nscd/nscd.h: Likewise.
8339         * nss/makedb.c: Likewise.
8340         * sysdeps/generic/ldconfig.h: Likewise.
8341
8342 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8343
8344         * Versions.def: Add GLIBC_2.18.
8345         * include/link.h (struct link_map): New member l_tls_dtor_count.
8346         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
8347         (__call_tls_dtors): Likewise.
8348         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
8349         __cxa_thread_atexit_impl.
8350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8351         Likewise.
8352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8353         Likewise.
8354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8355         Likewise.
8356         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8357         Likewise.
8358         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
8359         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
8360         Likewise.
8361         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
8362         Likewise.
8363         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
8364         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
8365         Likewise.
8366         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
8367         (tests): Add test case tst-tls-atexit.
8368         (modules-names): Add shared library for tst-tls-atexit.
8369         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
8370         (GLIBC_PRIVATE): Add __call_tls_dtors.
8371         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
8372         for libstdc++.
8373         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
8374         * stdlib/tst-tls-atexit.c: New test case.
8375         * stdlib/tst-tls-atexit-lib.c: New test case.
8376
8377         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
8378
8379         * elf/Versions (ld): Add _dl_find_dso_for_object.
8380         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
8381         * elf/dl-open.c (_dl_find_dso_for_object): New function.
8382         (dl_open_worker): Use _dl_find_dso_for_object.
8383         * elf/dl-sym.c (do_sym): Likewise.
8384         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
8385
8386 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8387
8388         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
8389         Syntactic changes only.
8390         (_dl_runtime_profile): Do a tail-call to the resolved function.
8391
8392 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
8393
8394         [BZ #13550]
8395         * sysdeps/x86_64/bp-asm.h: Remove file.
8396         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
8397         <bp-sym.h> and <bp-asm.h>.
8398         (__clone): Do not use BP_SYM.
8399         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
8400         <bp-sym.h> and <bp-asm.h>.
8401         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8402         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
8403         "bp-asm.h".
8404         (_setjmp): Do not use BP_SYM.
8405         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
8406         "bp-asm.h".
8407         (setjmp): Do not use BP_SYM.
8408         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
8409         libc_hidden_def.
8410         (mempcpy): Do not use BP_SYM in weak_alias.
8411         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
8412         "bp-asm.h".
8413         (strchr): Do not use BP_SYM.
8414         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
8415         "bp-asm.h".
8416         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
8417         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
8418         (_start): Do not use BP_SYM.
8419         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
8420         "bp-asm.h".
8421         (strcat): Do not use BP_SYM.
8422         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
8423         "bp-asm.h".
8424         (STRCMP): Do not use BP_SYM.
8425         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
8426         "bp-asm.h".
8427         (STRCPY): Do not use BP_SYM.
8428         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
8429         "bp-asm.h".
8430         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
8431         "bp-asm.h".
8432         (FUNCTION): Do not use BP_SYM.
8433         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
8434         weak_alias.
8435         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
8436
8437 2013-02-17  Andreas Jaeger  <aj@suse.de>
8438
8439         * time/Versions: Sort entries.
8440         * string/Versions: Likewise.
8441         * resolv/Versions: Likewise.
8442         * posix/Versions: Likewise.
8443         * iconv/Versions: Likewise.
8444         * elf/Versions: Likewise.
8445         * wcsmbs/Versions: Likewise.
8446
8447 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
8448
8449         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
8450         loop termination condition.
8451
8452         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
8453         variable to calculate EZ.
8454         (__sqr): Likewise.
8455
8456         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
8457         the lower precision input.
8458
8459 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
8460
8461         [BZ #13550]
8462         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
8463         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
8464         (run-via-rtld-prefix): Do not handle %-bp tests.
8465         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
8466         (all-object-suffixes): Remove .ob.
8467         (bppfx): Remove variable.
8468         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
8469         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
8470         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
8471         [$(build-bounded) = yes] (libtype.ob): Likewise.
8472         * Makerules (elide-routines.ob): Remove variable.
8473         (do-tests-clean): Do not handle *-bp.out.
8474         (common-mostlyclean): Do not handle *-bp and *-bp.out.
8475         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
8476         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
8477         (tests): Do not include $(tests-bp.out).
8478         (xtests): Do not include $(xtests-bp.out).
8479         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
8480         [$(build-bounded) = yes] ($(addprefix
8481         $(objpfx),$(binaries-bounded))): Remove rule.
8482         ($(objpfx)%-bp.out): Remove rule.
8483         * config.make.in (build-bounded): Remove variable.
8484         * crypt/Makefile [$(build-bounded) = yes]
8485         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
8486         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
8487         append to variable.
8488         [$(build-bounded) = yes] (install-lib): Likewise.
8489         [$(build-bounded) = yes] (generated): Likewise.
8490         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
8491         Remove rule.
8492         * intl/Makefile [$(build-bounded) = yes]
8493         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
8494         * math/Makefile [$(build-bounded) = yes]
8495         ($(tests:%=$(objpfx)%-bp): Likewise.
8496         * misc/Makefile [$(build-bounded) = yes]
8497         ($(objpfx)tst-tsearch-bp): Likewise.
8498         * nptl/Makeconfig (bounded-thread-library): Remove variable.
8499         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
8500         Remove dependency.
8501         * string/Makefile (o-objects.ob): Remove variable.
8502         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
8503         (CFLAGS-.ob): Remove variable.
8504         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
8505         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
8506         both definitions of variable.
8507         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
8508         (ASFLAGS-.ob): Remove variable.
8509
8510 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
8511
8512         [BZ #13550]
8513         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
8514         Remove __BOUNDED_POINTERS__ from condition.
8515         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
8516         * string/bits/string2.h [!__NO_STRING_INLINES &&
8517         !__BOUNDED_POINTERS__]: Likewise.
8518         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
8519         Likewise.
8520         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
8521         Remove conditional code.
8522         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
8523         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
8524         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
8525         condition.
8526
8527         [BZ #13550]
8528         * csu/libc-start.c: Do not include <bp-sym.h>.
8529         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
8530         * elf/dl-open.c: Do not include <bp-sym.h>.
8531         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
8532         * math/fegetenv.c: Do not include <bp-sym.h>.
8533         (fegetenv): Do not use BP_SYM in versioned symbols.
8534         * nptl/sysdeps/pthread/bits/libc-lockP.h
8535         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
8536         <bp-sym.h>.
8537         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8538         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
8539         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8540         (__pthread_mutex_destroy): Likewise.
8541         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8542         (__pthread_mutex_lock): Likewise.
8543         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8544         (__pthread_mutex_trylock): Likewise.
8545         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8546         (__pthread_mutex_unlock): Likewise.
8547         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8548         (__pthread_mutexattr_init): Likewise.
8549         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8550         (__pthread_mutexattr_destroy): Likewise.
8551         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8552         (__pthread_mutexattr_settype): Likewise.
8553         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8554         (__pthread_rwlock_init): Likewise.
8555         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8556         (__pthread_rwlock_destroy): Likewise.
8557         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8558         (__pthread_rwlock_rdlock): Likewise.
8559         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8560         (__pthread_rwlock_tryrdlock): Likewise.
8561         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8562         (__pthread_rwlock_wrlock): Likewise.
8563         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8564         (__pthread_rwlock_trywrlock): Likewise.
8565         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8566         (__pthread_rwlock_unlock): Likewise.
8567         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8568         (__pthread_key_create): Likewise.
8569         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8570         (__pthread_setspecific): Likewise.
8571         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8572         (__pthread_getspecific): Likewise.
8573         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
8574         Likewise.
8575         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8576         (_pthread_cleanup_push_defer): Likewise.
8577         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8578         (_pthread_cleanup_pop_restore): Likewise.
8579         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
8580         (pthread_setcancelstate): Likewise.
8581         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
8582         <bp-sym.h>.
8583         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
8584         (memchr): Do not use BP_SYM in weak_alias.
8585         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
8586         (fegetenv): Do not use BP_SYM in versioned symbols.
8587         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
8588         (fesetenv): Do not use BP_SYM in versioned symbols.
8589         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
8590         (feupdateenv): Do not use BP_SYM in versioned symbols.
8591         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
8592         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
8593         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
8594         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
8595         (open64): Do not use BP_SYM in weak_alias.
8596         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
8597         (fegetenv): Do not use BP_SYM in versioned symbols.
8598         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
8599         (fesetenv): Do not use BP_SYM in versioned symbols.
8600         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
8601         (feupdateenv): Do not use BP_SYM in versioned symbols.
8602         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
8603         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
8604         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
8605         (feraiseexcept): Do not use BP_SYM in versioned symbols.
8606         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
8607         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
8608         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
8609         <bp-sym.h>.
8610         (__libc_start_main): Do not use BP_SYM.
8611
8612 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
8613
8614         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
8615         redundant return line.
8616         (norm): Likewise.
8617         (denorm): Likewise.
8618         (dbl_mp): Likewise.
8619         (sub_magnitudes): Likewise.
8620         (__add): Likewise.
8621         (__sub): Likewise.
8622         (__mul): Likewise.
8623         (__inv): Likewise.
8624         (__dvd): Likewise.
8625         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
8626         (norm): Likewise.
8627         (denorm): Likewise.
8628         (dbl_mp): Likewise.
8629         (sub_magnitudes): Likewise.
8630         (__add): Likewise.
8631         (__sub): Likewise.
8632         (__mul): Likewise.
8633         (__inv): Likewise.
8634         (__dvd): Likewise.
8635
8636         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
8637         instead of __mul.
8638         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
8639         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
8640         (cc32): Likewise.
8641
8642         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
8643         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
8644         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
8645         of __mul for squares.
8646         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
8647         function
8648         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
8649         Likewise.
8650         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
8651         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8652
8653 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
8654
8655         [BZ #13550]
8656         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
8657         code.
8658         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
8659         prototype or function definition.  Rename ubp_* variables and
8660         parameters.  Remove argv definitions conditional on
8661         [__BOUNDED_POINTERS__].
8662         * debug/backtrace.c (__backtrace): Do not use __unbounded.
8663         * elf/dl-runtime.c (_dl_fixup): Likewise.
8664         * include/set-hooks.h (RUN_HOOK): Likewise.
8665         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
8666         definition.
8667         * string/strcpy.c (strcpy): Do not use __unbounded.
8668         * sysdeps/generic/frame.h (struct layout): Likewise.
8669         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
8670         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
8671         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
8672         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
8673         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
8674         (__backtrace): Likewise.
8675         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
8676         use __ptrvalue.
8677         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
8678         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8679         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8680         Likewise.
8681         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
8682         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
8683         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8684         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8685         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
8686         Do not use __unbounded.
8687         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
8688         Rename __unboundedrlimits parameter to rlimits in prototype.
8689         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
8690         Do not use __unbounded.
8691         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
8692         not use __ptrvalue.
8693         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8694         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
8695         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
8696         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
8697         __ptrvalue or __unbounded.
8698         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
8699         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
8700         use __unbounded.
8701         (__new_msgctl): Do not use __ptrvalue.
8702         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
8703         __unbounded.
8704         (__libc_msgrcv): Do not use __ptrvalue.
8705         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
8706         startup_info): Do not use __unbounded.
8707         (__libc_start_main): Likewise.  Rename ubp_* variables and
8708         parameters.  Remove argv definitions conditional on
8709         [__BOUNDED_POINTERS__].
8710         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
8711         __ptrvalue.
8712         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
8713         use __unbounded.
8714         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
8715         or __ptrvalue.
8716         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
8717         use __unbounded.
8718         (__new_shmctl): Do not use __ptrvalue.
8719         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8720         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8721         Likewise.
8722         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8723         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
8724         (__libc_sigaction): Likewise.
8725         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
8726         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
8727         Likewise.
8728         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
8729
8730 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
8731
8732         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
8733
8734         * string/mempcpy.c: Implement by calling memcpy.
8735
8736 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
8737
8738         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
8739
8740         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
8741         evaluation.
8742
8743         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
8744         values in the mantissa.
8745
8746         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
8747         minimize writes to Z.
8748         (sub_magnitudes): Simplify code a bit.
8749
8750 2013-02-12  Roland McGrath  <roland@hack.frob.com>
8751
8752         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
8753         from the message.  The linker prefixes all warnings with that already.
8754
8755 2013-02-12  Andreas Schwab  <schwab@suse.de>
8756
8757         [BZ #15078]
8758         * posix/regexec.c (extend_buffers): Add parameter min_len.
8759         (check_matching): Pass minimum needed length.
8760         (clean_state_log_if_needed): Likewise.
8761         (get_subexp): Likewise.
8762         * posix/Makefile (tests): Add bug-regex34.
8763         (bug-regex34-ENV): Define.
8764         * posix/bug-regex34.c: New file.
8765
8766         [BZ #11561]
8767         * posix/regcomp.c (parse_bracket_exp): When looking up collating
8768         elements compare against the byte sequence of it, not its name.
8769         * posix/Makefile (tests): Add bug-regex35.
8770         (bug-regex35-ENV): Define.
8771         * posix/bug-regex35.c: New file.
8772
8773 2013-02-11  Tom de Vries  <tom@codesourcery.com>
8774
8775         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
8776         comment.
8777         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
8778         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
8779         (CHECK_EOL): Add undef.
8780
8781 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
8782
8783         * bits/stdlib-bsearch.h: New file.
8784         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
8785         * stdlib/stdlib.h: Likewise.
8786
8787 2013-02-11  Roland McGrath  <roland@hack.frob.com>
8788
8789         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
8790         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
8791         declaration.
8792         * manual/search.texi (Array Search Function): Add missing const in
8793         lfind prototype.
8794         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
8795         declaration to use rlim_t.
8796         (Basic Scheduling Functions): Remove erroneous const from
8797         sched_getparam prototype.  Remove erroneous * from
8798         sched_get_priority_max and sched_get_priority_min prototypes.
8799         (Resource Usage): Fix summary @comment on vtimes to refer to
8800         sys/vtimes.h rather than vtimes.h.
8801         Add missing *s in vtimes prototype.
8802         (Limits on Resources): Fix ulimit prototype to return long int.
8803         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
8804         prototypes to use long int rather than double.
8805         (BSD Random): Fix initstate and setstate to use char *, not void *.
8806         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
8807         prototype to make second argument 'struct aiocb64 *const[]'.
8808         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
8809         (Status of AIO Operations): Remove erroneous const in aio_return and
8810         aio_return64 prototypes.
8811         (Synchronizing I/O): Fix sync prototype to return void.
8812         * manual/startup.texi (Suboptions): Remove an erroneous const in
8813         getsubopt prototype.
8814         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
8815         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
8816         use size_t rather than int.
8817         (Scanning All Users): Likewise for getpwent_r.
8818         (Setting Groups): Add missing const to setgroups prototype.
8819         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
8820         * manual/socket.texi (Host Names): Fix gethostbyaddr and
8821         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
8822         'const void *' rather than 'const char *'.
8823         (Host Address Functions): Likewise for inet_ntop.
8824         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
8825         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
8826         ssize_t for return value.
8827         (Sending Data): Likewise for send, sendto, sendmsg.
8828         (Socket Option Functions): Add a missing const in setsockopt prototype.
8829         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
8830         use wchar_t for the argument.
8831         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
8832         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
8833         take no arguments.
8834         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
8835         double/float/long double for second argument.
8836         Fix return types of significand, significandf, significandl.
8837         * manual/filesys.texi (Setting Permissions): Use mode_t for second
8838         argument in fchmod prototype.
8839         (File Owner): Use uid_t and gid_t in fchown prototype.
8840         (File Times): Add const to utimes, futimes, and lutimes prototypes.
8841         (Making Special Files): Use mode_t and dev_t in mknod prototype.
8842         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
8843         use 'const struct dirent **' as argument types to CMP function pointer
8844         argument.
8845         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
8846         (File Times): Fix summary magic @comment for struct utimbuf and utime
8847         to refer to utime.h, not time.h.
8848         * manual/string.texi (Argz Functions): Add missing const in
8849         argz_extract and argz_next prototypes.
8850         (Finding Tokens in a String): Likewise for basename.
8851         (String/Array Comparison): Fix typo in wcscasecmp prototype.
8852         (Copying and Concatenation): Fix typo in wmemmove prototype.
8853         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
8854         (Signal Stack): Remove erroneous const in sigstack prototype.
8855         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
8856         prototype.
8857         (Simple Calendar Time): Likewise for stime.
8858         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
8859         prototype.
8860         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
8861         say sys/sysctl.h instead.
8862         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
8863         and vsyslog prototypes.
8864
8865 2013-02-11  Tom de Vries  <tom@codesourcery.com>
8866
8867         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
8868         Remove.
8869
8870 2013-02-11  Roland McGrath  <roland@hack.frob.com>
8871
8872         * misc/sys/mman.h: Fix typo in mremap comment.
8873
8874 2013-02-08  Roland McGrath  <roland@hack.frob.com>
8875
8876         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
8877         the '\0' terminator.
8878
8879 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
8880
8881         [BZ #13550]
8882         * debug/segfault.c: Don't include <bp-checks.h>.
8883         * sysdeps/generic/bp-checks.h: Remove file.
8884         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
8885         (__GETDENTS): Don't use CHECK_N.
8886         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
8887         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
8888         (__getgroups): Don't use CHECK_N.
8889         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
8890         (setgroups): Don't use CHECK_N.
8891         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
8892         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8893         (__libc_msgrcv): Don't use CHECK_N.
8894         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
8895         (__libc_msgsnd): Don't use CHECK_N.
8896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
8897         <bp-checks.h>.
8898         (__libc_pread): Don't use CHECK_N.
8899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
8900         include <bp-checks.h>.
8901         (__libc_pread64): Don't use CHECK_N.
8902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
8903         include <bp-checks.h>.
8904         (__libc_pwrite): Don't use CHECK_N.
8905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
8906         include <bp-checks.h>.
8907         (__libc_pwrite64): Don't use CHECK_N.
8908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
8909         <bp-checks.h>.
8910         (__libc_pread): Don't use CHECK_N.
8911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
8912         include <bp-checks.h>.
8913         (__libc_pread64): Don't use CHECK_N.
8914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
8915         include <bp-checks.h>.
8916         (__libc_pwrite): Don't use CHECK_N.
8917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
8918         include <bp-checks.h>.
8919         (__libc_pwrite64): Don't use CHECK_N.
8920         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
8921         (do_pread): Don't use CHECK_N.
8922         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
8923         (do_pread64): Don't use CHECK_N.
8924         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
8925         (do_pwrite): Don't use CHECK_N.
8926         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
8927         (do_pwrite64): Don't use CHECK_N.
8928         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
8929         (__libc_readv): Don't use CHECK_N.
8930         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
8931         (semop): Don't use CHECK_N.
8932         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
8933         <bp-checks.h>.
8934         (semtimedop): Don't use CHECK_N.
8935         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
8936         (__libc_pread): Don't use CHECK_N.
8937         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
8938         <bp-checks.h>.
8939         (__libc_pread64): Don't use CHECK_N.
8940         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
8941         <bp-checks.h>.
8942         (__libc_pwrite): Don't use CHECK_N.
8943         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
8944         <bp-checks.h>.
8945         (__libc_pwrite64): Don't use CHECK_N.
8946         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
8947         <bp-checks.h>.
8948         (__libc_msgrcv): Don't use CHECK_N.
8949         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
8950         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
8951         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
8952         (__libc_writev): Don't use CHECK_N.
8953
8954 2013-02-08  Roland McGrath  <roland@hack.frob.com>
8955
8956         * string/strcpy.c: Removed unused variable.
8957
8958         * Makeconfig (+sysdep-includes): Define with := rather than =.
8959         Use an existing include/ subdir of each sysdeps dir before it.
8960
8961 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
8962
8963         * nscd/connection.c (register_traced_file): Comment function.
8964         [HAVE_INOTIFY] (union __inev): Define.
8965         [HAVE_INOTIFY] (inotify_check_files): New function.
8966         [HAVE_INOTIFY] (clear_db_cache): Likewise.
8967         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
8968         clear_db_cache.
8969         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
8970
8971 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
8972
8973         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
8974         loaded if not already and that a failure is permanent.
8975
8976 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
8977
8978         [BZ #15006]
8979         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
8980         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
8981
8982 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
8983
8984         [BZ #13550]
8985         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
8986         (CHECK_1_NULL_OK): Likewise.
8987         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
8988         (__fxstat): Do not use CHECK_1.
8989         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8990         <bp-checks.h>.
8991         (___fxstat64): Do not use CHECK_1.
8992         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
8993         <bp-checks.h>.
8994         (__fxstatat): Do not use CHECK_1.
8995         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
8996         <bp-checks.h>.
8997         (__fxstatat64): Do not use CHECK_1.
8998         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
8999         <bp-checks.h>.
9000         (__fxstat): Do not use CHECK_1.
9001         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
9002         <bp-checks.h>.
9003         (__fxstatat): Do not use CHECK_1.
9004         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
9005         <bp-checks.h>.
9006         (__getresgid): Do not use CHECK_1.
9007         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
9008         <bp-checks.h>.
9009         (__getresuid): Do not use CHECK_1.
9010         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
9011         <bp-checks.h>.
9012         (__lxstat): Do not use CHECK_1.
9013         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
9014         <bp-checks.h>.
9015         (__old_msgctl): Do not use CHECK_1.
9016         (__new_msgctl): Likewise.
9017         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
9018         <bp-checks.h>.
9019         (__new_setrlimit): Do not use CHECK_1.
9020         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
9021         <bp-checks.h>.
9022         (__old_shmctl): Do not use CHECK_1.
9023         (__new_shmctl): Likewise.
9024         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
9025         <bp-checks.h>.
9026         (__xstat): Do not use CHECK_1.
9027         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
9028         (__lxstat): Do not use CHECK_1.
9029         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9030         <bp-checks.h>.
9031         (___lxstat64): Do not use CHECK_1.
9032         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
9033         (__old_msgctl): Do not use CHECK_1.
9034         (__new_msgctl): Likewise.
9035         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
9036         <bp-checks.h>.
9037         (__gettimeofday): Do not use CHECK_1.
9038         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
9039         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
9040         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
9041         <bp-checks.h>.
9042         (__gettimeofday): Do not use CHECK_1.
9043         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
9044         (__old_shmctl): Do not use CHECK_1_NULL_OK.
9045         (__new_shmctl): Do not use CHECK_1.
9046         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
9047         <bp-checks.h>.
9048         (do_sigtimedwait): Do not use CHECK_1.
9049         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
9050         <bp-checks.h>.
9051         (do_sigwaitinfo): Do not use CHECK_1.
9052         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
9053         <bp-checks.h>.
9054         (msgctl): Do not use CHECK_1.
9055         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
9056         <bp-checks.h>.
9057         (shmctl): Do not use CHECK_1.
9058         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
9059         (ustat): Do not use CHECK_1.
9060         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
9061         <bp-checks.h>.
9062         (__fxstat): Do not use CHECK_1.
9063         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
9064         <bp-checks.h>.
9065         (__fxstatat): Do not use CHECK_1.
9066         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
9067         <bp-checks.h>.
9068         (__lxstat): Do not use CHECK_1.
9069         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
9070         <bp-checks.h>.
9071         (__xstat): Do not use CHECK_1.
9072         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
9073         (__xstat): Do not use CHECK_1.
9074         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
9075         (___xstat64): Do not use CHECK_1.
9076
9077         [BZ #13550]
9078         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
9079         definitions.
9080         (CHECK_BOUNDS_HIGH): Likewise.
9081         * string/strcpy.c: Do not include <bp-checks.h>.
9082         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
9083
9084 2013-02-07  Roland McGrath  <roland@hack.frob.com>
9085
9086         * nscd/nscd-client.h (__nscd_drop_map_ref):
9087         Add __attribute__ ((unused)).
9088         * nis/nss-nisplus.h (niserr2nss): Likewise.
9089
9090         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
9091         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
9092
9093         * csu/libc-tls.c (init_static_tls, init_slotinfo):
9094         Remove inline keyword.
9095         * include/rounding-mode.h (round_away): Likewise.
9096         * libio/wfileops.c (adjust_wide_data): Likewise.
9097         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
9098         (__m128i_strloadu_tolower): Likewise.
9099         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
9100         (__m128i_strloadu_tolower): Likewise.
9101         * time/mktime.c (ydhms_diff): Likewise.
9102         * locale/elem-hash.h (elem_hash): Likewise.
9103         * locale/setlocale.c (setdata): Likewise.
9104         * posix/regex_internal.h (re_string_char_size_at): Likewise.
9105         (re_string_wchar_at): Likewise.
9106         (bitset_not, bitset_merge, bitset_mask): Likewise.
9107         [!(__GNUC__ > 3)] (inline): Remove macro.
9108         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
9109         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
9110         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
9111         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9112         * string/memcmp.c (memcmp_bytes): Likewise.
9113         * locale/programs/locarchive.c (compute_hashval): Likewise.
9114         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
9115         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9116         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
9117         * nss/getent.c (print_rpc, print_protocols): Likewise.
9118         (print_passwd, print_group, print_aliases): Likewise.
9119         * nis/nss-nisplus.h (niserr2nss): Likewise.
9120         * nscd/connections.c (restart_p): Likewise.
9121         Change return type to bool.
9122
9123 2013-02-05  Roland McGrath  <roland@hack.frob.com>
9124
9125         * Makeconfig (all-Depend-files): Add existing
9126         $(sorted-subdirs:=/Depend) files.
9127         (all-subdirs): Remove nss.
9128         * sysdeps/unix/inet/Subdirs: Add it here instead.
9129         * hesiod/Depend: New file.
9130
9131         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
9132         instead of calling alloca.
9133
9134         * io/lseek.c (__lseek): Rename to __libc_lseek.
9135         Define __lseek as an alias.
9136
9137         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
9138
9139 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
9140
9141         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
9142         else clause and remove check for non-standard endianness.
9143
9144 2013-02-04  David S. Miller  <davem@davemloft.net>
9145
9146         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9147
9148 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
9149
9150         [BZ #13550]
9151         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
9152         (__ubp_memchr): Remove prototype.
9153         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
9154         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9155         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
9156         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9157         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
9158         Remove alias.
9159         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
9160         (__ubp_memchr): Likewise.
9161         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
9162         (__ubp_memchr): Likewise.
9163         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
9164         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
9165         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
9166         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
9167         CHECK_STRING.
9168         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9169         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
9170         (__getcwd): Do not use CHECK_STRING.
9171         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
9172         <bp-checks.h>.
9173         (__real_chown): Do not use CHECK_STRING.
9174         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
9175         <bp-checks.h>.
9176         (fchownat): Do not use CHECK_STRING.
9177         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
9178         CHECK_STRING.
9179         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
9180         <bp-checks.h>.
9181         (__lchown): Do not use CHECK_STRING.
9182         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9183         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9184         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9185         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
9187         include <bp-checks.h>.
9188         (truncate64): Do not use CHECK_STRING.
9189         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
9190         <bp-checks.h>.
9191         (__real_chown): Do not use CHECK_STRING.
9192         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
9193         <bp-checks.h>.
9194         (__lchown): Do not use CHECK_STRING.
9195         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
9196         <bp-checks.h>.
9197         (__chown): Do not use CHECK_STRING.
9198         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
9199         <bp-checks.h>.
9200         (truncate64): Do not use CHECK_STRING.
9201         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
9202         Likewise.
9203         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
9204         (__xmknod): Do not use CHECK_STRING.
9205         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
9206         <bp-checks.h>.
9207         (__xmknodat): Do not use CHECK_STRING.
9208         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9209         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
9210
9211 2013-02-04  Andreas Schwab  <schwab@suse.de>
9212
9213         [BZ #14142]
9214         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
9215         * include/netdb.h: Likewise for h_errno.
9216         * elf/tst-stackguard1.c: Include <tls.h>.
9217
9218 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9219
9220         * elf/link.h (struct link_map): Extend the l_addr comment.
9221         * include/link.h (struct link_map): Likewise.
9222
9223 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
9224
9225         [BZ #13550]
9226         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
9227         (BOUNDED_1): Remove macro.
9228         * debug/backtrace.c: Don't include <bp-checks.h>.
9229         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
9230         (__backtrace): Likewise.
9231         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
9232         <bp-checks.h>.
9233         (__backtrace): Don't use BOUNDED_1.
9234         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
9235         <bp-checks.h>.
9236         (__backtrace): Don't use BOUNDED_1.
9237         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
9238         (__backtrace): Don't use BOUNDED_1.
9239         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
9240         (shmat): Don't use BOUNDED_N.
9241
9242 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
9243
9244         [BZ #13550]
9245         * sysdeps/generic/bp-start.h: Remove file.
9246         * csu/libc-start.c: Don't include <bp-start.h>.
9247         (LIBC_START_MAIN): Set up __environ directly instead of using
9248         INIT_ARGV_and_ENVIRON.
9249         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
9250         <bp-start.h>.
9251
9252         [BZ #13550]
9253         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
9254         definitions.
9255         (CHECK_FCNTL): Likewise.
9256         (CHECK_N_PAGES): Likewise.
9257
9258         [BZ #13550]
9259         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
9260         definitions.
9261         (CHECK_SIGSET_NULL_OK): Likewise.
9262         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
9263         <bp-checks.h>.
9264         (sigpending): Don't use CHECK_SIGSET.
9265         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
9266         <bp-checks.h>.
9267         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9268         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
9269         <bp-checks.h>.
9270         (do_sigsuspend): Don't use CHECK_SIGSET.
9271         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
9272         use CHECK_SIGSET.
9273         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
9274         (do_sigwait): Don't use CHECK_SIGSET.
9275         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
9276         use CHECK_SIGSET.
9277         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
9278         include <bp-checks.h>.
9279         (sigpending): Don't use CHECK_SIGSET.
9280         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
9281         include <bp-checks.h>.
9282         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9283         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
9284         <bp-checks.h>.
9285         (sigpending): Don't use CHECK_SIGSET.
9286         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
9287         <bp-checks.h>.
9288         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
9289
9290         [BZ #13550]
9291         * sysdeps/generic/bp-semctl.h: Remove file.
9292         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
9293         <bp-checks.h> and <bp-semctl.h>.
9294         (__old_semctl): Don't use CHECK_SEMCTL.
9295         (__new_semctl): Likewise.
9296         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
9297         and <bp-semctl.h>.
9298         (__old_semctl): Don't use CHECK_SEMCTL.
9299         (__new_semctl): Likewise.
9300         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
9301         <bp-checks.h> and <bp-semctl.h>.
9302         (__old_semctl): Don't use CHECK_SEMCTL.
9303         (__new_semctl): Likewise.
9304         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
9305         <bp-checks.h> and <bp-semctl.h>.
9306         (semctl): Don't use CHECK_SEMCTL.
9307
9308         [BZ #13550]
9309         * Makerules (elide-bp-thunks): Remove variable.
9310         (elide-routines.oS): Don't use $(elide-bp-thunks).
9311         (elide-routines.os): Likewise.
9312         (elide-routines.o): Likewise.
9313         (elide-routines.op): Likewise.
9314         (elide-routines.og): Likewise.
9315         (objects): Don't use $(bp-thunks).
9316         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
9317         include.
9318         (common-generated): Do not add s-proto-bp.d.
9319         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
9320         (int): Likewise.
9321         (typ): Likewise.
9322         Do not generate makefile rules for bounded-pointer thunks.
9323         * sysdeps/generic/bp-thunks.h: Remove file.
9324         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
9325         * sysdeps/unix/s-proto-bp.S: Likewise.
9326
9327         [BZ #15062]
9328         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
9329         parts of result separately when argument is not close to line from
9330         -i to i and one part of argument is small.
9331         * math/k_casinhf.c (__kernel_casinhf): Likewise.
9332         * math/k_casinhl.c (__kernel_casinhl): Likewise.
9333         * math/libm-test.inc (cacos_test): Add more tests.
9334         (casin_test): Likewise.
9335         (casinh_test): Likewise.
9336         * sysdeps/i386/fpu/libm-test-ulps: Update.
9337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9338
9339 2013-01-31  David S. Miller  <davem@davemloft.net>
9340
9341         * po/de.po: Update from translation team.
9342
9343 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
9344
9345         * time/tzfile.c: Include stdint.h for SIZE_MAX.
9346
9347 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
9348
9349         * configure.in (_AC_PROG_CC_C89): New definition.
9350         * configure: Regenerate.
9351
9352         * configure.in (AC_PROG_CPP): New definition.
9353         * configure: Regenerate.
9354
9355 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
9356
9357         * debug/tst-backtrace.h: New file.
9358         * debug/tst-backtrace2.c: Include tst-backtrace.h.
9359         (ret): Remove variable.
9360         (x): Likewise.
9361         (FAIL): Remove macro.
9362         (NO_INLINE): Likewise.
9363         (fn1): Use match function instead of strstr.
9364         * debug/tst-backtrace3.c: Include tst-backtrace.h.
9365         (ret): Remove variable.
9366         (x): Likewise.
9367         (FAIL): Remove macro.
9368         (NO_INLINE): Likewise.
9369         (fn): Use match function instead of strstr.
9370         * debug/tst-backtrace4.c: Include tst-backtrace.h.
9371         (ret): Remove variable.
9372         (x): Likewise.
9373         (FAIL): Remove macro.
9374         (NO_INLINE): Likewise.
9375         (handle_signal): Use match function instead of strstr.
9376         * debug/tst-backtrace5.c: Include tst-backtrace.h.
9377         (ret): Remove variable.
9378         (x): Likewise.
9379         (FAIL): Remove macro.
9380         (NO_INLINE): Likewise.
9381         (handle_signal): Use match function instead of strstr.
9382
9383 2013-01-23  Roland McGrath  <roland@hack.frob.com>
9384
9385         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
9386
9387 2013-01-23  David S. Miller  <davem@davemloft.net>
9388
9389         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
9390         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
9391         argument of CAS if possible.
9392         * sysdeps/sparc/sparc64/bits/atomic.h
9393         (__arch_compare_and_exchange_val_32_acq): Likewise.
9394         (__arch_compare_and_exchange_val_64_acq): Likewise.
9395
9396 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
9397
9398         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
9399         * sysdeps/posix/ulimit.c: ... this.
9400         Include <limits.h>.
9401         * sysdeps/unix/bsd/ulimit.c: Remove file.
9402
9403 2013-01-23  Adam Conrad  <adconrad@0c3.net>
9404
9405         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
9406         (LDFLAGS-tst-array5): Likewise.
9407
9408 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
9409
9410         [BZ #15036]
9411         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
9412         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
9413         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
9414         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
9415
9416 2013-01-21  David S. Miller  <davem@davemloft.net>
9417
9418         * sysdeps/sparc/backtrace.c: New file.
9419         * sysdeps/sparc/sparc32/backtrace.h: New file.
9420         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
9421         * sysdeps/sparc/sparc64/backtrace.h: New file.
9422         * sysdeps/sparc/sparc64/backtrace.c: Delete.
9423         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
9424         -funwind-tables.
9425
9426 2013-01-21  Andreas Schwab  <schwab@suse.de>
9427
9428         [BZ #15020]
9429         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
9430         closed its stdout.
9431
9432 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
9433
9434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
9435         "mpa2.h".
9436         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9437
9438 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
9439             Mark Mitchell  <mark@codesourcery.com>
9440             Tom de Vries  <tom@codesourcery.com>
9441             Paul Pluzhnikov  <ppluzhnikov@google.com>
9442
9443         * debug/tst-backtrace2.c: New file.
9444         * debug/tst-backtrace3.c: Likewise.
9445         * debug/tst-backtrace4.c: Likewise.
9446         * debug/tst-backtrace5.c: Likewise.
9447         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
9448         (CFLAGS-tst-backtrace3.c): Likewise.
9449         (CFLAGS-tst-backtrace4.c): Likewise.
9450         (CFLAGS-tst-backtrace5.c): Likewise.
9451         (LDFLAGS-tst-backtrace2): Likewise.
9452         (LDFLAGS-tst-backtrace3): Likewise.
9453         (LDFLAGS-tst-backtrace4): Likewise.
9454         (LDFLAGS-tst-backtrace5): Likewise.
9455         (tests): Add new tests tst-backtrace2, tst-backtrace3,
9456         tst-backtrace4 and tst-backtrace5.
9457
9458 2013-01-18  Anton Blanchard  <anton@samba.org>
9459             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9460
9461         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
9462         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
9463         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
9464         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
9465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9466         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
9467         "+r" and remove output regs list as redundant.  Add explicit inline
9468         asm to specify register of return val to work around compiler codegen
9469         bug.  Remove (int) cast on return value.  Add return type parameter to
9470         use in macro so that this macro does not truncate return value for
9471         64-bit values.
9472         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
9473         pass to INTERNAL_VSYSCALL_NCS.
9474         (INLINE_VSYSCALL): Add 'long int' as return type to
9475         INTERNAL_VSYSCALL_NCS macro invocation.
9476         (INTERNAL_VSYSCALL): Add 'long int' as return type to
9477         INTERNAL_VSYSCALL_NCS macro invocation.
9478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9479
9480 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9481
9482         [BZ #14496]
9483         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
9484         Fix application of SIMD FP exception mask.
9485
9486         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
9487         mp_no from a power of two.
9488         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
9489         __mpexp_twomm1.  Use __pow_mp.
9490
9491         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
9492         multiplication.
9493
9494 2013-01-17  David S. Miller  <davem@davemloft.net>
9495
9496         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9497
9498 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
9499
9500         [BZ #15023]
9501         * include/complex.h: Condition contents on [!_COMPLEX_H].
9502         (__kernel_casinhf): New prototype.
9503         (__kernel_casinh): Likewise.
9504         (__kernel_casinhl): Likewise.
9505         * math/Makefile (libm_calls): Add k_casinh.
9506         * math/k_casinh.c: New file.
9507         * math/k_casinhf.c: Likewise.
9508         * math/k_casinhl.c: Likewise.
9509         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
9510         finite nonzero arguments.
9511         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
9512         finite nonzero arguments.
9513         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
9514         finite nonzero arguments.
9515         * math/s_casinh.c: Do not include <float.h>.
9516         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
9517         * math/s_casinhf.c: Do not include <float.h>.
9518         (__casinhf): Move code for finite nonzero arguments to
9519         k_casinhf.c.
9520         * math/s_casinhl.c: Do not include <float.h>.
9521         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
9522         redefine.
9523         (__casinhl): Move code for finite nonzero arguments to
9524         k_casinhl.c.
9525         * math/libm-test.inc (cacos_test): Add more tests.
9526         * sysdeps/i386/fpu/libm-test-ulps: Update.
9527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9528
9529 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
9530
9531         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
9532         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
9533         [!HAVE_MREMAP]: Remove [defined linux] case.
9534         * malloc/arena.c: Do not include <malloc-sysdep.h>.
9535
9536 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9537
9538         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
9539
9540 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9541
9542         * elf/elf.h (R_386_SIZE32): New relocation.
9543         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
9544         R_386_SIZE32.
9545         (elf_machine_rela): Likewise.
9546         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
9547         R_X86_64_SIZE64 and R_X86_64_SIZE32.
9548
9549 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
9550
9551         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
9552         (FP_FAST_FMA): Do not define.
9553         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
9554         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
9555         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
9556         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
9557         !_SOFT_FLOAT]: Likewise.
9558         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
9559         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
9560         value.
9561         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
9562         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
9563         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
9564         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
9565         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
9566         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
9567         file.
9568
9569 2013-01-16  Andreas Schwab  <schwab@suse.de>
9570
9571         [BZ #14327]
9572         * include/stdlib.h (__mktemp): Add declaration.
9573         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
9574         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
9575
9576 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9577
9578         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
9579         definitions.
9580         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
9581         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
9582         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
9583         definitions here.
9584         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
9585         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
9586         definitions.
9587         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
9588         and ONE.
9589         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
9590         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
9591         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
9592         definitions.
9593         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
9594         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
9595         definitions.
9596         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
9597
9598         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
9599
9600 2013-01-15  David S. Miller  <davem@davemloft.net>
9601
9602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9603         trunc{,f} to libm-sysdep_routes.
9604         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
9606         file.
9607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
9608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
9609         file.
9610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
9611         file.
9612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
9613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
9614         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
9615         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
9616         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
9617         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
9618         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
9619         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
9620
9621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9622         nearbyint{,f} to libm-sysdep_routes.
9623         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
9625         New file.
9626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
9627         file.
9628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
9629         New file.
9630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
9631         file.
9632         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
9633         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
9634         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
9635         file.
9636         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
9637         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
9638         file.
9639         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
9640         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
9641         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
9642
9643         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
9644         libc_feholdexcept and libc_fesetenv.
9645
9646 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
9647
9648         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
9649
9650 2013-01-14  David S. Miller  <davem@davemloft.net>
9651
9652         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
9653         (SPARC_ASM_VIS2_IFUNC): Likewise.
9654         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
9655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
9656         use of 'siam' instruction.
9657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
9658         Likewise.
9659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
9660         Likewise.
9661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
9662         Likewise.
9663         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
9664         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
9665         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
9666         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
9667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
9668         file.
9669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
9670         file.
9671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
9672         file.
9673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
9674         file.
9675         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
9676         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
9677         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
9678         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
9679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
9680         new VIS2 routines.
9681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9684         Likewise.
9685         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9686         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9687         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9688         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
9690         routines to libm-sysdep_routines.
9691         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
9692
9693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
9694         fdim/fdimf to libm-sysdep_routines.
9695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
9696         file.
9697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
9698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
9699         file.
9700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
9701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
9702         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
9703         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
9704         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
9705         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
9706         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
9707
9708 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
9709
9710         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
9711         to optimize copies.
9712
9713         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
9714         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9715         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9716
9717         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
9718         local variable MPTWO.
9719         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
9720         Likewise.
9721
9722 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9723
9724         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
9725         GLOB_NOESCAPE.
9726
9727 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9728
9729         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
9730
9731 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
9732
9733         * manual/pattern.texi (glob_t): Document gl_flags.
9734         (glob64_t): Likewise.
9735
9736 2013-01-11  David S. Miller  <davem@davemloft.net>
9737
9738         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
9739         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
9740         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
9741         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
9742         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
9743         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
9744         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
9745         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
9746         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
9747         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
9748         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
9749         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
9750         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
9751
9752         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
9753         sparc V9 rather than using V8 code.
9754         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
9755         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
9756
9757         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9758         Move to...
9759         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
9760         Here.
9761
9762 2013-01-11  Roland McGrath  <roland@hack.frob.com>
9763
9764         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
9765         not in the main loop.
9766         * configure: Regenerated.
9767
9768 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
9769
9770         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
9771         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
9772         to just #else.
9773         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
9774         [!__GLIBC_HAVE_LONG_LONG] case.
9775         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
9776         condition to just #else.
9777         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
9778         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
9779         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
9780         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
9781         unconditional.
9782         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
9783         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
9784         #elif condition to just #else.
9785         * sysdeps/unix/sysv/linux/sys/sysmacros.h
9786         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
9787         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
9788         #elif condition to just #else.
9789
9790 2013-01-11  Steve Ellcey  <sellcey@mips.com>
9791
9792         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
9793         (EF_MIPS_ARCH_64): Fix value.
9794         (EF_MIPS_ARCH_32R2): New.
9795         (EF_MIPS_ARCH_64R2): New.
9796
9797 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
9798
9799         * Makeconfig (+link-pie-before-libc): New.
9800         (+link-pie-after-libc): Likewise.
9801         (+link-pie-tests): Likewise.
9802         (+link-pie): Rewritten.
9803         (link-before-libc): Remove $(config-LDFLAGS).
9804         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
9805         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
9806         (config-LDFLAGS): Renamed to ...
9807         (rtld-LDFLAGS): This.
9808         (rtld-tests-LDFLAGS): New macro.
9809         (link-libc-rpath-link): Likewise.
9810         (link-libc-tests-rpath-link): Likewise.
9811         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
9812         (link-libc): Prepand $(link-libc-rpath-link).
9813         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
9814         (test-program-prefix): New macro.
9815         (test-via-rtld-prefix): Likewise.
9816         (test-program-cmd): Likewise.
9817         (host-test-program-cmd): Likewise.
9818         * Makefile ($(common-objpfx)testrun.sh): Replace
9819         $(run-program-prefix) with $(test-program-prefix).
9820         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
9821         $(rtld-LDFLAGS).
9822         ($(common-objpfx)shlib.lds): Likewise.
9823         (build-module-helper): Likewise.
9824         ($(common-objpfx)format.lds): Likewise.
9825         * Rules (binaries-pie-tests): New.
9826         (binaries-pie-notests): Likewise.
9827         (binaries-pie): Rewritten.
9828         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
9829         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
9830         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
9831         (make-test-out): Replace $(host-built-program-cmd) with
9832         $(host-test-program-cmd).
9833         * config.make.in (build-hardcoded-path-in-tests): New variable.
9834         * configure.in (--enable-hardcoded-path-in-tests): New configure
9835         option.
9836         (hardcoded_path_in_tests): New AC_SUBST.
9837         * configure: Regenerated.
9838         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
9839         $(built-program-cmd) with $(test-program-cmd).
9840         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
9841         (test_program_cmd): This.
9842         * elf/Makefile ($(objpfx)order.out): Run test with
9843         $(test-program-prefix).
9844         ($(objpfx)order2.out): Likewise.
9845         ($(objpfx)tst-initorder.out): Likewise.
9846         ($(objpfx)tst-initorder2.out): Likewise.
9847         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
9848         $(test-program-cmd).
9849         ($(objpfx)tst-array1-static.out): Likewise.
9850         ($(objpfx)tst-array2.out): Likewise.
9851         ($(objpfx)tst-array3.out): Likewise.
9852         ($(objpfx)tst-array4.out): Likewise.
9853         ($(objpfx)tst-array5.out): Likewise.
9854         ($(objpfx)tst-array5-static.out): Likewise.
9855         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
9856         $(test-program-cmd).
9857         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
9858         $(run-program-prefix) with $(test-program-prefix).
9859         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
9860         (test_program_prefix): This.
9861         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
9862         $(run-program-prefix) with $(test-program-prefix).
9863         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
9864         (test_program_prefix): This.
9865         * iconvdata/tst-tables.sh: Likewise.
9866         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
9867         $(run-program-prefix) with $(test-program-prefix).
9868         ($(objpfx)tst-translit.out): Likewise.
9869         ($(objpfx)tst-gettext2.out): Likewise.
9870         ($(objpfx)tst-gettext4.out): Likewise.
9871         ($(objpfx)tst-gettext6.out): Likewise.
9872         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
9873         (test_program_prefix): This.
9874         * intl/tst-gettext2.sh: Likewise.
9875         * intl/tst-gettext4.sh  Likewise.
9876         * intl/tst-gettext6.sh: Likewise.
9877         * intl/tst-translit.sh: Likewise.
9878         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
9879         with $(test-program-cmd).
9880         * libio/Makefile ($(objpfx)test-freopen.out): Replace
9881         $(run-program-prefix) with $(test-program-prefix).
9882         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
9883         (test_program_prefix): This.
9884         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
9885         $(run-program-prefix) with $(test-program-prefix).
9886         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
9887         (test_program_prefix): This.
9888         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
9889         * posix/Makefile ($(objpfx)globtest.out): Replace
9890         $(run-via-rtld-prefix) and $(test-wrapper) with
9891         $(test-program-prefix) and $(test-via-rtld-prefix).
9892         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
9893         $(test-program-prefix).
9894         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
9895         $(host-test-program-cmd).
9896         (tst-spawn-ARGS): Likewise.
9897         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
9898         $(test-program-prefix).
9899         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
9900         (test_via_rtld_prefix): This.
9901         (test_wrapper): Renamed to ...
9902         (test_program_prefix): This.
9903         (run_program_prefix): Replaced by test_program_prefix.
9904         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
9905         (test_program_prefix): This.
9906         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
9907         with $(host-test-program-cmd).
9908         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
9909         $(run-program-prefix) with $(test-program-prefix).
9910         ($(objpfx)tst-printf.out): Likewise.
9911         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
9912         $(test-program-cmd).
9913         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
9914         (test_program_prefix): This.
9915         * stdio-common/tst-unbputc.sh: Likewise.
9916         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
9917         $(run-program-prefix) with $(test-program-prefix).
9918         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
9919         (test_program_prefix): This.
9920         * string/Makefile ($(objpfx)tst-svc.out):  Replace
9921         $(built-program-cmd) with $(test-program-cmd).
9922
9923 2013-01-11  Andreas Jaeger  <aj@suse.de>
9924
9925         [BZ #15003]
9926         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
9927         value. Sync with Linux 3.7.
9928
9929 2013-01-10  David S. Miller  <davem@davemloft.net>
9930
9931         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
9932         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
9933         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
9934
9935 2013-01-10  Roland McGrath  <roland@hack.frob.com>
9936
9937         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
9938         never set.
9939         * configure: Regenerated.
9940
9941 2013-01-10  David S. Miller  <davem@davemloft.net>
9942
9943         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
9944         sparc V9 rather than using V8 code.
9945         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
9946         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
9947
9948 2013-01-10  Roland McGrath  <roland@hack.frob.com>
9949
9950         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
9951         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
9952         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
9953         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
9954         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
9955         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
9956         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
9957         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
9958         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
9959         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
9960         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
9961         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
9962         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
9963         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
9964         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
9965         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
9966         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
9967         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
9968         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
9969         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
9970         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
9971         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
9972         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
9973         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
9974         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
9975         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
9976         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
9977
9978 2013-01-10  David S. Miller  <davem@davemloft.net>
9979
9980         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9981
9982 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
9983
9984         * posix/Makefile (tests-static): New variable.
9985         (tests): Add $(tests-static).
9986         (tst-exec-static-ARGS): New variable.
9987         (tst-spawn-static-ARGS): Likewise.
9988         * posix/tst-exec-static.c: New file.
9989         * posix/tst-spawn-static.c: Likewise.
9990         * posix/tst-exec.c: Support run directly.
9991         * posix/tst-spawn.c: Likewise.
9992
9993 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
9994
9995         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
9996         long.
9997         * math/bits/mathcalls.h (llrint): Likewise.
9998         (llround): Likewise.
9999         * stdlib/stdlib.h (struct drand48_data): Likewise.
10000         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
10001         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
10002         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
10003         Likewise.
10004         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
10005         Likewise.
10006         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
10007         (elf_greg_t): Likewise.
10008         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
10009         (__jmp_buf): Likewise.
10010         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
10011         definitions.
10012         (llrint): Likewise, for all definitions.
10013         (llrintl): Likewise.
10014
10015         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
10016         Remove [__GNUC__] condition.
10017         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
10018         condition to just [__USE_ISOC99].
10019         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
10020
10021 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10022
10023         [BZ #14200]
10024         * sysdeps/unix/sysv/linux/x86/bits/environments.h
10025         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
10026         defined.
10027         (_POSIX_V6_ILP32_OFF32): Likewise.
10028         (_XBS5_ILP32_OFF32): Likewise.
10029         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
10030         (__ILP32_OFFBIG_LDFLAGS): Likewise.
10031
10032 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10033
10034         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
10035
10036         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
10037         doubles __mpexp_twomm1.  Adjust usage.
10038         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
10039         Remove.
10040
10041 2013-01-10  Andreas Schwab  <schwab@suse.de>
10042
10043         [BZ #14964]
10044         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
10045         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
10046
10047 2013-01-09  David S. Miller  <davem@davemloft.net>
10048
10049         [BZ #15003]
10050         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
10051         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
10052         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
10053         TCP_FASTOPEN): Define.
10054         (tcp_repair_opt): New structure.
10055         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
10056         enum values.
10057         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
10058         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
10059         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
10060         (tcp_cookie_transactions): New structure.
10061
10062 2013-01-09  Anton Blanchard  <anton@samba.org>
10063
10064         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
10065         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
10066         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
10067         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
10068
10069 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
10070
10071         * include/features.h (__USE_ANSI): Remove.
10072
10073 2013-01-09  Roland McGrath  <roland@hack.frob.com>
10074
10075         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
10076
10077         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
10078
10079 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
10080
10081         * sysdeps/s390/fpu/libm-test-ulps: Update.
10082
10083         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10084
10085         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
10086         (__acr): Likewise.
10087         (__cpy): Likewise.
10088         (norm): Likewise.
10089         (denorm): Likewise.
10090         (__mp_dbl): Likewise.
10091         (__dbl_mp): Likewise.
10092         (add_magnitudes): Likewise.
10093         (sub_magnitudes): Likewise.
10094         (__add): Likewise.
10095         (__sub): Likewise.
10096         (__mul): Likewise.
10097         (__inv): Likewise.
10098         (__dvd): Likewise.
10099         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
10100         (__acr): Likewise.
10101         (__cpy): Likewise.
10102         (norm): Likewise.
10103         (denorm): Likewise.
10104         (__mp_dbl): Likewise.
10105         (__dbl_mp): Likewise.
10106         (add_magnitudes): Likewise.
10107         (sub_magnitudes): Likewise.
10108         (__add): Likewise.
10109         (__sub): Likewise.
10110         (__mul): Likewise.
10111         (__inv): Likewise.
10112         (__dvd): Likewise.
10113         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
10114         (__acr): Likewise.
10115         (__cpy): Likewise.
10116         (norm): Likewise.
10117         (denorm): Likewise.
10118         (__mp_dbl): Likewise.
10119         (__dbl_mp): Likewise.
10120         (add_magnitudes): Likewise.
10121         (sub_magnitudes): Likewise.
10122         (__add): Likewise.
10123         (__sub): Likewise.
10124         (__mul): Likewise.
10125         (__inv): Likewise.
10126         (__dvd): Likewise.
10127
10128 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
10129
10130         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
10131         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
10132         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
10133         2 && __USE_EXTERN_INLINES]: Likewise.
10134
10135 2013-01-08  Andreas Jaeger  <aj@suse.de>
10136
10137         [BZ# 14985]
10138         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
10139         Remove.
10140         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10141         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10142
10143 2013-01-07  Anton Blanchard  <anton@samba.org>
10144
10145         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
10146         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
10147         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
10148         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
10149         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
10150         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10151         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
10152         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10153         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10154         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10155         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10156         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10157         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10158         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
10159         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
10160         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10161         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10162         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10163         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
10164         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
10165         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
10166         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
10167         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10168         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
10169         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
10170         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
10171         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10172         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
10173         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
10174         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10175         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
10176         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10177         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10178         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10179         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10180         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10181         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
10182         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10183         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
10184         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
10185         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
10186         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10187         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
10188
10189 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
10190
10191         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
10192         (__MALLOC_PMT): Likewise.
10193         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
10194         [__GNUC__], only on [_LIBC].
10195         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10196         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
10197         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
10198         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
10199         forward declaration.
10200         (realloc_hook_ini): Likewise.
10201         (memalign_hook_ini): Likewise.
10202         (__libc_memalign): Do not use __MALLOC_PMT in variable
10203         declaration.
10204         (__libc_valloc): Likewise.
10205         (__libc_pvalloc): Likewise.
10206         (__libc_calloc): Likewise.
10207         (__posix_memalign): Likewise.
10208
10209         [BZ #14996]
10210         * math/s_casinh.c: Include <float.h>.
10211         (__casinh): Do not do computation with squaring and square root
10212         for large arguments.
10213         * math/s_casinhf.c: Include <float.h>.
10214         (__casinhf): Do not do computation with squaring and square root
10215         for large arguments.
10216         * math/s_casinhl.c: Include <float.h>.
10217         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
10218         (__casinhl): Do not do computation with squaring and square root
10219         for large arguments.
10220         * math/libm-test.inc (casin_test): Add more tests.
10221         (casinh_test): Likewise.
10222         * sysdeps/i386/fpu/libm-test-ulps: Update.
10223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10224
10225 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10226
10227         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
10228         (__x86_64_raw_data_cache_size): Likewise.
10229         (__x86_64_data_cache_size_half): Likewise.
10230         (__x86_64_raw_data_cache_size_half): Likewise.
10231         (__x86_64_shared_cache_size): Likewise.
10232         (__x86_64_raw_shared_cache_size): Likewise.
10233         (__x86_64_shared_cache_size_half): Likewise.
10234         (__x86_64_raw_shared_cache_size_half): Likewise.
10235         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
10236         to ...
10237         (__x86_data_cache_size): This.
10238         (__x86_64_raw_data_cache_size): Renamed to ...
10239         (__x86_raw_data_cache_size): This.
10240         (__x86_64_data_cache_size_half): Renamed to ...
10241         (__x86_data_cache_size_half): This.
10242         (__x86_64_raw_data_cache_size_half): Renamed to ...
10243         (__x86_raw_data_cache_size_half): This.
10244         (__x86_64_shared_cache_size): Renamed to ...
10245         (__x86_shared_cache_size): This.
10246         (__x86_64_raw_shared_cache_size): Renamed to ...
10247         (__x86_raw_shared_cache_size): This.
10248         (__x86_64_shared_cache_size_half): Renamed to ...
10249         (__x86_shared_cache_size_half): This.
10250         (__x86_64_raw_shared_cache_size_half): Renamed to ...
10251         (__x86_raw_shared_cache_size_half): This.
10252         * sysdeps/x86_64/memcpy.S: Updated.
10253         * sysdeps/x86_64/memset.S: Likewise.
10254         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
10255         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
10256         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
10257
10258 2013-01-04  David S. Miller  <davem@davemloft.net>
10259
10260         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10261
10262 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
10263
10264         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
10265         1 to avoid redefinition warning.
10266         (__USE_GNU): Don't define.
10267         (init_signaling_nan): Protoize.
10268
10269         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10270
10271 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10272
10273         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
10274         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
10275         (__cpymn): Likewise.
10276         (norm): Remove commented code.
10277         (denorm): Likewise.
10278         (__mp_dbl): Likewise.
10279         (__inv): Likewise.
10280         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
10281         (__cpymn): Likewise.
10282         (norm): Remove commented code.
10283         (denorm): Likewise.
10284         (__mp_dbl): Likewise.
10285         (__inv): Likewise.
10286
10287         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
10288         mp_no value for 1.0 and 2.0.
10289         (norm): Use RADIXI instead of radixi.d.
10290         (denorm): Likewise.
10291         (__mul): Use 0.0 instead of zero.d.
10292         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
10293         mp_no value for 1.0 and 2.0.
10294         (norm): Use RADIXI instead of radixi.d.
10295         (denorm): Likewise.
10296         (__mul): Use 0.0 instead of zero.d.
10297
10298 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
10299
10300         [BZ #14994]
10301         * math/s_casinh.c (__casinh): Reduce finite argument to first
10302         quadrant then set signs of results at the end.
10303         * math/s_casinhf.c (__casinhf): Likewise.
10304         * math/s_casinhl.c (__casinhl): Likewise.
10305         * math/libm-test.inc (casin_test): Add more tests.
10306         (casinh_test): Likewise.
10307         * sysdeps/i386/fpu/libm-test-ulps: Update.
10308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10309
10310 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10311
10312         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
10313
10314         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
10315
10316         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
10317         declarations.
10318         (denorm): Likewise.
10319         (__mp_dbl): Likewise.
10320         (__inv): Likewise.
10321
10322         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
10323         and adjust the header comment.
10324
10325         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
10326         variable name from declaration.
10327
10328 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10329
10330         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10331         Initialize COMMON_CPUID_INDEX_7 element.
10332         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
10333         (CPUID_RTM): Likewise.
10334         (HAS_RTM): Likewise.
10335         (COMMON_CPUID_INDEX_7): New enum.
10336
10337 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
10338
10339         [BZ #14981]
10340         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
10341         size is zero, record memory as freed.
10342
10343 2013-01-03  Andreas Jaeger  <aj@suse.de>
10344
10345         * po/ia.po: Add new Interlingua translation.
10346
10347 2012-01-03  Allan McRae  <allan@archlinux.org>
10348
10349         * locale/programs/localedef.c: Fix description of '--posix' flag.
10350
10351 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
10352
10353         * NEWS: Update dates in second copyright notice.
10354         * README: Update copyright dates in example.
10355         * manual/libc.texinfo: Update copyright dates.
10356         * scripts/test-installation.pl: Update copyright date in --version
10357         output.
10358
10359         * hurd/ctty-input.c: Fix copyright notice formatting.
10360         * hurd/ctty-output.c: Likewise.
10361         * hurd/dtable.c: Likewise.
10362         * hurd/hurd-raise.c: Likewise.
10363         * hurd/hurdprio.c: Likewise.
10364         * hurd/msgportdemux.c: Likewise.
10365         * misc/sys/file.h: Likewise.
10366         * misc/sys/ioctl.h: Likewise.
10367         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
10368         * sysdeps/mach/hurd/chdir.c: Likewise.
10369         * sysdeps/mach/hurd/fchdir.c: Likewise.
10370         * sysdeps/mach/hurd/rename.c: Likewise.
10371         * sysdeps/mach/hurd/rmdir.c: Likewise.
10372         * sysdeps/mach/hurd/seekdir.c: Likewise.
10373         * sysdeps/mach/hurd/setsid.c: Likewise.
10374         * sysdeps/posix/wait3.c: Likewise.
10375
10376         * All files with FSF copyright notices: Update copyright dates
10377         using scripts/update-copyrights.
10378         * intl/plural.c: Regenerated.
10379         * locale/programs/charmap-kw.h: Likewise.
10380         * locale/programs/locfile-kw.h: Likewise.
10381
10382 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10383
10384         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
10385         four values.
10386
10387         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
10388         calculation loop and add branch prediction.
10389
10390         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
10391         check access beyond bounds of m1np.
10392
10393         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
10394         MPTWO.
10395         (__inv): Remove local variable MPTWO to use the global
10396         constant.
10397         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
10398         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
10399         variable MPTWO.
10400         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
10401         MP3HALFS static const.
10402
10403 2013-01-01  David S. Miller  <davem@davemloft.net>
10404
10405         * po/ca.po: Update from translation team.
10406
10407 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
10408
10409         * scripts/update-copyrights: New file.
10410         * Makeconfig: Reformat copyright notice.
10411         * ctype/ctype.h: Likewise.
10412         * debug/swprintf_chk.c: Likewise.
10413         * elf/dl-cache.c: Likewise.
10414         * elf/dl-debug.c: Likewise.
10415         * elf/dl-object.c: Likewise.
10416         * grp/initgroups.c: Likewise.
10417         * hurd/Makefile: Likewise.
10418         * hurd/hurd/signal.h: Likewise.
10419         * hurd/hurdfault.c: Likewise.
10420         * hurd/hurdioctl.c: Likewise.
10421         * hurd/hurdlookup.c: Likewise.
10422         * hurd/intr-msg.c: Likewise.
10423         * iconv/gconv_open.c: Likewise.
10424         * libio/swprintf.c: Likewise.
10425         * locale/lc-ctype.c: Likewise.
10426         * locale/nl_langinfo.c: Likewise.
10427         * mach/Machrules: Likewise.
10428         * mach/Makefile: Likewise.
10429         * malloc/obstack.h: Likewise.
10430         * manual/Makefile: Likewise.
10431         * manual/tsort.awk: Likewise.
10432         * misc/bits/stab.def: Likewise.
10433         * nis/nis_print_group_entry.c: Likewise.
10434         * nis/nis_table.c: Likewise.
10435         * nis/nss_compat/compat-pwd.c: Likewise.
10436         * nis/nss_compat/compat-spwd.c: Likewise.
10437         * po/Makefile: Likewise.
10438         * posix/fnmatch.c: Likewise.
10439         * posix/regex.h: Likewise.
10440         * resolv/Makefile: Likewise.
10441         * resolv/nss_dns/dns-network.c: Likewise.
10442         * resolv/res_hconf.c: Likewise.
10443         * scripts/gen-sorted.awk: Likewise.
10444         * soft-fp/soft-fp.h: Likewise.
10445         * stdio-common/printf.h: Likewise.
10446         * stdlib/monetary.h: Likewise.
10447         * stdlib/random.c: Likewise.
10448         * stdlib/random_r.c: Likewise.
10449         * sysdeps/generic/Makefile: Likewise.
10450         * sysdeps/gnu/Makefile: Likewise.
10451         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10452         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10453         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10454         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10455         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10456         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10457         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10458         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10459         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10460         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10461         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10462         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10463         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
10464         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
10465         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
10466         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
10467         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10468         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10469         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10470         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10471         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10472         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10473         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10474         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
10475         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
10476         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10477         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
10478         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
10479         * sysdeps/mach/hurd/errnos.awk: Likewise.
10480         * sysdeps/mach/hurd/fork.c: Likewise.
10481         * sysdeps/mach/hurd/getcwd.c: Likewise.
10482         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
10483         * sysdeps/mach/hurd/mmap.c: Likewise.
10484         * sysdeps/mach/hurd/utimes.c: Likewise.
10485         * sysdeps/mach/hurd/xmknod.c: Likewise.
10486         * sysdeps/posix/profil.c: Likewise.
10487         * sysdeps/posix/readdir_r.c: Likewise.
10488         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10489         * sysdeps/powerpc/bits/setjmp.h: Likewise.
10490         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
10491         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10492         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10493         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
10494         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10495         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10496         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10497         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
10498         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10499         * sysdeps/pthread/lio_listio.c: Likewise.
10500         * sysdeps/sparc/dl-procinfo.h: Likewise.
10501         * sysdeps/unix/i386/sysdep.S: Likewise.
10502         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
10503         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
10504         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
10505         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
10506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10507         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10508         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10509         * sysdeps/unix/sysv/linux/speed.c: Likewise.
10510         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
10511         * sysdeps/wordsize-32/divdi3.c: Likewise.
10512         * time/sys/time.h: Likewise.
10513         * wcsmbs/Makefile: Likewise.
10514
10515 2013-01-01  David S. Miller  <davem@davemloft.net>
10516
10517         * po/fr.po: Update from translation team.
10518
10519         * catgets/gencat.c: Update copyright year.
10520         * csu/version.c: Likewise.
10521         * debug/catchsegv.sh: Likewise.
10522         * debug/pcprofiledump.c: Likewise.
10523         * debug/xtrace.sh: Likewise.
10524         * elf/ldconfig.c: Likewise.
10525         * elf/ldd.bash.in: Likewise.
10526         * elf/pldd.c: Likewise.
10527         * elf/sotruss.ksh: Likewise.
10528         * elf/sprof.c: Likewise.
10529         * iconv/iconv_prog.c: Likewise.
10530         * iconv/iconvconfig.c: Likewise.
10531         * locale/programs/locale.c: Likewise.
10532         * locale/programs/localedef.c: Likewise.
10533         * login/programs/pt_chown.c: Likewise.
10534         * malloc/memusage.sh: Likewise.
10535         * malloc/memusagestat.c: Likewise.
10536         * malloc/mtrace.pl: Likewise.
10537         * nscd/nscd.c: Likewise.
10538         * nss/getent.c: Likewise.
10539         * nss/makedb.c: Likewise.
10540         * posix/getconf.c: Likewise.
10541
10542 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10543
10544         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
10545         numbers.
10546
10547 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
10548
10549         * math/bits/mathcalls.h (modf): Use __nonnull.
10550
10551 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10552
10553         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
10554         (split): Use macro CN instead of the bare value.
10555         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
10556         could be used.
10557         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
10558         instead of the bare value.
10559         (power1): Likewise.
10560
10561 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10562
10563         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
10564         __ATAN_TWOM.
10565         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10566
10567         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
10568         their values.
10569         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
10570         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10571         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
10572         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
10573
10574 2012-12-28  Andreas Jaeger  <aj@suse.de>
10575
10576         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
10577         values are from Linux 3.7.
10578
10579         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
10580         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
10581
10582 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10583
10584         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
10585         TRUE case.
10586
10587         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
10588         (norm): Likewise.
10589         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
10590         variables with preprocessor constants.
10591         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10592         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
10593         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
10594
10595 2012-12-27  Bruno Haible  <bruno@clisp.org>
10596
10597         [BZ #14317]
10598         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
10599         only if needed.
10600
10601 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
10602
10603         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
10604         and use variable directly.
10605         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
10606
10607         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
10608         MPONE.
10609         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
10610         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
10611         variable MPONE.
10612         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10613         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
10614         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
10615         include directive.  Remove local variable MPONE.
10616         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
10617         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
10618         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10619
10620 2012-12-25  David S. Miller  <davem@davemloft.net>
10621
10622         * version.h (RELEASE): Set to "development".
10623         (VERSION): Set to "2.17.90".
10624         * NEWS: Add 2.18 section.
10625
10626 2012-12-21  David S. Miller  <davem@davemloft.net>
10627
10628         * po/hr.po: Update from translation team.
10629
10630 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10631
10632         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
10633
10634 2012-12-19  Steve Ellcey  <sellcey@mips.com>
10635
10636         * NEWS:  Mention new memcpy for MIPS.
10637
10638 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10639
10640         * manual/contrib.texi (Contributors): Spelling correction.
10641
10642 2012-12-15  David S. Miller  <davem@davemloft.net>
10643
10644         * po/ru.po: Update from translation team.
10645
10646 2012-12-13  David S. Miller  <davem@davemloft.net>
10647
10648         * NEWS: Mention IFUNC testsuite enhancements.
10649
10650         * po/pl.po: Update from translation team.
10651         * po/bg.po: Likewise.
10652
10653         * manual/contrib.texi (Contributors): Update entries for Hongjiu
10654         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
10655
10656 2012-12-11  David S. Miller  <davem@davemloft.net>
10657
10658         * po/sv.po: Update from translation team.
10659
10660         * po/vi.po: Update from translation team.
10661
10662         * po/cs.po: Update from translation team.
10663
10664         * po/de.po: Update from translation team.
10665         * po/eo.po: Likewise.
10666         * po/nl.po: Likewise.
10667
10668 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10669
10670         [BZ #14246]
10671         * manual/argp.texi (Argp Helper Functions): Move node to follow
10672         Argp Parsing State.
10673
10674         [BZ #14872]
10675         * manual/conf.texi (Limits on File System Capacity): Mention if
10676         terminating null is included in the max size.
10677
10678 2012-12-10  Andreas Jaeger  <aj@suse.de>
10679
10680         * po/cs.po: Update from translation team.
10681
10682 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
10683
10684         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
10685         void pointer and cast to uintptr_t.
10686         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
10687         path.
10688         * sysdeps/s390/s390-64/memcpy.S: Likewise.
10689         * sysdeps/s390/s390-64/memset.S: Likewise.
10690
10691 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
10692
10693         [BZ #14833]
10694         * menual/message.texi (Message Translation): Fix typos.
10695         (Helper programs for gettext): Likewise.
10696
10697 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
10698
10699         [BZ #14898]
10700         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
10701         Change to -1.
10702
10703 2012-12-07  David S. Miller  <davem@davemloft.net>
10704
10705         * po/libc.pot: Update.
10706
10707 2012-12-07  Richard Henderson  <rth@redhat.com>
10708
10709         [BZ #10114]
10710         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
10711         normal/normal case to before the switch.
10712         (_FP_DIV): Likewise.
10713
10714 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
10715             Mike Frysinger  <vapier@gentoo.org>
10716
10717         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
10718         check for __NR_fadvise64_64.
10719
10720 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
10721
10722         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
10723         0, not just to plain "0" as a statement.
10724         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
10725         with cw.
10726
10727 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
10728
10729         * NEWS: Use sourceware.org in Bugzilla URL.
10730
10731 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10732
10733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
10734         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
10735
10736         * stdio-common/tst-put-error.c (do_test): Add newline to the
10737         padded test to ensure flush.
10738
10739 2012-12-05  Jeff Law  <law@redhat.com>
10740
10741         * sunrpc/etc.rpc (fedfs_admin): Add entry.
10742
10743 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
10744
10745         * README: Don't refer to ports add-on as distributed separately.
10746         Mention AArch64 in list of systems supported in the ports add-on.
10747
10748         * LICENSES: Add more non-FSF copyright and license notices.
10749
10750         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
10751         ((unused)).
10752
10753         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
10754
10755         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
10756         10000 as width of padded output.
10757
10758 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
10759
10760         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
10761
10762         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
10763         variable LX with __attribute__ ((unused)).
10764         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
10765         Likewise.
10766         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
10767         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
10768         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
10769         with __attribute__ ((unused)).
10770
10771 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
10772
10773         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
10774
10775 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
10776
10777         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
10778         (CFLAGS-nldbl-acos.c): New variable.
10779         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
10780         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
10781         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
10782         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
10783         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
10784         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
10785         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
10786         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
10787         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
10788         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
10789         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
10790         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
10791         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
10792         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
10793         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
10794         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
10795         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
10796         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
10797         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
10798         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
10799         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
10800         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
10801         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
10802         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
10803         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
10804         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
10805         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
10806         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
10807         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
10808         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
10809         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
10810         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
10811         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
10812         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
10813         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
10814         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
10815         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
10816         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
10817         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
10818         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
10819         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
10820         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
10821         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
10822         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
10823         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
10824         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
10825         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
10826         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
10827         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
10828         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
10829         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
10830         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
10831         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
10832         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
10833         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
10834         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
10835         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
10836         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
10837         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
10838         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
10839         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
10840         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
10841         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
10842         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
10843         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
10844         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
10845         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
10846         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
10847         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
10848         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
10849         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
10850         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
10851         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
10852         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
10853         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
10854         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
10855         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
10856         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
10857         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
10858         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
10859         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
10860         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
10861         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
10862         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
10863         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
10864         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
10865         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
10866         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
10867         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
10868         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
10869         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
10870         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
10871         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
10872         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
10873         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
10874         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
10875         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
10876
10877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10878         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
10879
10880         [BZ #14914]
10881         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
10882         whole low double instead of just low 47 bits when splitting values
10883         into two parts.
10884
10885 2012-12-03  Allan McRae  <allan@archlinux.org>
10886
10887         * manual/stdio.texi (Predefined Printf Handlers): Remove
10888         @hsep and @vsep usage.
10889
10890 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
10891
10892         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
10893         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
10894
10895 2012-12-03  Jeff Law  <law@redhat.com>
10896
10897         * time/sys/time.h (settimeofday): Do not mark TV argument
10898         as __nonnull.
10899
10900 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
10901
10902         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
10903         when currently writing and seek to current position when not.
10904         * libio/Makefile (tests): Remove bug-fclose1.
10905         * libio/bug-fclose1.c: Delete.
10906
10907 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
10908
10909         * manual/arith.texi (feenableexcept): Fix typo.
10910         (fedisableexcept): Likewise.
10911
10912 2012-11-30  Roland McGrath  <roland@hack.frob.com>
10913
10914         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
10915         second, differently-typed declaration, rather than a cast.
10916
10917 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10918
10919         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
10920         * include/rpc/svc.h: ... here.
10921
10922 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
10923
10924         [BZ #13013]
10925         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
10926         depending n and resplen2 to catch cases where answer
10927         equals answerp2.
10928
10929 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
10930
10931         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
10932         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
10933
10934 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
10935
10936         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
10937
10938 2012-11-29  Roland McGrath  <roland@hack.frob.com>
10939
10940         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
10941
10942 2012-11-28  Jeff Law  <law@redhat.com>
10943
10944         [BZ #13761]
10945         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
10946         dataset_temporary.  Track alloca usage into alloca_used.
10947         If dataset is large allocate and release it via malloc/free.
10948
10949 2012-06-04  Florian Weimer  <fweimer@redhat.com>
10950
10951         [BZ #14197]
10952         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
10953
10954 2012-11-28  David S. Miller  <davem@davemloft.net>
10955
10956         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10957
10958 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
10959
10960         [BZ #14803]
10961         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
10962         of pi/2 rounded to nearest to 64 bits.
10963         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
10964         nearest to 64 bits.
10965         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
10966         bits.
10967
10968 2012-11-28  Jeff Law <law@redhat.com>
10969             Martin Osvald <mosvald@redhat.com>
10970
10971         [BZ #14889]
10972         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
10973         * sunrpc/svc.c: Include time.h.
10974         (__svc_accept_failed): New function.
10975         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
10976         any reason other than EINTR, call __svc_accept_failed.
10977         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
10978         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
10979
10980 2012-11-28  Andreas Schwab  <schwab@suse.de>
10981
10982         * scripts/abilist.awk: Also handle indirect functions in .opd
10983         section.
10984
10985 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
10986
10987         [BZ #13881]
10988         * sysdeps/x86/fpu/powl_helper.c: New file.
10989         * sysdeps/x86/fpu/Makefile: Likewise.
10990         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
10991         (p3): New object.
10992         (__ieee754_powl): Use __powl_helper for finite arguments except
10993         integer exponents below 8.
10994         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
10995         (p3): New object.
10996         (__ieee754_powl): Use __powl_helper for finite arguments except
10997         integer exponents below 8.
10998         * math/libm-test.inc (pow_test): Add more tests and enable some
10999         previously disabled tests.
11000         * sysdeps/i386/fpu/libm-test-ulps: Update.
11001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11002
11003 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11004             Carlos O'Donell  <carlos_odonell@mentor.com>
11005
11006         * nss/makedb.c (is_prime): Assert that input is odd and greater
11007         than 4.  Note that fact in a comment too.
11008         (next_prime): Add 4 to input.
11009
11010 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11011
11012         [BZ #11741]
11013         * libio/Makefile (tests): Add test case tst-fwrite-error.
11014         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
11015         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11016         * libio/tst-fwrite-error.c: New test case.
11017
11018 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
11019
11020         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
11021         before casting to void *.
11022         * include/libc-internal.h (__pointer_type): New macro.
11023         (__integer_if_pointer_type_sub): Likewise.
11024         (__integer_if_pointer_type): Likewise.
11025         (cast_to_integer): Likewise.
11026         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
11027         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
11028         before casting to atomic64_t.
11029         (atomic_exchange_acq): Likewise.
11030         (__arch_exchange_and_add_body): Likewise.
11031         (__arch_add_body): Likewise.
11032         (atomic_add_negative): Likewise.
11033         (atomic_add_zero): Likewise.
11034
11035 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
11036
11037         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
11038         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
11039         (add_fdes): Likewise.
11040         (linear_search_fdes): Likewise.
11041         (binary_search_unencoded_fdes): Likewise.
11042
11043 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
11044
11045         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
11046
11047 2012-11-24  Adam Conrad  <adconrad@0c3.net>
11048
11049         * configure.in: Autodetect C++ header directories.
11050         * configure: Regenerated.
11051
11052 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
11053
11054         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
11055
11056 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
11057
11058         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11059
11060 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
11061
11062         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
11063         LDBL_MANT_DIG == 106]: Disable some tests.
11064         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11065         Likewise.
11066         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11067         Likewise.
11068
11069         [BZ #14871]
11070         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
11071         input for small inputs.  Return +/- pi/2 for large inputs.
11072         * math/libm-test.inc (atan_test): Add more tests.
11073
11074         * sysdeps/generic/unwind-dw2-fde-glibc.c
11075         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
11076         __attribute__ ((unused)).
11077
11078         [BZ #14645]
11079         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
11080         x * y if x and y are nonzero and z is zero.
11081
11082         [BZ #14811]
11083         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
11084         nonzero exponents with absolute value below 0x1p-117 to +/-
11085         0x1p-117.
11086
11087         [BZ #14869]
11088         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
11089         up arguments below 2**-450, not just those below 2**-500.
11090         * math/libm-test.inc (hypot_test): Add another test.
11091
11092         [BZ #14868]
11093         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11094         Return a+b for ratio over 2**120, not 2**60.
11095         * math/libm-test.inc (hypot_test): Add another test.
11096
11097         * math/libm-test.inc (clog_test): Use
11098         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
11099         (clog10_test): Likewise.
11100
11101         [BZ #6778]
11102         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
11103
11104 2012-11-22  Andreas Schwab  <schwab@suse.de>
11105
11106         * sysdeps/i386/fpu/libm-test-ulps: Update.
11107
11108 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
11109
11110         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
11111         printf output with newline.
11112
11113 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11114
11115         [BZ #14865]
11116         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
11117         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
11118         -z nodlopen, -z initfirst and -z execstack support.
11119         * configure: Regenerated.
11120
11121         * elf/elf.h (DF_1_NODIRECT): New macro.
11122         (DF_1_IGNMULDEF): Likewise.
11123         (DF_1_NOKSYMS): Likewise.
11124         (DF_1_NOHDR): Likewise.
11125         (DF_1_EDITED): Likewise.
11126         (DF_1_NORELOC): Likewise.
11127         (DF_1_SYMINTPOSE): Likewise.
11128         (DF_1_GLOBAUDIT): Likewise.
11129         (DF_1_SINGLETON): Likewise.
11130         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
11131         DT_1_SUPPORTED_MASK bits.
11132         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
11133
11134 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
11135
11136         * sysdeps/unix/make-syscalls.sh: Document prefixes.
11137
11138 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
11139
11140         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
11141         macro.
11142
11143         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
11144         (sendmmsg): Move declarations...
11145         * socket/sys/socket.h: ... here.
11146         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
11147         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
11148         include it from...
11149         * socket/recvmmsg.c: ... this new file.
11150         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
11151         (sendmmsg): Rename to __sendmmsg, create weak alias and make
11152         definition of __sendmmsg hidden.
11153         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
11154         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
11155         Move ENOSYS stub into and include it from...
11156         * socket/sendmmsg.c: ... this new file.
11157         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
11158         (sysdep_routines): Move recvmmsg and sendmmsg...
11159         * socket/Makefile (routines): ... here.
11160         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
11161         (GLIBC_PRIVATE): Add __sendmmsg.
11162         * include/sys/socket.h (__sendmmsg): Add declarations.
11163         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
11164         sendmmsg.
11165
11166 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
11167
11168         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
11169         variable I1 with __attribute__ ((unused)).
11170         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11171
11172 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11173
11174         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
11175         DUMMY variables with __attribute__ ((unused)).
11176
11177         * bits/byteswap.h: Include <bits/types.h>.
11178         (__bswap_64): Use __uint64_t instead of unsigned long long int.
11179
11180 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11181
11182         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
11183         string_t.  Do not manually set errno.
11184         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
11185         length with __strnlen.  Make sure to both set errno and return it on
11186         failure.
11187
11188 2012-11-19  David S. Miller  <davem@davemloft.net>
11189
11190         With help from Joseph Myers.
11191         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
11192         very large arguments properly.
11193         * math/libm-test.inc (atan_test): New tests.
11194         (atan2_test): New tests.
11195         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11196         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11197
11198 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11199
11200         [BZ #14856]
11201         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
11202         Define to 3.
11203
11204         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
11205         [POSIX] (EADDRNOTAVAIL): Likewise.
11206         [POSIX] (EAFNOSUPPORT): Likewise.
11207         [POSIX] (EALREADY): Likewise.
11208         [POSIX] (ECONNABORTED): Likewise.
11209         [POSIX] (ECONNREFUSED): Likewise.
11210         [POSIX] (ECONNRESET): Likewise.
11211         [POSIX] (EDESTADDRREQ): Likewise.
11212         [POSIX] (EDQUOT): Likewise.
11213         [POSIX] (EHOSTUNREACH): Likewise.
11214         [POSIX] (EIDRM): Likewise.
11215         [POSIX] (EISCONN): Likewise.
11216         [POSIX] (ELOOP): Likewise.
11217         [POSIX] (EMULTIHOP): Likewise.
11218         [POSIX] (ENETDOWN): Likewise.
11219         [POSIX] (ENETUNREACH): Likewise.
11220         [POSIX] (ENOBUFS): Likewise.
11221         [POSIX] (ENODATA): Likewise.
11222         [POSIX] (ENOLINK): Likewise.
11223         [POSIX] (ENOMSG): Likewise.
11224         [POSIX] (ENOPROTOOPT): Likewise.
11225         [POSIX] (ENOSR): Likewise.
11226         [POSIX] (ENOSTR): Likewise.
11227         [POSIX] (ENOTCONN): Likewise.
11228         [POSIX] (ENOTSOCK): Likewise.
11229         [POSIX] (EOPNOTSUPP): Likewise.
11230         [POSIX] (EOVERFLOW): Likewise.
11231         [POSIX] (EPROTO): Likewise.
11232         [POSIX] (EPROTONOSUPPORT): Likewise.
11233         [POSIX] (EPROTOTYPE): Likewise.
11234         [POSIX] (ESTALE): Likewise.
11235         [POSIX] (ETIME): Likewise.
11236         [POSIX] (ETXTBSY): Likewise.
11237         [POSIX] (EWOULDBLOCK): Likewise.
11238         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
11239         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
11240         [POSIX] (SEEK_CUR): Likewise.
11241         [POSIX] (SEEK_END): Likewise.
11242         [POSIX || UNIX98] (mode_t): Do not require.
11243         [POSIX] (off_t): Likewise.
11244         [POSIX] (pid_t): Likewise.
11245         [POSIX] (sys/stat.h): Do not allow header.
11246         [POSIX] (unistd.h): Likewise.
11247         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
11248         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
11249         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
11250         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
11251         require.
11252         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
11253         sigevent): Specify elements.
11254         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
11255         entry.
11256         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
11257         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
11258
11259         * conform/data/cpio.h-data [POSIX]: Disable whole file.
11260         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
11261         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
11262         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
11263         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
11264         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
11265         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
11266         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
11267         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
11268         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
11269         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
11270         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
11271         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
11272         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
11273         Likewise.
11274         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
11275         Likewise.
11276         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
11277         Likewise.
11278         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
11279         Likewise.
11280         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
11281         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
11282         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
11283         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
11284         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
11285         Specify lower bound on value.
11286         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
11287         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
11288         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
11289         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
11290         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
11291         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
11292         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
11293         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
11294         value.
11295         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
11296         as optional.
11297         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
11298         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
11299         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
11300         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
11301         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
11302         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
11303         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
11304         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
11305         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
11306         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
11307         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
11308         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
11309         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
11310         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
11311         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
11312         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
11313         entry.
11314         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
11315         optional.
11316         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
11317         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
11318         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
11319         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
11320         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
11321         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
11322         Likewise.
11323         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
11324         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
11325         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
11326         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
11327         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
11328         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
11329         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
11330         as optional.
11331         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
11332         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
11333         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
11334         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
11335         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
11336         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
11337         specify as optional.
11338         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
11339         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
11340         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
11341         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
11342         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
11343         [XPG3] (NL_LANGMAX): Likewise.
11344         [POSIX || XPG3] (NL_MSGMAX): Likewise.
11345         [POSIX || XPG3] (NL_NMAX): Likewise.
11346         [POSIX || XPG3] (NL_SETMAX): Likewise.
11347         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
11348         [XPG3] (NZERO): Likewise.
11349         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
11350         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
11351         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
11352         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
11353         (REG_ERANGE): Expect.
11354         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
11355         optional-constant.
11356         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
11357         Use (void) in prototype.
11358         [POSIX] (*_t): Allow.
11359         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
11360         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
11361         (WRDE_BADVAL): Expect.
11362
11363         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
11364         expect.
11365         [XPG3 || XPG4] (O_RSYNC): Likewise.
11366         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
11367         Likewise.
11368         [XPG3 || XPG4] (pthread_sigmask): Likewise.
11369         [XPG3 || XPG4] (sigqueue): Likewise.
11370         [XPG3 || XPG4] (sigtimedwait): Likewise.
11371         [XPG3 || XPG4] (sigwaitinfo): Likewise.
11372         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
11373         [XPG3 || XPG4] (vsnprintf): Likewise.
11374         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
11375         Likewise.
11376         [XPG3 || XPG4] (blksize_t): Likewise.
11377         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
11378         Likewise.
11379         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
11380         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
11381         [XPG3 || XPG4] (struct itimerspec): Likewise.
11382         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
11383         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
11384         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
11385         [XPG3 || XPG4] (clockid_t): Likewise.
11386         [XPG3 || XPG4] (timer_t): Likewise.
11387         [XPG3 || XPG4] (clock_getres): Likewise.
11388         [XPG3 || XPG4] (clock_gettime): Likewise.
11389         [XPG3 || XPG4] (clock_settime): Likewise.
11390         [XPG3 || XPG4] (nanosleep): Likewise.
11391         [XPG3 || XPG4] (timer_create): Likewise.
11392         [XPG3 || XPG4] (timer_delete): Likewise.
11393         [XPG3 || XPG4] (timer_gettime): Likewise.
11394         [XPG3 || XPG4] (timer_getoverrun): Likewise.
11395         [XPG3 || XPG4] (timer_settime): Likewise.
11396         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
11397         [XPG3 || XPG4] (getlogin_r): Likewise.
11398         [XPG3 || XPG4] (pread): Likewise.
11399         [XPG3 || XPG4] (pthread_atfork): Likewise.
11400         [XPG3 || XPG4] (pwrite): Likewise.
11401
11402         [BZ #14835]
11403         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
11404         <bits/siginfo.h>.
11405
11406 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11407
11408         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
11409         finalizing MALLSTREAM.
11410
11411         * sysdeps/mach/hurd/syncfs.c: New file.
11412
11413 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
11414
11415         [BZ #14719]
11416         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
11417         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
11418         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
11419         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
11420         (_nss_dns_gethostbyname4_r): Likewise.
11421         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
11422         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
11423
11424 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
11425
11426         [BZ #13763]
11427         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
11428
11429 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
11430
11431         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
11432         * elf/cache.c (print_entry): Print ",AArch64" for
11433         FLAG_AARCH64_LIB64
11434
11435         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
11436         * elf/cache.c (print_entry): Print ",hard-float" for
11437         FLAG_ARM_LIBHF.
11438
11439 2012-11-18  David S. Miller  <davem@davemloft.net>
11440
11441         With help from Joseph Myers.
11442         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
11443         cutoff to 2**-13.
11444         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
11445         cutoff to 2**-25.
11446         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
11447         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
11448         small.
11449         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
11450         * math/libm-test.inc (y0_test): New tests.
11451         (y1_test): New tests.
11452         * sysdeps/i386/fpu/libm-test-ulps: Update.
11453         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11455
11456 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
11457
11458         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
11459         64-bit targets.
11460         * configure: Regenerated.
11461
11462 2012-11-17  David S. Miller  <davem@davemloft.net>
11463
11464         [BZ #14811]
11465         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
11466         nonzero exponents with absolute value below 0x1p-128 to +/-
11467         0x1p-128.
11468
11469 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
11470
11471         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
11472
11473         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
11474
11475         * posix/getconf-speclist.c: New file.
11476         * posix/posix-envs.def: Likewise.
11477         * posix/confstr.c (START_ENV_GROUP): New macro.
11478         (END_ENV_GROUP): Likewise.
11479         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
11480         (KNOWN_PRESENT_ENV_STRING): Likewise.
11481         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
11482         (UNKNOWN_ENVIRONMENT): Likewise.
11483         (confstr): Include posix-envs.def instead of handling
11484         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
11485         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
11486         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
11487         (END_ENV_GROUP): Likewise.
11488         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
11489         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
11490         (UNKNOWN_ENVIRONMENT): Likewise.
11491         (__sysconf): Include posix-envs.def instead of handling associated
11492         cases directly here.
11493         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
11494         preprocessing getconf-speclist.c rather than running getconf or
11495         generating empty file.
11496
11497 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
11498
11499         * scripts/check-local-headers.sh: Ignore 'mach' headers.
11500
11501 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
11502
11503         [BZ #14672]
11504         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
11505
11506 2012-11-16  David S. Miller  <davem@davemloft.net>
11507
11508         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
11509         smaller than LDBL_EPSILON/2.0L, just return xm1.
11510
11511 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
11512
11513         * elf/tst-array1.c (init): Set constructor priority to 1000.
11514         (fini): Set destructor priority to 1000.
11515         * elf/tst-array2dep.c: Likewise.
11516
11517 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11518
11519         [BZ #11741]
11520         * libio/fileops.c (_IO_new_file_write): Correctly return error.
11521         (_IO_new_file_xsputn): Also return EOF if none of the input
11522         data was written when overflow failed.
11523         * libio/iopadn.c (_IO_padn): Likewise.
11524         * libio/iowpadn.c (_IO_wpadn): Likewise.
11525         * stdio-common/tst-put-error.c: Add copyright notice.
11526         (do_test): Add case for printing padded string.
11527         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
11528         _IO_padn returned error.
11529         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
11530         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
11531         return EOF.
11532
11533 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11534
11535         * libio/libioP.h: Add comment note that the references to C++
11536         bits are now obsolete.
11537
11538 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11539
11540         * math/libm-test.inc (check_complex): Use asprintf.
11541
11542 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
11543
11544         * debug/pcprofiledump.c (print_version): Update copyright year.
11545         * malloc/memusagestat.c (print_version): Likewise.
11546
11547 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
11548
11549         [BZ #14831]
11550         * elf/Makefile (tests): Add tst-audit8.
11551         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
11552         ($(objpfx)tst-audit8.out): New target.
11553         (tst-audit8-ENV): New variable.
11554         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
11555         audit if l_reloc_result is NULL.
11556         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
11557         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
11558         * elf/tst-audit8.c: New file.
11559
11560 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11561
11562         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
11563         * misc/Makefile (CFLAGS-select.c): Define.
11564         * posix/Makefile (CFLAGS-pause.c): Define.
11565
11566 2012-11-13  David S. Miller  <davem@davemloft.net>
11567
11568         * crypt/Makefile: Move test targets after toplevel Rules
11569         inclusion.  Grab any necessary sysdep routines when linking.
11570         * crypt/md5.c (md5_process_block): Remove define, we will always
11571         name it __md5_process_block.
11572         (md5_finish_ctx): Update md5_process_block call.
11573         (md5_stream): Likewise.
11574         (md5_process_bytes): Likewise.
11575         (md5_process_block): Rename to __md5_process_block and move to ...
11576         * crypt/md5-block.c: ... here.
11577         * crypt/sha256.c (sha256_process_block): Move to ...
11578         * crypt/sha256-block.c: ... here.
11579         * crypt/sha512.c (sha512_process_block): Move to ...
11580         * crypt/sha512-block.c: ... here.
11581         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
11582         path.
11583         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
11584         * sysdeps/sparc/sparc64/multiarch/Makefile
11585         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
11586         crypt subdir.
11587         (localedef-aux): Add md5 crypto assembler when in locale subdir.
11588         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
11589         multiarch changes.
11590         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
11591         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
11592         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
11593         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
11594         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
11595         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
11596         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
11597         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
11598         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
11599         file.
11600         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
11601         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
11602         file.
11603         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
11604
11605 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
11606
11607         * timezone/tzselect.ksh: Update from tzcode git revision
11608         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
11609         * timezone/zdump.c: Likewise.
11610         * timezone/zic.c: Likewise.
11611         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
11612         in TZVERSION setting, not $(PKGVERSION).
11613         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
11614         REPORT_BUGS_TO settings.
11615
11616         [BZ #14838]
11617         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
11618         macro.
11619
11620 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11621
11622         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
11623         detection to immediately after _FP_ROUND().
11624         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
11625         bits are 0.
11626
11627 2012-11-11  David S. Miller  <davem@davemloft.net>
11628
11629         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
11630         inttypes.h
11631         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
11632         __close rather than their public counterparts.
11633
11634 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
11635
11636         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
11637         file.
11638         [UNIX98] (sem_timedwait): Do not expect.
11639         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
11640         [XPG4 || UNIX98] (sockatmark): Do not expect.
11641         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
11642         (clock_getcpuclockid): Do not expect.
11643         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
11644         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
11645         Do not expect.
11646         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
11647         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
11648         [UNIX98] (vwscanf): Likewise.
11649         [UNIX98] (vswscanf): Likewise.
11650
11651 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
11652
11653         * timezone/version.h: Remove file.
11654         * timezone/README: Do not refer to version.h.
11655         * timezone/Makefile ($(objpfx)zic.o): New dependency on
11656         $(objpfx)version.h.
11657         ($(objpfx)zdump.o): Likewise.
11658         ($(objpfx)version.h): New target.
11659
11660         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
11661         2012i.
11662         * timezone/README: Don't mention modification to tzselect.ksh.
11663         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
11664         work on unmodified tzselect.ksh.  Substitute version numbers in
11665         tzselect.ksh.
11666
11667         * Makefile (format-me): Remove.
11668         (INSTALL): Adjust indentation.  Use commands directly instead of
11669         using $(format-me).
11670
11671         * aclocal.m4 (ACX_PKGVERSION): New macro.
11672         (ACX_BUGURL): Likewise.
11673         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
11674         (PKGVERSION): New AC_DEFINE_UNQUOTED.
11675         (REPORT_BUGS_TO): Likewise.
11676         * configure: Regenerated.
11677         * config.h.in (PKGVERSION): New macro.
11678         (REPORT_BUGS_TO): Likewise.
11679         * config.make.in (PKGVERSION): New variable.
11680         (PKGVERSION_TEXI): Likewise.
11681         (REPORT_BUGS_TO): Likewise.
11682         (REPORT_BUGS_TEXI): Likewise.
11683         * Makefile (format-me): Use -I$(common-objpfx)manual.
11684         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
11685         ($(common-objpfx)manual/%): New target.
11686         (manual/%): Remove target.
11687         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
11688         (print_version): Use PKGVERSION.
11689         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
11690         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
11691         and REPORT_BUGS_TO.
11692         ($(objpfx)xtrace): Likewise.
11693         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
11694         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
11695         (print_version): Use PKGVERSION.
11696         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
11697         (do_version): Use PKGVERSION.
11698         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
11699         REPORT_BUGS_TO.
11700         (common-ldd-rewrite): Likewise.
11701         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
11702         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
11703         (print_version): Use PKGVERSION.
11704         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
11705         * elf/pldd.c (argp_program_bug_address): Remove variable.
11706         (more_help): New function.
11707         (argp): Use more_help.
11708         (print_version): Use PKGVERSION.
11709         * elf/sln.c (main): Use PKGVERSION.
11710         (usage): Use REPORT_BUGS_TO.
11711         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
11712         (top level): Use PKGVERSION.
11713         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
11714         (print_version): Use PKGVERSION.
11715         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
11716         (print_version): Use PKGVERSION.
11717         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
11718         (print_version): Use PKGVERSION.
11719         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
11720         (print_version): Use PKGVERSION.
11721         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
11722         (print_version): Use PKGVERSION.
11723         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
11724         (print_version): Use PKGVERSION.
11725         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
11726         and BUGURL.
11727         ($(objpfx)memusage): Likewise.
11728         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
11729         (do_version): Use PKGVERSION.
11730         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
11731         (print_version): Use PKGVERSION.
11732         * malloc/mtrace.pl ($PACKAGE): Remove variable.
11733         ($PKGVERSION): New variable.
11734         ($REPORT_BUGS_TO): Likewise.
11735         (usage): Use $REPORT_BUGS_TO.
11736         (top level): Use $PKGVERSION.
11737         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
11738         ($(objpfx)pkgvers.texi): New rule.
11739         ($(objpfx)stamp-pkgvers): Likewise.
11740         * manual/install.texi: Include pkgvers.texi.
11741         (--with-pkgversion): Document new configure option.
11742         (--with-bugurl): Likewise.
11743         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
11744         than necessarily for this particular distribution.  Use
11745         REPORT_BUGS_TO for where to report bugs.
11746         * INSTALL: Regenerated.
11747         * manual/libc.texinfo: Include pkgvers.texi.
11748         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
11749         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
11750         (print_version): Use PKGVERSION.
11751         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
11752         (print_version): Use PKGVERSION.
11753         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
11754         (print_version): Use PKGVERSION.
11755         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
11756         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
11757         macro.
11758         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
11759         (print_version): Use PKGVERSION.
11760         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
11761         (print_version): Use PKGVERSION.
11762         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
11763         and PKGVERSION.
11764
11765         * timezone/checktab.awk: Update from tzcode 2012i.
11766         * timezone/ialloc.c: Likewise.
11767         * timezone/private.h: Likewise.
11768         * timezone/scheck.c: Likewise.
11769         * timezone/tzfile.h: Likewise.
11770         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
11771         (TZVERSION): Hardcode tzcode version number.
11772         * timezone/zdump.c: Update from tzcode 2012i.
11773         * timezone/zic.c: Likewise.
11774         * timezone/version.h: New file.
11775         * timezone/README: Describe version.h.  Update upstream location.
11776
11777         [BZ #14824]
11778         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
11779         (mktemp): Enable declaration.
11780         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
11781         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
11782         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
11783         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
11784         Likewise.
11785         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
11786         Likewise.
11787         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
11788         Likewise.
11789         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
11790         Likewise.
11791         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
11792         Likewise.
11793         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
11794         Likewise.
11795
11796         [BZ #14821]
11797         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
11798         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
11799         for copies of such integer values.
11800         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11801         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11802
11803 2012-11-09  Andreas Jaeger  <aj@suse.de>
11804
11805         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
11806         definitions and declarations that are provided by
11807         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
11808
11809 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11810
11811         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
11812         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
11813         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
11814         definition.
11815
11816 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11817
11818         * elf/elf.h: Update comment before AArch64 relocations.
11819
11820 2012-11-07  David S. Miller  <davem@davemloft.net>
11821
11822         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
11823         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11824         (__start_context): Declare.
11825         (__makecontext_ret): Delete.
11826         (__makecontext): Hook up __start_context instead of
11827         __makecontext_ret.
11828         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11829         (sysdep_routines): Add __start_context when in stdlib.
11830
11831 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11832
11833         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
11834         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
11835         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
11836         hardcoded "nm".
11837         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
11838         (READELF): New variable.  Use it instead of hardcoded "readelf".
11839
11840 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11841
11842         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
11843         * sysdeps/x86/Makefile: Here.
11844         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
11845         * sysdeps/x86/tst-xmmymm.sh: This.
11846
11847 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11848
11849         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
11850         expectations.
11851         [UNIX98] (pthread_barrier_t): Do not expect.
11852         [UNIX98] (pthread_barrierattr_t): Likewise.
11853         [UNIX98] (pthread_spinlock_t): Likewise.
11854         [UNIX98] (pthread_barrier_destroy): Likewise.
11855         [UNIX98] (pthread_barrier_init): Likewise.
11856         [UNIX98] (pthread_barrier_wait): Likewise.
11857         [UNIX98] (pthread_barrierattr_destroy): Likewise.
11858         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
11859         [UNIX98] (pthread_barrierattr_init): Likewise.
11860         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
11861         [UNIX98] (pthread_getcpuclockid): Likewise.
11862         [UNIX98] (pthread_mutex_timedlock): Likewise.
11863         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
11864         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
11865         [UNIX98] (pthread_sigmask): Likewise.
11866         [UNIX98] (pthread_spin_destroy): Likewise.
11867         [UNIX98] (pthread_spin_init): Likewise.
11868         [UNIX98] (pthread_spin_lock): Likewise.
11869         [UNIX98] (pthread_spin_trylock): Likewise.
11870         [UNIX98] (pthread_spin_unlock): Likewise.
11871         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
11872         Do not expect.
11873         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
11874         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
11875         [XPG3 || XPG4] (pthread_cond_t): Likewise.
11876         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
11877         [XPG3 || XPG4] (pthread_key_t): Likewise.
11878         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
11879         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
11880         [XPG3 || XPG4] (pthread_once_t): Likewise.
11881         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
11882         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
11883         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
11884         [XPG3 || XPG4] (pthread_t): Likewise.
11885
11886         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
11887         not expect.
11888         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
11889
11890         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
11891         Change function return type to int.
11892
11893         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
11894         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
11895         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
11896         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
11897         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
11898         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
11899         [!POSIX] (posix_madvise): Likewise.
11900         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
11901         && !UNIX98].
11902         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
11903         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
11904         (mode_t): Likewise.
11905         (posix_mem_offset): Likewise.
11906         (posix_typed_mem_get_info): Likewise.
11907         (posix_typed_mem_open): Likewise.
11908
11909         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
11910         Change condition to [XOPEN2K8].
11911
11912         * conform/conformtest.pl: Preprocess allow-header data with -x c
11913         instead of from stdin.
11914         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
11915         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
11916         [C99-based standards] (cerfc): Likewise.
11917         [C99-based standards] (cexp2): Likewise.
11918         [C99-based standards] (cexpm1): Likewise.
11919         [C99-based standards] (clog10): Likewise.
11920         [C99-based standards] (clog1p): Likewise.
11921         [C99-based standards] (clog2): Likewise.
11922         [C99-based standards] (clgamma): Likewise.
11923         [C99-based standards] (ctgamma): Likewise.
11924         [C99-based standards] (cerff): Likewise.
11925         [C99-based standards] (cerfcf): Likewise.
11926         [C99-based standards] (cexp2f): Likewise.
11927         [C99-based standards] (cexpm1f): Likewise.
11928         [C99-based standards] (clog10f): Likewise.
11929         [C99-based standards] (clog1pf): Likewise.
11930         [C99-based standards] (clog2f): Likewise.
11931         [C99-based standards] (clgammaf): Likewise.
11932         [C99-based standards] (ctgammaf): Likewise.
11933         [C99-based standards] (cerfl): Likewise.
11934         [C99-based standards] (cerfcl): Likewise.
11935         [C99-based standards] (cexp2l): Likewise.
11936         [C99-based standards] (cexpm1l): Likewise.
11937         [C99-based standards] (clog10l): Likewise.
11938         [C99-based standards] (clog1pl): Likewise.
11939         [C99-based standards] (clog2l): Likewise.
11940         [C99-based standards] (clgammal): Likewise.
11941         [C99-based standards] (ctgammal): Likewise.
11942         * conform/data/inttypes.h-data [C99-based standards]: Include
11943         stdint.h-data.  Remove all expectations for stdint.h contents.
11944         [C99-based standards] (PRI*): Do not allow.
11945         [C99-based standards] (SCN*): Likewise.
11946         [C99-based standards] (*_t): Likewise.
11947         [C99-based-standards] (PRId8): Expect macro.
11948         [C99-based-standards] (PRIi8): Likewise.
11949         [C99-based-standards] (PRIo8): Likewise.
11950         [C99-based-standards] (PRIu8): Likewise.
11951         [C99-based-standards] (PRIx8): Likewise.
11952         [C99-based-standards] (PRIX8): Likewise.
11953         [C99-based-standards] (SCNd8): Likewise.
11954         [C99-based-standards] (SCNi8): Likewise.
11955         [C99-based-standards] (SCNo8): Likewise.
11956         [C99-based-standards] (SCNu8): Likewise.
11957         [C99-based-standards] (SCNx8): Likewise.
11958         [C99-based-standards] (PRIdLEAST8): Likewise.
11959         [C99-based-standards] (PRIiLEAST8): Likewise.
11960         [C99-based-standards] (PRIoLEAST8): Likewise.
11961         [C99-based-standards] (PRIuLEAST8): Likewise.
11962         [C99-based-standards] (PRIxLEAST8): Likewise.
11963         [C99-based-standards] (PRIXLEAST8): Likewise.
11964         [C99-based-standards] (SCNdLEAST8): Likewise.
11965         [C99-based-standards] (SCNiLEAST8): Likewise.
11966         [C99-based-standards] (SCNoLEAST8): Likewise.
11967         [C99-based-standards] (SCNuLEAST8): Likewise.
11968         [C99-based-standards] (SCNxLEAST8): Likewise.
11969         [C99-based-standards] (PRIdFAST8): Likewise.
11970         [C99-based-standards] (PRIiFAST8): Likewise.
11971         [C99-based-standards] (PRIoFAST8): Likewise.
11972         [C99-based-standards] (PRIuFAST8): Likewise.
11973         [C99-based-standards] (PRIxFAST8): Likewise.
11974         [C99-based-standards] (PRIXFAST8): Likewise.
11975         [C99-based-standards] (SCNdFAST8): Likewise.
11976         [C99-based-standards] (SCNiFAST8): Likewise.
11977         [C99-based-standards] (SCNoFAST8): Likewise.
11978         [C99-based-standards] (SCNuFAST8): Likewise.
11979         [C99-based-standards] (SCNxFAST8): Likewise.
11980         [C99-based-standards] (PRId16): Likewise.
11981         [C99-based-standards] (PRIi16): Likewise.
11982         [C99-based-standards] (PRIo16): Likewise.
11983         [C99-based-standards] (PRIu16): Likewise.
11984         [C99-based-standards] (PRIx16): Likewise.
11985         [C99-based-standards] (PRIX16): Likewise.
11986         [C99-based-standards] (SCNd16): Likewise.
11987         [C99-based-standards] (SCNi16): Likewise.
11988         [C99-based-standards] (SCNo16): Likewise.
11989         [C99-based-standards] (SCNu16): Likewise.
11990         [C99-based-standards] (SCNx16): Likewise.
11991         [C99-based-standards] (PRIdLEAST16): Likewise.
11992         [C99-based-standards] (PRIiLEAST16): Likewise.
11993         [C99-based-standards] (PRIoLEAST16): Likewise.
11994         [C99-based-standards] (PRIuLEAST16): Likewise.
11995         [C99-based-standards] (PRIxLEAST16): Likewise.
11996         [C99-based-standards] (PRIXLEAST16): Likewise.
11997         [C99-based-standards] (SCNdLEAST16): Likewise.
11998         [C99-based-standards] (SCNiLEAST16): Likewise.
11999         [C99-based-standards] (SCNoLEAST16): Likewise.
12000         [C99-based-standards] (SCNuLEAST16): Likewise.
12001         [C99-based-standards] (SCNxLEAST16): Likewise.
12002         [C99-based-standards] (PRIdFAST16): Likewise.
12003         [C99-based-standards] (PRIiFAST16): Likewise.
12004         [C99-based-standards] (PRIoFAST16): Likewise.
12005         [C99-based-standards] (PRIuFAST16): Likewise.
12006         [C99-based-standards] (PRIxFAST16): Likewise.
12007         [C99-based-standards] (PRIXFAST16): Likewise.
12008         [C99-based-standards] (SCNdFAST16): Likewise.
12009         [C99-based-standards] (SCNiFAST16): Likewise.
12010         [C99-based-standards] (SCNoFAST16): Likewise.
12011         [C99-based-standards] (SCNuFAST16): Likewise.
12012         [C99-based-standards] (SCNxFAST16): Likewise.
12013         [C99-based-standards] (PRId32): Likewise.
12014         [C99-based-standards] (PRIi32): Likewise.
12015         [C99-based-standards] (PRIo32): Likewise.
12016         [C99-based-standards] (PRIu32): Likewise.
12017         [C99-based-standards] (PRIx32): Likewise.
12018         [C99-based-standards] (PRIX32): Likewise.
12019         [C99-based-standards] (SCNd32): Likewise.
12020         [C99-based-standards] (SCNi32): Likewise.
12021         [C99-based-standards] (SCNo32): Likewise.
12022         [C99-based-standards] (SCNu32): Likewise.
12023         [C99-based-standards] (SCNx32): Likewise.
12024         [C99-based-standards] (PRIdLEAST32): Likewise.
12025         [C99-based-standards] (PRIiLEAST32): Likewise.
12026         [C99-based-standards] (PRIoLEAST32): Likewise.
12027         [C99-based-standards] (PRIuLEAST32): Likewise.
12028         [C99-based-standards] (PRIxLEAST32): Likewise.
12029         [C99-based-standards] (PRIXLEAST32): Likewise.
12030         [C99-based-standards] (SCNdLEAST32): Likewise.
12031         [C99-based-standards] (SCNiLEAST32): Likewise.
12032         [C99-based-standards] (SCNoLEAST32): Likewise.
12033         [C99-based-standards] (SCNuLEAST32): Likewise.
12034         [C99-based-standards] (SCNxLEAST32): Likewise.
12035         [C99-based-standards] (PRIdFAST32): Likewise.
12036         [C99-based-standards] (PRIiFAST32): Likewise.
12037         [C99-based-standards] (PRIoFAST32): Likewise.
12038         [C99-based-standards] (PRIuFAST32): Likewise.
12039         [C99-based-standards] (PRIxFAST32): Likewise.
12040         [C99-based-standards] (PRIXFAST32): Likewise.
12041         [C99-based-standards] (SCNdFAST32): Likewise.
12042         [C99-based-standards] (SCNiFAST32): Likewise.
12043         [C99-based-standards] (SCNoFAST32): Likewise.
12044         [C99-based-standards] (SCNuFAST32): Likewise.
12045         [C99-based-standards] (SCNxFAST32): Likewise.
12046         [C99-based-standards] (PRId64): Likewise.
12047         [C99-based-standards] (PRIi64): Likewise.
12048         [C99-based-standards] (PRIo64): Likewise.
12049         [C99-based-standards] (PRIu64): Likewise.
12050         [C99-based-standards] (PRIx64): Likewise.
12051         [C99-based-standards] (PRIX64): Likewise.
12052         [C99-based-standards] (SCNd64): Likewise.
12053         [C99-based-standards] (SCNi64): Likewise.
12054         [C99-based-standards] (SCNo64): Likewise.
12055         [C99-based-standards] (SCNu64): Likewise.
12056         [C99-based-standards] (SCNx64): Likewise.
12057         [C99-based-standards] (PRIdLEAST64): Likewise.
12058         [C99-based-standards] (PRIiLEAST64): Likewise.
12059         [C99-based-standards] (PRIoLEAST64): Likewise.
12060         [C99-based-standards] (PRIuLEAST64): Likewise.
12061         [C99-based-standards] (PRIxLEAST64): Likewise.
12062         [C99-based-standards] (PRIXLEAST64): Likewise.
12063         [C99-based-standards] (SCNdLEAST64): Likewise.
12064         [C99-based-standards] (SCNiLEAST64): Likewise.
12065         [C99-based-standards] (SCNoLEAST64): Likewise.
12066         [C99-based-standards] (SCNuLEAST64): Likewise.
12067         [C99-based-standards] (SCNxLEAST64): Likewise.
12068         [C99-based-standards] (PRIdFAST64): Likewise.
12069         [C99-based-standards] (PRIiFAST64): Likewise.
12070         [C99-based-standards] (PRIoFAST64): Likewise.
12071         [C99-based-standards] (PRIuFAST64): Likewise.
12072         [C99-based-standards] (PRIxFAST64): Likewise.
12073         [C99-based-standards] (PRIXFAST64): Likewise.
12074         [C99-based-standards] (SCNdFAST64): Likewise.
12075         [C99-based-standards] (SCNiFAST64): Likewise.
12076         [C99-based-standards] (SCNoFAST64): Likewise.
12077         [C99-based-standards] (SCNuFAST64): Likewise.
12078         [C99-based-standards] (SCNxFAST64): Likewise.
12079         [C99-based-standards] (PRIdMAX): Likewise.
12080         [C99-based-standards] (PRIiMAX): Likewise.
12081         [C99-based-standards] (PRIoMAX): Likewise.
12082         [C99-based-standards] (PRIuMAX): Likewise.
12083         [C99-based-standards] (PRIxMAX): Likewise.
12084         [C99-based-standards] (PRIXMAX): Likewise.
12085         [C99-based-standards] (SCNdMAX): Likewise.
12086         [C99-based-standards] (SCNiMAX): Likewise.
12087         [C99-based-standards] (SCNoMAX): Likewise.
12088         [C99-based-standards] (SCNuMAX): Likewise.
12089         [C99-based-standards] (SCNxMAX): Likewise.
12090         [C99-based-standards] (PRIdPTR): Likewise.
12091         [C99-based-standards] (PRIiPTR): Likewise.
12092         [C99-based-standards] (PRIoPTR): Likewise.
12093         [C99-based-standards] (PRIuPTR): Likewise.
12094         [C99-based-standards] (PRIxPTR): Likewise.
12095         [C99-based-standards] (PRIXPTR): Likewise.
12096         [C99-based-standards] (SCNdPTR): Likewise.
12097         [C99-based-standards] (SCNiPTR): Likewise.
12098         [C99-based-standards] (SCNoPTR): Likewise.
12099         [C99-based-standards] (SCNuPTR): Likewise.
12100         [C99-based-standards] (SCNxPTR): Likewise.
12101         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
12102         allow.
12103         * conform/data/stdint.h-data: Update comments to clarify
12104         requirements.
12105         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
12106         type.
12107         [C99-based standards] (INT8_MAX): Likewise.
12108         [C99-based standards] (INT16_MIN): Likewise.
12109         [C99-based standards] (INT16_MAX): Likewise.
12110         [C99-based standards] (INT32_MIN): Likewise.
12111         [C99-based standards] (INT32_MAX): Likewise.
12112         [C99-based standards] (INT64_MIN): Likewise.
12113         [C99-based standards] (INT64_MAX): Likewise.
12114         [C99-based standards] (UINT8_MAX): Likewise.
12115         [C99-based standards] (UINT16_MAX): Likewise.
12116         [C99-based standards] (UINT32_MAX): Likewise.
12117         [C99-based standards] (UINT64_MAX): Likewise.
12118         [C99-based standards] (INT_LEAST8_MIN): Likewise.
12119         [C99-based standards] (INT_LEAST8_MAX): Likewise.
12120         [C99-based standards] (INT_LEAST16_MIN): Likewise.
12121         [C99-based standards] (INT_LEAST16_MAX): Likewise.
12122         [C99-based standards] (INT_LEAST32_MIN): Likewise.
12123         [C99-based standards] (INT_LEAST32_MAX): Likewise.
12124         [C99-based standards] (INT_LEAST64_MIN): Likewise.
12125         [C99-based standards] (INT_LEAST64_MAX): Likewise.
12126         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
12127         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
12128         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
12129         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
12130         [C99-based standards] (INT_FAST8_MIN): Likewise.
12131         [C99-based standards] (INT_FAST8_MAX): Likewise.
12132         [C99-based standards] (INT_FAST16_MIN): Likewise.
12133         [C99-based standards] (INT_FAST16_MAX): Likewise.
12134         [C99-based standards] (INT_FAST32_MIN): Likewise.
12135         [C99-based standards] (INT_FAST32_MAX): Likewise.
12136         [C99-based standards] (INT_FAST64_MIN): Likewise.
12137         [C99-based standards] (INT_FAST64_MAX): Likewise.
12138         [C99-based standards] (UINT_FAST8_MAX): Likewise.
12139         [C99-based standards] (UINT_FAST16_MAX): Likewise.
12140         [C99-based standards] (UINT_FAST32_MAX): Likewise.
12141         [C99-based standards] (UINT_FAST64_MAX): Likewise.
12142         [C99-based standards] (INTPTR_MIN): Likewise.
12143         [C99-based standards] (INTPTR_MAX): Likewise.
12144         [C99-based standards] (UINTPTR_MAX): Likewise.
12145         [C99-based standards] (INTMAX_MIN): Likewise.
12146         [C99-based standards] (INTMAX_MAX): Likewise.
12147         [C99-based standards] (UINTMAX_MAX): Likewise.
12148         [C99-based standards] (PTRDIFF_MIN): Likewise.
12149         [C99-based standards] (PTRDIFF_MAX): Likewise.
12150         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
12151         [C99-based standards] (SIZE_MAX): Likewise.
12152         [C99-based standards] (WCHAR_MAX): Likewise.
12153         [C99-based standards] (WINT_MAX): Likewise.
12154         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
12155         constraint on value.
12156         [C99-based standards] (WCHAR_MIN): Likewise.
12157         [C99-based standards] (WINT_MIN): Likewise.
12158         [C99-based standards] (*_t): Allow.
12159         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
12160         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
12161         Include math.h-data and complex.h-data.  Remove all expectations
12162         of math.h and complex.h contents.
12163         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
12164         at end of line.
12165         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
12166         (struct tm): Expect tag.
12167         [C99-based-standards] (wcstof): Expect function.
12168         [C99-based-standards] (wcstold): Likewise.
12169         [C99-based-standards] (wcstoll): Likewise.
12170         [C99-based-standards] (wcstoull): Likewise.
12171         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
12172         macro-int-constant.  Specify type.
12173         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
12174         constraint on value.
12175         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12176         Specify type.
12177         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
12178         Specify value.
12179         [ISO C standards]: Do not allow headers.
12180         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
12181         wcs[abcdefghijklmnopqrstuvwxyz]*.
12182         [ISO C standards] (*_t): Do not allow.
12183         * conform/data/wctype.h-data [C99-based standards] (iswblank):
12184         Expect function.
12185         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
12186         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12187         Specify type.
12188         [ISO C standards]: Do not allow headers.
12189         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
12190         is[abcdefghijklmnopqrstuvwxyz]*.
12191         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
12192         to[abcdefghijklmnopqrstuvwxyz]*.
12193         [ISO C standards] (*_t): Do not allow.
12194         * conform/data/stdalign.h-data: New file.
12195         * conform/data/stdbool.h-data: Likewise.
12196         * conform/data/stdnoreturn.h-data: Likewise.
12197
12198 2012-11-07  Roland McGrath  <roland@hack.frob.com>
12199
12200         [BZ #14815]
12201         * manual/filesys.texi (Directory Entries): Typo fix.
12202         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
12203
12204 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12205
12206         * elf/elf.h (EM_AARCH64): New macro.
12207         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
12208         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
12209         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
12210         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
12211         (R_AARCH64_TLSDESC): Likewise.
12212         (NT_ARM_TLS): Likewise.
12213         (NT_ARM_HW_BREAK): Likewise.
12214         (NT_ARM_HW_WATCH): Likewise.
12215
12216 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12217
12218         [BZ #14811]
12219         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
12220         (__ieee754_powl): Saturate nonzero exponents with absolute value
12221         below 0x1p-79 to +/- 0x1p-79.
12222         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
12223         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
12224         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
12225         nonzero exponents with absolute value below 0x1p-32 to +/-
12226         0x1p-32.
12227         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
12228         (__ieee754_powl): Saturate nonzero exponents with absolute value
12229         below 0x1p-79 to +/- 0x1p-79.
12230         * math/libm-test.inc (pow_test): Add more tests.
12231
12232 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12233
12234         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
12235         _dl_s390_cap_flags with kernel. Increase string length.
12236         (_dl_s390_platforms): Add z196 and zEC12.
12237
12238 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12239
12240         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
12241         Change XOPEN21K to XOPEN2K.
12242
12243 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12244
12245         * string/memmove.c: Use memcpy when possible.
12246
12247 2012-11-06  Andreas Jaeger  <aj@suse.de>
12248
12249         * po/eo.po: Update from translation team.
12250
12251 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
12252
12253         [BZ #14793]
12254         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
12255         exponent and small x and y exponents, scale x or y up.  Increase
12256         by 2 the exponent used in scaling up.
12257         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12258         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12259         * math/libm-test.inc (fma_test): Add more tests.
12260         (fma_test_towardzero): Likewise.
12261         (fma_test_downward): Likewise.
12262         (fma_test_upward): Likewise.
12263
12264 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
12265
12266         [BZ #14805]
12267         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
12268         fenv_t *.
12269
12270         [BZ #14801]
12271         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
12272         namespace for names of struct fields.
12273         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
12274         fenv_t fields.
12275         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
12276         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
12277
12278 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12279
12280         [BZ #3665]
12281         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
12282
12283 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
12284
12285         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
12286         PTR_DEMANGLE.
12287
12288         [BZ #5246]
12289         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
12290         PTR_DEMANGLE.
12291
12292 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
12293
12294         [BZ #14797]
12295         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
12296         definitely overflow as x * y not x * y + z.
12297         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12298         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12299         * math/libm-test.inc (fma_test): Add more tests.
12300         (fma_test_towardzero): Likewise.
12301         (fma_test_downward): Likewise.
12302         (fma_test_upward): Likewise.
12303
12304 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
12305
12306         [BZ #157]
12307
12308         * include/stub-tag.h: Remove file.
12309         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
12310         '#include' of it.
12311         * manual/maint.texi (Porting): Don't reference it.
12312         * Makerules ($(objpfx)stubs): Likewise.
12313         * dirent/closedir.c: Don't include <stub-tag.h>.
12314         * dirent/dirfd.c: Likewise.
12315         * dirent/fdopendir.c: Likewise.
12316         * dirent/getdents.c: Likewise.
12317         * dirent/getdents64.c: Likewise.
12318         * dirent/opendir.c: Likewise.
12319         * dirent/readdir.c: Likewise.
12320         * dirent/readdir64.c: Likewise.
12321         * dirent/readdir64_r.c: Likewise.
12322         * dirent/readdir_r.c: Likewise.
12323         * dirent/rewinddir.c: Likewise.
12324         * dirent/seekdir.c: Likewise.
12325         * dirent/telldir.c: Likewise.
12326         * gmon/profil.c: Likewise.
12327         * grp/setgroups.c: Likewise.
12328         * inet/if_index.c: Likewise.
12329         * io/access.c: Likewise.
12330         * io/chdir.c: Likewise.
12331         * io/chmod.c: Likewise.
12332         * io/chown.c: Likewise.
12333         * io/close.c: Likewise.
12334         * io/dup.c: Likewise.
12335         * io/dup2.c: Likewise.
12336         * io/dup3.c: Likewise.
12337         * io/euidaccess.c: Likewise.
12338         * io/faccessat.c: Likewise.
12339         * io/fchdir.c: Likewise.
12340         * io/fchmod.c: Likewise.
12341         * io/fchmodat.c: Likewise.
12342         * io/fchown.c: Likewise.
12343         * io/fchownat.c: Likewise.
12344         * io/fcntl.c: Likewise.
12345         * io/flock.c: Likewise.
12346         * io/fstatfs.c: Likewise.
12347         * io/fstatfs64.c: Likewise.
12348         * io/fstatvfs.c: Likewise.
12349         * io/fstatvfs64.c: Likewise.
12350         * io/futimens.c: Likewise.
12351         * io/fxstat.c: Likewise.
12352         * io/fxstat64.c: Likewise.
12353         * io/fxstatat.c: Likewise.
12354         * io/fxstatat64.c: Likewise.
12355         * io/getcwd.c: Likewise.
12356         * io/isatty.c: Likewise.
12357         * io/lchmod.c: Likewise.
12358         * io/lchown.c: Likewise.
12359         * io/link.c: Likewise.
12360         * io/linkat.c: Likewise.
12361         * io/lseek.c: Likewise.
12362         * io/lseek64.c: Likewise.
12363         * io/lxstat64.c: Likewise.
12364         * io/mkdir.c: Likewise.
12365         * io/mkdirat.c: Likewise.
12366         * io/mkfifo.c: Likewise.
12367         * io/mkfifoat.c: Likewise.
12368         * io/open.c: Likewise.
12369         * io/open64.c: Likewise.
12370         * io/openat.c: Likewise.
12371         * io/openat64.c: Likewise.
12372         * io/pipe.c: Likewise.
12373         * io/pipe2.c: Likewise.
12374         * io/poll.c: Likewise.
12375         * io/posix_fadvise.c: Likewise.
12376         * io/posix_fadvise64.c: Likewise.
12377         * io/posix_fallocate.c: Likewise.
12378         * io/posix_fallocate64.c: Likewise.
12379         * io/read.c: Likewise.
12380         * io/readlink.c: Likewise.
12381         * io/readlinkat.c: Likewise.
12382         * io/rmdir.c: Likewise.
12383         * io/sendfile.c: Likewise.
12384         * io/sendfile64.c: Likewise.
12385         * io/statfs.c: Likewise.
12386         * io/statfs64.c: Likewise.
12387         * io/statvfs.c: Likewise.
12388         * io/statvfs64.c: Likewise.
12389         * io/symlink.c: Likewise.
12390         * io/symlinkat.c: Likewise.
12391         * io/ttyname.c: Likewise.
12392         * io/ttyname_r.c: Likewise.
12393         * io/umask.c: Likewise.
12394         * io/unlink.c: Likewise.
12395         * io/unlinkat.c: Likewise.
12396         * io/utime.c: Likewise.
12397         * io/utimensat.c: Likewise.
12398         * io/write.c: Likewise.
12399         * io/xmknod.c: Likewise.
12400         * io/xmknodat.c: Likewise.
12401         * io/xstat.c: Likewise.
12402         * io/xstat64.c: Likewise.
12403         * login/getpt.c: Likewise.
12404         * login/grantpt.c: Likewise.
12405         * login/unlockpt.c: Likewise.
12406         * math/e_acoshl.c: Likewise.
12407         * math/e_acosl.c: Likewise.
12408         * math/e_asinl.c: Likewise.
12409         * math/e_atan2l.c: Likewise.
12410         * math/e_atanhl.c: Likewise.
12411         * math/e_coshl.c: Likewise.
12412         * math/e_expl.c: Likewise.
12413         * math/e_fmodl.c: Likewise.
12414         * math/e_gammal_r.c: Likewise.
12415         * math/e_hypotl.c: Likewise.
12416         * math/e_j0l.c: Likewise.
12417         * math/e_j1l.c: Likewise.
12418         * math/e_jnl.c: Likewise.
12419         * math/e_lgammal_r.c: Likewise.
12420         * math/e_log10l.c: Likewise.
12421         * math/e_log2l.c: Likewise.
12422         * math/e_logl.c: Likewise.
12423         * math/e_powl.c: Likewise.
12424         * math/e_rem_pio2l.c: Likewise.
12425         * math/e_sinhl.c: Likewise.
12426         * math/e_sqrtl.c: Likewise.
12427         * math/fclrexcpt.c: Likewise.
12428         * math/fedisblxcpt.c: Likewise.
12429         * math/feenablxcpt.c: Likewise.
12430         * math/fegetenv.c: Likewise.
12431         * math/fegetexcept.c: Likewise.
12432         * math/fegetround.c: Likewise.
12433         * math/feholdexcpt.c: Likewise.
12434         * math/fesetenv.c: Likewise.
12435         * math/fesetround.c: Likewise.
12436         * math/feupdateenv.c: Likewise.
12437         * math/fgetexcptflg.c: Likewise.
12438         * math/fraiseexcpt.c: Likewise.
12439         * math/fsetexcptflg.c: Likewise.
12440         * math/ftestexcept.c: Likewise.
12441         * math/k_cosl.c: Likewise.
12442         * math/k_rem_pio2l.c: Likewise.
12443         * math/k_sinl.c: Likewise.
12444         * math/k_tanl.c: Likewise.
12445         * math/s_asinhl.c: Likewise.
12446         * math/s_atanl.c: Likewise.
12447         * math/s_cbrtl.c: Likewise.
12448         * math/s_erfl.c: Likewise.
12449         * math/s_expm1l.c: Likewise.
12450         * math/s_log1pl.c: Likewise.
12451         * math/s_tanhl.c: Likewise.
12452         * misc/acct.c: Likewise.
12453         * misc/brk.c: Likewise.
12454         * misc/chflags.c: Likewise.
12455         * misc/chroot.c: Likewise.
12456         * misc/fchflags.c: Likewise.
12457         * misc/fgetxattr.c: Likewise.
12458         * misc/flistxattr.c: Likewise.
12459         * misc/fremovexattr.c: Likewise.
12460         * misc/fsetxattr.c: Likewise.
12461         * misc/fsync.c: Likewise.
12462         * misc/ftruncate.c: Likewise.
12463         * misc/futimes.c: Likewise.
12464         * misc/futimesat.c: Likewise.
12465         * misc/getdomain.c: Likewise.
12466         * misc/getdtsz.c: Likewise.
12467         * misc/gethostid.c: Likewise.
12468         * misc/gethostname.c: Likewise.
12469         * misc/getloadavg.c: Likewise.
12470         * misc/getpagesize.c: Likewise.
12471         * misc/getsysstats.c: Likewise.
12472         * misc/getxattr.c: Likewise.
12473         * misc/gtty.c: Likewise.
12474         * misc/ioctl.c: Likewise.
12475         * misc/lgetxattr.c: Likewise.
12476         * misc/listxattr.c: Likewise.
12477         * misc/llistxattr.c: Likewise.
12478         * misc/lremovexattr.c: Likewise.
12479         * misc/lsetxattr.c: Likewise.
12480         * misc/lutimes.c: Likewise.
12481         * misc/madvise.c: Likewise.
12482         * misc/mincore.c: Likewise.
12483         * misc/mlock.c: Likewise.
12484         * misc/mlockall.c: Likewise.
12485         * misc/mmap.c: Likewise.
12486         * misc/mprotect.c: Likewise.
12487         * misc/msync.c: Likewise.
12488         * misc/munlock.c: Likewise.
12489         * misc/munlockall.c: Likewise.
12490         * misc/munmap.c: Likewise.
12491         * misc/preadv.c: Likewise.
12492         * misc/preadv64.c: Likewise.
12493         * misc/ptrace.c: Likewise.
12494         * misc/pwritev.c: Likewise.
12495         * misc/pwritev64.c: Likewise.
12496         * misc/readv.c: Likewise.
12497         * misc/reboot.c: Likewise.
12498         * misc/remap_file_pages.c: Likewise.
12499         * misc/removexattr.c: Likewise.
12500         * misc/revoke.c: Likewise.
12501         * misc/select.c: Likewise.
12502         * misc/setdomain.c: Likewise.
12503         * misc/setegid.c: Likewise.
12504         * misc/seteuid.c: Likewise.
12505         * misc/sethostid.c: Likewise.
12506         * misc/sethostname.c: Likewise.
12507         * misc/setregid.c: Likewise.
12508         * misc/setreuid.c: Likewise.
12509         * misc/setxattr.c: Likewise.
12510         * misc/sstk.c: Likewise.
12511         * misc/stty.c: Likewise.
12512         * misc/swapoff.c: Likewise.
12513         * misc/swapon.c: Likewise.
12514         * misc/sync.c: Likewise.
12515         * misc/syncfs.c: Likewise.
12516         * misc/syscall.c: Likewise.
12517         * misc/truncate.c: Likewise.
12518         * misc/ualarm.c: Likewise.
12519         * misc/usleep.c: Likewise.
12520         * misc/ustat.c: Likewise.
12521         * misc/utimes.c: Likewise.
12522         * misc/vhangup.c: Likewise.
12523         * misc/writev.c: Likewise.
12524         * posix/_exit.c: Likewise.
12525         * posix/alarm.c: Likewise.
12526         * posix/execve.c: Likewise.
12527         * posix/fexecve.c: Likewise.
12528         * posix/fork.c: Likewise.
12529         * posix/fpathconf.c: Likewise.
12530         * posix/getaddrinfo.c: Likewise.
12531         * posix/getegid.c: Likewise.
12532         * posix/geteuid.c: Likewise.
12533         * posix/getgid.c: Likewise.
12534         * posix/getgroups.c: Likewise.
12535         * posix/getlogin.c: Likewise.
12536         * posix/getlogin_r.c: Likewise.
12537         * posix/getpgid.c: Likewise.
12538         * posix/getpid.c: Likewise.
12539         * posix/getppid.c: Likewise.
12540         * posix/getresgid.c: Likewise.
12541         * posix/getresuid.c: Likewise.
12542         * posix/getsid.c: Likewise.
12543         * posix/getuid.c: Likewise.
12544         * posix/glob64.c: Likewise.
12545         * posix/nanosleep.c: Likewise.
12546         * posix/pathconf.c: Likewise.
12547         * posix/pause.c: Likewise.
12548         * posix/posix_madvise.c: Likewise.
12549         * posix/pread.c: Likewise.
12550         * posix/pread64.c: Likewise.
12551         * posix/pwrite.c: Likewise.
12552         * posix/pwrite64.c: Likewise.
12553         * posix/sched_getaffinity.c: Likewise.
12554         * posix/sched_getp.c: Likewise.
12555         * posix/sched_gets.c: Likewise.
12556         * posix/sched_primax.c: Likewise.
12557         * posix/sched_primin.c: Likewise.
12558         * posix/sched_rr_gi.c: Likewise.
12559         * posix/sched_setaffinity.c: Likewise.
12560         * posix/sched_setp.c: Likewise.
12561         * posix/sched_sets.c: Likewise.
12562         * posix/sched_yield.c: Likewise.
12563         * posix/setgid.c: Likewise.
12564         * posix/setlogin.c: Likewise.
12565         * posix/setpgid.c: Likewise.
12566         * posix/setresgid.c: Likewise.
12567         * posix/setresuid.c: Likewise.
12568         * posix/setsid.c: Likewise.
12569         * posix/setuid.c: Likewise.
12570         * posix/sleep.c: Likewise.
12571         * posix/spawni.c: Likewise.
12572         * posix/sysconf.c: Likewise.
12573         * posix/times.c: Likewise.
12574         * posix/wait.c: Likewise.
12575         * posix/wait3.c: Likewise.
12576         * posix/wait4.c: Likewise.
12577         * posix/waitpid.c: Likewise.
12578         * resolv/gai_sigqueue.c: Likewise.
12579         * resource/getpriority.c: Likewise.
12580         * resource/getrlimit.c: Likewise.
12581         * resource/getrusage.c: Likewise.
12582         * resource/nice.c: Likewise.
12583         * resource/setpriority.c: Likewise.
12584         * resource/setrlimit.c: Likewise.
12585         * resource/ulimit.c: Likewise.
12586         * rt/aio_cancel.c: Likewise.
12587         * rt/aio_fsync.c: Likewise.
12588         * rt/aio_read.c: Likewise.
12589         * rt/aio_sigqueue.c: Likewise.
12590         * rt/aio_suspend.c: Likewise.
12591         * rt/aio_write.c: Likewise.
12592         * rt/clock_getres.c: Likewise.
12593         * rt/clock_gettime.c: Likewise.
12594         * rt/clock_nanosleep.c: Likewise.
12595         * rt/clock_settime.c: Likewise.
12596         * rt/lio_listio.c: Likewise.
12597         * rt/mq_close.c: Likewise.
12598         * rt/mq_getattr.c: Likewise.
12599         * rt/mq_notify.c: Likewise.
12600         * rt/mq_open.c: Likewise.
12601         * rt/mq_receive.c: Likewise.
12602         * rt/mq_send.c: Likewise.
12603         * rt/mq_setattr.c: Likewise.
12604         * rt/mq_timedreceive.c: Likewise.
12605         * rt/mq_timedsend.c: Likewise.
12606         * rt/mq_unlink.c: Likewise.
12607         * rt/shm_open.c: Likewise.
12608         * rt/shm_unlink.c: Likewise.
12609         * rt/timer_create.c: Likewise.
12610         * rt/timer_delete.c: Likewise.
12611         * rt/timer_getoverr.c: Likewise.
12612         * rt/timer_gettime.c: Likewise.
12613         * rt/timer_settime.c: Likewise.
12614         * setjmp/__longjmp.c: Likewise.
12615         * setjmp/setjmp.c: Likewise.
12616         * signal/kill.c: Likewise.
12617         * signal/killpg.c: Likewise.
12618         * signal/raise.c: Likewise.
12619         * signal/sigaction.c: Likewise.
12620         * signal/sigaltstack.c: Likewise.
12621         * signal/sigblock.c: Likewise.
12622         * signal/sigignore.c: Likewise.
12623         * signal/sigintr.c: Likewise.
12624         * signal/signal.c: Likewise.
12625         * signal/sigpause.c: Likewise.
12626         * signal/sigpending.c: Likewise.
12627         * signal/sigqueue.c: Likewise.
12628         * signal/sigreturn.c: Likewise.
12629         * signal/sigset.c: Likewise.
12630         * signal/sigsetmask.c: Likewise.
12631         * signal/sigstack.c: Likewise.
12632         * signal/sigsuspend.c: Likewise.
12633         * signal/sigtimedwait.c: Likewise.
12634         * signal/sigvec.c: Likewise.
12635         * signal/sigwait.c: Likewise.
12636         * signal/sigwaitinfo.c: Likewise.
12637         * signal/sysv_signal.c: Likewise.
12638         * socket/accept.c: Likewise.
12639         * socket/accept4.c: Likewise.
12640         * socket/bind.c: Likewise.
12641         * socket/connect.c: Likewise.
12642         * socket/getpeername.c: Likewise.
12643         * socket/getsockname.c: Likewise.
12644         * socket/getsockopt.c: Likewise.
12645         * socket/isfdtype.c: Likewise.
12646         * socket/listen.c: Likewise.
12647         * socket/recv.c: Likewise.
12648         * socket/recvfrom.c: Likewise.
12649         * socket/recvmsg.c: Likewise.
12650         * socket/send.c: Likewise.
12651         * socket/sendmsg.c: Likewise.
12652         * socket/sendto.c: Likewise.
12653         * socket/setsockopt.c: Likewise.
12654         * socket/shutdown.c: Likewise.
12655         * socket/sockatmark.c: Likewise.
12656         * socket/socket.c: Likewise.
12657         * socket/socketpair.c: Likewise.
12658         * stdio-common/ctermid.c: Likewise.
12659         * stdio-common/cuserid.c: Likewise.
12660         * stdio-common/remove.c: Likewise.
12661         * stdio-common/rename.c: Likewise.
12662         * stdio-common/renameat.c: Likewise.
12663         * stdio-common/tempname.c: Likewise.
12664         * stdlib/getcontext.c: Likewise.
12665         * stdlib/makecontext.c: Likewise.
12666         * stdlib/setcontext.c: Likewise.
12667         * stdlib/swapcontext.c: Likewise.
12668         * stdlib/system.c: Likewise.
12669         * streams/fattach.c: Likewise.
12670         * streams/fdetach.c: Likewise.
12671         * streams/getmsg.c: Likewise.
12672         * streams/getpmsg.c: Likewise.
12673         * streams/putmsg.c: Likewise.
12674         * streams/putpmsg.c: Likewise.
12675         * sysdeps/unix/bsd/getpt.c: Likewise.
12676         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
12677         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
12678         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
12679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
12680         Likewise.
12681         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
12682         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
12683         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
12684         * sysvipc/msgctl.c: Likewise.
12685         * sysvipc/msgget.c: Likewise.
12686         * sysvipc/msgrcv.c: Likewise.
12687         * sysvipc/msgsnd.c: Likewise.
12688         * sysvipc/semctl.c: Likewise.
12689         * sysvipc/semget.c: Likewise.
12690         * sysvipc/semop.c: Likewise.
12691         * sysvipc/semtimedop.c: Likewise.
12692         * sysvipc/shmat.c: Likewise.
12693         * sysvipc/shmctl.c: Likewise.
12694         * sysvipc/shmdt.c: Likewise.
12695         * sysvipc/shmget.c: Likewise.
12696         * termios/tcdrain.c: Likewise.
12697         * termios/tcflow.c: Likewise.
12698         * termios/tcflush.c: Likewise.
12699         * termios/tcgetattr.c: Likewise.
12700         * termios/tcgetpgrp.c: Likewise.
12701         * termios/tcsendbrk.c: Likewise.
12702         * termios/tcsetattr.c: Likewise.
12703         * termios/tcsetpgrp.c: Likewise.
12704         * time/adjtime.c: Likewise.
12705         * time/clock.c: Likewise.
12706         * time/getitimer.c: Likewise.
12707         * time/gettimeofday.c: Likewise.
12708         * time/setitimer.c: Likewise.
12709         * time/settimeofday.c: Likewise.
12710         * time/stime.c: Likewise.
12711         * time/time.c: Likewise.
12712
12713 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
12714
12715         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
12716         /usr/old/bin.
12717
12718         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
12719         instead of spaces.
12720         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
12721
12722 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
12723
12724         [BZ #14796]
12725         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
12726         FE_TONEAREST before applying Dekker multiplication and Knuth
12727         addition.  Clear inexact exceptions and check for exact zero
12728         results afterwards.
12729         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12730         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
12731         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12732         * math/libm-test.inc (fma_test): Add more tests.
12733         (fma_test_towardzero): Likewise.
12734         (fma_test_downward): Likewise.
12735         (fma_test_upward): Likewise.
12736         * sysdeps/generic/math_private.h (default_libc_fesetround): New
12737         function.
12738         (libc_fesetround): New macro.
12739         (libc_fesetroundf): Likewise.
12740         (libc_fesetroundl): Likewise.
12741         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
12742         function.
12743         (libc_fesetround_387): Likewise.
12744         (libc_fesetroundf): New macro.
12745         (libc_fesetround): Likewise.
12746         (libc_fesetroundl): Likewise.
12747         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
12748         function.
12749         (libc_fesetroundf): New macro.
12750         (libc_fesetround): Likewise.
12751         (libc_fesetroundl): Likewise.
12752         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
12753         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
12754         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
12755         libm_hidden_ver.
12756         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
12757         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
12758         libm_hidden_def.
12759         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
12760         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
12761         libm_hidden_ver.
12762         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
12763         libm_hidden_def.
12764
12765         [BZ #3439]
12766         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
12767         integer constant usable in #if and use that to give value to enum
12768         constant.
12769         (FE_DIVBYZERO): Likewise.
12770         (FE_UNDERFLOW): Likewise.
12771         (FE_OVERFLOW): Likewise.
12772         (FE_INVALID): Likewise.
12773         (FE_INVALID_SNAN): Likewise.
12774         (FE_INVALID_ISI): Likewise.
12775         (FE_INVALID_IDI): Likewise.
12776         (FE_INVALID_ZDZ): Likewise.
12777         (FE_INVALID_IMZ): Likewise.
12778         (FE_INVALID_COMPARE): Likewise.
12779         (FE_INVALID_SOFTWARE): Likewise.
12780         (FE_INVALID_SQRT): Likewise.
12781         (FE_INVALID_INTEGER_CONVERSION): Likewise.
12782         (FE_TONEAREST): Likewise.
12783         (FE_TOWARDZERO): Likewise.
12784         (FE_UPWARD): Likewise.
12785         (FE_DOWNWARD): Likewise.
12786         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
12787         (FE_DIVBYZERO): Likewise.
12788         (FE_OVERFLOW): Likewise.
12789         (FE_UNDERFLOW): Likewise.
12790         (FE_INEXACT): Likewise.
12791         (FE_TONEAREST): Likewise.
12792         (FE_DOWNWARD): Likewise.
12793         (FE_UPWARD): Likewise.
12794         (FE_TOWARDZERO): Likewise.
12795         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
12796         (FE_UNDERFLOW): Likewise.
12797         (FE_OVERFLOW): Likewise.
12798         (FE_DIVBYZERO): Likewise.
12799         (FE_INVALID): Likewise.
12800         (FE_TONEAREST): Likewise.
12801         (FE_TOWARDZERO): Likewise.
12802         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
12803         (FE_OVERFLOW): Likewise.
12804         (FE_UNDERFLOW): Likewise.
12805         (FE_DIVBYZERO): Likewise.
12806         (FE_INEXACT): Likewise.
12807         (FE_TONEAREST): Likewise.
12808         (FE_TOWARDZERO): Likewise.
12809         (FE_UPWARD): Likewise.
12810         (FE_DOWNWARD): Likewise.
12811         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
12812         (FE_DIVBYZERO): Likewise.
12813         (FE_OVERFLOW): Likewise.
12814         (FE_UNDERFLOW): Likewise.
12815         (FE_INEXACT): Likewise.
12816         (FE_TONEAREST): Likewise.
12817         (FE_DOWNWARD): Likewise.
12818         (FE_UPWARD): Likewise.
12819         (FE_TOWARDZERO): Likewise.
12820
12821 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
12822
12823         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
12824
12825 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
12826
12827         * scripts/cross-test-ssh.sh (command): Use newlines to separate
12828         commands.  Quote $PWD.
12829         (blacklist_exports): Don't use remove_newlines.  Replace "declare
12830         -x" by "export".
12831         (remove_newlines): Remove.
12832
12833 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
12834
12835         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
12836         * stdlib/stdlib.h (atof): Moved to ...
12837         * include/bits/stdlib-float.h: Here.  New file.
12838         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
12839         * stdlib/bits/stdlib-float.h: New file.
12840         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
12841         -mno-sse -mno-mmx.
12842         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
12843         <xmmintrin.h>.
12844
12845 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
12846
12847         * conform/conformtest.pl (@headers): Add fenv.h.
12848         * conform/data/fenv.h-data: New file.
12849         * include/fenv.h [_ISOMAC]: Disable all contents of file except
12850         include of <math/fenv.h>.
12851
12852         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
12853         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
12854         && !UNIX98].  Enables tests for XOPEN2K8.
12855         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
12856         POSIX2008]: Likewise.
12857
12858         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
12859         (struct rusage): Do not expect type or its members.
12860
12861         [BZ #3439]
12862         * math/math.h (FP_NAN): Define macro to integer constant usable in
12863         #if and use that to give value to enum constant.
12864         (FP_INFINITE): Likewise.
12865         (FP_ZERO): Likewise.
12866         (FP_SUBNORMAL): Likewise.
12867         (FP_NORMAL): Likewise.
12868
12869 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
12870
12871         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
12872         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
12873         arguments.
12874
12875 2012-11-02  Roland McGrath  <roland@hack.frob.com>
12876
12877         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
12878         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
12879         autoconf-time if not.
12880         * configure.in: Remove AC_PREREQ.
12881
12882 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12883
12884         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
12885         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
12886         of the internal implementation.
12887
12888 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
12889
12890         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
12891         except include of <misc/sys/syslog.h>.
12892
12893 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12894
12895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
12896         function returns with a NULL context exit with zero.
12897
12898 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12899
12900         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
12901
12902 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
12903
12904         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
12905         (run_program_cmd): This.
12906         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
12907         (tst_langinfo): New variable.  Use it.
12908
12909 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
12910
12911         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
12912         floating point opcodes.
12913
12914 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
12915
12916         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
12917         variable.
12918
12919         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
12920
12921         * sysdeps/mach/hurd/powerpc: Remove directory.
12922         * sysdeps/mach/powerpc: Likewise.
12923
12924 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12925
12926         * scripts/check-local-headers.sh: Ignore c++ headers.
12927
12928 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
12929
12930         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
12931         __libc_cleanup_region_start argument.
12932
12933 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
12934
12935         [BZ #14784]
12936         [BZ #14785]
12937         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
12938         x * y using scaling, not as x * y + z.
12939         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12940         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12941         * math/libm-test.inc (fma_test): Add more tests.
12942         (fma_test_towardzero): Likewise.
12943         (fma_test_downward): Likewise.
12944         (fma_test_upward): Likewise.
12945
12946 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
12947
12948         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
12949
12950 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
12951
12952         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
12953         New variable.
12954
12955 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
12956
12957         * rt/tst-shm.c (worker): Correct checking for mmap failure.
12958
12959 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
12960
12961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12962         Fix sort order.
12963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12964         Likewise.
12965
12966 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12967
12968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12969         Fix the order of the list for glibc 2.17.
12970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12971         Likewise.
12972
12973 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
12974
12975         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12976
12977 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
12978
12979         [BZ #14610]
12980         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
12981         for low part of x being zero before using __atanl (y).
12982         * math/libm-test.inc (atan2_test): Add another test.
12983
12984         * manual/install.texi (Configuring and compiling): Document
12985         general use of test-wrapper and test-wrapper-env.
12986         * INSTALL: Regenerated.
12987
12988         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
12989         (__fma): Do not extract and scale down low bits on after-rounding
12990         systems when result rounded to normal precision would have normal
12991         exponent.
12992         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
12993         (__fmal): Do not extract and scale down low bits on after-rounding
12994         systems when result rounded to normal precision would have normal
12995         exponent.
12996         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
12997         (__fmal): Do not extract and scale down low bits on after-rounding
12998         systems when result rounded to normal precision would have normal
12999         exponent.
13000         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
13001         macro.
13002         (fma_test): Add more tests.
13003         (fma_test_towardzero): Likewise.
13004         (fma_test_downward): Likewise.
13005         (fma_test_upward): Likewise.
13006
13007 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
13008
13009         * sysdeps/i386/tininess.h: Renamed to ...
13010         * sysdeps/x86/tininess.h: This.
13011         * sysdeps/x86_64/tininess.h: Removed.
13012
13013 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13014
13015         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
13016         input.  Use $(build-program-cmd).
13017         ($(objpfx)tst-array1-static.out): Likewise.
13018         ($(objpfx)tst-array2.out): Likewise.
13019         ($(objpfx)tst-array3.out): Likewise.
13020         ($(objpfx)tst-array4.out): Likewise.
13021         ($(objpfx)tst-array5.out): Likewise.
13022         ($(objpfx)tst-array5-static.out): Likewise.
13023
13024 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
13025
13026         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
13027         if defined.
13028
13029         * nss/nsswitch.h (nss_interface_function): Provide new
13030         macro for use with NSS functions.
13031         * grp/initgroups.c: Use new macro.
13032         * nss/getXXbyYY.c: Likewise.
13033         * nss/getXXbyYY_r.c: Likewise.
13034         * nss/getXXent.c: Likewise.
13035         * nss/getXXent_r.c: Likewise.
13036         * sysdeps/posix/getaddrinfo.c: Likewise.
13037
13038 2012-10-30  Andreas Jaeger  <aj@suse.de>
13039
13040         * po/ru.po: Update Russion translation from translation project.
13041
13042 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13043
13044         [BZ #14152]
13045         [BZ #14783]
13046         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
13047         result and shift together with sticky bit instead of replicating
13048         round-to-nearest rounding.
13049         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13050         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13051         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
13052         missing underflow exceptions.
13053         (fma_test_towardzero): Add more tests.
13054         (fma_test_downward): Likewise.
13055         (fma_test_upward): Likewise.
13056
13057         [BZ #14047]
13058         * sysdeps/generic/tininess.h: New file.
13059         * sysdeps/i386/tininess.h: Likewise.
13060         * sysdeps/sh/tininess.h: Likewise.
13061         * sysdeps/x86_64/tininess.h: Likewise.
13062         * stdlib/tst-strtod-underflow.c: Likewise.
13063         * stdlib/tst-tininess.c: Likewise.
13064         * stdlib/strtod_l.c: Include <tininess.h>.
13065         (round_and_return): Do not set errno for exact underflow cases.
13066         Force an underflow exception when setting errno for underflow.
13067         Determine underflow based on rounding to normal precision if
13068         TININESS_AFTER_ROUNDING.
13069         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
13070         ERANGE for exact underflow cases.
13071         * stdlib/Makefile (tests): Add tst-tininess and
13072         tst-strtod-underflow.
13073         ($(objpfx)tst-tininess): Use $(link-libm).
13074         ($(objpfx)tst-strtod-underflow): Likewise.
13075
13076 2012-10-30  Andreas Jaeger  <aj@suse.de>
13077
13078         [BZ#14767]
13079         * elf/Makefile (tests): Remove conditional for have-initfini-array
13080         since this is now always required and the variable does not exist
13081         anymore.
13082         (tests-static): Likewise.
13083         (modules-names): Likewise.
13084
13085         * po/eo.po: Add Esperanto translation from translation project.
13086
13087         * elf/tst-array1.c (fini_array): Make writeable so that it can be
13088         merged with constructor/destructor.
13089         (init_array): Likewise.
13090         * elf/tst-array2dep.c (fini_array): Likewise.
13091         (init_array): Likewise.
13092
13093 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
13094
13095         * manual/message.texi: Delete @cartouche tags.
13096
13097 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
13098
13099         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
13100         EOPNOTSUPP.
13101         * sysdeps/mach/hurd/fsync.c: Likewise.
13102
13103         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
13104         [_POSIX_REALTIME_SIGNALS]: Change condition to
13105         [_POSIX_REALTIME_SIGNALS > 0].
13106
13107 2012-10-27  Andreas Jaeger  <aj@suse.de>
13108
13109         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
13110         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
13111         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
13112         [__WORDSIZE != 64]: Likewise.
13113
13114 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
13115
13116         *  iconvdata/tst-table.sh: Remove ${SHELL}.
13117         *  iconvdata/tst-tables.sh: Likewise.
13118
13119 2012-10-25  David S. Miller  <davem@davemloft.net>
13120
13121         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13122         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
13123         of strtoull.
13124
13125         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
13126         ifunc-impl-list.c
13127         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13128         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
13129         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
13130         file.
13131
13132 2012-10-25  Roland McGrath  <roland@hack.frob.com>
13133
13134         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13135         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
13136         __getdirentries.
13137
13138 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13139             Jim Blandy  <jimb@codesourcery.com>
13140
13141         * scripts/cross-test-ssh.sh: New file.
13142         * manual/install.texi (Configuring and compiling): Document use of
13143         cross-test-ssh.sh.
13144         * INSTALL: Regenerated.
13145
13146 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
13147
13148         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
13149         EOPNOTSUPP.
13150
13151 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13152
13153         * Makeconfig (run-program-prefix): Fix comment.
13154
13155 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13156             Jim Blandy  <jimb@codesourcery.com>
13157
13158         * Makeconfig (test-wrapper): New variable,
13159         (test-wrapper-env): Likewise.
13160         [$(cross-compiling) = yes && $(test-wrapper) != ""]
13161         (run-built-tests): Define to yes.
13162         (run-program-prefix): Use $(test-wrapper).
13163         (built-program-cmd): Likewise.
13164         * Rules (make-test-out): Use $(test-wrapper-env) and
13165         $(host-built-program-cmd).
13166         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
13167         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
13168         tst-pathopt.sh.
13169         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
13170         $(test-wrapper-env) to tst-rtld-load-self.sh.
13171         ($(objpfx)order2.out): Use $(test-wrapper).
13172         ($(objpfx)tst-initorder.out): Likewise.
13173         ($(objpfx)tst-initorder2.out): Likewise.
13174         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
13175         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
13176         (test_wrapper_env): New variable.  Use it to run ld.so.
13177         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
13178         Use it to run ld.so.
13179         (test_wrapper_env): Likewise.
13180         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
13181         $(test-wrapper) to run-iconv-test.sh.
13182         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
13183         (ICONV): Use $test_wrapper.
13184         * posix/Makefile ($(objpfx)globtest.out): Pass
13185         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
13186         globtest.sh, not $(run-program-prefix).
13187         * posix/globtest.sh (run_via_rtld_prefix): New variable.
13188         (test_wrapper): Likewise.
13189         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
13190         set together with run_via_rtld_prefix.
13191         (run_program_prefix): Define in terms of test_wrapper and
13192         run_via_rtld_prefix.
13193
13194 2012-10-24  Roland McGrath  <roland@hack.frob.com>
13195
13196         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
13197         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
13198         Targets removed.
13199
13200         [BZ #14743]
13201         * include/time.h: Remove librt_hidden_proto (clock_gettime).
13202         Declare __clock_getres, __clock_gettime, __clock_settime,
13203         __clock_nanosleep, and __clock_getcpuclockid.
13204         * rt/clock_gettime.c: Define __clock_gettime as an alias.
13205         Remove librt_hidden_def (clock_gettime).
13206         * sysdeps/unix/clock_gettime.c: Likewise.
13207         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
13208         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
13209         * rt/clock_getres.c: Define __clock_getres as an alias.
13210         * sysdeps/posix/clock_getres.c: Likewise.
13211         * rt/clock_settime.c: Define __clock_settime as an alias.
13212         * sysdeps/unix/clock_settime.c: Likewise.
13213         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
13214         * sysdeps/unix/clock_nanosleep.c: Likewise.
13215         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
13216         * rt/clock-compat.c: New file.
13217         * rt/Makefile (librt-routines): Add clock-compat and move
13218         $(clock-routines) to ...
13219         (routines): ... here, new variable.
13220         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
13221         Don't add get_clockfreq here.
13222         * rt/Versions (libc: GLIBC_2.17): New version set.
13223         Add clock_* symbols here.
13224         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
13225         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
13226         (GLIBC_2.17): Add clock_* symbols.
13227         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
13228         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
13229         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
13230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13231         Likewise.
13232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13233         Likewise.
13234         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
13235         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
13236         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
13237         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
13238         * NEWS: Mention the move.
13239
13240         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
13241         Use __open, __read, __close rather than their public counterparts.
13242         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13243         (__get_clockfreq_via_cpuinfo): Likewise.
13244         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
13245         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
13246
13247         * config.h.in (HAVE_IFUNC): New #undef.
13248         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
13249         was successful.
13250         * configure: Regenerated.
13251
13252 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13253
13254         * configure.in: Move READELF check to start of file.
13255         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
13256         libc_cv_asm_gnu_indirect_function in the process.
13257         * configure: Regenerated.
13258
13259 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
13260
13261         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
13262         send the output to /dev/null.
13263         (libc_cv_cc_with_libunwind): Likewise.
13264         (libc_cv_as_noexecstack): Likewise.
13265         * configure: Regenerate.
13266
13267 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13268
13269         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
13270
13271         * posix/globtest.sh (TMPDIR): Do not set.
13272         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
13273         (testout): Likewise.
13274
13275 2012-10-24  Andreas Jaeger  <aj@suse.de>
13276
13277         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
13278         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
13279         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
13280         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
13281         posix_fadvise64, posix_fallocate64.
13282
13283         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
13284         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
13285         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
13286         Likewise.
13287         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
13288         Likewise.
13289         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
13290
13291         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
13292         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
13293         <bits/fcntl-linux.h>.
13294         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
13295
13296         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
13297         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
13298         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
13299         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
13300         [__WORDSIZE != 64]: Likewise.
13301
13302 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
13303
13304         * Makeconfig (run-built-tests): New variable.
13305         * Rules [$(cross-compiling) = yes]: Change condition to
13306         [$(run-built-tests) = no].
13307         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
13308         to [$(run-built-tests) = yes].
13309         * elf/Makefile [$(cross-compiling) = no]: Likewise
13310         * grp/Makefile [$(cross-compiling) = no]: Likewise.
13311         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
13312         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
13313         * intl/Makefile [$(cross-compiling) = no]: Likewise.
13314         * io/Makefile [$(cross-compiling) = no]: Likewise.
13315         * libio/Makefile [$(cross-compiling) = no]: Likewise.
13316         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
13317         * misc/Makefile [$(cross-compiling) = no]: Likewise.
13318         * posix/Makefile [$(cross-compiling) = no]: Likewise.
13319         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
13320         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
13321         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
13322         * string/Makefile [$(cross-compiling) = no]: Likewise.
13323
13324         * posix/Makefile ($(objpfx)globtest.out): Pass
13325         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
13326         $(rtld-installed-name).
13327         * posix/globtest.sh (elf_objpfx): Remove variable.
13328         (rtld_installed_name): Likewise.
13329         (library_path): Likewise.
13330         (run_program_prefix): New variable.  Use for running globtest
13331         binary.
13332
13333 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
13334             Joseph Myers  <joseph@codesourcery.com>
13335
13336         * Makeconfig (host-built-program-cmd): New variable.
13337         * elf/Makefile (tst-stackguard1-ARGS): Use
13338         $(host-built-program-cmd).
13339         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
13340         (tst-spawn-ARGS): Likewise.
13341         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
13342
13343 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
13344             Jim Blandy  <jimb@codesourcery.com>
13345
13346         * Makeconfig (run-via-rtld-prefix): New variable.
13347         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
13348         (built-program-cmd): Likewise.
13349
13350 2012-10-22  Andreas Jaeger  <aj@suse.de>
13351
13352         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
13353         __O_RSYNC if it exists, otherwise to O_SYNC.
13354
13355 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
13356             Joseph Myers  <joseph@codesourcery.com>
13357
13358         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
13359         /dev/null.
13360         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
13361         from /dev/null
13362         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
13363         /dev/null.
13364
13365 2012-10-22  Andreas Jaeger  <aj@suse.de>
13366
13367         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
13368         Define always.
13369         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
13370
13371         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13372         bits/fcntl-linux.h.
13373
13374         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
13375         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
13376
13377         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
13378         to __O_LARGEFILE.
13379         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
13380         to __O_LARGEFILE.
13381
13382 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
13383             Joseph Myers  <joseph@codesourcery.com>
13384
13385         * config.make.in (NM): New variable.
13386
13387 2012-10-21  Andreas Jaeger  <aj@suse.de>
13388
13389         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
13390         definitions and declarations that are provided by
13391         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
13392
13393 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13394
13395         [BZ #14683]
13396         * elf/Makefile (tests-static): Add tst-leaks1-static.
13397         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
13398         ($(objpfx)tst-leaks1-static): New rule.
13399         ($(objpfx)tst-leaks1-static-mem): Likewise.
13400         (tst-leaks1-static-ENV): New macro.
13401         * elf/dl-open.c (dl_open_worker): Check the main application
13402         only if SHARED is defined.
13403         * elf/tst-leaks1-static.c: New file.
13404
13405 2012-10-20  Andreas Jaeger  <aj@suse.de>
13406
13407         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
13408         generic values for Linux.
13409         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
13410         and declarations that are provided by <bits/fcntl-linux.h> and
13411         include <bits/fcntl-linux.h>.
13412         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13413         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13414
13415 2012-10-20  Roland McGrath  <roland@hack.frob.com>
13416
13417         * io/fcntl.h: Move include of <bits/types.h> to the top and
13418         include it unconditionally.
13419
13420 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
13421
13422         * wcsmbs/Makefile (tests-ifunc): New variable.
13423         (tests): Add $(tests-ifunc).
13424         * wcsmbs/test-wcschr-ifunc.c: New file.
13425         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
13426         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
13427         * wcsmbs/test-wcslen-ifunc.c: Likewise.
13428         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
13429         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
13430
13431         * string/Makefile (tests-ifunc): New variable.
13432         (tests): Add $(tests-ifunc).
13433         * string/test-memccpy.c (TEST_NAME): New macro.
13434         * string/test-memchr.c (TEST_NAME): Likewise.
13435         * string/test-memcmp.c (TEST_NAME): Likewise.
13436         * string/test-memcpy.c (TEST_NAME): Likewise.
13437         * string/test-memmem.c (TEST_NAME): Likewise.
13438         * string/test-memmove.c (TEST_NAME): Likewise.
13439         * string/test-memset.c (TEST_NAME): Likewise.
13440         * string/test-rawmemchr.c (TEST_NAME): Likewise.
13441         * string/test-stpcpy.c (TEST_NAME): Likewise.
13442         * string/test-stpncpy.c (TEST_NAME): Likewise.
13443         * string/test-strcasecmp.c (TEST_NAME): Likewise.
13444         * string/test-strcasestr.c (TEST_NAME): Likewise.
13445         * string/test-strcat.c (TEST_NAME): Likewise.
13446         * string/test-strchr.c (TEST_NAME): Likewise.
13447         * string/test-strcmp.c(TEST_NAME): Likewise.
13448         * string/test-strcpy.c (TEST_NAME): Likewise.
13449         * string/test-strcspn.c (TEST_NAME): Likewise.
13450         * string/test-strlen.c (TEST_NAME): Likewise.
13451         * string/test-strncasecmp.c (TEST_NAME): Likewise.
13452         * string/test-strncmp.c (TEST_NAME): Likewise.
13453         * string/test-strncpy.c (TEST_NAME): Likewise.
13454         * string/test-strnlen.c (TEST_NAME): Likewise.
13455         * string/test-strpbrk.c (TEST_NAME): Likewise.
13456         * string/test-strrchr.c (TEST_NAME): Likewise.
13457         * string/test-strspn.c (TEST_NAME): Likewise.
13458         * string/test-strstr.c (TEST_NAME): Likewise.
13459         * string/test-bcopy-ifunc.c: New file.
13460         * string/test-bzero-ifunc.c: Likewise.
13461         * string/test-memccpy-ifunc.c: Likewise.
13462         * string/test-memchr-ifunc.c: Likewise.
13463         * string/test-memcmp-ifunc.c: Likewise.
13464         * string/test-memcpy-ifunc.c: Likewise.
13465         * string/test-memmem-ifunc.c: Likewise.
13466         * string/test-memmove-ifunc.c: Likewise.
13467         * string/test-mempcpy-ifunc.c: Likewise.
13468         * string/test-memset-ifunc.c: Likewise.
13469         * string/test-rawmemchr-ifunc.c: Likewise.
13470         * string/test-stpcpy-ifunc.c: Likewise.
13471         * string/test-stpncpy-ifunc.c: Likewise.
13472         * string/test-strcasecmp-ifunc.c: Likewise.
13473         * string/test-strcasestr-ifunc.c: Likewise.
13474         * string/test-strcat-ifunc.c: Likewise.
13475         * string/test-strchr-ifunc.c: Likewise.
13476         * string/test-strchrnul-ifunc.c: Likewise.
13477         * string/test-strcmp-ifunc.c: Likewise.
13478         * string/test-strcpy-ifunc.c: Likewise.
13479         * string/test-strcspn-ifunc.c: Likewise.
13480         * string/test-strlen-ifunc.c: Likewise.
13481         * string/test-strncasecmp-ifunc.c: Likewise.
13482         * string/test-strncat-ifunc.c: Likewise.
13483         * string/test-strncmp-ifunc.c: Likewise.
13484         * string/test-strncpy-ifunc.c: Likewise.
13485         * string/test-strnlen-ifunc.c: Likewise.
13486         * string/test-strpbrk-ifunc.c: Likewise.
13487         * string/test-strrchr-ifunc.c: Likewise.
13488         * string/test-strspn-ifunc.c: Likewise.
13489         * string/test-strstr-ifunc.c: Likewise.
13490
13491         * debug/Makefile (tests-ifunc): New variable.
13492         (tests): Add $(tests-ifunc).
13493         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
13494         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
13495         * debug/test-stpcpy_chk-ifunc.c: New file.
13496         * debug/test-strcpy_chk-ifunc.c: Likewise.
13497
13498 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13499
13500         [BZ #13601]
13501         * elf/dl-load.c (open_verify): Retry read if the entire ELF
13502         header is not read in.
13503
13504 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
13505
13506         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
13507         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
13508         directly.  Pass built executable to script as
13509         $(built-program-cmd).
13510         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
13511         $testprogram without using LD_LIBRARY_PATH and $ldso.
13512
13513         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
13514         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
13515         $(rtld-installed-name).
13516         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
13517         (rtld_installed_name): Likewise.
13518         (library_path): Likewise.
13519         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
13520         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
13521         $(run-program-prefix) to tst-tables.sh.
13522         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
13523         it to run tst-table-from and tst-table-to.
13524         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
13525         Pass it to tst-table.sh.
13526         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
13527         $(run-program-prefix) to tst-gettext.sh.
13528         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
13529         tst-translit.sh.
13530         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
13531         tst-gettext2.sh.
13532         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
13533         to run tst-gettext.
13534         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
13535         to run tst-gettext2.
13536         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
13537         to run tst-translit.
13538         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
13539         $(run-program-prefix) to tst-mtrace.sh.
13540         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
13541         to run tst-mtrace.
13542         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
13543         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
13544         $(rtld-installed-name).
13545         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
13546         (rtld_installed_name): Likewise.
13547         (run_program_prefix): New variable.  Use it to run wordexp-test.
13548
13549         * Makeconfig (ARCH): Remove all definitions.
13550         (machine): Likewise.
13551         [ARCH]: Remove conditional code.
13552         [!objdir]: Give error.
13553         [!objdir] (objpfx): Remove.
13554         [!objdir] (common-objpfx): Likewise.
13555         [!objdir] (common-objdir): Likewise.
13556         * configure.in (config_makefile): Remove.  Hardcode Makefile in
13557         AC_CONFIG_FILES call.
13558         * configure: Regenerated.
13559
13560         [BZ #13888]
13561         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
13562         or TMPDIR.
13563         (testout): Likewise.
13564
13565         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
13566         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
13567         $(rtld-installed-name).
13568         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
13569         (rtld_installed_name): Likwise.
13570         (runit): Remove function.
13571         (run_getconf): New variable,  Use it for running getconf binary.
13572
13573 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
13574
13575         [BZ #14716]
13576         * string/test-memmem.c (check_result): New function.
13577         (do_one_test): Use it.
13578         (check1): New function.
13579         (test_main): Use it.
13580
13581 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13582
13583         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
13584
13585 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
13586
13587         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
13588         (_G_LSEEK64): Likewise.
13589         (_G_MMAP64): Likewise.
13590         (_G_FSTAT64): Likewise.
13591         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
13592         (_G_LSEEK64): Likewise.
13593         (_G_MMAP64): Likewise.
13594         (_G_FSTAT64): Likewise.
13595         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
13596         unconditional.  Call __mmap64 directly.
13597         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
13598         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
13599         __lseek64 directly.
13600         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
13601         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
13602         __mmap64 directly.
13603         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
13604         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
13605         __lseek64 directly.
13606         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
13607         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
13608         __lseek64 directly.
13609         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
13610         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
13611         __lseek64 directly.
13612         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
13613         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
13614         __fxstat64 directly.
13615         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
13616         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
13617         unconditional.
13618         (freopen64) [!_G_OPEN64]: Remove conditional code.
13619         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
13620         unconditional.
13621         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
13622         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
13623         unconditional.
13624         (ftello64) [!_G_LSEEK64]: Remove conditional code.
13625         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
13626         unconditional.
13627         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
13628         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
13629         unconditional.
13630         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
13631         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
13632         unconditional.
13633         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
13634         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
13635         unconditional.
13636         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
13637         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
13638         unconditional.
13639         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
13640
13641 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13642
13643         [BZ #12140]
13644         * manual/memory.texi (Malloc Tunable Parameters): Add note
13645         about free list pointers overwriting some perturb bytes.
13646         Wording suggested by Roland McGrath.
13647
13648 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
13649
13650         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
13651         (lgamma_test): Likewise.
13652         (tgamma_test): Likewise.
13653
13654 2012-10-16  Florian Weimer  <fweimer@redhat.com>
13655
13656         [BZ #14700]
13657         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
13658         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
13659
13660 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
13661
13662         * NEWS: Mention BZ #14716.
13663         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
13664         when removing AVAILABLE1_USES_J macro.
13665
13666 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
13667
13668         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
13669         (__bswap_64): __uint64_t for unsigned 64-bit int.
13670
13671 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
13672
13673         * include/string.h (memmem): Declare libc hidden alias.
13674         * string/memmem.c (memmem): Define libc hidden alias.
13675         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
13676         __read, __close instead of open, read, close.
13677
13678 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
13679
13680         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
13681         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
13682         global and hidden.
13683         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
13684         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
13685         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
13686         Likewise.
13687         (__rawmemchr_sse2): Likewise.
13688         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
13689         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
13690         (__strchr_sse2): Likewise.
13691         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
13692         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
13693         (__strcasecmp_sse2): Likewise.
13694         (__strncasecmp_sse2): Likewise.
13695         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
13696         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
13697         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
13698         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
13699         (__strrchr_sse2): Likewise.
13700         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
13701         ifunc-impl-list.c.
13702         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13703         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13704         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13705         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13706         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13707         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13708         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13709         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13710         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
13711         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
13712         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
13713         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
13714         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
13715         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13716         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13717         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13718         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13719         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13720         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
13721         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
13722         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
13723         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
13724         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
13725         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
13726         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
13727         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13728         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13729         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
13730         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13731         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13732
13733         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
13734         global and hidden.
13735         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
13736         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
13737         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
13738         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
13739         Likewise.
13740         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
13741         Likewise.
13742         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
13743         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
13744         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
13745         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
13746         ifunc-impl-list.c.
13747         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13748         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13749         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13750         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13751         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13752         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13753         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13754         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13755         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13756         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13757         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13758         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13759         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13760         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
13761         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
13762         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13763         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
13764         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
13765         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13766         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13767         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13768         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13769         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13770         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13771         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13772         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
13773         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
13774         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
13775         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
13776         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13777         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
13778         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13779         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13780         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
13781         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13782         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13783         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13784         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13785         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13786         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13787         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
13788
13789         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
13790         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
13791         * include/ifunc-impl-list.h: New file.
13792         * misc/ifunc-impl-list.c: Likewise.
13793         * misc/Makefile (routines): Add ifunc-impl-list.
13794         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
13795         * string/test-string.h: Include <ifunc-impl-list.h>.
13796         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
13797         impl_array): New variables.
13798         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
13799         are defined.
13800         (test_init): Call __libc_ifunc_impl_list to initialize
13801         func_list if TEST_IFUNC and TEST_NAME are defined.
13802
13803         * string/Makefile (strop-tests): Add bcopy and bzero.
13804         * string/test-bcopy.c: New file.
13805         * string/test-bzero.c: Likewise.
13806         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
13807         defined.
13808         * string/test-memset.c: Support bzero test if TEST_BZERO is
13809         defined.
13810         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
13811         __libc_memmove.
13812         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
13813         __libc_memset.
13814         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
13815         of memset.
13816
13817 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
13818
13819         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
13820         * configure: Regenerated.
13821
13822         * Makeconfig (+link-static-before-libc): Don't include
13823         $(link-static-libc).
13824
13825         * libio/libio.h (_IO_pos_t): Remove.
13826
13827 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13828
13829         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
13830         McGrath.
13831
13832 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13833
13834         * crypt/crypt-entry.c: Include fips-private.h.
13835         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
13836         * crypt/md5c-test.c (main): Tolerate disabled MD5.
13837         * sysdeps/unix/sysv/linux/fips-private.h: New file.
13838         * sysdeps/generic/fips-private.h: New file, dummy fallback.
13839
13840 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13841
13842         * crypt/crypt-private.h: Include stdbool.h.
13843         (_ufc_setup_salt_r): Return bool.
13844         * crypt/crypt-entry.c: Include errno.h.
13845         (__crypt_r): Return NULL with EINVAL for bad salt.
13846         * crypt/crypt_util.c (bad_for_salt): New.
13847         (_ufc_setup_salt_r): Check that salt is long enough and within
13848         the specified alphabet.
13849         * crypt/badsalttest.c: New file.
13850         * crypt/Makefile (tests): Add it.
13851         ($(objpfx)badsalttest): New.
13852
13853 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13854
13855         * NEWS: Add entry for BZ #14602.
13856
13857 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
13858
13859         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
13860         type-generic.
13861         * math/libm-test.inc: Update comment listing what functions and
13862         macros are tested.
13863         (isgreater_test): New function.
13864         (isgreaterequal_test): Likewise.
13865         (isless_test): Likewise.
13866         (islessequal_test): Likewise.
13867         (islessgreater_test): Likewise.
13868         (isunordered_test): Likewise.
13869         (main): Call the new functions.
13870
13871 2012-10-09  Roland McGrath  <roland@hack.frob.com>
13872
13873         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
13874         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
13875         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
13876         * sysdeps/i386/configure: Regenerated.
13877         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
13878         * sysdeps/mach/configure: Regenerated.
13879         * sysdeps/mach/hurd/configure: Regenerated.
13880         * sysdeps/powerpc/configure: Regenerated.
13881         * sysdeps/powerpc/powerpc32/configure: Regenerated.
13882         * sysdeps/powerpc/powerpc64/configure: Regenerated.
13883         * sysdeps/s390/s390-32/configure: Regenerated.
13884         * sysdeps/s390/s390-64/configure: Regenerated.
13885         * sysdeps/sh/configure: Regenerated.
13886         * sysdeps/sparc/configure: Regenerated.
13887         * sysdeps/unix/sysv/linux/configure: Regenerated.
13888         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
13889         * sysdeps/x86_64/configure: Regenerated.
13890
13891         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
13892         defined.  Don't check if MAP is NULL.
13893
13894 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
13895
13896         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
13897         (_G_stat64): Likewise.
13898         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
13899         (_G_stat64): Likewise.
13900         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
13901         instead of struct _G_stat64.
13902         * libio/fileops.c (mmap_remap_check): Likewise.
13903         (decide_maybe_mmap): Likewise.
13904         (_IO_new_file_seekoff): Likewise.
13905         (_IO_file_stat): Likewise.
13906         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
13907         _G_off64_t.
13908         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
13909         instead of struct _G_stat64.
13910         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
13911
13912 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
13913
13914         [BZ #14602]
13915         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13916         Replace with ...
13917         (CHECK_EOL): New macro.
13918         (two_way_short_needle): Check beginning of haystack for EOL.  Use
13919         CHECK_EOL.
13920         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13921         Replace with CHECK_EOL.
13922         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13923         Replace with CHECK_EOL.
13924
13925 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
13926
13927         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
13928         type-generic.
13929         * math/libm-test.inc: Update comment listing what functions and
13930         macros are tested.
13931         (finite_test): New function.
13932         (isinf_test): Likewise.
13933         (isnan_test): Likewise.
13934         (fpclassify_test): Test subnormal input.
13935         (isfinite_test): Likewise.
13936         (isnormal_test): Likewise.
13937         (main): Call the new functions.
13938
13939 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
13940
13941         [BZ #14660]
13942         * Makerules (%.dynsym): Force C locale when running
13943         $(OBJDUMP) --dynamic-syms.
13944
13945 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
13946
13947         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
13948         <stdint.h>.
13949
13950 2012-10-06  David S. Miller  <davem@davemloft.net>
13951
13952         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
13953         upper 32-bits of the length value in %o2 since we use branch-on-register
13954         tests which consider the entire 64-bit register.
13955
13956 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
13957
13958         * string/test-strstr.c (check2): Add a test for page boundary.
13959
13960 2012-10-05  David S. Miller  <davem@davemloft.net>
13961
13962         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
13963         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
13964         file.
13965         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
13966         sysdep_routines.
13967         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
13968         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
13969         and bzero when HWCAP_SPARC_CRYPTO is present.
13970
13971 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
13972
13973         [BZ #14602]
13974         * string/test-strstr.c (check2): New function.
13975         (test_main): Call check2.
13976
13977         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
13978         and bug-strchr1.
13979         * string/bug-strcasestr1.c (do_test): Moved to ...
13980         * string/test-strcasestr.c (check1): Here.  New function.
13981         (do_one_test): Break out result checking code into ...
13982         (check_result): This.  New function.
13983         (do_one_test): Call check_result.
13984         (test_main): Call check1.
13985         * string/bug-strchr1.c (do_test): Moved to ...
13986         * string/test-strchr.c (check1): Here.  New function.
13987         (do_one_test): Break out result checking code into ...
13988         (check_result): This.  New function.
13989         (do_one_test): Call check_result.
13990         (test_main): Call check1.
13991         * string/bug-strstr1.c (main): Moved to ...
13992         * string/test-strstr.c (check1): Here.  New function.
13993         (do_one_test): Break out result checking code into ...
13994         (check_result): This.  New function.
13995         (do_one_test): Call check_result.
13996         (test_main): Call check1.
13997         * string/bug-strcasestr1.c: Removed.
13998         * string/bug-strchr1.c: Likewise.
13999         * string/bug-strstr1.c: Likewise.
14000
14001         * elf/Makefile (dl-routines): Add hwcaps.
14002         * elf/dl-support.c (_dl_important_hwcaps): Removed.
14003         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
14004         (_dl_important_hwcaps): Moved to ...
14005         * elf/dl-hwcaps.c: Here.  New file.
14006         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
14007
14008         [BZ #14557]
14009         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
14010         if IS_IN_rtld isn't defined.
14011
14012         * elf/dl-support.c (_dl_sysinfo_map): New.
14013         Include "get-dynamic-info.h" and "setup-vdso.h".
14014         (_dl_non_dynamic_init): Call setup_vdso.
14015         * elf/dynamic-link.h: Don't include <assert.h>.
14016         (elf_get_dynamic_info): Moved to ...
14017         * elf/get-dynamic-info.h: Here.  New file.
14018         * elf/dynamic-link.h: Include "get-dynamic-info.h".
14019         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
14020         * elf/setup-vdso.h: Here.  New file.
14021         * elf/rtld.c: Include "setup-vdso.h".
14022         (dl_main): Call setup_vdso.
14023
14024 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
14025
14026         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
14027         creal in comment listing functions tested.  List finite, isinf,
14028         isnan, isless, islessequal, isgreater, isgreaterequal,
14029         islessgreater, isunordered, lgamma_r and pow10 as functions and
14030         macros not tested.  Mention which functions not tested are aliases
14031         for other functions.  Fix typo.  Note that signs of NaNs are not
14032         tested.
14033
14034         * scripts/config.guess: Update from config.git.
14035         * scripts/config.sub: Likewise.
14036
14037 2012-10-04  Roland McGrath  <roland@hack.frob.com>
14038
14039         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
14040         * misc/madvise.c (madvise): Renamed to __madvise.
14041         Make madvise a weak alias.
14042         * include/sys/mman.h: Declare __madvise.
14043         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
14044         * sysdeps/unix/syscalls.list
14045         (madvise): Make __madvise the strong name, and madvise a weak alias.
14046         * sysdeps/unix/sysv/linux/syscalls.list
14047         (madvise, mmap): Remove redundant entries.
14048         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
14049         * malloc/malloc.c (mtrim): Likewise.
14050         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
14051
14052 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14053
14054         * sysdeps/mach/hurd/dl-cache.c: File removed.
14055         * config.h.in (USE_LDCONFIG): New #undef.
14056         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
14057         * configure: Regenerated.
14058         * elf/Makefile (dl-routines): Add dl-cache only under
14059         [$(use-ldconfig) = yes].
14060         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
14061         cache on [USE_LDCONFIG].
14062         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
14063         [USE_LDCONFIG].
14064         * elf/rtld.c (dl_main): Likewise.
14065
14066 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
14067
14068         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
14069         _SC_LEVEL4_CACHE_LINESIZE.
14070
14071 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14072
14073         * sysdeps/unix/bsd/confstr.h: File removed.
14074
14075 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
14076
14077         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
14078         sys/sdt-config.h.
14079
14080 2012-10-02  Roland McGrath  <roland@hack.frob.com>
14081
14082         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
14083         Make 'mapoff' field ElfW(Off) rather than off_t.
14084
14085 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
14086
14087         * nscd/Makefile: Remove nscd-cflags and all its users.
14088         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
14089         (CFLAGS-nonlib): Add compiler flags for nscd modules.
14090
14091         [BZ #10631]
14092         * malloc.c (malloc_printerr): Clarify error message.
14093
14094 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
14095
14096         [BZ #14648]
14097         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14098         Set bit_FMA_Usable if FMA is supported.
14099         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
14100         macro.
14101         (bit_FMA4_Usable): Updated.
14102         (index_FMA_Usable): New macro.
14103         (CPUID_FMA): Likewise
14104         (HAS_FMA): Defined with bit_FMA_Usable.
14105
14106 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14107
14108         * bits/types.h (__swblk_t): Type removed.
14109         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
14110         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
14111         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14112         (__SWBLK_T_TYPE): Likewise.
14113         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14114         (__SWBLK_T_TYPE): Likewise.
14115         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14116         (__SWBLK_T_TYPE): Likewise.
14117         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14118         (__SWBLK_T_TYPE): Likewise.
14119
14120 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
14121             Honza Horak <hhorak@redhat.com>
14122
14123         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
14124         (xdr_mapname): Use YPMAXMAP as maxsize.
14125         (xdr_peername): Use YPMAXPEER as maxsize.
14126         (xdr_keydat): Use YPAXRECORD as maxsize.
14127         (xdr_valdat): Use YPMAXRECORD as maxsize.
14128
14129 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14130
14131         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
14132
14133         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
14134         * csu/init-first.c: ... here.
14135         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
14136         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
14137         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
14138         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
14139         * sysdeps/i386/init-first.c: File removed.
14140         * sysdeps/sh/init-first.c: File removed.
14141
14142 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
14143
14144         [BZ #14645]
14145         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
14146         if x * y might underflow to zero and z is zero.
14147         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14148         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14149         * math/libm-test.inc (min_subnorm_value): New variable.
14150         (fma_test): Add more tests.
14151         (fma_test_towardzero): Likewise.
14152         (fma_test_downward): Likewise
14153         (fma_test_upward): Likewise.
14154         (initialize): Set min_subnorm_value.
14155
14156 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
14157
14158         [BZ #14638]
14159         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
14160         0 + 0.
14161         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
14162         mode for addition resulting in exact zero.
14163         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
14164         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
14165         exact 0 + 0.
14166         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
14167         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14168         * math/libm-test.inc (fma_test): Add more tests.
14169         (fma_test_towardzero): New function.
14170         (fma_test_downward): Likewise.
14171         (fma_test_upward): Likewise.
14172         (main): Call the new functions.
14173
14174 2012-09-28  David S. Miller  <davem@davemloft.net>
14175
14176         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
14177
14178 2012-09-28  Roland McGrath  <roland@hack.frob.com>
14179
14180         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
14181         instead of SIGALRM.
14182
14183         * sysdeps/gnu/_G_config.h: Moved to ...
14184         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
14185         * sysdeps/mach/hurd/_G_config.h: Moved to ...
14186         * sysdeps/generic/_G_config.h: ... here.
14187
14188         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
14189
14190         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
14191
14192         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
14193         Conditionalize target on [libnss_test1.so-version].
14194
14195         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
14196
14197         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
14198         (elfobjdir): Move out of conditionals.
14199
14200         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
14201         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
14202         (__nss_lookup_function): Conditionalize label remove_from_tree on
14203         [!DO_STATIC_NSS || SHARED], matching its only use.
14204
14205 2012-09-28  David S. Miller  <davem@davemloft.net>
14206
14207         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
14208         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
14209         file.
14210         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14211         sysdep_routines.
14212         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14213         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
14214         when HWCAP_SPARC_CRYPTO is present.
14215
14216 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14217
14218         * io/tst-mknodat.c: Create a FIFO instead of a socket.
14219
14220 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
14221
14222         [BZ #6530]
14223         * stdio-common/vfprintf.c (process_string_arg): Revert
14224         2000-07-22 change.
14225
14226 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
14227
14228         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
14229         for testcase.
14230         * stdio-common/tst-sprintf.c: Include <locale.h>
14231         (main): Test sprintf's handling of incomplete multibyte
14232         characters.
14233
14234 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
14235
14236         * elf/dl-runtime.c (VERSYMIDX): Removed.
14237         * elf/dl-version.c (VERSYMIDX): Likewise.
14238         * elf/do-rel.h (VERSYMIDX): Likewise.
14239         (VALIDX): Likewise.
14240         * elf/dynamic-link.h (VERSYMIDX): Likewise.
14241         * elf/rtld.c (VALIDX): Likewise.
14242         (ADDRIDX): Likewise.
14243         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
14244         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
14245         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
14246         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
14247         (VALIDX): Likewise.
14248         (ADDRIDX): Likewise.
14249
14250 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14251
14252         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
14253
14254 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
14255
14256         [BZ #11438]
14257         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
14258         to global scope.
14259         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
14260         addresses are in the same scope as 192.0.2/24.
14261         * posix/gai.conf: Document new scope table defaults.
14262
14263 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14264
14265         [BZ #5298]
14266         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
14267         for ftell.  Compute offsets from write pointers instead.
14268         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14269
14270 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14271
14272         [BZ #14543]
14273         * libio/Makefile (tests): New test case tst-fseek.
14274         * libio/tst-fseek.c: New test case to verify that fseek/ftell
14275         combination works in wide mode.
14276         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
14277         state when the external buffer state changes.
14278
14279 2012-09-27  David S. Miller  <davem@davemloft.net>
14280
14281         [BZ #14376]
14282         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
14283         pass reloc->r_addend in as the 'high' argument to
14284         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
14285
14286         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14287
14288 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
14289
14290         * rt/tst-aio2.c: Include <pthread.h>.
14291         * rt/tst-aio3.c: Likewise.
14292
14293 2012-09-27  Steve Ellcey  <sellcey@mips.com>
14294
14295         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
14296
14297 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
14298
14299         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
14300         contents on [SHARED].
14301
14302 2012-09-26  Marek Polacek  <polacek@redhat.com>
14303
14304         [BZ #14530]
14305         [BZ #13741]
14306         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
14307         for C++ and GCC <4.3 as well as for non GCC compilers.
14308
14309 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14310
14311         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14312
14313 2012-09-25  Roland McGrath  <roland@hack.frob.com>
14314
14315         * Makefile.in (all, install): Declare with .PHONY.
14316         Reported by Michael Hope <michael.hope@linaro.org>.
14317
14318 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14319
14320         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
14321         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
14322         system header.
14323         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
14324         Likewise.
14325         (sydep_routines): Add the new and the internal functions.
14326         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
14327         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
14328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
14329         (GLIBC_2.17): Add the new function.
14330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
14331         (GLIBC_2.17): Likewise.
14332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14333         (GLIBC_2.17): Likewise.
14334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
14335         (GLIBC_2.17): Likewise.
14336         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
14337
14338 2012-09-25  Alan Modra  <amodra@gmail.com>
14339
14340         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
14341         Add release barrier before setting once_control to say
14342         initialisation is done.  Add hints on lwarx.  Use macro in
14343         place of isync.
14344         (clear_once_control): Add release barrier.
14345
14346 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
14347
14348         [BZ #13629]
14349         * math/s_clog.c (__clog): Handle more values close to |z| = 1
14350         specially.
14351         * math/s_clog10.c (__clog10): Likewise.
14352         * math/s_clog10f.c (__clog10f): Likewise.
14353         * math/s_clog10l.c (__clog10l): Likewise.
14354         * math/s_clogf.c (__clogf): Likewise.
14355         * math/s_clogl.c (__clogl): Likewise.
14356         * math/Makefile (libm-calls): Add x2y2m1.
14357         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
14358         (__x2y2m1): Likewise.
14359         (__x2y2m1l): Likewise.
14360         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
14361         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
14362         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
14363         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
14364         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
14365         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
14366         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
14367         * sysdeps/i386/fpu/libm-test-ulps: Update.
14368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14369
14370         [BZ #14621]
14371         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
14372         int as type of variable DEPTH.
14373         (glob): Use size_t instead of int as type of variables NEWCOUNT
14374         and OLD_PATHC.
14375
14376 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14377
14378         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
14379         Add s_sincosf-sse2.
14380         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
14381         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
14382         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
14383         macros for using routine as __sincosf_ia32.
14384         Use macro for function declaration and weak_alias.
14385         * sysdeps/i386/fpu/libm-test-ulps: Update.
14386
14387         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
14388         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14389
14390         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
14391         subnormal argument.
14392         * math/s_cexpf.c (__cexpf): Likewise.
14393         * math/s_csinf.c (__csinf): Likewise.
14394         * math/s_csinhf.c (__csinhf): Likewise.
14395         * math/s_ctanf.c (__ctanf): Likewise.
14396         * math/s_ctanhf.c (__ctanhf): Likewise.
14397         * math/s_ccosh.c (__ccoshf): Likewise.
14398         * math/s_cexp.c (__cexpl): Likewise.
14399         * math/s_csin.c (__csin): Likewise.
14400         * math/s_csinh.c (__csinh): Likewise.
14401         * math/s_ctan.c (__ctan): Likewise.
14402         * math/s_ctanh.c (ctanh): Likewise.
14403         * math/s_ccoshl.c (__ccoshl): Likewise.
14404         * math/s_cexpl.c (__cexpl): Likewise.
14405         * math/s_csinl.c (__csinl): Likewise.
14406         * math/s_csinhl.c (__csinhl): Likewise.
14407         * math/s_ctanl.c (__ctanl): Likewise.
14408         * math/s_ctanhl.c (__ctanhl): Likewise.
14409
14410 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
14411
14412         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
14413         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
14414         (_IO_off_t): Define to __off_t, not _G_off_t.
14415         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
14416         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
14417         (_IO_wint_t): Define to wint_t, not _G_wint_t.
14418         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
14419         type of __dummy and __dummy2 fields.
14420         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
14421         (_G_ssize_t): Likewise.
14422         (_G_off_t): Likewise.
14423         (_G_pid_t): Likewise.
14424         (_G_uid_t): Likewise.
14425         (_G_wchar_t): Likewise.
14426         (_G_wint_t): Likewise.
14427         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
14428         (_G_ssize_t): Likewise.
14429         (_G_off_t): Likewise.
14430         (_G_pid_t): Likewise.
14431         (_G_uid_t): Likewise.
14432         (_G_wchar_t): Likewise.
14433         (_G_wint_t): Likewise.
14434         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
14435         (_G_ssize_t): Likewise.
14436         (_G_off_t): Likewise.
14437         (_G_pid_t): Likewise.
14438         (_G_uid_t): Likewise.
14439         (_G_wchar_t): Likewise.
14440         (_G_wint_t): Likewise.
14441
14442 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14443
14444         * malloc/arena.c: Include malloc-sysdep.h.
14445         (shrink_heap): Use check_may_shrink_heap to decide if madvise
14446         is sufficient to shrink the heap or an unmap is needed.
14447         * sysdeps/generic/malloc-sysdep.h: New file.  Define
14448         new function check_may_shrink_heap.
14449         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
14450         new function check_may_shrink_heap.
14451
14452 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14453
14454         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
14455         comments.
14456
14457 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
14458
14459         * catgets/test-gencat.sh: Add "set -e".
14460         * elf/tst-pathopt.sh: Likewise.
14461         * grp/tst_fgetgrent.sh: Likewise.
14462         * iconvdata/run-iconv-test.sh: Likewise.
14463         * intl/tst-gettext.sh: Likewise.
14464         * intl/tst-gettext2.sh: Likewise.
14465         * intl/tst-gettext4.sh: Likewise.
14466         * intl/tst-gettext6.sh: Likewise.
14467         * intl/tst-translit.sh: Likewise.
14468         * io/ftwtest-sh: Likewise.
14469         * libio/test-freopen.sh: Likewise.
14470         * malloc/tst-mtrace.sh: Likewise.
14471         * posix/globtest.sh: Likewise.
14472         * posix/tst-getconf.sh: Likewise.
14473         * posix/wordexp-tst.sh: Likewise.
14474         * stdio-common/tst-printf.sh: Likewise.
14475         * stdio-common/tst-unbputc.sh: Likewise.
14476         * stdlib/tst-fmtmsg.sh: Likewise.
14477         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
14478         * catgets/Makefile: Do not specify -e option when running
14479         testsuite shell scripts.
14480         * elf/Makefile: Likewise.
14481         * grp/Makefile: Likewise.
14482         * iconvdata/Makefile: Likewise.
14483         * intl/Makefile: Likewise.
14484         * io/Makefile: Likewise.
14485         * libio/Makefile: Likewise.
14486         * malloc/Makefile: Likewise.
14487         * posix/Makefile: Likewise.
14488         * stdio-common/Makefile: Likewise.
14489         * stdlib/Makefile: Likewise.
14490         * sysdeps/x86_64/Makefile: Likewise.
14491
14492         * io/ftwtest-sh: Add copyright header.
14493         * posix/globtest.sh: Likewise.
14494         * posix/tst-getconf.sh: Likewise.
14495         * posix/wordexp-tst.sh: Likewise.
14496         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
14497
14498 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
14499
14500         [BZ #13679]
14501         * Makeconfig (+link): Defined as $(+link-static) if
14502         $(build-shared) isn't yes.
14503         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
14504         isn't yes.
14505         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
14506
14507         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
14508
14509         [BZ #14562]
14510         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
14511         new chunk size with MALLOC_ALIGN_MASK.
14512
14513 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
14514
14515         [BZ #5044]
14516         * stdio-common/printf_fphex.c: Include <stdbool.h> and
14517         <rounding-mode.h>.
14518         (__printf_fphex): Determine rounding using get_rounding_mode and
14519         round_away.
14520         * stdio-common/tst-printf-round.c (struct hex_test): New
14521         structure.
14522         (hex_tests): New variable.
14523         (test_hex_in_one_mode): New function.
14524         (do_test): Also run tests for hex float output.
14525
14526 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
14527
14528         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
14529         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
14530         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
14531         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
14532         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
14533         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
14534         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
14535         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
14536
14537 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
14538
14539         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
14540         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
14541         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
14542         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
14543
14544 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
14545
14546         [BZ #14579]
14547         * elf/rtld.c (dl_main): Limit the check for self loading to normal
14548         mode only.
14549         * elf/tst-rtld-load-self.sh: New test.
14550         * elf/Makefile: Run it.
14551
14552 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
14553
14554         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
14555         (tst-writev-ENV): Remove.
14556         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
14557
14558 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
14559
14560         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
14561
14562 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
14563
14564         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
14565         unconditional.
14566         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
14567         Likewise.
14568         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
14569         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
14570         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
14571         Likewise.
14572
14573 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14574
14575         [BZ #14587]
14576         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
14577         * config.make.in (have-cpp-asm-debuginfo): Removed.
14578         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
14579         * configure: Regenerated.
14580
14581 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
14582
14583         [BZ #5044]
14584         * stdio-common/printf_fp.c: Include <stdbool.h> and
14585         <rounding-mode.h>.
14586         (___printf_fp): Determine rounding using get_rounding_mode and
14587         round_away.
14588         * stdio-common/tst-printf-round.c: New file.
14589         * stdio-common/Makefile (tests): Add tst-printf-round.
14590         (link-libm): New variable.
14591         ($(objpfx)tst-printf-round): Depend in $(link-libm).
14592
14593 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
14594
14595         [BZ #14576]
14596         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
14597         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
14598         Likewise.
14599         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
14600         Likewise.
14601
14602 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
14603
14604         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
14605         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14606         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14607         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
14608
14609 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
14610
14611         [BZ #14518]
14612         * include/rounding-mode.h: New file.
14613         * sysdeps/generic/get-rounding-mode.h: Likewise.
14614         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
14615         * stdlib/strtod_l.c: Include <rounding-mode.h>.
14616         (MAX_VALUE): New macro.
14617         (MIN_VALUE): Likewise.
14618         (overflow_value): New function.
14619         (underflow_value): Likewise.
14620         (round_and_return): Use overflow_value and underflow_value to
14621         determine return values in overflow and underflow cases.  Use
14622         round_away to determine rounding depending on rounding mode.
14623         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
14624         determine return values in overflow and underflow cases.
14625         * stdlib/tst-strtod-round.c: Include <fenv.h>.
14626         (struct test_results): New structure.
14627         (struct test): Use struct test_results to store expected results
14628         for all rounding modes.
14629         (TEST): Include expected results for all rounding modes.
14630         (test_in_one_mode): New function.
14631         (do_test): Use test_in_one_mode to compute and check results.
14632         Check results for all rounding modes.
14633         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
14634         $(link-libm).
14635
14636 2012-12-09  Allan McRae  <allan@archlinux.org>
14637
14638         * sysdeps/i386/fpu/libm-test-ulps: Update
14639
14640 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
14641
14642         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
14643         (_G_int32_t): Likewise.
14644         (_G_uint16_t): Likewise.
14645         (_G_uint32_t): Likewise.
14646         (_G_HAVE_BOOL): Likewise.
14647         (_G_HAVE_ATEXIT): Likewise.
14648         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14649         (_G_HAVE_IO_FILE_OPEN): Likewise.
14650         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
14651         (_G_int32_t): Likewise.
14652         (_G_uint16_t): Likewise.
14653         (_G_uint32_t): Likewise.
14654         (_G_HAVE_BOOL): Likewise.
14655         (_G_HAVE_ATEXIT): Likewise.
14656         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14657         (_G_HAVE_IO_FILE_OPEN): Likewise.
14658         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
14659         (_G_int32_t): Likewise.
14660         (_G_uint16_t): Likewise.
14661         (_G_uint32_t): Likewise.
14662         (_G_HAVE_BOOL): Likewise.
14663         (_G_HAVE_ATEXIT): Likewise.
14664         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
14665         (_G_HAVE_IO_FILE_OPEN): Likewise.
14666
14667 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
14668
14669         * csu/libc-tls.c: Update copyright years.
14670
14671 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
14672
14673         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
14674         [!_G_USING_THUNKS]: Remove conditional code.
14675         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
14676         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
14677
14678         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
14679         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
14680         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14681         (_G_VTABLE_LABEL_PREFIX): Likewise.
14682         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14683         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14684         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14685         (_G_VTABLE_LABEL_PREFIX): Likewise.
14686         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
14687         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
14688         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
14689         (_G_VTABLE_LABEL_PREFIX): Likewise.
14690         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
14691
14692 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
14693
14694         * libio/Makefile: Include ../Makeconfig before tests.
14695         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
14696         only if $(build-shared) is yes.
14697
14698         * iconv/gconv_db.c: Update copyright years.
14699
14700 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14701
14702         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
14703         unwind info if defined PIC. Fix special cases description.
14704         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
14705
14706         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
14707         DP_HI_MASK entry.
14708         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
14709
14710 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
14711
14712         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
14713
14714         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
14715         is NULL.
14716
14717         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
14718         (LDLIBS-tst-chk4): This.
14719         (LDFLAGS-tst-chk5): Renamed to ...
14720         (LDLIBS-tst-chk5): This.
14721         (LDFLAGS-tst-chk6): Renamed to ...
14722         (LDLIBS-tst-chk6): This.
14723         (LDFLAGS-tst-lfschk4): Renamed to ...
14724         (LDLIBS-tst-lfschk4): This.
14725         (LDFLAGS-tst-lfschk5): Renamed to ...
14726         (LDLIBS-tst-lfschk5): This.
14727         (LDFLAGS-tst-lfschk6): Renamed to ...
14728         (LDLIBS-tst-lfschk6): This.
14729
14730         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
14731         on $(common-objpfx)soversions.mk.
14732
14733 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
14734
14735         [BZ #10014]
14736         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
14737         example host name.
14738
14739 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
14740
14741         * malloc/arena.c (arena_get_retry): New function that gets
14742         another arena for the caller to try its request on.
14743         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
14744         current arena cannot fulfill the request.
14745         (__libc_memalign): Likewise.
14746         (__libc_memalign): Likewise.
14747         (__libc_pvalloc): Likewise.
14748         (__libc_calloc): Likewise.
14749
14750 2012-09-05  John Tobey  <john.tobey@gmail.com>
14751
14752         [BZ #13542]
14753         * manual/arith.texi (Operations on Complex): Fix description
14754         of carg branch cut.
14755
14756 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
14757
14758         [BZ #10014]
14759         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
14760         host name.
14761
14762         [BZ #10038]
14763         * manual/memory.texi (Memory): Make order of menu items match
14764         order of sections.
14765
14766 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14767
14768         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
14769         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
14770         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
14771
14772 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14773
14774         * csu/libc-tls.c (static_dtv): Renamed to ...
14775         (_dl_static_dtv): This.  Make it global.
14776         (_dl_initial_dtv): Removed.
14777         (__libc_setup_tls): Updated.
14778         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
14779         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
14780         DL_INITIAL_DTV.
14781
14782 2012-09-06  Petr Machata  <pmachata@redhat.com>
14783
14784         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
14785         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
14786         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
14787         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
14788
14789 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14790
14791         [BZ #14545]
14792         * csu/libc-tls.c (_dl_initial_dtv): New variable.
14793         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
14794         freeing dtv[-1].
14795
14796 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14797
14798         [BZ #14544]
14799         * Makeconfig (link-static-before-libc): Replace $(+prector)
14800         with $(+prectorT).
14801         (link-static-after-libc): Replace $(+postctor) with
14802         $(+postctorT).
14803         (link-bounded): Replace $(+prector)/$(+postctor) with
14804         $(+prectorT)/$(+postctorT).
14805         (+prectorT): New macro.
14806         (+postctorT): Likewise.
14807
14808 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
14809
14810         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
14811         (round_str): Handle values above the maximum for IBM long double
14812         as inexact.
14813         * stdlib/tst-strtod-round.c (tests): Regenerated.
14814
14815 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14816
14817         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
14818         assembler flag.
14819         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
14820         zarch_nohighgprs around the zarch optimized routines.
14821         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
14822         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
14823         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
14824         for zarch.
14825
14826 2012-09-05  David S. Miller  <davem@davemloft.net>
14827
14828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14829
14830         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
14831         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
14832         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
14833         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
14834         entries.
14835
14836 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14837
14838         * malloc/arena.c: Fold copyright years.
14839         * malloc/mcheck.c, malloc/memusage.c: Likewise.
14840
14841 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14842
14843         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
14844
14845 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14846
14847         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
14848
14849 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14850
14851         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
14852         change internal state upon failure.
14853
14854 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14855
14856         * malloc/mcheck.c (mcheck_check_all): Fix typo.
14857         * malloc/memusage.c (mmap): Likewise.
14858         (mmap64, mremap): Likewise.  Adjust name in comment.
14859
14860 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14861
14862         * libio/fileops.c: Fix typos in comments.
14863         * libio/oldfileops.c: Likewise.
14864         * libio/wfileops.c: Likewise.
14865
14866 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14867
14868         [BZ #1349]
14869         * malloc/Makefile (tests): Add tst-malloc-usable test case.
14870         (tst-malloc-usable-ENV): Set environment for test case.
14871         * malloc/hooks.c (malloc_check_get_size): New function to get
14872         requested size.
14873         * malloc/malloc.c (musable): Use malloc_check_get_size.
14874         * malloc/tst-malloc-usable.c: New test case.
14875
14876 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14877
14878         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
14879
14880 2012-09-05  Allan McRae  <allan@archlinux.org>
14881
14882         [BZ #13966]
14883         * configure.in (CXX_SYSINCLUDES): Use compiler output to
14884         determine header location.
14885         * configure: Regenerated.
14886
14887 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14888
14889         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
14890         float format.
14891         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
14892         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
14893         format.
14894         (test): Regenerate.
14895
14896 2012-09-04  David S. Miller  <davem@davemloft.net>
14897
14898         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
14899         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
14900         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
14901
14902 2012-09-04  Florian Weimer  <fweimer@redhat.com>
14903
14904         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
14905         failures.
14906
14907         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
14908
14909 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
14910
14911         [BZ #9914]
14912         * libio/iogetdelim.c: Include <limits.h>.
14913         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
14914         + len + 1 would overflow.
14915
14916 2012-09-03  Andreas Jaeger  <aj@suse.de>
14917
14918         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14919         * sysdeps/i386/fpu/libm-test-ulps: Update.
14920
14921 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14922
14923         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
14924         Add s_sinf-sse2, s_conf-sse2.
14925
14926         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
14927         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
14928         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
14929         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
14930
14931         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
14932         for using routine as __sinf_ia32.
14933         Use macro for function declaration and weak_alias.
14934         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
14935         for using routine as __cosf_ia32.
14936         Use macro for function declaration and weak_alias.
14937
14938         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
14939         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
14940
14941         * sysdeps/x86_64/fpu/s_sinf.S: New file.
14942         * sysdeps/x86_64/fpu/s_cosf.S: New file.
14943         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14944
14945         * math/libm-test.inc (cos_test): Add more test cases.
14946         (sin_test): Likewise.
14947         (sincos_test): Likewise.
14948
14949 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14950
14951         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
14952         (IFUNC_RESOLVE): Make pointers to the specialized implementations
14953         hidden.
14954         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
14955
14956 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
14957
14958         [BZ #14538]
14959         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
14960         first element of the GOT.
14961         (elf_machine_load_address): Return the difference between
14962         the runtime address of _DYNAMIC and elf_machine_dynamic ().
14963
14964 2012-09-01  Allan McRae  <allan@archlinux.org>
14965
14966         [BZ #13412]
14967         * configure.in (AWK): Require gawk version 3.0 or later.
14968         * configure: Regenerated.
14969
14970 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
14971
14972         * sysdeps/unix/sysv/linux/kernel-features.h
14973         (__ASSUME_POSIX_CPU_TIMERS): Remove.
14974         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
14975         [__NR_clock_getres]: Make code unconditional.
14976         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
14977         (clock_getcpuclockid): Remove code left unreachable by removal of
14978         conditionals.
14979         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
14980         code unconditional.
14981         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
14982         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
14983         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
14984         Make code unconditional.
14985         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
14986         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
14987         * sysdeps/unix/sysv/linux/clock_settime.c
14988         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
14989         conditional code.
14990         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
14991         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
14992
14993 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
14994
14995         [BZ #14476]
14996         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
14997         scripts/test-installation.pl.
14998
14999         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
15000         and $ld_so_version if it is set.
15001
15002 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15003
15004         [BZ #14516]
15005         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
15006         failure if reading from procfs failed.
15007         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
15008
15009 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15010
15011         * sysdeps/unix/sysv/linux/kernel-features.h
15012         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
15013         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15014         Remove conditional code.
15015         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15016         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
15017         Remove conditional code.
15018         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15019         * sysdeps/unix/sysv/linux/i386/fxstat.c
15020         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15021         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15022         * sysdeps/unix/sysv/linux/i386/fxstatat.c
15023         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15024         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15025         * sysdeps/unix/sysv/linux/i386/lxstat.c
15026         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15027         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15028         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
15029         Remove conditional code.
15030         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15031         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15032         Remove conditional code.
15033         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15034         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
15035         <kernel-features.h>.
15036         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
15037         Remove.
15038         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
15039         Remove conditional code.
15040         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15041         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
15042         Remove conditional.
15043
15044 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
15045
15046         [BZ #5400]
15047         * NEWS: Add fixed bug number.
15048
15049 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15050
15051         [BZ #14519]
15052         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
15053         underflowing exponent in case of negative sign.
15054         * stdlib/tst-strtod-round-data: Add more tests.
15055         * stdlib/tst-strtod-round.c (tests): Regenerated.
15056
15057         [BZ #3479]
15058         * stdlib/strtod_l.c (NDIG): Remove.
15059         (HEXNDIG): Likewise.
15060         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
15061         smallest representable value.
15062         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
15063         lie within an exact representation of 1/2 ulp of the result.
15064         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
15065         unconditionally.
15066         (TENS_P9_IDX): Define unconditionally.
15067         (TENS_P9_SIZE): Likewise.
15068         (TENS_P10_IDX): Likewise.
15069         (TENS_P10_SIZE): Likewise.
15070         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
15071         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
15072         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
15073         entries for 10^2^13 and 10^2^14.
15074         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
15075         (TENS_P13_IDX): Define.
15076         (TENS_P13_SIZE): Likewise.
15077         (TENS_P14_IDX): Likewise.
15078         (TENS_P14_SIZE): Likewise.
15079         (_fpioconst_pow10): Change array size to
15080         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
15081         unconditional.
15082         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
15083         1024]: Add entries for 10^2^13 and 10^2^14.
15084         [LAST_POW10 > _LAST_POW10]: Remove #error.
15085         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
15086         (_fpioconst_pow10): Change array size to
15087         FPIOCONST_POW10_ARRAY_SIZE.
15088         * stdlib/gen-fpioconst.c: New file.
15089         * stdlib/gen-tst-strtod-round.c: Likewise.
15090         * stdlib/tst-strtod-round-data: Likewise.
15091         * stdlib/tst-strtod-round.c: Likewise.
15092         * stdlib/Makefile (tests): Add tst-strtod-round.
15093
15094         [BZ #14459]
15095         * stdlib/strtod_l.c: Include <stdint.h>.
15096         (NDEBUG): Do not define.
15097         (round_and_return): Change EXPONENT parameter to type intmax_t.
15098         Rearrange calculations to avoid internal overflow possibilities.
15099         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
15100         Rearrange calculations to avoid internal overflow possibilities.
15101         Assert that number fits inside MPNSIZE limbs.
15102         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
15103         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
15104         calculations and add assertions to avoid internal overflow
15105         possibilities.  Add casts to avoid signed/unsigned operations.
15106         * stdlib/tst-strtod-overflow.c: New file.
15107         * stdlib/Makefile (tests): Add tst-strtod-overflow.
15108
15109 2012-08-25  Marek Polacek  <polacek@redhat.com>
15110
15111         * time/time.h: Fix some typos in comments.
15112
15113 2012-08-23  Roland McGrath  <roland@hack.frob.com>
15114
15115         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
15116         * posix/tst-rfc3484-2.c: Likewise.
15117         * posix/tst-rfc3484-3.c: Likewise.
15118
15119 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
15120
15121         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
15122         (EF_ARM_ABI_FLOAT_HARD): Likewise.
15123
15124 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
15125
15126         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
15127         #include of fxstatat64.c.
15128
15129 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15130
15131         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
15132         * shadow/getspent_r.c: Likewise.
15133         * shadow/getspnam.c: Likewise.
15134         * shadow/getspnam_r.c: Likewise.
15135         * gshadow/getsgent.c: Likewise.
15136         * gshadow/getsgent_r.c: Likewise.
15137         * gshadow/getsgnam.c: Likewise.
15138         * gshadow/getsgnam_r.c: Likewise.
15139         * inet/getnetbyad.c: Likewise.
15140         * inet/getnetbyad_r.c: Likewise.
15141         * inet/getnetbynm.c: Likewise.
15142         * inet/getnetbynm_r.c: Likewise.
15143         * inet/getnetent.c: Likewise.
15144         * inet/getnetent_r.c: Likewise.
15145         * inet/getproto.c: Likewise.
15146         * inet/getproto_r.c: Likewise.
15147         * inet/getprtent.c: Likewise.
15148         * inet/getprtent_r.c: Likewise.
15149         * inet/getprtname.c: Likewise.
15150         * inet/getprtname_r.c: Likewise.
15151         * inet/getrpcbyname.c: Likewise.
15152         * inet/getrpcbyname_r.c: Likewise.
15153         * inet/getrpcbynumber.c: Likewise.
15154         * inet/getrpcbynumber_r.c: Likewise.
15155         * inet/getrpcent.c: Likewise.
15156         * inet/getrpcent_r.c: Likewise.
15157         * inet/getaliasent.c: Likewise.
15158         * inet/getaliasent_r.c: Likewise.
15159         * inet/getaliasname.c: Likewise.
15160         * inet/getaliasname_r.c: Likewise.
15161         * nscd/getgrgid_r.c: Likewise.
15162         * nscd/getgrnam_r.c: Likewise.
15163         * nscd/gethstbyad_r.c: Likewise.
15164         * nscd/gethstbynm3_r.c: Likewise.
15165         * nscd/getpwnam_r.c: Likewise.
15166         * nscd/getpwuid_r.c: Likewise.
15167         * nscd/getsrvbynm_r.c: Likewise.
15168         * nscd/getsrvbypt_r.c: Likewise.
15169         * nscd/gai.c: Likewise.
15170
15171         * configure.in (build_nscd): New substituted variable, set
15172         by --disable-build-nscd and defaults to $use_nscd.
15173         * configure: Regenerated.
15174         * config.make.in (build-nscd): New substituted variable.
15175         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
15176         Change conditional to require [$(build-nscd) = yes] as well.
15177         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
15178
15179         [BZ# 13696]
15180         * configure.in (use_nscd): New substituted variable, set by
15181         --disable-nscd.  If enabled, define USE_NSCD.
15182         * configure: Regenerated.
15183         * config.h.in: Add USE_NSCD.
15184         * config.make.in (use-nscd): New substituted variable.
15185         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15186         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
15187         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
15188         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
15189         (CFLAGS-getgrnam_r.c): Likewise.
15190         (CFLAGS-initgroups.c): Likewise.
15191         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
15192         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
15193         Variables removed.
15194         * inet/getnetgrent_r.c
15195         (nscd_setnetgrent): New function, broken out of ...
15196         (setnetgrent): ... here.  Call it.
15197         (innetgr): Conditionalize nscd bits on [USE_NSCD].
15198         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
15199         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
15200         * nscd/Makefile (routines, aux): Move definitions after include of
15201         Makeconfig.  Conditionalize on [$(use-nscd) != no].
15202         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
15203         Conditionalize on [USE_NSCD].
15204         (is_nscd, nscd_init_cb): Likewise.
15205         (nss_load_library): Conditionalize init callback on [USE_NSCD].
15206         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
15207         * nss/nss_db/db-init.c: Likewise.
15208         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
15209         [USE_NSCD].
15210         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
15211         (make_request): Use it.
15212         (cache_valid_p): New function.
15213         (__check_pf): Use it.
15214         * NEWS: Add item for --disable-nscd.
15215
15216 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
15217
15218         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
15219         to support sed >= 4.2.1-20-ga9bf076.
15220         * configure: Regenerated.
15221
15222 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15223
15224         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
15225         Conditionalize whole body on [IREL].
15226
15227 2012-08-22  Jeff Law <law@redhat.com>
15228
15229         [BZ #14505]
15230         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
15231         if the family is PF_UNSPEC.
15232
15233 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
15234
15235         * Makerules (lib-version): Rename from V.
15236         (install-lib-nosubdir): Change V to lib-version.
15237
15238 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
15239
15240         [BZ #14252]
15241         * powerpc32/power6/wcschr.c: New file.
15242         * powerpc32/power6/wcscpy.c: New file.
15243         * powerpc32/power6/wcsrchr.c: New file.
15244         * powerpc64/power6/wcschr.c: New file.
15245         * powerpc64/power6/wcscpy.c: New file.
15246         * powerpc64/power6/wcsrchr.c: New file.
15247
15248 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15249
15250         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
15251         (two_way_short_needle): Use it.
15252         * string/strstr.c (AVAILABLE1_USES_J): Define.
15253         * string/strcasestr.c: Likewise.
15254
15255         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
15256         array references.
15257         * string/strcasestr.c (TOLOWER): Make side-effect safe.
15258
15259         [BZ #11607]
15260         * NEWS: Add an entry.
15261         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
15262         define their defaults.
15263         (two_way_short_needle): Detect end-of-string on-the-fly.
15264         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
15265         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
15266         * string/bug-strcasestr1.c: New test.
15267         * string/Makefile: Run it.
15268
15269 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
15270
15271         [BZ #11607]
15272         * string/str-two-way.h (two_way_short_needle): Optimize matching of
15273         the first character.
15274
15275 2012-08-21  Roland McGrath  <roland@hack.frob.com>
15276
15277         * csu/elf-init.c (__libc_csu_irel): Function removed.
15278         * csu/libc-start.c (apply_irel): New function.
15279         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
15280
15281 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
15282
15283         * sysdeps/unix/sysv/linux/kernel-features.h
15284         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
15285         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
15286         <kernel-features.h>.
15287         [__NR_fadvise64_64]: Make code unconditional.
15288         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
15289         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
15290         !__NR_fadvise64_64)]: Likewise.
15291         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
15292         !__NR_fadvise64_64))]: Likewise.
15293         [__NR_fadvise64]: Make code unconditional.
15294         [!__NR_fadvise64]: Remove conditional code.
15295         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
15296         <kernel-features.h>.
15297         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15298         unconditional.
15299         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15300         conditional code.
15301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
15302         not include <kernel-features.h>.
15303         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15304         unconditional.
15305         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15306         conditional code.
15307         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
15308         include <kernel-features.h>.
15309         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
15310         unconditional.
15311         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
15312         conditional code.
15313
15314 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15315
15316         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
15317         slight instruction rearrangements per scrollpipe analysis.
15318         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
15319
15320 2012-08-20  Roland McGrath  <roland@hack.frob.com>
15321
15322         * manual/syslog.texi (syslog; vsyslog, closelog):
15323         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
15324         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
15325
15326         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
15327         DSOCAPS to match condition on defining it.
15328
15329 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
15330
15331         * sysdeps/unix/sysv/linux/kernel-features.h
15332         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
15333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
15334         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15335         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
15337         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15338         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
15340         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
15341         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
15342
15343         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
15344         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
15345
15346         * sysdeps/unix/sysv/linux/kernel-features.h
15347         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
15348         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
15349         unconditional.
15350         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15351         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
15352         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
15353         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15354         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
15355         Make code unconditional.
15356         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15357         (__mmap64) [!__NR_mmap2]: Likewise.
15358         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
15359         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
15360         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15361         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
15362         [__NR_mmap2]: Make code unconditional.
15363         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
15364         (__mmap64) [!__NR_mmap2]: Likewise.
15365
15366 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15367
15368         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
15369
15370 2012-08-18  Andreas Jaeger  <aj@suse.de>
15371
15372         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
15373
15374 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
15375
15376         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
15377         * include/unistd.h (__have_sock_cloexec): Likewise.
15378         (__have_pipe2): Likewise.
15379         (__have_dup3): Likewise.
15380
15381 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
15382
15383         [BZ #9685]
15384         * include/unistd.h (__have_pipe2): Change define into an extern int.
15385         (__have_dup3): Likewise.
15386         * socket/have_sock_cloexec.c: Include fcntl.h.
15387         (__have_pipe2): New variable.
15388         (__have_dup3): Likewise.
15389
15390 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
15391
15392         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
15393
15394 2012-08-17  Marek Polacek  <polacek@redhat.com>
15395
15396         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
15397         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
15398
15399 2012-08-17  Roland McGrath  <roland@hack.frob.com>
15400
15401         * configure.in: Add AC_SUBST for sysheaders.
15402         * configure: Regenerated.
15403         * config.make.in (sysheaders): New substituted variable.
15404
15405         * sysdeps/unix/mkfifo.c: Moved ...
15406         * sysdeps/posix/mkfifo.c: ... here.
15407         * sysdeps/unix/mkfifoat.c: Moved ...
15408         * sysdeps/posix/mkfifoat.c: ... here.
15409
15410         * sysdeps/unix/utime.c: Moved ...
15411         * sysdeps/posix/utime.c: ... here.
15412
15413         * sysdeps/unix/time.c: Moved ...
15414         * sysdeps/posix/time.c: ... here.
15415         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
15416         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
15417
15418         * sysdeps/unix/nice.c: Moved ...
15419         * sysdeps/posix/nice.c: ... here.
15420
15421         * sysdeps/unix/alarm.c: Moved ...
15422         * sysdeps/posix/alarm.c: ... here.
15423
15424         * intl/Makefile ($(codeset_mo)): Depend on the input file.
15425
15426 2012-08-17  Jeff Law <law@redhat.com>
15427
15428         * intl/Makefile (codeset_mo): New variable.
15429         ($(codeset_mo)): New target.
15430         (tst-codeset.out): Depend on that.  Remove explicit rule.
15431         (tst-gettext3.out, tst-gettext5.out): Likewise.
15432         (LOCPATH-ENV, tst-codeset-ENV): New variables.
15433         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
15434         * intl/tst-codeset.sh: Remove.
15435         * intl/tst-gettext3.sh: Likewise.
15436         * intl/tst-gettext5.sh: Likewise.
15437
15438 2012-08-17  Roland McGrath  <roland@hack.frob.com>
15439
15440         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
15441         * sysdeps/unix/syscalls.list: ... here.
15442
15443         * sysdeps/posix/getaddrinfo.c
15444         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
15445         (gaiconf_init, gaiconf_reload): Use them.
15446         [!_STATBUF_ST_NSEC]
15447         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
15448         Define using time_t rather than struct timespec.
15449
15450         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
15451         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
15452         Macros removed.
15453         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
15454         [!NO_THREADS].
15455         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
15456         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
15457         Likewise.
15458
15459         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
15460         __libc_cleanup_push argument.
15461
15462         * bits/param.h: New file.
15463         * misc/sys/param.h: New file.
15464         * include/sys/param.h: New file.
15465         * misc/Makefile (headers): Add bits/param.h.
15466         * sysdeps/generic/sys/param.h: File removed.
15467         * sysdeps/unix/sysv/linux/bits/param.h: New file.
15468         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
15469         * sysdeps/mach/hurd/bits/param.h: New file.
15470         * sysdeps/mach/hurd/sys/param.h: File removed.
15471
15472         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
15473         last change.
15474
15475         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
15476         [_IO_MTSAFE_IO].
15477         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
15478         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
15479         New macros.
15480
15481         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
15482         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
15483         rather than -D_IO_MTSAFE_IO conditionally.
15484         * stdio-common/Makefile (CPPFLAGS): Likewise.
15485         * wcsmbs/Makefile (CPPFLAGS): Likewise.
15486         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
15487         Use $(libio-mtsafe).
15488         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
15489         of -D_IO_MTSAFE_IO.
15490         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
15491         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
15492         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
15493         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
15494         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
15495         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
15496         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
15497         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
15498         (CFLAGS-fread_u_chk.c): Likewise.
15499         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
15500         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
15501         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
15502         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
15503         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
15504         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
15505         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
15506         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
15507         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
15508
15509         * libio/Makefile: Test [$(libc-reentrant) = yes]
15510         instead of [$(filter %REENTRANT, $(defines)) nonempty].
15511
15512         * Makeconfig
15513         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
15514         * sysdeps/pthread/configure: File removed.
15515         * sysdeps/pthread/Makeconfig: New file.
15516         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
15517         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
15518
15519 2012-08-16  Gary Benson  <gbenson@redhat.com>
15520
15521         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
15522         unmapping the first object in a namespace.
15523
15524 2012-08-16  Roland McGrath  <roland@hack.frob.com>
15525
15526         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
15527         (__internal_setnetgrent): ... this.  Add internal_function to
15528         definition.  Add libc_hidden_def.
15529         (setnetgrent): Update caller.
15530         (internal_endnetgrent): Renamed to ...
15531         (__internal_endnetgrent): ... this.  Add internal_function to
15532         definition.  Add libc_hidden_def.
15533         (endnetgrent): Update caller.
15534         (internal_getnetgrent_r): Renamed to ...
15535         (__internal_getnetgrent_r): ... this.  Add internal_function to
15536         definition.  Add libc_hidden_def.
15537         (__getnetgrent_r): Update caller.
15538         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
15539
15540 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
15541
15542         * stdlib/longlong.h: Update from GCC.
15543
15544 2012-08-16  Roland McGrath  <roland@hack.frob.com>
15545
15546         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
15547         on _QL, which is set by umul_ppmm but never used.
15548         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
15549         variables, which are set by GMP macros but never used.
15550         * stdio-common/_itowa.c (_itowa): Likewise.
15551         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
15552         * stdlib/mod_1.c (mpn_mod_1): Likewise.
15553
15554 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
15555
15556         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
15557         struct La_sh_regs is not constant.
15558         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
15559         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
15560         and struct La_sparc64_regs are not constant.
15561
15562 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
15563
15564         * sysdeps/unix/sysv/linux/kernel-features.h
15565         (__ASSUME_POSIX_TIMERS): Remove.
15566         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15567         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15568         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
15569         Make code unconditional.
15570         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15571         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
15572         Make code unconditional.
15573         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15574         * sysdeps/unix/sysv/linux/clock_nanosleep.c
15575         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
15576         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15577         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
15578         Make code unconditional.
15579         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
15580         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
15581         (__libc_missing_posix_timers): Remove.
15582
15583 2012-08-15  Roland McGrath  <roland@hack.frob.com>
15584
15585         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
15586         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
15587
15588         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
15589
15590         * elf/dl-sym.c: Include <stdlib.h>.
15591
15592         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
15593         constants, which avoids warnings in 32-bit builds.
15594
15595         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
15596         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
15597
15598         * misc/lseek.c: File moved to ...
15599         * io/lseek.c: ... here.
15600
15601         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
15602
15603         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
15604         shifting LEN more than 31 bits at once.
15605
15606 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15607
15608         [BZ #14195]
15609         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
15610         segmentation fault for a case of two empty input strings.
15611         * string/test-strncasecmp.c (check1): Renamed to...
15612         (bz12205): ...this.
15613         (bz14195): Add new testcase for two empty input strings and N > 0.
15614         (test_main): Call new testcase, adapt for renamed function.
15615
15616 2012-08-15  Andreas Jaeger  <aj@suse.de>
15617
15618         [BZ #14090]
15619         * crypt/md5test2.c: New test, based on test supplied by Serge
15620         Belyshev <belyshev@depni.sinp.msu.ru>.
15621         * crypt/Makefile (xtests): Add md5test-giant..
15622         * crypt/Makefile ($(objpfx)md5test-giant): Add.
15623
15624 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15625
15626         [BZ #14090]
15627         * crypt/md5.c (md5_process_block): Don't assume the buffer
15628         length is less than 2**32.
15629         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
15630         length is less than 2**64.
15631
15632 2012-08-15  Roland McGrath  <roland@hack.frob.com>
15633
15634         * string/str-two-way.h: Include <sys/param.h>.
15635         (MAX): Macro removed.
15636
15637         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
15638         Move #define and #undef of memmove to just before and after
15639         including <string.h>.
15640
15641         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
15642         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
15643         and after including <string.h>.  Move declarations of
15644         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
15645         to before #include "string/memmove.c".
15646
15647         * include/dirent.h: Declare __getdirentries.
15648
15649         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
15650         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
15651
15652 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
15653
15654         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
15655         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
15656         * sysdeps/i386/configure: Regenerated.
15657         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
15658         STABS_CURRENT_FILE, and STABS_FUN.
15659         (END): Remove call to STABS_FUN_END.
15660         (STABS_CURRENT_FILE1): Delete.
15661         (STABS_CURRENT_FILE): Likewise.
15662         (STABS_FUN): Likewise.
15663         (STABS_FUN_END): Likewise.
15664         (STABS_FUN2): Likewise.
15665         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
15666         * sysdeps/x86_64/configure: Regenerated.
15667
15668 2012-08-14  Roland McGrath  <roland@hack.frob.com>
15669
15670         * elf/dl-open.c: Include <atomic.h>.
15671         * elf/dl-lookup.c: Likewise.
15672
15673 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
15674
15675         * sysdeps/unix/sysv/linux/kernel-features.h
15676         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
15677         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
15678         unconditionally.
15679         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
15680         unconditionally.
15681         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
15682         condition on __ASSUME_CLONE_THREAD_FLAGS.
15683
15684 2012-08-14  Andreas Jaeger  <aj@suse.de>
15685
15686         * sysdeps/i386/fpu/libm-test-ulps: Update.
15687
15688 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
15689
15690         * include/atomic.h (atomic_exchange_and_add): Split into ...
15691         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
15692         New atomic macros.
15693
15694 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
15695
15696         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15697
15698 2012-08-13  Jeff Law <law@redhat.com>
15699
15700         * manual/stdio.texi (snprintf): Clarify handling of the trailing
15701         null byte in the output string.
15702
15703 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
15704
15705         * sysdeps/unix/sysv/linux/kernel-features.h
15706         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
15707         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
15708         (__ASSUME_ARG_MAX_STACK_BASED): Define.
15709         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
15710         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
15711         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
15712         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
15713
15714 2012-08-09  Jeff Law <law@redhat.com>
15715
15716         [BZ #13939]
15717         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
15718         When avoid_arena is set, don't retry in the that arena.  Pick the
15719         next one, whatever it might be.
15720         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
15721         (arena_lock): Pass in new parameter to arena_get2.
15722         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
15723         arena_get2.
15724         (__libc_malloc): Unify retrying after main arena failure with
15725         __libc_memalign version.
15726         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
15727
15728 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15729
15730         [BZ #14166]
15731         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
15732         to __redirect_strstr.
15733         (__strstr_sse42): Use typeof __redirect_strstr.
15734         (__strstr_ia32): Likewise.
15735         (__libc_strstr): New prototype.
15736         (strstr): Renamed to ...
15737         (__libc_strstr): This.
15738         (strstr): New strong alias of __libc_strstr.
15739         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
15740         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
15741         __redirect_time.
15742         Include <time.h>.
15743         (__libc_time): New prototype.
15744         (time_ifunc): Replace time with __libc_time.
15745         (time): New strong alias and hidden definition of __libc_time.
15746         (__GI_time): Remove strong alias.
15747         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
15748         Include <stddef.h>.
15749         (memmove): Redefined to __redirect_memmove.
15750         (__memmove_sse2): Use typeof __redirect_memmove.
15751         (__memmove_ssse3): Likewise.
15752         (__memmove_ssse3_back): Likewise.
15753         (__libc_memmove): New prototype.
15754         (memmove): Renamed to ...
15755         (__libc_memmove): This.
15756         (memmove): New strong alias of __libc_memmove.
15757
15758 2012-08-08  Mark Salter  <msalter@redhat.com>
15759
15760         * elf/elf.h
15761         (R_MN10300_TLS_GD): Define.
15762         (R_MN10300_TLS_LD): Likewise.
15763         (R_MN10300_TLS_LDO): Likewise.
15764         (R_MN10300_TLS_GOTIE): Likewise.
15765         (R_MN10300_TLS_IE): Likewise.
15766         (R_MN10300_TLS_LE): Likewise.
15767         (R_MN10300_TLS_DTPMOD): Likewise.
15768         (R_MN10300_TLS_DTPOFF): Likewise.
15769         (R_MN10300_TLS_TPOFF): Likewise.
15770         (R_MN10300_SYM_DIFF): Likewise.
15771         (R_MN10300_ALIGN): Likewise.
15772         (R_MN10300_NUM): Update.
15773
15774 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
15775
15776         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
15777         Remove.
15778
15779 2012-08-08  Roland McGrath  <roland@hack.frob.com>
15780
15781         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
15782
15783         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
15784         sysdeps/unix -> sysdeps/posix move.
15785         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15786
15787 2012-08-07      Allan McRae     <allan@archlinux.org>
15788
15789         [BZ #14303]
15790         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
15791         (SUNOS_CPP): Likewise.
15792         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
15793         not found.
15794         (open_input): Call CPP using execvp.
15795
15796 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
15797
15798         * sysdeps/unix/sysv/linux/kernel-features.h
15799         (__ASSUME_PROT_GROWSUPDOWN): Remove.
15800         (__ASSUME_NO_CLONE_DETACHED): Likewise.
15801         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
15802         (__ASSUME_WAITID_SYSCALL): Likewise.
15803         * sysdeps/unix/sysv/linux/dl-execstack.c
15804         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
15805         code unconditional.
15806         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
15807         conditional code.
15808         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
15809         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
15810         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
15811         code.
15812         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
15813         unconditional.
15814         [__ASSUME_WAITID_SYSCALL]: Likewise.
15815         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
15816
15817 2012-08-07  Roland McGrath  <roland@hack.frob.com>
15818
15819         * sysdeps/unix/closedir.c: Renamed to ...
15820         * sysdeps/posix/closedir.c: ... here.
15821         * sysdeps/unix/dirfd.c: Renamed to ...
15822         * sysdeps/posix/dirfd.c: ... here.
15823         * sysdeps/unix/dirstream.h: Renamed to ...
15824         * sysdeps/posix/dirstream.h: ... here.
15825         * sysdeps/unix/fdopendir.c: Renamed to ...
15826         * sysdeps/posix/fdopendir.c: ... here.
15827         * sysdeps/unix/opendir.c: Renamed to ...
15828         * sysdeps/posix/opendir.c: ... here.
15829         * sysdeps/unix/readdir.c: Renamed to ...
15830         * sysdeps/posix/readdir.c: ... here.
15831         * sysdeps/unix/readdir_r.c: Renamed to ...
15832         * sysdeps/posix/readdir_r.c: ... here.
15833         * sysdeps/unix/rewinddir.c: Renamed to ...
15834         * sysdeps/posix/rewinddir.c: ... here.
15835         * sysdeps/unix/seekdir.c: Renamed to ...
15836         * sysdeps/posix/seekdir.c: ... here.
15837         * sysdeps/unix/telldir.c: Renamed to ...
15838         * sysdeps/posix/telldir.c: ... here.
15839         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
15840         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
15841         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15842         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15843
15844         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
15845         * bits/fcntl.h: ... here.
15846
15847         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
15848         not 0.
15849         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
15850         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
15851         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
15852         (struct flock): Move l_start, l_len to the beginning.
15853         Use __pid_t for l_pid.
15854         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
15855         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
15856         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
15857         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
15858         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
15859         [__USE_LARGEFILE64] (struct flock64): New type.
15860         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
15861
15862         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
15863         * bits/dirent.h: ... here.
15864
15865         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
15866         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
15867
15868 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
15869
15870         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
15871         Change from 2.6.0 to 2.6.16.
15872         * sysdeps/unix/sysv/linux/configure: Regenerated.
15873         * sysdeps/unix/sysv/linux/kernel-features.h
15874         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
15875         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
15876         version.
15877         (__ASSUME_UTIMES): Likewise.
15878         (__ASSUME_CLONE_STOPPED): Remove.
15879         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
15880         architectures, not kernel version.
15881         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
15882         (__ASSUME_NO_CLONE_DETACHED): Likewise.
15883         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
15884         (__ASSUME_WAITID_SYSCALL): Likewise.
15885         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
15886         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
15887         * README: State 2.6.16 as minimum Linux kernel version.  Do not
15888         refer to older versions.
15889
15890 2012-08-06  Roland McGrath  <roland@hack.frob.com>
15891
15892         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
15893         Define alphasort64 as an alias.
15894         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
15895         Define versionsort64 as an alias.
15896         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
15897         Define scandir64 as an alias.
15898         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
15899         Define scandirat64 as an alias.
15900         * dirent/alphasort64.c (alphasort64):
15901         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
15902         * dirent/versionsort64.c: Likewise.
15903         * dirent/scandir64.c: Likewise.
15904         * dirent/scandirat64.c: Likewise.
15905         * sysdeps/wordsize-64/alphasort.c: File removed.
15906         * sysdeps/wordsize-64/alphasort64.c: File removed.
15907         * sysdeps/wordsize-64/scandir.c: File removed.
15908         * sysdeps/wordsize-64/scandir64.c: File removed.
15909         * sysdeps/wordsize-64/scandirat.c: File removed.
15910         * sysdeps/wordsize-64/scandirat64.c: File removed.
15911         * sysdeps/wordsize-64/versionsort.c: File removed.
15912         * sysdeps/wordsize-64/versionsort64.c: File removed.
15913         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
15914         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
15915         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
15916         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
15917         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
15918         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
15919         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
15920         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
15921
15922         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
15923         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
15924         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
15925         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15926         [defined __arch64__ || defined __sparcv9]
15927         (__INO_T_MATCHES_INO64_T): New macro.
15928         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
15929         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
15930         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
15931         * sysdeps/unix/sysv/linux/bits/dirent.h
15932         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
15933         (_DIRENT_MATCHES_DIRENT64): New macro.
15934
15935         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
15936         Define lockf64 as an alias.
15937         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
15938         Define fseeko64 as an alias.
15939         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
15940         Define ftello64 as an alias.
15941         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
15942         Define _IO_fgetpos64 and fgetpos64 as aliases.
15943         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
15944         Define _IO_fsetpos64 and fsetpos64 as aliases.
15945         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
15946         Conditionalize body on this.
15947         * libio/fseeko64.c: Likewise.
15948         * libio/ftello64.c: Likewise.
15949         * libio/iofgetpos64.c: Likewise.
15950         * libio/iofsetpos64.c: Likewise.
15951         * sysdeps/wordsize-64/lockf.c: File removed.
15952         * sysdeps/wordsize-64/lockf64.c: File removed.
15953         * sysdeps/wordsize-64/fseeko.c: File removed.
15954         * sysdeps/wordsize-64/fseeko64.c: File removed.
15955         * sysdeps/wordsize-64/ftello.c: File removed.
15956         * sysdeps/wordsize-64/ftello64.c: File removed.
15957         * sysdeps/wordsize-64/iofgetpos.c: File removed.
15958         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
15959         * sysdeps/wordsize-64/iofsetpos.c: File removed.
15960         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
15961         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
15962         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
15963         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
15964         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
15965         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
15966         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
15967         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
15968         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
15969         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
15970         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
15971
15972         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
15973         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
15974         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
15975         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15976         [defined __arch64__ || defined __sparcv9]
15977         (__OFF_T_MATCHES_OFF64_T): New macro.
15978         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
15979         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
15980         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15981         (__OFF_T_MATCHES_OFF64_T): New macro.
15982
15983 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
15984
15985         * stdlib/secure-getenv.c (__secure_getenv): Replace
15986         GLIBC_2_16 with GLIBC_2_17.
15987
15988 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
15989
15990         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
15991         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
15992
15993 2012-08-03  David S. Miller  <davem@davemloft.net>
15994
15995         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15996
15997 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
15998
15999         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
16000         Remove.
16001         (__ASSUME_CORRECT_SI_PID): Likewise.
16002         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
16003         (__ASSUME_TMPFS_NAME): Likewise.
16004         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
16005         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
16006         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
16007         (HAVE_AUX_SECURE): Make definition unconditional.
16008         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
16009         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
16010
16011 2012-08-03  Roland McGrath  <roland@hack.frob.com>
16012
16013         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
16014         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
16015         * sysdeps/mach/hurd/eloop-threshold.h: New file.
16016         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16017         __eloop_threshold instead of SYMLOOP_MAX.
16018
16019         * sysdeps/generic/eloop-threshold.h: New file.
16020         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
16021         of MAXSYMLINKS.
16022         * elf/chroot_canon.c (chroot_canon): Likewise.
16023
16024 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16025
16026         [BZ #13717]
16027         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16028         Change to 2.6.0 everywhere.
16029         * sysdeps/unix/sysv/linux/configure: Regenerated.
16030         * sysdeps/unix/sysv/linux/kernel-features.h
16031         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
16032         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
16033         kernel versions.
16034         (__ASSUME_POSIX_TIMERS): Define unconditionally.
16035         (__ASSUME_FUTEX_REQUEUE): Remove.
16036         (__ASSUME_STATFS64): Define unconditionally.
16037         (__ASSUME_AT_SECURE): Likewise.
16038         (__ASSUME_CORRECT_SI_PID): Likewise.
16039         (__ASSUME_TGKILL): Define without depending on kernel version for
16040         i386.
16041         (__ASSUME_UTIMES): Likewise.
16042         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
16043         kernel version.
16044         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
16045         (__ASSUME_TMPFS_NAME): Likewise.
16046         * README: Update reference to Linux kernel versions.
16047
16048 2012-08-02  Marek Polacek  <polacek@redhat.com>
16049
16050         [BZ# 14150]
16051         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
16052         libc_cv_asm_type_prefix with %.
16053         * configure: Regenerated.
16054         * include/libc-symbols.h: Remove comment about
16055         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16056         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
16057         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
16058         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
16059         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
16060         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16061         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
16062         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
16063         * elf/tst-unique2mod1.c: Likewise.
16064         * elf/tst-unique1mod2.c: Likewise.
16065         * elf/tst-unique1mod1.c: Likewise.
16066         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
16067         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
16068         Replace ASM_TYPE_DIRECTIVE with .type.
16069         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16070         * sysdeps/i386/sysdep.h: Likewise.
16071         * sysdeps/x86_64/sysdep.h: Likewise.
16072         * sysdeps/sh/sysdep.h: Likewise.
16073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16074         Do not define ASM_TYPE_DIRECTIVE.
16075         * sysdeps/powerpc/sysdep.h: Likewise.
16076         * sysdeps/powerpc/powerpc32/sysdep.h:
16077         Replace ASM_TYPE_DIRECTIVE with .type.
16078         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
16079         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16080         * sysdeps/i386/fpu/e_powf.S: Likewise.
16081         * sysdeps/i386/fpu/e_expl.S: Likewise.
16082         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16083         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16084         * sysdeps/i386/fpu/e_pow.S: Likewise.
16085         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
16086         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16087         * sysdeps/i386/fpu/s_expm1.S: Likewise.
16088         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
16089         * sysdeps/i386/fpu/e_log2.S: Likewise.
16090         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16091         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16092         * sysdeps/i386/fpu/e_powl.S: Likewise.
16093         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16094         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
16095         * sysdeps/i386/fpu/e_logl.S: Likewise.
16096         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
16097         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
16098         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
16099         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16100         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16101         * sysdeps/i386/fpu/e_log.S: Likewise.
16102         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16103         * sysdeps/i386/fpu/e_logf.S: Likewise.
16104         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16105         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16106         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
16107         * sysdeps/i386/fpu/e_log10.S: Likewise.
16108         * sysdeps/i386/fpu/s_frexp.S: Likewise.
16109         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16110         * sysdeps/i386/fpu/s_asinh.S: Likewise.
16111         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
16112         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16113         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
16114         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
16115         * sysdeps/i386/i686/strtok.S: Likewise.
16116         * sysdeps/i386/i386-mcount.S: Likewise.
16117         * sysdeps/i386/strtok.S: Likewise.
16118         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
16119         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16120         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16121         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16122         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16123         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16124         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
16125         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
16126         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16127         * sysdeps/x86_64/_mcount.S: Likewise.
16128         * sysdeps/x86_64/strtok.S: Likewise.
16129         * sysdeps/sh/_mcount.S: Likewise.
16130
16131 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16132
16133         * libio/iofopen.c: Include <fcntl.h>.
16134         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
16135         (_IO_fopen64, fopen64): Define as aliases.
16136         * libio/iofopen64.c: Include <fcntl.h>.
16137         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
16138         Conditionalize body on this.
16139         * sysdeps/wordsize-64/iofopen.c: File removed.
16140         * sysdeps/wordsize-64/iofopen64.c: File removed.
16141
16142 2012-08-01  Marek Polacek  <polacek@redhat.com>
16143
16144         * libc/Makeconfig: Use elf in place of binfmt-subdir.
16145         Use dlfcn directly instead of a variable.
16146         (binfmt-subdir): Do not define.
16147         (dlfcn): Likewise.
16148
16149 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
16150
16151         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
16152         Remove all definitions.
16153         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
16154         <kernel-features.h>.
16155         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16156         (miss_F_GETOWN_EX): Remove all definitions.
16157         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
16158         macro definition.
16159         [!__ASSUME_FCNTL64]: Remove conditional code.
16160         [__ASSUME_FCNTL64]: Make code unconditional.
16161         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
16162         <kernel-features.h>.
16163         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16164         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
16165         (lockf64) [__NR_fcntl64]: Make code unconditional.
16166         (lockf64) [__ASSUME_FCNTL64]: Likewise.
16167
16168         * sysdeps/unix/sysv/linux/kernel-features.h
16169         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
16170         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
16171         Make code unconditional.
16172         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16173         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
16175         [__NR_vfork]: Make code unconditional.
16176         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16177         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
16179         [__NR_vfork]: Make code unconditional.
16180         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16181         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16182
16183 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16184
16185         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
16186         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
16187
16188         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16189         Define mkstemp64 as an alias.
16190         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16191         Define mkstemps64 as an alias.
16192         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16193         Define mkostemp64 as an alias.
16194         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16195         Define mkostemps64 as an alias.
16196         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
16197         Conditionalize body on this.
16198         * misc/mkostemp64.c: Likewise.
16199         * misc/mkostemps64.c: Likewise.
16200         * misc/mkstemps64.c: Likewise.
16201         * sysdeps/wordsize-64/mkstemp64.c: File removed.
16202         * sysdeps/wordsize-64/mkostemp64.c: File removed.
16203         * sysdeps/wordsize-64/mkostemp.c: File removed.
16204         * sysdeps/wordsize-64/mkstemp.c: File removed.
16205         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
16206         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
16207         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
16208         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
16209
16210         [BZ #14138]
16211         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
16212         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
16213         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
16214         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
16215
16216         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
16217         compat_symbol macros from <shlib-compat.h> rather than the underlying
16218         default_symbol_version and symbol_version macros, so that DEFAULT
16219         lines in shlib-versions are respected.
16220         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
16221
16222 2012-08-01  Florian Weimer  <fweimer@redhat.com>
16223
16224         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
16225         Declare with warn_unused_result.
16226         (setgid, setregid, setegid, setresgid): Likewise.
16227         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
16228         Likewise.
16229         * WUR-REPORT: Remove set*id functions.
16230
16231 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
16232
16233         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
16234
16235 2012-07-31  Roland McGrath  <roland@hack.frob.com>
16236
16237         [BZ #10191]
16238         * include/sys/socket.h (__libc_accept, __libc_accept4):
16239         Add attribute_hidden.
16240         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
16241
16242         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
16243         use of PTR_MANGLE.
16244         * inet/getnetgrent_r.c (setup): Likewise.
16245
16246         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
16247
16248 2012-07-31  David S. Miller  <davem@davemloft.net>
16249
16250         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16251
16252 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
16253
16254         [BZ #13629]
16255         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
16256         value between 1.0 and 2.0 and smaller part has absolute value less
16257         than 1.0.
16258         * math/s_clog10.c (__clog10): Likewise.
16259         * math/s_clog10f.c (__clog10f): Likewise.
16260         * math/s_clog10l.c (__clog10l): Likewise.
16261         * math/s_clogf.c (__clogf): Likewise.
16262         * math/s_clogl.c (__clogl): Likewise.
16263         * math/libm-test.inc (clog_test): Add more tests.
16264         (clog10_test): Likewise.
16265         * sysdeps/i386/fpu/libm-test-ulps: Update.
16266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16267
16268 2012-07-31  Florian Weimer  <fweimer@redhat.com>
16269
16270         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
16271         Exit with zero in case no suitable GID is found, and write a
16272         message to standard error.
16273
16274 2012-07-30  Roland McGrath  <roland@hack.frob.com>
16275
16276         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
16277         rather than to 1.
16278         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
16279         (MAXPATHLEN): Removed.
16280         (NOGROUP, NODEV): New macros.
16281         (setbit, clrbit, isset, isclr): New macros.
16282         (howmany, roundup, powerof2): New macros.
16283         (DEV_BSIZE): New macro.
16284
16285         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
16286         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
16287
16288         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
16289         definition on [!__NO_LONG_DOUBLE_MATH].
16290
16291         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
16292         PTR_MANGLE and PTR_DEMANGLE.
16293
16294         * socket/accept4.c (accept4): Rename to __libc_accept4.
16295         Define accept4 as a weak alias.
16296
16297         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
16298         on [_DIRENT_HAVE_D_TYPE].
16299         * io/ftw.c (ftw_dir): Likewise.
16300
16301         * io/xmknod.c (__xmknod): Don't check PATH for being null.
16302
16303         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
16304
16305         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
16306         Use the BSD numbers rather than the arbitrary ones we had.
16307         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
16308         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
16309         (SIGXCPU, SIGXFSZ): New macros.
16310         (_NSIG): Now 32.
16311
16312         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
16313         initializer on [_LIBC_REENTRANT].
16314
16315         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
16316         definitions inside [_POSIX_MAPPED_FILES].
16317
16318         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
16319
16320         * dirent/opendir.c: Include <fcntl.h>.
16321
16322         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
16323         (__libc_getspecific): Likewise.
16324         (__libc_key_create): Likewise.
16325
16326         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
16327         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
16328         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
16329         (tmpfile64): Define as alias.
16330         * sysdeps/wordsize-64/tmpfile.c: File removed.
16331         * sysdeps/wordsize-64/tmpfile64.c: File removed.
16332         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
16333         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
16334
16335         * stdio-common/vfscanf.c: Include <stdbool.h>.
16336         * nss/makedb.c: Likewise.
16337         * stdio-common/_i18n_number.h: Likewise.
16338         * argp/argp-help.c: Likewise.
16339         * posix/wordexp.c: Likewise.
16340         * sysdeps/posix/spawni.c: Likewise.
16341         * nss/nss_files/files-initgroups.c: Likewise.
16342         * stdio-common/reg-modifier.c: Include <stdlib.h>.
16343         * nss/nss_files/files-initgroups.c: Likewise.
16344         * nss/nss_db/db-netgrp.c: Likewise.
16345         * nss/nss_db/db-initgroups.c: Likewise.
16346         * io/fchmodat.c: Include <sys/stat.h>.
16347
16348         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
16349         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
16350
16351         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
16352         [HAVE_MMAP].
16353
16354         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
16355         Add multiple inclusion protection.
16356
16357 2012-07-27  David S. Miller  <davem@davemloft.net>
16358
16359         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16360
16361 2012-07-27  Gary Benson  <gbenson@redhat.com>
16362
16363         [BZ #14298]
16364         * elf/rtld.c: Include <stap-probe.h>.
16365         (dl_main): Added static probes "init_start" and "init_complete".
16366         * elf/dl-load.c: Include <stap-probe.h>.
16367         (lose): Take new parameter "nsid".
16368         Added static probe "map_failed".
16369         (_dl_map_object_from_fd): Pass namespace id to lose.
16370         Added static probe "map_start".
16371         (open_verify): Pass namespace id to lose.
16372         * elf/dl-open.c: Include <stap-probe.h>.
16373         (dl_open_worker) Added static probes "map_complete", "reloc_start"
16374         and "reloc_complete".
16375         * elf/dl-close.c: Include <stap-probe.h>.
16376         (_dl_close_worker): Added static probes "unmap_start" and
16377         "unmap_complete".
16378         * elf/rtld-debugger-interface.txt: New file documenting the above.
16379
16380 2012-07-26  Roland McGrath  <roland@hack.frob.com>
16381
16382         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
16383         rather than a string variable.
16384         * sunrpc/rpc_main.c (h_output): Likewise.
16385         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
16386
16387 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
16388
16389         * inet/check_native.c: New file.
16390
16391 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
16392
16393         [BZ #13629]
16394         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
16395         if larger part has absolute value 1.0.
16396         * math/s_clog10.c (__clog10): Likewise.
16397         * math/s_clog10f.c (__clog10f): Likewise.
16398         * math/s_clog10l.c (__clog10l): Likewise.
16399         * math/s_clogf.c (__clogf): Likewise.
16400         * math/s_clogl.c (__clogl): Likewise.
16401         * math/libm-test.inc (clog_test): Add more tests.
16402         (clog10_test): Likewise.
16403         * sysdeps/i386/fpu/libm-test-ulps: Update.
16404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16405
16406         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
16407         (pltexit): Likewise.
16408         (La_regs): Likewise.
16409         (La_retval): Likewise.
16410         (int_retval): Likewise.
16411         Update #error for removed macros to refer only to definitions in
16412         tst-audit.h.
16413         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
16414         macro.
16415         (pltexit): Likewise.
16416         (La_regs): Likewise.
16417         (La_retval): Likewise.
16418         (int_retval): Likewise.
16419         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
16420         macro.
16421         (pltexit): Likewise.
16422         (La_regs): Likewise.
16423         (La_retval): Likewise.
16424         (int_retval): Likewise.
16425         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
16426         macro.
16427         (pltexit): Likewise.
16428         (La_regs): Likewise.
16429         (La_retval): Likewise.
16430         (int_retval): Likewise.
16431         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
16432         macro.
16433         (pltexit): Likewise.
16434         (La_regs): Likewise.
16435         (La_retval): Likewise.
16436         (int_retval): Likewise.
16437         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
16438         macro.
16439         (pltexit): Likewise.
16440         (La_regs): Likewise.
16441         (La_retval): Likewise.
16442         (int_retval): Likewise.
16443         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
16444         macro.
16445         (pltexit): Likewise.
16446         (La_regs): Likewise.
16447         (La_retval): Likewise.
16448         (int_retval): Likewise.
16449         * sysdeps/generic/tst-audit.h: Update comment to refer only to
16450         macro definitions in tst-audit.h.
16451         * sysdeps/i386/tst-audit.h: New file.
16452         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
16453         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
16454         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
16455         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
16456         * sysdeps/sh/tst-audit.h: Likewise.
16457         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
16458         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
16459         * sysdeps/x86_64/tst-audit.h: Likewise.
16460
16461 2012-07-26  Andreas Jaeger  <aj@suse.de>
16462
16463         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
16464         ptrace.
16465
16466         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
16467         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
16468         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
16469         PTRACE_O_MASK.
16470         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
16471         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
16472         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
16473
16474         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
16475         value.
16476
16477         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
16478         _sigsys.
16479         (si_call_addr, si_syscall, si_arch): Define new macro.
16480         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
16481         _sigsys.
16482         (si_call_addr, si_syscall, si_arch): Define new marcro.
16483         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
16484         _sigsys.
16485         (si_call_addr, si_syscall, si_arch): Define new macro.
16486         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
16487         _sigsys.
16488         (si_call_addr, si_syscall, si_arch): Define new macro.
16489
16490 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
16491
16492         [BZ #13717]
16493         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16494         Change to 2.4.21 where previously 2.4.1.
16495         * sysdeps/unix/sysv/linux/configure: Regenerated.
16496         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
16497         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
16498         Linux kernel version.
16499         (__ASSUME_STD_AUXV): Remove.
16500         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
16501         kernel version.
16502         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
16503         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
16504         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
16505         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
16506         (__ASSUME_NETLINK_SUPPORT): Likewise.
16507         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
16508         (__no_netlink_support): Remove conditional definition.
16509         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
16510         Remove.
16511         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
16512         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
16513         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
16514         (if_nameindex_ioctl): Remove.
16515         (if_nameindex_netlink): Do not handle __no_netlink_support.
16516         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
16517         code.
16518         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
16519         Remove conditional code.
16520         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
16521         code.
16522         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
16523         unconditional.
16524         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
16525         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
16526         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
16527         Remove.
16528         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
16529         [!__ASSUME_STD_AUXV]: Remove conditional code.
16530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
16531         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
16532         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
16533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
16534         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
16535         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
16536         code.
16537         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
16538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
16539         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
16540         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
16541         conditional code.
16542         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
16543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
16544         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
16545         code.
16546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
16547         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
16548         conditional code.
16549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
16550         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16551         code unconditional.
16552         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16553         conditional code.
16554         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16555         unconditional.
16556         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16557         conditional code.
16558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16559         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16560         unconditional.
16561         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16562         conditional code.
16563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
16564         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16565         code unconditional.
16566         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16567         conditional code.
16568         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16569         unconditional.
16570         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16571         conditional code.
16572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
16573         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
16574         code unconditional.
16575         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16576         conditional code.
16577         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
16578         unconditional.
16579         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
16580         conditional code.
16581
16582 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
16583
16584         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
16585         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
16586         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
16587         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
16588         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
16589         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
16590         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16591         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16592         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
16593         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
16594         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
16595         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
16596         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
16597         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
16598         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
16599         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
16600         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
16601         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
16602         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
16603         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
16604         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
16605         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
16606         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16607
16608 2012-07-25  Florian Weimer  <fweimer@redhat.com>
16609
16610         * Versions.def: Add GLIBC_2.17.
16611         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
16612         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
16613         Introduce __libc_secure_getenv.
16614         * stdlib/Versions (2.17): Add secure_getenv
16615         (GLIBC_PRIVATE): Add __libc_secure_getenv.
16616         * stdlib/secure-getenv.c: Rename __secure_getenv to
16617         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
16618         symbol __secure_getenv for GLIBC_2.0.
16619         * stdlib/tst-secure-getenv.c: New.
16620         * stdlib/Makefile (tests): Add testcase.
16621         * manual/startup.texi (Environment Access): Document
16622         secure_getenv.
16623         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
16624         __libc_secure_getenv.
16625         * inet/ruserpass.c (ruserpass): Likewise.
16626         * malloc/mtrace.c (mtrace): Likewise.
16627         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
16628         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
16629         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
16630         * sysdeps/posix/tempname.c: Likewise.  Evaluate
16631         HAVE_SECURE_GETENV.
16632         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
16633         __secure_getenv to __libc_secure_getenv.
16634         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
16635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16636         Likewise.
16637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16638         Likewise.
16639         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
16640         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
16641         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
16642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
16643         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
16644         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
16645         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
16646
16647 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
16648
16649         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
16650         (struct La_i86_retval): Likewise.
16651         (struct La_x86_64_regs): Likewise.
16652         (struct La_x86_64_retval): Likewise.
16653         (struct La_x32_regs): Likewise.
16654         (struct La_x32_retval): Likewise.
16655         (struct La_ppc32_regs): Likewise.
16656         (struct La_ppc32_retval): Likewise.
16657         (struct La_ppc64_regs): Likewise.
16658         (struct La_ppc64_retval): Likewise.
16659         (struct La_sh_regs): Likewise.
16660         (struct La_sh_retval): Likewise.
16661         (struct La_s390_32_regs): Likewise.
16662         (struct La_s390_32_retval): Likewise.
16663         (struct La_s390_64_regs): Likewise.
16664         (struct La_s390_64_retval): Likewise.
16665         (struct La_sparc32_regs): Likewise.
16666         (struct La_sparc32_retval): Likewise.
16667         (struct La_sparc64_regs): Likewise.
16668         (struct La_sparc64_retval): Likewise.
16669         (struct audit_ifaces): Remove architecture-specific pltenter and
16670         pltexit members.
16671         * sysdeps/i386/ldsodefs.h: New file.
16672         * sysdeps/powerpc/ldsodefs.h: Likewise.
16673         * sysdeps/s390/ldsodefs.h: Likewise.
16674         * sysdeps/sh/ldsodefs.h: Likewise.
16675         * sysdeps/sparc/ldsodefs.h: Likewise.
16676         * sysdeps/x86_64/ldsodefs.h: Likewise.
16677
16678 2012-07-25  Marek Polacek  <polacek@redhat.com>
16679
16680         [BZ #6808]
16681         * math/libm-test.inc (yn_test): Add another test.
16682         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
16683         to ERANGE when the result is +-Inf.
16684         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
16685         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
16686         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
16687         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
16688
16689 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
16690
16691         * conform/data/time.h-data (NULL): Use macro-constant.  Require
16692         equal to 0.
16693         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
16694         clock_t.
16695         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
16696
16697 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
16698
16699         * configure.in <sysdeps resolving>: Correct printing
16700         Implies_before.
16701         * configure: Regenerate.
16702
16703 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
16704
16705         * math/w_ilogb.c: Include <limits.h>.
16706         * math/w_ilogbl.c: Likewise.
16707
16708 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
16709
16710         * manual/lang.texi (__va_copy): Document primarily as ISO C99
16711         va_copy.  Document allowing for unavailable va_copy only as
16712         pre-C99 compatibility.
16713         * manual/string.texi (Copying and Concatenation): Use va_copy
16714         instead of __va_copy in concat example.
16715
16716 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
16717
16718         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
16719         (__sendto): Use create_address_port.  Initialize APORT and deallocate
16720         it if not null.
16721
16722         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
16723         with O_NOLINK passed to __file_name_lookup.
16724
16725         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
16726         with O_NOLINK passed to __file_name_lookup.
16727
16728         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
16729         negative N or less than NGIDS.
16730
16731         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
16732         type to string_t.  Set ERANGE as errno and return it if NAME is not big
16733         enough.  Use memcpy instead of strncpy.
16734
16735 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
16736
16737         * elf/Makefile (check-data): Remove.
16738         (localplt.data): New vpath directive.
16739         ($(objpfx)check-localplt.out): Use localplt.data from vpath
16740         instead of $(check-data).
16741         * scripts/data/localplt-generic.data: Move to ...
16742         * sysdeps/generic/localplt.data: ... here.
16743         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
16744         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
16745         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
16746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
16747         ... here.
16748         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
16749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
16750         ... here.
16751         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
16752         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
16753         ... here.
16754         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
16755         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
16756         ... here.
16757         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
16758         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
16759         ... here.
16760         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
16761         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
16762         ... here.
16763
16764 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16765
16766         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
16767         PPC32 and PPC64 files.
16768         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
16769         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
16770
16771 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16772
16773         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
16774         __makecontext_ret to ...
16775         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
16776         ... here and call exit if uc_link is NULL.  New file.
16777         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
16778         __makecontext_ret.S.
16779         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
16780         __makecontext_ret to ...
16781         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
16782         ... here and call exit if uc_link is NULL.  New file.
16783         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
16784         __makecontext_ret.S.
16785
16786 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16787
16788         * elf/elf.h (R_390_IRELATIVE): New definition.
16789         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
16790         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
16791         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
16792         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16793         (elf_machine_lazy_rel): Likewise.
16794         * sysdeps/s390/dl-irel.h: New file.
16795         * sysdeps/s390/s390-64/memcpy.S: New asm code.
16796         * sysdeps/s390/s390-64/memset.S: New asm code.
16797         * sysdeps/s390/s390-64/memcmp.S: New asm code.
16798         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
16799         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
16800         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
16801         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
16802         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
16803         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
16804         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
16805         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
16806         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
16807         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
16808         * sysdeps/s390/s390-32/memcpy.S: New asm code.
16809         * sysdeps/s390/s390-32/memset.S: New asm code.
16810         * sysdeps/s390/s390-32/memcmp.S: New asm code.
16811
16812 2012-07-17  Marek Polacek  <polacek@redhat.com>
16813
16814         [BZ #14349]
16815         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
16816         * sysdeps/s390/s390-64/configure.in: Likewise.
16817         * sysdeps/sparc/configure.in: Likewise.
16818         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
16819         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
16820         * sysdeps/i386/configure.in: Likewise.
16821         * sysdeps/x86_64/configure.in: Likewise.
16822         * sysdeps/sh/configure.in: Likewise.
16823         * sysdeps/s390/s390-32/configure: Regenerated.
16824         * sysdeps/s390/s390-64/configure: Likewise.
16825         * sysdeps/x86_64/configure: Likewise.
16826         * sysdeps/sh/configure: Likewise.
16827         * sysdeps/powerpc/powerpc64/configure: Likewise.
16828         * sysdeps/powerpc/powerpc32/configure: Likewise.
16829         * sysdeps/sparc/configure: Likwise.
16830         * sysdeps/i386/configure: Likewise.
16831
16832         * elf/dl-open.c: Comment fixes.
16833
16834 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
16835
16836         * Makefile [CXX] (check-data): Remove.
16837         [CXX] (c++-types.data): New vpath directive.
16838         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
16839         vpath.  Do not allow for C++ type data being missing.
16840         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
16841         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
16842         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
16843         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
16844         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
16845         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
16846         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
16847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
16848         ... here.
16849         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
16850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
16851         ... here.
16852         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
16853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
16854         ... here.
16855         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
16856         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
16857         ... here.
16858         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
16859         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
16860         ... here.
16861         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
16862         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
16863         ... here.
16864         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
16865         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
16866         ... here.
16867         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
16868         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
16869
16870         * elf/tls-macros.h (TLS_LE): Move architecture-specific
16871         definitions to architecture-specific files.
16872         (TLS_IE): Likewise.
16873         (TLS_LD): Likewise.
16874         (TLS_GD): Likewise.
16875         * sysdeps/i386/tls-macros.h: New file.
16876         * sysdeps/powerpc/tls-macros.h: Likewise.
16877         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
16878         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
16879         * sysdeps/sh/tls-macros.h: Likewise.
16880         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
16881         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
16882         * sysdeps/x86_64/tls-macros.h: Likewise.
16883
16884 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
16885
16886         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
16887         zero value for regular exit case.
16888
16889         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
16890         (__start_context): Preserve zero value for regular exit case.
16891
16892 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
16893             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16894
16895         * manual/setjmp.texi (setcontext): Clarify normal process
16896         termination when uc_link is the null pointer.
16897         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
16898         exit call.
16899
16900 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
16901
16902         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
16903         preprocessor.  Test for each exception mask separately.
16904
16905 2012-07-16  Andreas Jaeger  <aj@suse.de>
16906
16907         * po/ru.po: Update from translation team.
16908
16909 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
16910
16911         * conform/data/string.h-data (NULL): Use macro-constant.  Require
16912         equal to 0.
16913         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
16914         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
16915         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
16916         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
16917         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16918
16919 2012-07-13  Andreas Jaeger  <aj@suse.de>
16920
16921         * po/fr.po: Update from translation team.
16922
16923 2012-07-12  Marek Polacek  <polacek@redhat.com>
16924
16925         [BZ #14173]
16926         * math/libm-test.inc (yn_test): Add test for BZ #14173.
16927         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
16928         loop condition.
16929
16930 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
16931
16932         [BZ #13717]
16933         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16934         Change to 2.4.1 where previously 2.4.0.
16935         * sysdeps/unix/sysv/linux/configure: Regenerated.
16936         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
16937         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
16938         version.
16939         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
16940         (__ASSUME_AT_CLKTCK): Remove.
16941         (__ASSUME_AT_PAGESIZE): Likewise.
16942         (__ASSUME_AT_XID): Likewise.
16943         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
16944         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
16945         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
16946         unconditionally.
16947         (HAVE_AUX_PAGESIZE): Likewise.
16948         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
16949         [__ASSUME_AT_CLKTCK]: Make code unconditional.
16950         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
16951
16952 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
16953
16954         [BZ #14307]
16955         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
16956         the temporary buffer used to invoke __gethostbyname2_r,
16957         __gethostbyaddr_r and gethostbyname4_r to make room for struct
16958         host_data / struct gaih_addrtuple.
16959         * resolv/nss_dns/dns-host.c (global scope): Move definition of
16960         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
16961         header file nss/nsswitch.h.
16962         * nss/nsswitch.h (global scope): Add definition of implementation
16963         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
16964         resolv/nss_dns/dns-host.c).
16965
16966 2012-07-11  Andreas Jaeger  <aj@suse.de>
16967
16968         * po/fr.po: Update from translation team.
16969
16970         * po/sv.po: Update from translation team
16971         * po/fr.po: Another update from translation team.
16972
16973 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16974
16975         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
16976         for subnormals or multiply small sinh result by itself.
16977         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16978         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16979
16980 2012-07-11  David S. Miller  <davem@davemloft.net>
16981
16982         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16983
16984 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
16985
16986         [BZ #14347]
16987         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
16988         (INTERNAL_MARK): Shift it here.
16989
16990 2012-07-10  Marek Polacek  <polacek@redhat.com>
16991
16992         [BZ #14151]
16993         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
16994         libc_cv_asm_global_directive with .globl.
16995         * configure: Regenerated.
16996         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
16997         with .globl.
16998         * sysdeps/i386/configure: Regenerated.
16999         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
17000         with .globl.
17001         * sysdeps/x86_64/configure: Regenerated.
17002         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
17003         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
17004         * elf/tst-unique2mod2.c: Likewise.
17005         * elf/tst-unique2mod1.c: Likewise.
17006         * elf/tst-unique1mod2.c: Likewise.
17007         * elf/tst-unique1mod1.c: Likewise.
17008         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17009         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17010         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17011         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17012         * sysdeps/mach/sysdep.h: Likewise.
17013         * sysdeps/i386/sysdep.h: Likewise.
17014         * sysdeps/i386/i386-mcount.S: Likewise.
17015         * sysdeps/x86_64/_mcount.S: Likewise.
17016         * sysdeps/x86_64/sysdep.h: Likewise.
17017         * sysdeps/sh/_mcount.S: Likewise.
17018         * sysdeps/sh/sysdep.h: Likewise.
17019         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
17020         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
17021         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
17022         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
17023         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
17024         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
17025         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
17026         * locale/localeinfo.h: Likewise.
17027         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
17028         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
17029
17030 2012-07-09  Roland McGrath  <roland@hack.frob.com>
17031
17032         [BZ #14336]
17033         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
17034         system".
17035         * manual/message.texi (The Uniforum approach): Likewise.
17036         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
17037         (glibc iconv Implementation): Likewise.
17038
17039 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
17040
17041         [BZ #14337]
17042         * math/s_clog.c (__clog): Avoid scaling a value down where that
17043         could result in underflow.
17044         * math/s_clog10.c (__clog10): Likewise.
17045         * math/s_clog10f.c (__clog10f): Likewise.
17046         * math/s_clog10l.c (__clog10l): Likewise.
17047         * math/s_clogf.c (__clogf): Likewise.
17048         * math/s_clogl.c (__clogl): Likewise.
17049         * math/libm-test.inc (clog_test): Add more tests.
17050         (clog10_test): Likewise.
17051         * sysdeps/i386/fpu/libm-test-ulps: Update.
17052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17053
17054 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
17055
17056         [BZ #14283]
17057         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
17058         by 7 not 8 to examine high bit of fractional part.
17059
17060         [BZ #14042]
17061         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
17062         for call to __mcount_internal.
17063         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
17064         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
17065         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
17066
17067 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
17068
17069         [BZ #14154]
17070         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
17071         approximation for values within 0x1p-13f of an odd multiple of
17072         pi/4.
17073         * math/libm-test.inc (tan_test): Do not allow spurious underflow
17074         exception.  Add more tests.
17075         * sysdeps/i386/fpu/libm-test-ulps: Update.
17076
17077         [BZ #6778]
17078         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
17079         inputs and return -1 for them.  Do not check for +Inf in case not
17080         reachable for +Inf.
17081         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
17082         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
17083         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17084         and return -1 for them.  Do not check for +Inf in case not
17085         reachable for +Inf.
17086         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
17087         define.
17088         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17089         and return -1 for them.  Do not check for +Inf in case not
17090         reachable for +Inf.
17091         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
17092         spurious underflow.
17093         * sysdeps/i386/fpu/libm-test-ulps: Update.
17094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17095
17096 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
17097
17098         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
17099
17100 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
17101
17102         [BZ #14157]
17103         [BZ #14331]
17104         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
17105         could result in spurious underflow.  Scale down values above
17106         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
17107         * math/s_csqrtf.c (__csqrtf): Likewise.
17108         * math/s_csqrtl.c (__csqrtl): Likewise.
17109         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
17110         spurious underflow.
17111         * sysdeps/i386/fpu/libm-test-ulps: Update.
17112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17113
17114 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
17115
17116         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
17117         xopen-msg.sed.
17118         * catgets/xopen-msg.awk: New file.
17119         * catgets/xopen-msg.sed: Removed.
17120
17121         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
17122         po2text.sed.
17123         * intl/po2test.awk: New file.
17124         * intl/po2test.sed: Removed.
17125
17126 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
17127
17128         [BZ #14328]
17129         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
17130         or multiply small sinh result by itself.
17131         * math/s_ctanf.c (__ctanf): Likewise.
17132         * math/s_ctanh.c (__ctanh): Likewise.
17133         * math/s_ctanhf.c (__ctanhf): Likewise.
17134         * math/s_ctanhl.c (__ctanhl): Likewise.
17135         * math/s_ctanl.c (__ctanl): Likewise.
17136         * math/libm-test.inc (ctan_test_tonearest): New function.
17137         (ctan_test_towardzero): Likewise.
17138         (ctan_test_downward): Likewise.
17139         (ctan_test_upward): Likewise.
17140         (ctanh_test_tonearest): Likewise.
17141         (ctanh_test_towardzero): Likewise.
17142         (ctanh_test_downward): Likewise.
17143         (ctanh_test_upward): Likewise.
17144         (main): Call these new functions.
17145         * sysdeps/i386/fpu/libm-test-ulps: Update.
17146         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17147
17148 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
17149
17150         * .gitignore: Delete /ports entry.
17151
17152 2012-07-03  Andreas Jaeger  <aj@suse.de>
17153
17154         * po/bg.po: Update from translation team.
17155         * po/cs.po: Likewise.
17156         * po/de.po: Likewise.
17157         * po/hr.po: Likewise.
17158         * po/nl.pl: Likewise.
17159         * po/pl.po: Likewise.
17160         * po/vi.po: Likewise.
17161
17162 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
17163
17164         * Makeconfig [!+link] (+link-before-libc): New variable.
17165         [!+link] (+link-after-libc): Likewise.
17166         [!+link] (+link-tests): Likewise.
17167         [!+link] (+link): Define in terms of $(+link-before-libc) and
17168         $(+link-after-libc).
17169         [!+link-static] (+link-static-before-libc): New variable.
17170         [!+link-static] (+link-static-after-libc): Likewise.
17171         [!+link-static] (+link-static-tests): Likewise.
17172         [!+link-static] (+link-static): Define in terms of
17173         $(+link-static-before-libc) and $(+link-static-after-libc).
17174         [build-shared] (link-libc-before-gnulib): New variable.
17175         [build-shared] (link-libc-tests): Likewise.
17176         [build-shared] (link-libc): Define in terms of
17177         $(link-libc-before-gnulib).
17178         [!build-shared] (link-libc-tests): New variable.
17179         (link-libc-static-tests): New variable.
17180         [!gnulib] (gnulib-arch): New variable.
17181         [!gnulib] (gnulib-tests): Likewise.
17182         [!gnulib] (static-gnulib-arch): Likewise.
17183         [!gnulib] (static-gnulib-tests): Likewise.
17184         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
17185         Define with "=" instead of ":=".
17186         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
17187         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
17188         * Rules (binaries-all-notests): New variable.
17189         (binaries-all-tests): Likewise.
17190         (binaries-static-notests): Likewise.
17191         (binaries-static-tests): Likewise.
17192         (binaries-all): Define using $(binaries-all-notests) and
17193         $(binaries-all-tests).
17194         (binaries-static): Define using $(binaries-static-notests) and
17195         $(binaries-static-tests).
17196         (binaries-shared-tests): New variable.
17197         (binaries-shared-notests): Likewise.
17198         (binaries-shared): Remove variable.
17199         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
17200         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
17201         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
17202         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
17203         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
17204         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
17205         * elf/Makefile (sln-modules): New variable.
17206         (extra-objs): Add $(sln-modules:=.o).
17207         (ldconfig-modules): Add static-stubs.
17208         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
17209         * elf/static-stubs.c: New file.
17210
17211         [BZ #14283]
17212         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
17213         by 7 not 8 to examine high bit of fractional part.  Use volatile
17214         variables when splitting into final array of floats if
17215         __FLT_EVAL_METHOD__ != 0.
17216         * math/libm-test.inc (cos_test): Add another test.
17217         (sin_test): Likewise.
17218         * sysdeps/i386/fpu/libm-test-ulps: Update.
17219
17220         [BZ #14273]
17221         * math/libm-test.inc (cosh_test): Add more tests.
17222
17223         * version.h (RELEASE): Set to "development".
17224         (VERSION): Set to "2.16.90".
17225
17226 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
17227
17228         * NEWS: Update copyright. Remove last-updated date.
17229         Mention math library bug fixes and timezone data changes.
17230         * README: Mention GNU/Hurd, x32, and HPPA support status.
17231
17232 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
17233
17234         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
17235
17236 2012-06-27  Andreas Jaeger  <aj@suse.de>
17237
17238         * manual/contrib.texi (Contributors): Add Samuel Thibault.
17239
17240 2012-06-25  Andreas Jaeger  <aj@suse.de>
17241
17242         * sysdeps/s390/fpu/libm-test-ulps: Update.
17243
17244 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
17245             Thomas Schwinge  <thomas@codesourcery.com>
17246
17247         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
17248         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
17249         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
17250         fanotify_mark.
17251
17252 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
17253
17254         * sysdeps/mach/start.c: Remove file.
17255         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
17256         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
17257         * sysdeps/sh/init-first.c: Likewise.
17258
17259         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
17260         registers for frame unwinding purposes, add CFI directives.
17261         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17262         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
17263         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
17264         Likewise.
17265
17266         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
17267         __fortify_fail returning.
17268         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
17269
17270         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
17271         sysdeps/sh/____longjmp_chk.S.
17272         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
17273         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
17274         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
17275         (gen-as-const-headers): Append sigaltstack-offsets.sym.
17276
17277         * sysdeps/sh/abort-instr.h: New file.
17278         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
17279         process in case exit returns.
17280
17281         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
17282         initialize the GOT register before use.
17283
17284         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
17285         calculation of ARGC > 4.
17286
17287         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
17288         meaningful names to some local labels.
17289
17290 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17291             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17292
17293         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
17294         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
17295         (__arch_compare_and_exchange_val_16_acq): Likewise.
17296         (__arch_compare_and_exchange_val_32_acq): Likewise.
17297         (atomic_exchange_and_add): Fix gUSA sequence.
17298         (atomic_add): Likewise.
17299         (atomic_add_negative): Likewise.
17300         (atomic_add_zero): Likewise.
17301         (atomic_bit_test_set): Likewise.
17302
17303 2012-06-22  Andreas Schwab  <schwab@redhat.com>
17304
17305         [BZ #13579]
17306         * include/link.h (struct link_map): Add l_free_initfini.
17307         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
17308         l_initfini.
17309         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
17310         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
17311         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
17312         set.
17313
17314 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
17315
17316         * configure.in: Use AC_LANG_SOURCE.
17317         * configure: Regenerate.
17318
17319 2012-06-22  Roland McGrath  <roland@hack.frob.com>
17320
17321         * configure.in (libc_cv_localstatedir): New substituted variable.
17322         * configure: Regenerated.
17323         * config.make.in (localstatedir): New variable, substituted from
17324         libc_cv_localstatedir.
17325         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
17326         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
17327         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
17328         * sysdeps/gnu/configure: Regenerated.
17329
17330 2012-06-21  Jeff Law  <law@redhat.com>
17331
17332         [BZ #14277]
17333         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
17334         free.  Simplify list management for _LIBC case.
17335
17336 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
17337
17338         [BZ #14273]
17339         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
17340         Clear sign bit of 64-bit integer value before comparing against
17341         overflow value.
17342
17343         * sysdeps/mach/configure: Regenerated.
17344
17345 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
17346
17347         [BZ #14278]
17348         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
17349
17350 2012-06-21  Jeff Law  <law@redhat.com>
17351
17352         [BZ #13882]
17353         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
17354         uint16_t for elements in the "seen" array to avoid char overflows.
17355         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17356         * elf/dl-open.c (dl_open_worker): Likewise.
17357
17358 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
17359
17360         * scripts/list-sources.sh: Scan PORTS for translations.
17361         * po/libc.pot: Regenerated.
17362
17363 2012-06-21  Andreas Jaeger  <aj@suse.de>
17364
17365         [BZ #12194]
17366         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
17367         warning.
17368         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
17369         * bits/byteswap-16.h (__bswap_16): Likewise.
17370         * bits/byteswap.h (__bswap_constant_16): Likewise.
17371
17372 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
17373
17374         [BZ #14117]
17375         * sysdeps/i386/fpu_control.h: Removed.
17376         * sysdeps/x86_64/fpu_control.h: Moved to ...
17377         * sysdeps/x86/fpu_control.h: Here.
17378
17379         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
17380         (_FPU_SETCW): Likewise.
17381
17382 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
17383
17384         [BZ #14117]
17385         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
17386         * sysdeps/x86/fpu/bits/mathinline.h: This.
17387         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
17388
17389         [BZ #14050]
17390         [BZ #14117]
17391         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
17392         functions if __x86_64__ is defined.
17393
17394 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
17395
17396         * string/endian.h: Add !__ASSEMBLER__ condition for including
17397         conversion interfaces.
17398
17399 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
17400
17401         [BZ #14241]
17402         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
17403         of ABS(x) in calculating zero to negative powers other than odd
17404         integers.
17405         * math/libm-test.inc (pow_test): Add more tests.
17406
17407 2012-06-15  Andreas Jaeger  <aj@suse.de>
17408
17409         * manual/contrib.texi (Contributors): Update entry of Liubov
17410         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
17411         Machado Filho.
17412
17413 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
17414
17415         * string/string.h: Add __wur to GNU version of strerror_r.
17416
17417 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
17418
17419         [BZ #14229]
17420         * string/Makefile (tests): Add tst-strtok_r.
17421         * string/tst-strtok_r.c: New file.
17422         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
17423         RAX_LP/RDX_LP on SAVE_PTR.
17424
17425 2012-06-14  Roland McGrath  <roland@hack.frob.com>
17426
17427         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
17428
17429 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
17430
17431         * libm_test.inc (csqrt_test): Allow more spurious underflow
17432         exceptions.
17433         (j0_test): Likewise.
17434         (j1_test): Likewise.
17435         (y0_test): Likewise.
17436         (y1_test): Likewise.
17437
17438 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
17439
17440         * po/Makefile (libc.pot): Use UTF-8 charset.
17441
17442 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
17443
17444         [BZ #14210]
17445         Suppress sign-conversion warning from FD_SET.
17446         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
17447         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
17448         not unsigned long int.
17449         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
17450
17451 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
17452
17453         [BZ #14050]
17454         [BZ #14117]
17455         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
17456         __extern_always_inline instead of __extern_inline.
17457         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
17458         (__signbit): Likewise.
17459         (__signbitl): Support C++ namespace.
17460         (lrintf): New inline function.
17461         (lrint): Likewise.
17462         (llrintf): Likewise.
17463         (llrint): Likewise.
17464         (fmaxf): Likewise.
17465         (fmax): Likewise.
17466         (fminf): Likewise.
17467         (fmin): Likewise.
17468         (rint): Likewise.
17469         (rintf): Likewise.
17470         (ceil): Likewise.
17471         (ceilf): Likewise.
17472         (floor): Likewise.
17473         (floorf): Likewise.
17474         (nearbyint): Likewise.
17475         (nearbyintf): Likewise.
17476
17477 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
17478
17479         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
17480         non-default versions.
17481
17482 2012-06-11  Roland McGrath  <roland@hack.frob.com>
17483
17484         [BZ #14218]
17485         * manual/argp.texi (Argp): Reword argp_parse description slightly.
17486
17487 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
17488
17489         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
17490         (FE_UPWARD, FE_DOWNWARD): Don't define.
17491         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
17492         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
17493
17494         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
17495         reading it.
17496         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
17497         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17498
17499 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17500
17501         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
17502         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
17503         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
17504         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
17505
17506 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
17507
17508         [BZ #14117]
17509         * sysdeps/i386/fpu/bits/fenv.h: Removed.
17510         * sysdeps/i386/fpu/Implies: New file.
17511         * sysdeps/x86_64/fpu/Implies: Likewise.
17512         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
17513         * sysdeps/x86/fpu/bits/fenv.h: This.
17514
17515         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
17516         __SSE_MATH__.
17517
17518 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
17519
17520         [BZ #14134]
17521         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
17522         character 0xffff that matches the last element of the
17523         conversion table.
17524
17525 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17526
17527         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
17528         fmodl commit.
17529
17530 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17531
17532         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
17533         values higher than 25.6283.
17534
17535 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17536
17537         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
17538         subnormal exponent extraction and add some __builtin_expect.
17539         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
17540         Fix for subnormal mantissa calculation.
17541
17542 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
17543
17544         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
17545         cpu2 is -1 and errno is not ENOSYS.
17546
17547 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
17548
17549         [BZ #14117]
17550         * sysdeps/i386/i486/bits/string.h: Renamed to ...
17551         * sysdeps/x86/bits/string.h: This.
17552         * sysdeps/x86_64/bits/string.h: Removed.
17553
17554         * sysdeps/i386/i486/bits/string.h: Define inline functions only
17555         if not compiling for x86-64, but compiling for >= i486.
17556
17557         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
17558         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
17559
17560         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
17561         New macro from Linux kernel 3.4.0.
17562         (FP_XSTATE_MAGIC2): Likewise.
17563         (FP_XSTATE_MAGIC2_SIZE): Likewise.
17564         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
17565         (struct _fpx_sw_bytes): New struct.
17566         (struct _xsave_hdr): Likewise.
17567         (struct _ymmh_state): Likewise.
17568         (struct _xstate): Likewise.
17569
17570         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
17571         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
17572         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
17573         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
17574         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
17575         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
17576
17577         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
17578         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
17579         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
17580         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
17581         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
17582         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
17583
17584 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17585
17586         [BZ #13743]
17587         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
17588         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
17589         (sysdep_headers): Include sys/platform/ppc.h.
17590         * sysdeps/powerpc/test-gettimebase.c: Test for
17591         __ppc_get_timebase() to catch future ISA opcode/insn changes.
17592         * manual/Makefile (appendices): Include platform.texi.
17593         * manual/contrib.texi (Contributors): Update @node pointers.
17594         * manual/maint.texi (Maintenance): Likewise.
17595         (Platform): New node.
17596         * manual/platform.texi: New file.  Document the new features.
17597
17598 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
17599             Jakub Jelinek  <jakub@redhat.com>
17600
17601         [BZ #14188]
17602         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
17603         where __builtin_expect is unavailable.
17604
17605 2012-06-03  David S. Miller  <davem@davemloft.net>
17606
17607         * stdlib/longlong.h: Updated from GCC.
17608
17609 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
17610
17611         [BZ #14042]
17612         * sysdeps/powerpc/powerpc32/mcount.c: New file.
17613         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
17614         __mcount_internal.
17615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
17616         (GLIBC_2.16): Likewise.
17617
17618 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17619
17620         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
17621
17622 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
17623
17624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
17625         (default-abi): New variable.
17626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
17627         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
17628         variable.
17629         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
17630         Likewise.
17631         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
17632         Likewise.
17633         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
17634         Likewise.
17635
17636         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
17637         definition.  Document in comment.
17638
17639 2012-06-01  David S. Miller  <davem@davemloft.net>
17640
17641         * stdlib/longlong.h: Updated from GCC.
17642
17643 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17644
17645         [BZ #14117]
17646         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
17647         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
17648         sys/debugreg.h sys/io.h here.
17649         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
17650         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
17651         sys/io.h.
17652         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
17653         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
17654         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
17655         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
17656         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
17657         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
17658
17659         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
17660         Define only if __x86_64__ is defined.
17661
17662 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
17663
17664         [BZ #14048]
17665         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
17666         Use int64_t for variable i.
17667         * math/libm-test.inc (fmod_test): Add more tests.
17668
17669         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
17670         z computation is not scheduled after fetestexcept.
17671         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
17672         Use math_force_eval instead of asm to ensure calculation scheduled
17673         before exception test.
17674         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
17675         Ensure a1 + u.d computation is not scheduled after fetestexcept.
17676
17677 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
17678
17679         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
17680         computation is not scheduled after fetestexcept.
17681
17682 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
17683
17684         [BZ #14117]
17685         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
17686         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
17687
17688 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17689
17690         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
17691         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
17692
17693 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
17694
17695         [BZ #14117]
17696         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
17697         <bits/wordsize.h>.
17698         (__WCHAR_MIN): Support __WORDSIZE == 64.
17699         (__WCHAR_MAX): Likewise.
17700
17701         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
17702         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
17703
17704         [BZ #14183]
17705         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
17706         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
17707
17708         [BZ #14117]
17709         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
17710         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
17711
17712         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
17713         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
17714
17715         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
17716         Defined to 1 if __x86_64__ isn't defined.
17717         (_STAT_VER_LINUX_OLD): New.
17718         (st_atime): Remove duplicate.
17719         (st_mtime): Likewise.
17720         (st_ctime): Likewise.
17721
17722 2012-05-31  David S. Miller  <davem@davemloft.net>
17723
17724         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
17725         entries.
17726
17727 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
17728
17729         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
17730         gen-libm-test.pl.
17731
17732         [BZ #14132]
17733         * elf/dl-reloc.c: Include <_itoa.h>.
17734         (_dl_reloc_bad_type): Remove use of INTUSE.
17735         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
17736         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
17737         * stdio-common/psiginfo.c (psiginfo): Likewise.
17738         * stdio-common/psignal.c (psignal): Likewise.
17739         * string/strsignal.c (strsignal): Likewise.
17740         * include/signal.h (_sys_siglist): Declare hidden proto.
17741         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
17742         INTVARDEF with libc_hidden_data_def.
17743         * stdio-common/itoa-udigits.c: Likewise.
17744         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
17745         (_itoa_lower_digits_internal): Remove declaration.
17746         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
17747         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
17748         (_sys_sigabbrev_internal): Remove aliases.
17749         (_sys_siglist): Define hidden alias.
17750
17751 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
17752
17753         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17754         bits/sysctl.h.
17755
17756 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
17757
17758         [BZ #14117]
17759         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
17760         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
17761
17762         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
17763         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
17764         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
17765         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
17766         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
17767         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
17768
17769         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
17770         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
17771         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
17772
17773         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
17774         with __addr.
17775         (insw): Likewise.
17776         (insl): Likewise.
17777         (outsb): Likewise.
17778         (outsw): Likewise.
17779         (outsl): Likewise.
17780
17781         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
17782         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
17783         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
17784
17785         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
17786         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
17787         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
17788         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
17789         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
17790         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
17791
17792         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
17793         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
17794
17795         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
17796         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
17797
17798         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
17799         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
17800         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
17801
17802         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
17803         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
17804         to ...
17805         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
17806
17807         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
17808         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
17809         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
17810
17811         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
17812         for x86-64.
17813         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
17814
17815 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
17816
17817         * math/math.h (M_El): Use two more decimal places.
17818         (M_LOG2El): Likewise.
17819         (M_LOG10El): Likewise.
17820         (M_LN2l): Likewise.
17821         (M_LN10l): Likewise.
17822         (M_PIl): Likewise.
17823         (M_PI_2l): Likewise.
17824         (M_PI_4l): Likewise.
17825         (M_1_PIl): Likewise.
17826         (M_2_PIl): Likewise.
17827         (M_2_SQRTPIl): Likewise.
17828         (M_SQRT2l): Likewise.
17829         (M_SQRT1_2l): Likewise.
17830
17831 2012-05-31  David S. Miller  <davem@davemloft.net>
17832
17833         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
17834         values between float registers.
17835         * sysdeps/sparc/sparc64/memset.S: Likewise.
17836         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17837
17838 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
17839
17840         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
17841         -D_FORTIFY_SOURCE=1.
17842         (CPPFLAGS-tst-longjmp_chk.c): Define.
17843         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
17844         (CPPFLAGS-tst-longjmp_chk2.c): Define.
17845         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
17846         CFLAGS-tst-wchar-h.c.
17847
17848 2012-05-31  Marek Polacek  <polacek@redhat.com>
17849
17850         [BZ #14132]
17851         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
17852         __endmntent_internal): Remove declaration.
17853         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
17854         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
17855         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
17856
17857 2012-05-30  David S. Miller  <davem@davemloft.net>
17858
17859         * sysdeps/sparc/sparc32/soft-fp/q_util.c
17860         (___Q_simulate_exceptions): Use real FP ops rather than writing
17861         into the %fsr.
17862         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
17863         Likewise.
17864
17865 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17866
17867         [BZ #14117]
17868         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
17869         * sysdeps/x86/bits/xtitypes.h: This.
17870
17871         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
17872         * sysdeps/x86/bits/wordsize.h: This.
17873
17874         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
17875         * sysdeps/x86/bits/huge_vall.h: This.
17876
17877         * sysdeps/i386/bits/select.h: Removed.
17878         * sysdeps/x86_64/bits/select.h: Renamed to ...
17879         * sysdeps/x86/bits/select.h: This.
17880
17881         * sysdeps/i386/bits/setjmp.h: Removed.
17882         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
17883         * sysdeps/x86/bits/setjmp.h: This.
17884
17885         * sysdeps/i386/bits/mathdef.h: Removed.
17886         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
17887         * sysdeps/x86/bits/mathdef.h: This.
17888
17889 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
17890
17891         [BZ #14132]
17892         * include/sys/socket.h (__connect_internal)
17893         (__libc_sa_len_internal): Remove declaration.
17894         (__connect, __libc_sa_len): Declare hidden_proto.
17895         (SA_LEN): Remove use of INTUSE.
17896         * socket/connect.c: Add libc_hidden_def.
17897         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
17898         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
17899         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
17900         alias.
17901         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
17902         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
17903         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
17904         of adding _internal alias.
17905
17906 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17907
17908         [BZ #14117]
17909         * sysdeps/i386/bits/link.h: Removed.
17910         * sysdeps/i386/bits/linkmap.h: Likewise.
17911         * sysdeps/x86_64/bits/link.h: Renamed to ...
17912         * sysdeps/x86/bits/link.h: This.
17913         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
17914         * sysdeps/x86/bits/linkmap.h: This.
17915
17916         * sysdeps/i386/bits/endian.h: Removed.
17917         * sysdeps/x86_64/bits/endian.h: Renamed to ...
17918         * sysdeps/x86/bits/endian.h: This.
17919
17920         * sysdeps/i386/bits/byteswap.h: Removed.
17921         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17922         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
17923         * sysdeps/x86/bits/byteswap.h: This.
17924         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
17925         * sysdeps/x86/bits/byteswap-16.h: This.
17926         * sysdeps/i386/Implies: Add x86.
17927         * sysdeps/x86_64/Implies: Likewise.
17928
17929 2012-05-30  David S. Miller  <davem@davemloft.net>
17930
17931         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
17932         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
17933         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
17934         (FP_TRAPPING_EXCEPTIONS): Define.
17935         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
17936         (FP_TRAPPING_EXCEPTIONS): Define.
17937         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
17938         subnormals only when inexact has been signalled or underflow
17939         exceptions are enabled.
17940         (_FP_PACK_CANONICAL): Likewise.
17941
17942 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17943
17944         [BZ #14183]
17945         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
17946         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
17947
17948 2012-05-30  Richard Henderson  <rth@twiddle.net>
17949
17950         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
17951         with #ifndef NOT_IN_libc.
17952
17953         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
17954         marked to avoid plt entry.
17955
17956 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17957
17958         [BZ #14112]
17959         * Makeconfig (default-abi): New macro.
17960         (abi-includes): Likewise.
17961         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
17962         $(abi-$(default-abi)-lib-soname) for soname if defined.
17963         ($(common-objpfx)gnu/lib-names.stmp): Generate from
17964         abi-variants.
17965         * Makefile (installed-stubs): Likewise.
17966         * include/stubs-biarch.h: Removed.
17967         * scripts/lib-names.awk: Only handle one library at a time.
17968         * scripts/soversions.awk: Remove WORDSIZE support.
17969         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
17970         entries.
17971         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
17972         Removed.
17973         (syscall-list-default-condition): Likewise.
17974         (syscall-list-default-condition): Likewise.
17975         (syscall-list-includes): Likewise.
17976         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
17977         syscall-list-* with abi-*.  Handle undefined abi-variants.
17978         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
17979         * sysdeps/unix/sysv/linux/i386/Implies: New file.
17980         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
17981         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
17982         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
17983         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
17984         Removed.
17985         (syscall-list-32-options): Likewise.
17986         (syscall-list-32-condition): Likewise.
17987         (syscall-list-64-options): Likewise.
17988         (syscall-list-64-condition): Likewise.
17989         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
17990         macro.
17991         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
17992         Renamed to ...
17993         (abi-*): This.
17994         (abi-64-ld-soname): New macro.
17995         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
17996         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
17997         Renamed to ...
17998         (abi-*): This.
17999         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
18000         * sysdeps/x86_64/x32/shlib-versions: Likewise.
18001
18002 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
18003
18004         * sysdeps/unix/sysv/linux/kernel-features.h
18005         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
18006         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
18007         include <kernel-features.h>.
18008         [!__NR_ftruncate64]: Remove conditional code.
18009         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18010         [__NR_ftruncate64]: Make code unconditional.
18011         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18012         * sysdeps/unix/sysv/linux/truncate64.c: Do not
18013         include <kernel-features.h>.
18014         [!__NR_ftruncate64]: Remove conditional code.
18015         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18016         [__NR_ftruncate64]: Make code unconditional.
18017         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
18019         include <kernel-features.h>.
18020         [!__NR_ftruncate64]: Remove conditional code.
18021         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18022         [__NR_ftruncate64]: Make code unconditional.
18023         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
18025         include <kernel-features.h>.
18026         [!__NR_ftruncate64]: Remove conditional code.
18027         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18028         [__NR_ftruncate64]: Make code unconditional.
18029         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18030
18031         * configure.in (libc_cv_fpie): Weaken to a compile test using
18032         LIBC_TRY_CC_OPTION.
18033         * configure: Regenerated.
18034
18035 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18036
18037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
18038         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
18039         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
18040         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
18041         Refreshed.
18042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
18043         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
18044         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
18045         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
18046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
18047         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
18048         Refreshed.
18049
18050 2012-05-27  David S. Miller  <davem@davemloft.net>
18051
18052         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
18053         (___Q_zero): New.
18054         (__Q_simulate_exceptions): Return void.  Change to simulate
18055         exceptions by writing into the %fsr.
18056         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
18057         (__Qp_handle_exceptions): Likewise.
18058         (numbers): Delete.
18059         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
18060         __Qp_handle_exceptions.
18061         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
18062         __Qp_handle_exceptions.
18063         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18064         as unused and give dummy FP_RND_NEAREST initializer.
18065         (FP_INHIBIT_RESULTS): Define.
18066         (___Q_simulate_exceptions): Update declaration.
18067         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
18068         formatting.
18069         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18070         as unused and give dummy FP_RND_NEAREST initializer.
18071         (__Qp_handle_exceptions): Update declaration.
18072         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
18073         formatting.
18074
18075 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
18076
18077         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
18078         the temporary FPU control word.
18079         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
18080         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
18081         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
18082         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18083         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
18084         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
18085         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
18086         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18087         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
18088         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
18089         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18090
18091 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18092
18093         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
18094         fields.
18095
18096 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
18097
18098         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
18099         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
18100         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
18101         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
18102         Likewise.
18103         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
18104         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
18105         Likewise.
18106
18107 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
18108
18109         * po/h.po: Update from translation team.
18110
18111 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
18112
18113         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
18114
18115         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
18116         handling of denormals.
18117         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
18118         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
18119         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
18120         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
18121         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
18122         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
18123         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
18124         Likewise.
18125
18126 2012-05-26  Marek Polacek  <polacek@redhat.com>
18127
18128         [BZ #14152]
18129         * math/libm-test.inc (fma_test): Don't always expect underflow
18130         exception.
18131
18132 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18133
18134         [BZ #12416]
18135         * elf/tst-execstack.c: Include stackinfo.h.
18136         (do_test): Adjust test case to ensure that pthread_getattr_np
18137         behaviour remains the same after marking stack executable.
18138
18139 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18140
18141         * sysdeps/unix/sysv/linux/kernel-features.h
18142         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
18143         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
18144         kernel-features.h.
18145         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18146         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18147         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
18148         kernel-features.h.
18149         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18150         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18151
18152 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
18153
18154         * configure.in: Define the default includes to being none.
18155         * configure: Regenerated.
18156
18157 2012-05-25  Roland McGrath  <roland@hack.frob.com>
18158
18159         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
18160         * sysdeps/x86_64/setjmp.S: Likewise.
18161         * sysdeps/i386/bsd-setjmp.S: Likewise.
18162         * sysdeps/i386/bsd-_setjmp.S: Likewise.
18163         * sysdeps/i386/setjmp.S: Likewise.
18164         * sysdeps/i386/__longjmp.S: Likewise.
18165         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
18166         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
18167
18168         * include/stap-probe.h: New file.
18169         * configure.in: Handle --enable-systemtap.
18170         * configure: Regenerated.
18171         * config.h.in (USE_STAP_PROBE): New #undef.
18172         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
18173         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
18174         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
18175
18176 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18177
18178         [BZ #13717]
18179         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
18180         to 2.4.0 where earlier.
18181         * sysdeps/unix/sysv/linux/configure: Regenerated.
18182         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
18183         <kernel-features.h>.
18184         [__ASSUME_32BITUIDS]: Make code unconditional.
18185         [!__ASSUME_32BITUIDS]: Remove conditional code.
18186         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
18187         <kernel-features.h>.
18188         [__ASSUME_32BITUIDS]: Make code unconditional.
18189         [!__ASSUME_32BITUIDS]: Remove conditional code.
18190         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
18191         [__ASSUME_32BITUIDS]: Make code unconditional.
18192         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
18193         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
18194         <kernel-features.h>.
18195         [__ASSUME_32BITUIDS]: Make code unconditional.
18196         [!__ASSUME_32BITUIDS]: Remove conditional code.
18197         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
18198         <kernel-features.h>.
18199         [__ASSUME_32BITUIDS]: Make code unconditional.
18200         [!__ASSUME_32BITUIDS]: Remove conditional code.
18201         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
18202         <kernel-features.h>.
18203         [__ASSUME_32BITUIDS]: Make code unconditional.
18204         [!__ASSUME_32BITUIDS]: Remove conditional code.
18205         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
18206         <kernel-features.h>.
18207         [__ASSUME_32BITUIDS]: Make code unconditional.
18208         [!__ASSUME_32BITUIDS]: Remove conditional code.
18209         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
18210         <kernel-features.h>.
18211         [__ASSUME_32BITUIDS]: Make code unconditional.
18212         [!__ASSUME_32BITUIDS]: Remove conditional code.
18213         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
18214         <kernel-features.h>.
18215         [__ASSUME_32BITUIDS]: Make code unconditional.
18216         [!__ASSUME_32BITUIDS]: Remove conditional code.
18217         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
18218         <kernel-features.h>.
18219         [__ASSUME_32BITUIDS]: Make code unconditional.
18220         [!__ASSUME_32BITUIDS]: Remove conditional code.
18221         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
18222         <kernel-features.h>.
18223         [__ASSUME_32BITUIDS]: Make code unconditional.
18224         [!__ASSUME_32BITUIDS]: Remove conditional code.
18225         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
18226         <kernel-features.h>.
18227         [__ASSUME_32BITUIDS]: Make code unconditional.
18228         [!__ASSUME_32BITUIDS]: Remove conditional code.
18229         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
18230         <kernel-features.h>.
18231         [__ASSUME_32BITUIDS]: Make code unconditional.
18232         [!__ASSUME_32BITUIDS]: Remove conditional code.
18233         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
18234         <kernel-features.h>.
18235         [__NR_setresgid] (__setresgid): Do not declare.
18236         [__ASSUME_32BITUIDS]: Make code unconditional.
18237         [!__ASSUME_32BITUIDS]: Remove conditional code.
18238         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
18239         <kernel-features.h>.
18240         [__NR_setresuid] (__setresuid): Do not declare.
18241         [__ASSUME_32BITUIDS]: Make code unconditional.
18242         [!__ASSUME_32BITUIDS]: Remove conditional code.
18243         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
18244         <kernel-features.h>.
18245         [__ASSUME_32BITUIDS]: Make code unconditional.
18246         [!__ASSUME_32BITUIDS]: Remove conditional code.
18247         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
18248         <kernel-features.h>.
18249         [__ASSUME_32BITUIDS]: Make code unconditional.
18250         [!__ASSUME_32BITUIDS]: Remove conditional code.
18251         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
18252         <kernel-features.h>.
18253         [__ASSUME_32BITUIDS]: Make code unconditional.
18254         [!__ASSUME_32BITUIDS]: Remove conditional code.
18255         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
18256         <kernel-features.h>.
18257         [__ASSUME_32BITUIDS]: Make code unconditional.
18258         [!__ASSUME_32BITUIDS]: Remove conditional code.
18259         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
18260         <kernel-features.h>.
18261         [__ASSUME_32BITUIDS]: Make code unconditional.
18262         [!__ASSUME_32BITUIDS]: Remove conditional code.
18263         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
18264         <kernel-features.h>.
18265         [__ASSUME_32BITUIDS]: Make code unconditional.
18266         [!__ASSUME_32BITUIDS]: Remove conditional code.
18267         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
18268         <kernel-features.h>.
18269         [__ASSUME_32BITUIDS]: Make code unconditional.
18270         [!__ASSUME_32BITUIDS]: Remove conditional code.
18271         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
18272         <kernel-features.h>.
18273         [__ASSUME_32BITUIDS]: Make code unconditional.
18274         [!__ASSUME_32BITUIDS]: Remove conditional code.
18275         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
18276         <kernel-features.h>.
18277         [__ASSUME_32BITUIDS]: Make code unconditional.
18278         [!__ASSUME_32BITUIDS]: Remove conditional code.
18279         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
18280         <kernel-features.h>.
18281         [__ASSUME_32BITUIDS]: Make code unconditional.
18282         [!__ASSUME_32BITUIDS]: Remove conditional code.
18283         * sysdeps/unix/sysv/linux/kernel-features.h
18284         (__ASSUME_SETRESUID_SYSCALL): Remove.
18285         (__ASSUME_SETRESGID_SYSCALL): Likewise.
18286         (__ASSUME_32BITUIDS): Likewise.
18287         (__ASSUME_LDT_WORKS): Likewise.
18288         (__ASSUME_O_DIRECTORY): Likewise.
18289         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
18290         architecture but not kernel version.
18291         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
18292         (__ASSUME_MMAP2_SYSCALL): Likewise.
18293         (__ASSUME_STAT64_SYSCALL): Likewise.
18294         (__ASSUME_IPC64): Likewise.
18295         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
18296         <kernel-features.h>.
18297         [__ASSUME_32BITUIDS]: Make code unconditional.
18298         [!__ASSUME_32BITUIDS]: Remove conditional code.
18299         * sysdeps/unix/sysv/linux/opendir.c: Do not include
18300         <kernel-features.h>.
18301         [__ASSUME_O_DIRECTORY]: Make code unconditional.
18302         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
18303         132096]: Remove conditional code.
18304         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
18305         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
18306         <kernel-features.h>.
18307         [__ASSUME_32BITUIDS]: Make code unconditional.
18308         [!__ASSUME_32BITUIDS]: Remove conditional code.
18309         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
18310         <kernel-features.h>.
18311         [__ASSUME_32BITUIDS]: Make code unconditional.
18312         [!__ASSUME_32BITUIDS]: Remove conditional code.
18313         * sysdeps/unix/sysv/linux/setegid.c: Do not include
18314         <kernel-features.h>.
18315         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
18316         unconditional.
18317         (__setresgid): Do not declare.
18318         [__ASSUME_32BITUIDS]: Make code unconditional.
18319         [!__ASSUME_32BITUIDS]: Remove conditional code.
18320         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
18321         <kernel-features.h>.
18322         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
18323         unconditional.
18324         (__setresuid): Do not declare.
18325         [__ASSUME_32BITUIDS]: Make code unconditional.
18326         [!__ASSUME_32BITUIDS]: Remove conditional code.
18327         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
18328         <kernel-features.h>.
18329         [__ASSUME_32BITUIDS]: Make code unconditional.
18330         [!__ASSUME_32BITUIDS]: Remove conditional code.
18331         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
18332         <kernel-features.h>.
18333         [__ASSUME_32BITUIDS]: Make code unconditional.
18334         [!__ASSUME_32BITUIDS]: Remove conditional code.
18335
18336 2012-05-25  Richard Henderson  <rth@twiddle.net>
18337
18338         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
18339         dl_hwcap to ifunc resolver.
18340         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
18341         elf_ifunc_invoke.
18342         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
18343         dl_hwcap to ifunc resolver.
18344         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
18345
18346 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18347
18348         [BZ #14153]
18349         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
18350         for |x| <= 2**-26, not 2**-57.
18351         * math/libm-test.inc (acos_test): Do not allow spurious underflow
18352         exception.
18353
18354 2012-05-24  Jeff Law  <law@redhat.com>
18355
18356         * stdio-common/Makefile (tests): Add bug25.
18357         * stdio-common/bug25.c: New test.
18358
18359 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18360
18361         [BZ #13576]
18362         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
18363         multiple of MALLOC_ALIGNMENT in size.
18364         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
18365
18366 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18367
18368         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
18369         Require >= 256.
18370         (FILENAME_MAX): Use macro-int-constant.
18371         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
18372         (_IOFBF): Use macro-int-constant.
18373         (_IOLBF): Likewise.
18374         (_IONBF): Likewise.
18375         (SEEK_CUR): Likewise.
18376         (SEEK_END): Likewise.
18377         (SEEK_SET): Likewise.
18378         (TMP_MAX): Likewise.
18379         (EOF): Use macro-int-constant.  Require < 0.
18380         (NULL): Use macro-constant.  Require == 0.
18381         (stdin): Require type to be FILE *.
18382         (stdout): Likewise.
18383         (stderr): Likewise.
18384         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
18385         macro-int-constant.
18386         (EXIT_SUCCESS): Likewise.
18387         (NULL): Use macro-constant.  Require == 0.
18388         (RAND_MAX): Use macro-int-constant.
18389         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
18390         [C99-based standards] (strtof): Require function.
18391         [C99-based standards] (strtold): Likewise.
18392         [C99-based standards] (strtoll): Likewise.
18393         [C99-based standards] (strtoull): Likewise.
18394         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
18395         [ISO || ISO99 || ISO11] (limits.h): Likewise.
18396         [ISO || ISO99 || ISO11] (math.h): Likewise.
18397         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
18398         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
18399         [ISO || ISO99 || ISO11] (*_t): Do not allow.
18400
18401 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
18402
18403         [BZ #14132]
18404         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
18405         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
18406         * intl/dgettext.c (DCGETTEXT): Likewise.
18407         * intl/gettext.c (DCGETTEXT): Likewise.
18408         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
18409         * posix/regex_internal.h (gettext): Likewise.
18410         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
18411         Remove declaration.
18412         * include/argz.h (__argz_count_internal)
18413         (__argz_stringify_internal): Remove declaration.
18414         (__argz_count, __argz_stringify): Declare hidden proto.
18415         * intl/dcgettext.c: Remove use of INTDEF.
18416         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
18417         * string/argz-stringify.c: Likewise.
18418         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
18419         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
18420         Declare hidden proto.
18421         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
18422         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
18423         Declare hidden proto.
18424         * include/stdio.h (__asprintf_internal): Don't declare.
18425         (__asprintf): Don't define as macro.  Declare hidden proto.
18426         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
18427         (__fsetlocking): Declare hidden proto.
18428         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
18429         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
18430         hidden proto.
18431         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
18432         (_IO_setlinebuf): Remove use of INTUSE.
18433         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
18434         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
18435         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
18436         Remove declaration.
18437         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
18438         (_IO_do_flush): Remove use of INTUSE.
18439         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
18440         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
18441         (_IO_adjust_column, _IO_least_wmarker)
18442         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
18443         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
18444         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
18445         (_IO_default_doallocate, _IO_wdefault_doallocate)
18446         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
18447         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
18448         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
18449         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
18450         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
18451         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
18452         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
18453         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
18454         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
18455         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
18456         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
18457         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
18458         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
18459         proto.
18460         (_IO_flush_all_internal, _IO_adjust_column_internal)
18461         (_IO_default_uflow_internal, _IO_default_finish_internal)
18462         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
18463         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
18464         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
18465         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
18466         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
18467         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
18468         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
18469         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
18470         (_IO_file_close_internal, _IO_file_close_it_internal)
18471         (_IO_file_underflow_internal, _IO_file_overflow_internal)
18472         (_IO_file_init_internal, _IO_file_attach_internal)
18473         (_IO_file_fopen_internal, _IO_file_read_internal)
18474         (_IO_file_sync_internal, _IO_file_seek_internal)
18475         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
18476         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
18477         (_IO_str_underflow_internal, _IO_str_overflow_internal)
18478         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
18479         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
18480         (_IO_list_all_internal, _IO_link_in_internal)
18481         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
18482         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
18483         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
18484         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
18485         (_IO_do_write_internal, _IO_padn_internal)
18486         (_IO_getline_info_internal, _IO_getline_internal)
18487         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
18488         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
18489         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
18490         (_IO_vfscanf_internal, _IO_vfprintf_internal)
18491         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
18492         (_IO_init_internal, _IO_un_link_internal): Don't declare.
18493         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
18494         with libc_hidden_ver, remove use of INTUSE.
18495         * libio/genops.c: Likewise.
18496         * libio/freopen.c: Likewise.
18497         * libio/freopen64.c: Likewise.
18498         * libio/iofclose.c: Likewise.
18499         * libio/iofdopen.c: Likewise.
18500         * libio/iofflush.c: Likewise.
18501         * libio/iofflush_u.c: Likewise.
18502         * libio/iofgets.c: Likewise.
18503         * libio/iofgets_u.c: Likewise.
18504         * libio/iofopen.c: Likewise.
18505         * libio/iofopncook.c: Likewise.
18506         * libio/iofread.c: Likewise.
18507         * libio/iofread_u.c: Likewise.
18508         * libio/ioftell.c: Likewise.
18509         * libio/iofwrite.c: Likewise.
18510         * libio/iogetline.c: Likewise.
18511         * libio/iogets.c: Likewise.
18512         * libio/iogetwline.c: Likewise.
18513         * libio/iopadn.c: Likewise.
18514         * libio/iopopen.c: Likewise.
18515         * libio/ioseekoff.c: Likewise.
18516         * libio/ioseekpos.c: Likewise.
18517         * libio/iosetbuffer.c: Likewise.
18518         * libio/iosetvbuf.c: Likewise.
18519         * libio/ioungetc.c: Likewise.
18520         * libio/ioungetwc.c: Likewise.
18521         * libio/iovdprintf.c: Likewise.
18522         * libio/iovsprintf.c: Likewise.
18523         * libio/iovsscanf.c: Likewise.
18524         * libio/memstream.c: Likewise.
18525         * libio/obprintf.c: Likewise.
18526         * libio/oldfileops.c: Likewise.
18527         * libio/oldiofclose.c: Likewise.
18528         * libio/oldiofdopen.c: Likewise.
18529         * libio/oldiofopen.c: Likewise.
18530         * libio/oldiopopen.c: Likewise.
18531         * libio/oldstdfiles.c: Likewise.
18532         * libio/putc.c: Likewise.
18533         * libio/setbuf.c: Likewise.
18534         * libio/setlinebuf.c: Likewise.
18535         * libio/stdfiles.c: Likewise.
18536         * libio/strops.c: Likewise.
18537         * libio/vasprintf.c: Likewise.
18538         * libio/vscanf.c: Likewise.
18539         * libio/vsnprintf.c: Likewise.
18540         * libio/vswprintf.c: Likewise.
18541         * libio/wfiledoalloc.c: Likewise.
18542         * libio/wfileops.c: Likewise.
18543         * libio/wgenops.c: Likewise.
18544         * libio/wmemstream.c: Likewise.
18545         * libio/wstrops.c: Likewise.
18546         * libio/__fpurge.c: Likewise.
18547         * libio/__fsetlocking.c: Likewise.
18548         * assert/assert.c: Likewise.
18549         * debug/fgets_chk.c: Likewise.
18550         * debug/fgets_u_chk.c: Likewise.
18551         * debug/fread_chk.c: Likewise.
18552         * debug/fread_u_chk.c: Likewise.
18553         * debug/gets_chk.c: Likewise.
18554         * debug/obprintf_chk.c: Likewise.
18555         * debug/vasprintf_chk.c: Likewise.
18556         * debug/vdprintf_chk.c: Likewise.
18557         * debug/vsnprintf_chk.c: Likewise.
18558         * debug/vsprintf_chk.c: Likewise.
18559         * malloc/mtrace.c: Likewise.
18560         * misc/error.c: Likewise.
18561         * misc/syslog.c: Likewise.
18562         * stdio-common/asprintf.c: Likewise.
18563         * stdio-common/fxprintf.c: Likewise.
18564         * stdio-common/getw.c: Likewise.
18565         * stdio-common/isoc99_fscanf.c: Likewise.
18566         * stdio-common/isoc99_scanf.c: Likewise.
18567         * stdio-common/isoc99_vfscanf.c: Likewise.
18568         * stdio-common/isoc99_vscanf.c: Likewise.
18569         * stdio-common/isoc99_vsscanf.c: Likewise.
18570         * stdio-common/printf-prs.c: Likewise.
18571         * stdio-common/printf_fp.c: Likewise.
18572         * stdio-common/printf_fphex.c: Likewise.
18573         * stdio-common/printf_size.c: Likewise.
18574         * stdio-common/putw.c: Likewise.
18575         * stdio-common/scanf.c: Likewise.
18576         * stdio-common/sprintf.c: Likewise.
18577         * stdio-common/tmpfile.c: Likewise.
18578         * stdio-common/vfprintf.c: Likewise.
18579         * stdio-common/vfscanf.c: Likewise.
18580         * stdlib/strfmon_l.c: Likewise.
18581         * sunrpc/openchild.c: Likewise.
18582         * sunrpc/xdr_stdio.c: Likewise.
18583         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18584         * sysdeps/mach/hurd/tmpfile.c: Likewise.
18585
18586 2012-05-24  Roland McGrath  <roland@hack.frob.com>
18587
18588         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
18589
18590         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
18591         in the third column, to generate for the shared library an IFUNC
18592         that uses _dl_vdso_vsym.
18593         * Makerules (COMPILE.c, compile-stdin.c): New variables.
18594         * Makeconfig (object-suffixes-noshared): New variable.
18595
18596         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
18597         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
18598         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
18599         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
18600
18601         [BZ #14132]
18602         * include/sys/time.h (__gettimeofday): Remove macro.
18603         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
18604         * time/gettimeofday.c (__gettimeofday): Remove #undef.
18605         Remove INTDEF.
18606         (__gettimeofday): Add libc_hidden_def.
18607         (gettimeofday): Add libc_hidden_weak.
18608         * sysdeps/mach/gettimeofday.c: Likewise.
18609         * sysdeps/posix/gettimeofday.c: Likewise.
18610         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18611         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
18612         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
18613         (__gettimeofday_internal): Remove strong_alias.
18614         (__gettimeofday): Add libc_hidden_def.
18615         (gettimeofday): Add libc_hidden_weak.
18616         * sysdeps/unix/syscalls.list (gettimeofday):
18617         Remove __gettimeofday_internal alias.
18618
18619 2012-05-24  Daniel Jacobowitz  <drow@false.org>
18620             H.J. Lu  <hongjiu.lu@intel.com>
18621
18622         [BZ #12495]
18623         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
18624         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
18625         (largebin_index_32_big): New.
18626         (largebin_index): Use it for 16-byte alignment.
18627         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
18628         correction with front_misalign.
18629
18630 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18631
18632         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
18633         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
18634         Likewise.
18635         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
18636         Likewise.
18637         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
18638         Likewise.
18639         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
18640         Likewise.
18641         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
18642         Likewise.
18643         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
18644         Likewise.
18645         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
18646         Likewise.
18647         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
18648         Likewise.
18649         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
18650         Likewise.
18651         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
18652         Likewise.
18653         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
18654         Likewise.
18655         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
18656         Likewise.
18657
18658         * scripts/data/c++-types-x32-linux-gnu.data: New file.
18659         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
18660
18661 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
18662
18663         [BZ #10846]
18664         [BZ #14036]
18665         * math/libm-test.inc (exp_test): Add test from bug 14036.
18666         (pow_test): Add test from bug 10846.
18667
18668         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
18669         and other flags.
18670         (special_function): Do not include flags in test name.
18671         (parse_args): Likewise.
18672         * sysdeps/i386/fpu/libm-test-ulps: Update.
18673         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18674         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
18675         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
18676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18677
18678         * math/gen-libm-test.pl (%beautify): Add entries for underflow
18679         exceptions.
18680         * math/libm-test.inc ("Philosophy"): Update comment about
18681         exception testing.
18682         (UNDERFLOW_EXCEPTION): New macro.
18683         (UNDERFLOW_EXCEPTION_OK): Likewise.
18684         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
18685         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
18686         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
18687         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
18688         (INVALID_EXCEPTION_OK): Update value.
18689         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18690         (OVERFLOW_EXCEPTION_OK): Likewise.
18691         (IGNORE_ZERO_INF_SIGN): Likewise.
18692         (test_exceptions): Handle underflow exceptions.
18693         (acos_test): Update for underflow exception expectations.
18694         (cexp_test): Likewise.
18695         (clog_test): Likewise.
18696         (clog10_test): Likewise.
18697         (csqrt_test): Likewise.
18698         (ctan_test): Likewise.
18699         (ctanh_test): Likewise.
18700         (exp_test): Likewise.
18701         (exp10_test): Likewise.
18702         (exp2_test): Likewise.
18703         (expm1_test): Likewise.
18704         (fma_test): Likewise.
18705         (j0_test): Likewise.
18706         (jn_test): Likewise.
18707         (nexttoward_test): Likewise.
18708         (pow_test): Likewise.
18709         (scalbn_test): Likewise.
18710         (scalbln_test): Likewise.
18711         (tan_test): Likewise.
18712         (y1_test): Likewise.
18713         * sysdeps/i386/fpu/libm-test-ulps: Update.
18714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18715
18716 2012-05-23  David S. Miller  <davem@davemloft.net>
18717
18718         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
18719         (__libc_sigaction): Remove unused local variables.
18720
18721 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18722
18723         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
18724
18725 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18726
18727         mktime: avoid signed integer overflow
18728         * time/mktime.c (__mktime_internal): Do not mishandle the case
18729         where diff == INT_MIN.
18730
18731         mktime: simplify computation of average
18732         * time/mktime.c (ranged_convert): Use new time_t_avg function
18733         instead of rolling our own (probably-slower) code.
18734
18735         mktime: do not assume signed right shift propagates sign bit
18736         * time/mktime.c (isdst_differ): New static function.
18737         (__mktime_internal): No need to normalize tm_isdst now.
18738         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
18739         tm_isdst values.
18740
18741         mktime: merge another wrapv change from gnulib
18742         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
18743         from some compilers.
18744
18745         mktime: remove incorrect attempt at unusual arithmetics
18746         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
18747         The code didn't really work on such machines anyway.
18748         (TYPE_MINIMUM): Assume two's complement.
18749         (twos_complement_arithmetic): Verify that long_int and time_t
18750         are two's complement (or unsigned, in the latter case).
18751
18752         mktime: check signed shifts on long_int and time_t, too
18753         * time/mktime.c (SHR): Check that shifts work as desired
18754         on the types long_int and time_t too, as SHR is used on
18755         such types.
18756
18757         mktime: do not assume 'long' is wide enough
18758         * time/mktime.c (verify): Move decl up.
18759         (long_int): New type.
18760         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
18761         to remove assumption in the code that 'long' is wide enough to
18762         store year values.  This assumption is not true on x32 and on
18763         some non-glibc platforms.
18764
18765         mktime: merge wrapv change from gnulib
18766         * time/mktime.c (WRAPV): New macro.
18767         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
18768         (guess_time_tm, __mktime_internal): Do not assume that signed
18769         integer overflow wraps around; modern compilers generate code
18770         where this assumption is no longer valid.
18771
18772 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18773
18774         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
18775         Replace "jmp L(pseudo_end)" with "ret".
18776         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
18777         Likewise.
18778
18779 2012-05-23  Andreas Jaeger  <aj@suse.de>
18780
18781         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
18782         * sysdeps/unix/sysv/linux/poll.c: Remove file.
18783
18784 2012-05-23  Andreas Jaeger  <aj@suse.de>
18785             Maximilian Attems  <max@stro.at>
18786
18787         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
18788         New macros.
18789
18790 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18791
18792         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
18793         code so that pseudo_end is just ret and the stack pointer is
18794         correct also for static library in error case.
18795
18796 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
18797
18798         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
18799         move to syscalls.list.
18800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
18801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
18802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
18803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
18804
18805         * manual/install.texi (Running make install): Do not mention Linux
18806         kernel version for which pt_chown is not needed.
18807         (Linux): Do not mention problems with nscd with 2.0 kernels.
18808         * INSTALL: Regenerated.
18809
18810 2012-05-23  Andreas Jaeger  <aj@suse.de>
18811
18812         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
18813         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
18814         macro.
18815         * sysdeps/unix/sysv/linux/s390/bits/mman.h
18816         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18817         * sysdeps/unix/sysv/linux/sh/bits/mman.h
18818         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18819         * sysdeps/unix/sysv/linux/i386/bits/mman.h
18820         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18821         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
18822         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18823         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
18824         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18825         * sysdeps/unix/sysv/linux/bits/in.h
18826         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
18827
18828 2012-05-22  Roland McGrath  <roland@hack.frob.com>
18829
18830         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
18831         (PREPARE_VERSION): Just use assert instead, it will be elided
18832         under [NDEBUG] anyway.
18833
18834 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18835
18836         * sysdeps/unix/sysv/linux/Makefile: Include
18837         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
18838         (sysdep_routines): Remove sysctl.
18839         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
18840         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
18841         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
18842         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
18843         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
18844
18845 2012-05-22  Andreas Jaeger  <aj@suse.de>
18846
18847         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
18848         that pseudo_end is just ret and the stack pointer is correct also
18849         for static library in error case.
18850
18851 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
18852
18853         [BZ #14122]
18854         * nss/nsswitch.c (defconfig_entries): New variable.
18855         (__nss_database_lookup): Don't leak defconfig entries.
18856         (nss_parse_service_list): Don't leak on error paths.
18857         (free_database_entries): New function.
18858         (free_defconfig): New function.
18859         (free_mem): Move common code to free_database_entries.
18860
18861 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18862
18863         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
18864         Add arch_prctl.
18865         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
18866
18867         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18868         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
18869         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
18870         New macro.
18871         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
18872         (INTERNAL_SYSCALL_TYPES): Likewise.
18873         (LOAD_ARGS_TYPES_[1-6]): Likewise.
18874         (LOAD_REGS_TYPES_[1-6]): Likewise.
18875         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
18876         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
18877
18878 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18879
18880         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
18881         copysignl for GLIBC_2_0.
18882         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
18883         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
18884         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
18885         logbl for GLIBC_2_0.
18886         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
18887         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
18888
18889 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18890
18891         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
18892         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
18893
18894         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
18895         Use "neg %eax".
18896
18897         * time/mktime.c: Update copyright years.
18898
18899 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18900
18901         mktime: merge comment-quoting-style change from gnulib
18902         * time/mktime.c: Quote 'like this' in comments.
18903         The GNU coding standards suggest that we no longer quote `like this',
18904         as "`" and "'" are typically rendered asymmetrically nowadays.
18905         The typical gnulib style is to quote 'like this' when quoting
18906         code, and "like this" when quoting English.
18907
18908         * time/mktime.c (compile-command): Add "-I.".
18909
18910         mktime: merge mktime-internal.h change from gnulib
18911         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
18912
18913         mktime: merge time_r change from gnulib
18914         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
18915
18916         mktime: merge DEBUG change from gnulib
18917         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
18918         case system <time.h> has a #define.
18919
18920         mktime: merge <sys/types.h> change from gnulib
18921         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
18922         since <time.t> is now guaranteed to define time_t.
18923
18924         mktime: merge HAVE_CONFIG_H change from gnulib
18925         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
18926
18927 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18928
18929         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
18930         Use "neg %eax".
18931
18932         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
18933         __rlim_t cast.
18934         (struct rusage): Use anonymous union to pad each field to
18935         __syscall_slong_t.
18936
18937 2012-05-21  David S. Miller  <davem@davemloft.net>
18938
18939         * Makefules (o-iterator): Remove .s cases.
18940         (compile-command.s): Delete.
18941         (COMPILE.s): Delete.
18942         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
18943
18944 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
18945
18946         * configure.in (libc_cv_predef_stack_protector): Only consider
18947         "foobar" and "__stack_chk_fail" lines in libc_undefs.
18948         * configure: Regenerated.
18949
18950 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18951
18952         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
18953         New macro.  Use R*LP on int and pointer.
18954         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
18955         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
18956         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
18957         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
18958
18959         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
18960         [__WORDSIZE_TIME64_COMPAT32] instead of
18961         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
18962         (struct utmp): Likewise.
18963         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
18964         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
18965         Renamed to ...
18966         (__WORDSIZE_TIME64_COMPAT32): This.
18967         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
18968         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
18969         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
18970         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
18971         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
18972         (__WORDSIZE_TIME64_COMPAT32): New macro.
18973
18974 2012-05-21  Andreas Jaeger  <aj@suse.de>
18975
18976         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
18977         only if [SHARED]. Add prototype for __wcschr_ia32.
18978
18979 2012-05-21  Roland McGrath  <roland@hack.frob.com>
18980
18981         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
18982         of %rbp unmolested in the jmp_buf while mangling the low bits.
18983         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
18984         unmolested high bits of %rbp while demangling the low bits.
18985         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
18986
18987 2012-05-21  Andreas Jaeger  <aj@suse.de>
18988
18989         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
18990         * sunrpc/svc_simple.c: Use it for registerrpc.
18991         * sunrpc/xcrypt.c: Use it for passwd2des.
18992
18993         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
18994
18995 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18996
18997         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
18998         Don't define if [__SYSCALL_WORDSIZE != 32].
18999         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
19000         New macro.
19001
19002 2012-05-21  Bruno Haible  <bruno@clisp.org>
19003             Andreas Jaeger  <aj@suse.de>
19004
19005         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
19006         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
19007         inptr and inend for must_buffer_ch.
19008         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
19009         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
19010         * stdio-common/Makefile (tests): Remove bug15.
19011         (bug15-ENV): Remove macro.
19012         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
19013         anymore.
19014
19015 2012-05-19  Andreas Jaeger  <aj@suse.de>
19016             Roland McGrath  <roland@hack.frob.com>
19017
19018         * manual/contrib.texi: Completely rewritten. It contains now an
19019         alphabetical list of contributors and their contributions.
19020
19021 2012-05-21  Richard Henderson  <rth@twiddle.net>
19022
19023         * misc/getauxval.c (__getauxval): Use unsigned long int.
19024         * misc/sys/auxv.h: Include <sys/cdefs.h>.
19025         (getauxval): Use unsigned long int.
19026
19027 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19028
19029         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19030
19031 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19032
19033         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
19034         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
19035         __alignof__ (long double).
19036
19037 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19038
19039         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19040
19041 2012-05-20  Richard Henderson  <rth@twiddle.net>
19042
19043         * misc/getauxval.c: New file.
19044         * misc/sys/auxv.h: New file.
19045         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
19046         (routines): Add getauxval.
19047         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
19048         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
19049         * elf/dl-sysdep.c (_dl_auxv): Remove.
19050         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
19051         * elf/dl-support.c (_dl_auxv): New variable.
19052         (_dl_aux_init): Initialize it.
19053         * manual/startup.texi (Auxiliary Vector): New node.
19054         * sysdeps/generic/bits/hwcap.h: New file.
19055         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
19056         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
19057         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
19058         * sysdeps/sparc/sysdep.h: ... here.  Include it.
19059         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
19060         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
19061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19062         Update.
19063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
19064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
19065         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
19066         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
19067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19068         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19069         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
19070         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
19071
19072 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19073
19074         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19075
19076 2012-05-19  David S. Miller  <davem@davemloft.net>
19077
19078         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19079
19080 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19081
19082         [BZ #14123]
19083         * math/s_ccosh.c: Include <float.h>
19084         (__ccosh): Avoid internal overflow calculating sinh and cosh
19085         values before multiplying by sin and cos values.
19086         * math/s_ccoshf.c: Likewise.
19087         * math/s_ccoshl.c: Likewise.
19088         * math/s_csin.c: Likewise.
19089         * math/s_csinf.c: Likewise.
19090         * math/s_csinl.c: Likewise.
19091         * math/s_csinh.c: Likewise.
19092         * math/s_csinhf.c: Likewise.
19093         * math/s_csinhl.c: Likewise.
19094         * math/libm-test.inc (ccos_test): Add more tests.
19095         (ccosh_test): Likewise.
19096         (csin_test): Likewise.
19097         (csinh_test): Likewise.
19098         * sysdeps/i386/fpu/libm-test-ulps: Update.
19099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19100
19101 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19102
19103         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
19104         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
19105
19106         * sysdeps/x86_64/x32/_itoa.h: Add comment.
19107
19108 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19109
19110         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
19111         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
19112         * sysdeps/powerpc/soft-fp/Versions: Likewise.
19113         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
19114         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
19115         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
19116         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
19117         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
19118         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
19119         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
19120         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
19121         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
19122         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
19123         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
19124         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
19125         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
19126         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
19127         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
19128         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
19129         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
19130         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
19131         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
19132         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
19133         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
19134         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
19135         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
19136         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
19137         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
19138         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
19139         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
19140         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
19141
19142 2012-05-18  Andreas Jaeger  <aj@suse.de>
19143
19144         * csu/.gitignore: Delete.
19145
19146 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19147
19148         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
19149         (timex): Use __syscall_slong_t.
19150
19151 2012-05-18  Andreas Jaeger  <aj@suse.de>
19152             Carlos O'Donell  <carlos_odonell@mentor.com>
19153
19154         * manual/install.texi (Configuring and compiling): Update
19155         description about files modified in the source directory.
19156         * INSTALL: Regenerated.
19157
19158 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19159
19160         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
19161         value.  Use "or" to set return value to -1.
19162         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
19163         negate return value.
19164
19165 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19166
19167         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
19168         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
19169         failure if the compiler has Graphite support disabled.
19170         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
19171         Likewise.
19172         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
19173         CFLAGS-memmove.c): Likewise.
19174         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
19175         Likewise.
19176
19177 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19178
19179         * sysdeps/x86_64/x32/_itoa.h: New file.
19180
19181         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
19182         getdents system call only if kernel and user dirents have the
19183         same d_ino and d_off.
19184
19185         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19186         LLONG_MAX != LONG_MAX.
19187         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19188         (_fitoa_word): Likewise.
19189
19190         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
19191         years.
19192         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
19193         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
19194         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
19195
19196         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
19197         include <bits/wordsize.h>.  Check __x86_64__ instead of
19198         __WORDSIZE.
19199         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
19200         if __x86_64__ is defined.  Use anonymous union on fpstate.
19201
19202         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
19203         anonymous union.
19204
19205 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
19206
19207         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
19208         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
19209         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
19210         Refer to _rtld_local_ro instead of _rtld_global_ro.
19211         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
19212         Likewise.
19213         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
19214         Likewise.
19215         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
19216         Likewise.
19217         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
19218         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
19219         of _rtld_global, and rtld_progname instead of _dl_argv[0].
19220
19221         * sysdeps/powerpc/powerpc32/dl-machine.c
19222         (__elf_machine_runtime_setup) [PROF]: Don't reference
19223         _dl_prof_resolve.
19224
19225 2012-05-18  Andreas Jaeger  <aj@suse.de>
19226
19227         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
19228         function only available for GCCs before 3.4 since GCC 3.4
19229         introduced a builtin.
19230         (lrint): Likewise.
19231         (llrintf): Likewise.
19232         (llrint): Likewise.
19233         (fmaxf): Likewise.
19234         (fmax): Likewise.
19235         (fminf): Likewise.
19236         (fmin): Likewise.
19237         (rint): Likewise.
19238         (rintf): Likewise.
19239         (nearbyint): Likewise.
19240         (nearbyintf): Likewise.
19241         (ceil): Likewise.
19242         (ceilf): Likewise.
19243         (floor): Likewise.
19244         (floorf): Likewise.
19245
19246 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19247
19248         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
19249         on both fields and cast pointer to __syscall_ulong_t.
19250
19251         * bits/types.h (__fsword_t): New type.
19252         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
19253         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
19254         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19255         (__FSWORD_T_TYPE): Likewise.
19256         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19257         (__FSWORD_T_TYPE): Likewise.
19258         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19259         (__FSWORD_T_TYPE): Likewise.
19260         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
19261         (__FSWORD_T_TYPE): Likewise.
19262         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
19263         __SWORD_TYPE with __fsword_t.
19264         (statfs64): Likewise.
19265
19266 2012-05-17  David S. Miller  <davem@davemloft.net>
19267
19268         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
19269
19270 2012-05-17  Andreas Jaeger  <aj@suse.de>
19271
19272         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
19273         warning.
19274
19275 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19276
19277         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
19278
19279 2012-05-17  Andreas Jaeger  <aj@suse.de>
19280
19281         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
19282         when it is used.
19283
19284 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
19285
19286         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
19287
19288 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19289
19290         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
19291         * sysdeps/x86_64/tst-mallocalign1.c: New file.
19292
19293 2012-05-17  Andreas Jaeger  <aj@suse.de>
19294             Carlos O'Donell  <carlos_odonell@mentor.com>
19295
19296         [BZ #14059]
19297         * sysdeps/x86_64/multiarch/init-arch.h
19298         (bit_YMM_Usable): Rename to...
19299         (bit_AVX_Usable): ... this.
19300         (bit_FMA4_Usable): New macro.
19301         (bit_XMM_state): New macro.
19302         (bit_YMM_state): New macro.
19303         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
19304         [__ASSEMBLER__] (index_AVX_Usable): ... this.
19305         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
19306         (CPUID_OSXSAVE): New macro.
19307         (CPUID_AVX): New macro.
19308         (CPUID_FMA4): New macro.
19309         (index_YMM_Usable): Rename to...
19310         (index_AVX_Usable): ... this.
19311         (HAS_AVX): Use HAS_ARCH_FEATURE.
19312         (HAS_FMA4): Likewise.
19313         (HAS_YMM_USABLE): Remove.
19314         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19315         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
19316         are present.
19317         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
19318         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
19319         * sysdeps/x86_64/multiarch/Makefile: Likewise.
19320         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
19321         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
19322
19323 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
19324
19325         * math/libm-test.c: Support platforms without multiple rounding modes.
19326         * math/bug-nextafter.c: Support platforms without FP exceptions.
19327         * math/bug-nexttoward.c: Likewise.
19328         * math/test-fenv.c: Likewise.
19329         * math/test-misc.c: Likewise.
19330         * stdlib/bug-getcontext.c: Likewise.
19331
19332 2012-05-17  Andreas Jaeger  <aj@suse.de>
19333
19334         * manual/examples/search.c (critter_cmp): Change signature to
19335         avoid warnings.
19336         * manual/string.texi (Collation Functions): Likewise.
19337
19338 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19339
19340         * bits/types.h: Fold copyright years.
19341         * bits/typesizes.h: Likewise.
19342         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
19343         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
19344         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
19345         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
19346         * time/time.h: Likewise.
19347
19348 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
19349
19350         [BZ #208]
19351         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
19352         in instead of returning them.  Return void.
19353         (__libc_mallinfo): Accumulate over all arenas.
19354         (__malloc_stats): Adjust for change in int_mallinfo interface.
19355
19356 2012-05-16  Roland McGrath  <roland@hack.frob.com>
19357
19358         [BZ #10375]
19359         * configure.in (NM): Add AC_CHECK_TOOL for it.
19360         (libc_extra_cflags): New substituted variable.
19361         Check for -fstack-protector being used implicitly.
19362         * configure: Regenerated.
19363         * config.make.in (config-extra-cflags): New variable,
19364         gets @libc_extra_cflags@.
19365         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
19366
19367         [BZ #10375]
19368         * configure.in: Check for _FORTIFY_SOURCE being predefined.
19369         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
19370         * configure: Regenerated.
19371         * config.make.in (CPPUNDEFS): New substituted variable.
19372         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
19373         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
19374         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
19375
19376 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19377
19378         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
19379         (mq_attr): Use __syscall_slong_t.
19380
19381 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19382
19383         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
19384         Check __x86_64__ instead of __WORDSIZE.
19385         (_STAT_VER_LINUX): Likewise.
19386         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
19387         __syscall_ulong_t and __syscall_slong_t.
19388         (stat64): Likewise.
19389
19390 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19391
19392         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
19393
19394 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19395
19396         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
19397
19398 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19399
19400         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
19401         __syscall_ulong_t.
19402
19403         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
19404         include <bits/wordsize.h>.  Check __x86_64__ instead of
19405         __WORDSIZE.
19406         (greg_t): Use "__extension__ long long int" if __x86_64__ is
19407         defined.
19408         (mcontext_t): Replace "unsigned long" with "unsigned long long".
19409
19410         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
19411         include <bits/wordsize.h>.  Check __x86_64__ instead of
19412         __WORDSIZE.
19413         (user_regs_struct): Use "__extension__ unsigned long long"
19414         instead of "unsigned long" if __x86_64__ is defined.
19415         (user): Likewise.  Pad after pointer field if __ILP32__ is
19416         defined.
19417
19418 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
19419
19420         * configure.in (makeinfo): Require version 4.5 or later.  Allow
19421         versions 5 to 9.
19422         * configure: Regenerated.
19423         * manual/install.texi (texinfo): Increase version requirement to
19424         4.5 or later.
19425         * INSTALL: Regenerated.
19426
19427         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
19428
19429 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19430
19431         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
19432
19433         * sysdeps/x86_64/x32/ffs.c: New file.
19434
19435         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
19436         __syscall_ulong_t.
19437         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
19438         defined.  Use __syscall_ulong_t.
19439         (shminfo): Use __syscall_ulong_t.
19440         (shm_info): Likewise.
19441
19442         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
19443         __syscall_ulong_t.
19444
19445         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
19446         <bits/wordsize.h>.
19447         (msgqnum_t): Use __syscall_ulong_t.
19448         (msglen_t): Likewise.
19449         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
19450         __syscall_ulong_t.
19451
19452         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
19453         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19454
19455         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
19456
19457         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
19458         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
19459
19460         * sysvipc/sys/msg.h (msgbuf): Replace long int with
19461         __syscall_slong_t.
19462
19463         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
19464         include <bits/wordsize.h>.  Check __x86_64__ instead of
19465         __WORDSIZE.
19466
19467         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
19468         "unsigned long long int" if __x86_64__ is defined.
19469         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
19470
19471         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
19472         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19473         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
19474
19475         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
19476         <stdint.h>.
19477         (GET_PC): Cast to uintptr_t first.
19478         (GET_FRAME): Likewise.
19479         (GET_STACK): Likewise.
19480
19481         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
19482         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
19483         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
19484         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
19485         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
19486         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
19487         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
19488         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
19489         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
19490         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
19491         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
19492         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
19493         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
19494         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
19495         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
19496         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
19497         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
19498         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
19499         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
19500         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
19501         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
19502         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
19503         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
19504         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
19505         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
19506         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
19507         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
19508         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
19509         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
19510
19511 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
19512
19513         * Makerules (+depfiles): Also collect depfiles from .oS in
19514         $(extra-objs).
19515         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
19516         .oS, $(libnldbl-routines)).
19517
19518         * Makerules (native-compile-mkdep-flags): Define.
19519         * sunrpc/Makefile (extra-objs): Add $(addprefix
19520         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
19521         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
19522         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
19523         calling $(make-target-directory).
19524
19525 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19526
19527         * bits/types.h (__snseconds_t): Removed.
19528         * time/time.h (struct timespec): Replace __snseconds_t with
19529         __syscall_slong_t.
19530         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
19531         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
19532         Likewise.
19533         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19534         (__SNSECONDS_T_TYPE): Likewise.
19535         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19536         (__SNSECONDS_T_TYPE): Likewise.
19537         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19538         (__SNSECONDS_T_TYPE): Likewise.
19539
19540 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19541
19542         * sysdeps/mach/hurd/bits/typesizes.h
19543         (__SYSCALL_SLONG_TYPE): New macro.
19544         (__SYSCALL_ULONG_TYPE): Likewise.
19545
19546 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19547
19548         * bits/types.h (__syscall_slong_t): New type.
19549         (__syscall_ulong_t): Likewise.
19550
19551         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
19552         (__SYSCALL_ULONG_TYPE): Likewise.
19553         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19554         (__SYSCALL_SLONG_TYPE): Likewise.
19555         (__SYSCALL_ULONG_TYPE): Likewise.
19556         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
19557         (__SYSCALL_SLONG_TYPE): Likewise.
19558         (__SYSCALL_ULONG_TYPE): Likewise.
19559         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19560         (__SYSCALL_SLONG_TYPE): Likewise.
19561         (__SYSCALL_ULONG_TYPE): Likewise.
19562
19563 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19564
19565         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
19566         Add sigaltstack-offsets.sym.
19567         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
19568         <sigaltstack-offsets.h>.
19569         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
19570         longjmp_msg pointer.
19571         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
19572         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
19573         signal stack.
19574         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
19575
19576 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
19577
19578         * elf/stackguard-macros.h: Remove file.
19579         * sysdeps/generic/stackguard-macros.h: New file.
19580         * sysdeps/i386/stackguard-macros.h: Likewise.
19581         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
19582         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
19583         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
19584         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
19585         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
19586         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
19587         * sysdeps/x86_64/stackguard-macros.h: Likewise.
19588         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
19589         <elf/stackguard-macros.h>.
19590
19591         [BZ #14109]
19592         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
19593         __aligned__ in attribute.
19594         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
19595         (gregset_t): Likewise.
19596
19597 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19598
19599         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
19600         * sysdeps/x86_64/64/Implies-after: Here.  New file.
19601         * sysdeps/x86_64/x32/Implies-after: New file.
19602
19603 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19604
19605         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
19606         and access return value for _dl_profile_fixup.  Use R10_LP to
19607         load frame size.
19608
19609 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19610
19611         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
19612
19613 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19614
19615         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
19616         * sysdeps/x86_64/x32/sysdep.h: New file.
19617
19618 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19619
19620         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
19621         * sysdeps/x86_64/setjmp.S: Likewise.
19622
19623 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19624
19625         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
19626         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
19627         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
19628         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
19629         remove unused global constant.
19630
19631 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
19632
19633         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
19634         include of <not-cancel.h>.
19635
19636 2012-05-15  Roland McGrath  <roland@hack.frob.com>
19637
19638         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
19639
19640 2012-05-15  Jeff Law  <law@redhat.com>
19641             Andreas Jaeger  <aj@suse.de>
19642
19643         [BZ #13594]
19644         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
19645         out from...
19646         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
19647         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
19648         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
19649         code changing __hst_map_handle.map.
19650
19651 2012-05-15  Roland McGrath  <roland@hack.frob.com>
19652
19653         * configure.in (sysnames): Look for Implies-before and Implies-after
19654         files.
19655         * configure: Regenerated.
19656
19657 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19658
19659         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
19660         8-byte data alignment with LP_SIZE alignment.
19661
19662 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19663
19664         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
19665         into R10_LP.
19666
19667 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19668
19669         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
19670
19671 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19672
19673         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
19674         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
19675         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
19676         Likewise.
19677         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
19678
19679 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19680
19681         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
19682         (stackinfo_sub_sp): Likewise.
19683
19684 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19685
19686         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
19687         RAX_LP.
19688
19689 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19690
19691         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
19692         into R*_LP.
19693
19694 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19695
19696         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
19697         sizes into R*_LP.
19698
19699 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19700
19701         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
19702
19703 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19704
19705         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
19706         into R11_LP and load __x86_64_shared_cache_size_half into
19707         R8_LP.
19708
19709 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19710
19711         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
19712         R8_LP.
19713
19714 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19715
19716         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
19717         logb for POWER7.
19718         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
19719         logbf for POWER7.
19720         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
19721         logbl for POWER7.
19722         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
19723         powerpc32/power7/fpu/s_logb.c via #include.
19724         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
19725         powerpc32/power7/fpu/s_logbf.c via #include.
19726         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
19727         powerpc32/power7/fpu/s_logbl.c via #include.
19728
19729 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
19730
19731         * README.libm: Remove file.
19732
19733 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19734
19735         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
19736         count for x32.  Use R*_LP and omit operand-size suffix.
19737
19738 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19739
19740         * shlib-versions: Move x86_64-.*-linux.* entries to ...
19741         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
19742         * sysdeps/x86_64/x32/shlib-versions: New file.
19743
19744 2012-05-14  Roland McGrath  <roland@hack.frob.com>
19745
19746         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
19747         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
19748         Use _dl_fatal_printf instead.
19749
19750 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
19751
19752         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
19753         set if not set by the user.  Do not allow for being unset.
19754         * sysdeps/unix/sysv/linux/configure: Regenerated.
19755
19756 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19757
19758         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
19759         the `q' suffix from lea and replace .quad with ASM_ADDR.
19760
19761 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19762
19763         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
19764         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
19765         instead of $17.
19766         (PTR_DEMANGLE): Likewise.
19767
19768 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19769
19770         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
19771         (LP_OP): Likewise.
19772         (ASM_ADDR): Likewise.
19773         (RAX_LP): Likewise.
19774         (RBP_LP): Likewise.
19775         (RBX_LP): Likewise.
19776         (RCX_LP): Likewise.
19777         (RDI_LP): Likewise.
19778         (RSI_LP): Likewise.
19779         (RSP_LP): Likewise.
19780         (R8_LP): Likewise.
19781         (R9_LP): Likewise.
19782         (R10_LP): Likewise.
19783         (R10_LP): Likewise.
19784         (R11_LP): Likewise.
19785         (R12_LP): Likewise.
19786         (R13_LP): Likewise.
19787         (R14_LP): Likewise.
19788         (R15_LP): Likewise.
19789
19790 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19791
19792         * sysdeps/x86_64/x32/dl-machine.h: New file.
19793
19794 2012-05-14  Andreas Jaeger  <aj@suse.de>
19795
19796         * manual/Makefile (subdir): Remove export of subdir.
19797         (all): Remove target.
19798         (.PHONY): Remove all from list.
19799         (mkinstalldirs): Remove.
19800         (.PHONY): Remove installdirs from list.
19801         ($(inst_infodir)/libc.info): Use make-target-directory.
19802         (installdirs): Remove.
19803         (subdir_%): Remove.
19804         (glibc-targets): Remove.
19805         (lib): Remove.
19806         (stubs): Remove.
19807         ($(objpfx)stubs ../po/manual.pot): Remove.
19808         ($(objpfx)stamp%): Remove.
19809         (make-target-directory): Remove.
19810         (subdir_install): Remove.
19811         (routines): Remove.
19812         (aux): Remove.
19813         (sources): Remove.
19814         (objects): Remove.
19815         (headers): Remove.
19816
19817         [BZ #13750]
19818         * manual/.gitignore: Remove, it's not needed anymore.
19819         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
19820         all files in it.
19821         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
19822         directory.
19823         (texis): Renamed to $(objpfx)texis.
19824         (texis-path): New, contains path to generated files.
19825         (chapters.%): Use texis-path for complete path, add extra argument
19826         libc-texinfo.sh.
19827         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
19828         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
19829         (summary,texi, stamp-summary): Use complete path of
19830         files. Generate files in build dir.
19831         (dir-add.texi): Build in build dir.
19832         (libm-err.texi,stamp-libm-err): Likewise.
19833         (version.texi, stamp-version): Likewise.
19834         (.%c.texi): Likewise.
19835         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
19836         (mostlyclean): Remove target.
19837         (realclean): Remove target.
19838         (generated): Add new variable with contents from mostlyclean and
19839         realclean, remove entries duplicated in common-mostlyclean, add
19840         stamp-libm-err and stamp-version.
19841         (generated-dirs): Add libc directory.
19842         ($(inst_infodir)/libc.info): Install files from build dir.
19843
19844         * manual/install.texi (Configuring and compiling): Adjust since
19845         the info files are not part of the tar ball anymore.
19846
19847 2012-05-14  Andreas Jaeger  <aj@suse.de>
19848
19849         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
19850         variable.
19851
19852 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
19853
19854         [BZ #13717]
19855         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
19856         to 2.2.0 where earlier.
19857         * sysdeps/unix/sysv/linux/configure: Regenerated.
19858         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
19859         Remove conditional code.
19860         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
19861         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
19862         Remove conditional code.
19863         [!__NR_lchown]: Likewise.
19864         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19865         [__NR_lchown]: Likewise.
19866         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
19867         comment referencing __ASSUME_LCHOWN_SYSCALL.
19868         * sysdeps/unix/sysv/linux/i386/sigaction.c
19869         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19870         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19871         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
19872         Remove conditional code.
19873         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
19874         (__protocol_available): Remove #if 0 code.
19875         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
19876         conditional code.
19877         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
19878         * sysdeps/unix/sysv/linux/kernel-features.h
19879         (__ASSUME_GETCWD_SYSCALL): Don't define.
19880         (__ASSUME_REALTIME_SIGNALS): Likewise.
19881         (__ASSUME_PREAD_SYSCALL): Likewise.
19882         (__ASSUME_PWRITE_SYSCALL): Likewise.
19883         (__ASSUME_POLL_SYSCALL): Likewise.
19884         (__ASSUME_LCHOWN_SYSCALL): Likewise.
19885         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
19886         non-SPARC.
19887         (__ASSUME_SIOCGIFNAME): Don't define.
19888         (__ASSUME_MSG_NOSIGNAL): Likewise.
19889         (__ASSUME_SENDFILE): Define unconditionally.
19890         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
19891         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
19892         conditional code.
19893         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
19894         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
19895         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
19896         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19897         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
19898         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
19899         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
19901         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19902         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
19904         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19905         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
19907         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19908         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
19910         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19911         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
19913         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19914         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
19916         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19917         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
19919         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19920         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
19922         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19923         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19924         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
19925         Remove conditional code.
19926         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19927         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
19928         Remove conditional code.
19929         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19930         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
19931         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
19932         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
19933         Remove conditional code.
19934         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19935         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
19936         Remove conditional code.
19937         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19938         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
19939         Remove conditional code.
19940         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19941         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
19942         Remove conditional code.
19943         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19944         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
19945         Remove conditional code.
19946         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19947         * sysdeps/unix/sysv/linux/sh/pwrite64.c
19948         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19949         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19950         * sysdeps/unix/sysv/linux/sigaction.c
19951         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19952         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19953         * sysdeps/unix/sysv/linux/sigpending.c
19954         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19955         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19956         * sysdeps/unix/sysv/linux/sigprocmask.c
19957         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19958         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19959         * sysdeps/unix/sysv/linux/sigsuspend.c
19960         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19961         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19962         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
19963         (__libc_missing_rt_sigs): Remove.
19964         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
19965         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
19966         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
19967         Remove conditional code.
19968         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
19969         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
19970         return 1.
19971         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
19972         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
19973         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
19974         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
19975
19976 2012-05-14  Andreas Jaeger  <aj@suse.de>
19977
19978         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
19979         it's not used in glibc.
19980         (__coshm1): Likewise.
19981         (__acosh1p): Likewise.
19982         (__sgn): Likewise.
19983
19984         * manual/string.texi (Copying and Concatenation): Add missing
19985         variable in concat example.
19986         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
19987
19988 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19989
19990         [BZ #14103]
19991         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
19992         __builtin_clzl with __builtin_clzll.
19993
19994 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19995
19996         [BZ #14104]
19997         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
19998         libc_freeres_ptr.
19999
20000 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20001
20002         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
20003         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
20004         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
20005         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
20006
20007 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
20008
20009         * NEWS: Update ia64 info.
20010
20011 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
20012
20013         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
20014         used as bcopy.
20015
20016 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
20017
20018         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
20019         * sysdeps/unix/syscalls.list (dup3): Likewise.
20020         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
20021         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
20022
20023 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20024
20025         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
20026         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
20027
20028 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20029
20030         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
20031         thread pointer.
20032         (TLS_IE): Use mov/add instead of movq/addq to load thread
20033         pointer.
20034         (TLS_GD_PREFIX): New.
20035         (TLS_GD): Use it.
20036
20037 2012-05-11  David S. Miller  <davem@davemloft.net>
20038
20039         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
20040         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
20041         (_FPU_SETCW): Likewise.
20042
20043 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20044
20045         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
20046         is 32-byte aligned.
20047
20048 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
20049
20050         [BZ #11837]
20051         * iconvdata/gb18030.c: Update tables.
20052         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
20053         characters specially.
20054         (BODY for TO_LOOP): Add encoding of missing ranges.
20055
20056 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
20057
20058         [BZ #13673]
20059         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
20060         * sysdeps/mach/hurd/dup3.c: Likewise.
20061         * sysdeps/mach/hurd/readlinkat.c: Likewise.
20062         * sysdeps/powerpc/memmove.c:: Likewise.
20063
20064 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20065
20066         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
20067         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
20068
20069 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20070
20071         * elf/elf.h (R_X86_64_RELATIVE64): New.
20072         (R_X86_64_NUM): Updated.
20073         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20074         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
20075         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
20076         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
20077         tst-quad1pie tst-quad2pie
20078         (modules-names): Add tst-quadmod1 tst-quadmod2.
20079         ($(objpfx)tst-quad1): New dependency.
20080         ($(objpfx)tst-quad2): Likewise.
20081         ($(objpfx)tst-quad1pie): Likewise.
20082         ($(objpfx)tst-quad2pie): Likewise.
20083         * sysdeps/x86_64/tst-quad1.c: New file.
20084         * sysdeps/x86_64/tst-quad1pie.c: New file.
20085         * sysdeps/x86_64/tst-quad2.c: Likewise.
20086         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
20087         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
20088         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
20089         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
20090         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
20091
20092 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20093
20094         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
20095         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
20096         * streams/stropts.h (t_scalar_t): Define type.
20097
20098         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
20099         (_PATH_PRESERVE): Set to "/var/lib".
20100         (_PATH_RWHODIR): Set to "/var/spool/rwho".
20101
20102         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
20103         instead of int.
20104
20105         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
20106         if __dir_mkfile succeeded.
20107
20108         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
20109         checking for _hurd_dtablesize.  Unlock it right after having
20110         finished _hurd_dtable allocation.
20111
20112 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20113
20114         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
20115         * sysdeps/mach/hurd/configure: Regenerated.
20116         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
20117         special-casing to...
20118         * sysdeps/gnu/configure.in: ... this new file.
20119         * sysdeps/unix/sysv/linux/configure: Regenerated.
20120         * sysdeps/gnu/configure: New generated file.
20121
20122         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
20123         for Linux: use nsec instead of usec, as well as:
20124         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
20125         members of type struct timespec.
20126         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
20127         New macros.
20128         (struct stat64): Likewise.
20129         (_STATBUF_ST_NSEC): New macro.
20130         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
20131
20132         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20133         __strtoul_internal rather than strtoul.
20134
20135 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20136
20137         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
20138         and reject them.
20139
20140 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20141
20142         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
20143         which preserves existing values.
20144         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
20145
20146 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20147
20148         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
20149         TIMEOUT values.  Return EINVAL for NFDS values either negative or
20150         greater than FD_SETSIZE.
20151
20152 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20153
20154         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
20155         allocated, call __vm_protect to finish enabling the existing space, and
20156         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
20157         allocate the remainder.
20158
20159 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20160
20161         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
20162         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
20163
20164 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20165
20166         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
20167         sysdeps/mach/hurd/readlink.c.
20168
20169         * posix/tst-sysconf.c (posix_options): Only use
20170         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
20171         _POSIX_SYNCHRONIZED_IO when they are defined
20172         * sysdeps/mach/hurd/bits/posix_opt.h:
20173         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
20174         (_XOPEN_REALTIME): Undefine macro.
20175         (_XOPEN_REALTIME_THREADS): Undefine macro.
20176         (_XOPEN_SHM): Undefine macro.
20177         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
20178         macro to -1.
20179         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
20180         macro to -1.
20181         (_POSIX_ASYNC_IO): Undefine macro.
20182         (_POSIX_PRIORITIZED_IO): Undefine macro.
20183         (_POSIX_SPIN_LOCKS): Define macro to -1.
20184
20185         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
20186         SA_NODEFER, SA_RESETHAND.
20187         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
20188         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
20189         F_DUPFD_CLOEXEC.
20190
20191 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20192
20193         * elf/Makefile (pldd-modules): Define unconditionally.
20194
20195 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20196
20197         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
20198
20199 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20200
20201         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
20202         Return ENOENT when name is empty.
20203         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
20204
20205 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20206
20207         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
20208
20209         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
20210
20211 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20212
20213         Fix mlock in all cases except non-readable pages.
20214         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
20215         instead of VM_PROT_ALL as parameter to __vm_wire function.
20216
20217         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
20218         (__mkdir): When path is `/', just fail with EEXIST.
20219         * sysdeps/mach/hurd/mkdirat.c: Likewise.
20220
20221 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20222
20223         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
20224         <sys/uio.h> (for writev).
20225         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
20226         and <sys/param.h> (for MIN).
20227
20228 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20229
20230         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
20231         REQUESTED_TIME.  Properly set the remaining time and return EINTR
20232         if interrupted.
20233
20234 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20235
20236         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
20237         Depend on against $(link-rpcuserlibs).
20238
20239 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20240
20241         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
20242         (__libc_stack_end): Do not use attribute_relro.
20243         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
20244         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
20245         to libthread-provided value.
20246         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
20247         attribute_relro.
20248
20249 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20250
20251         [BZ #3748]
20252         * bits/libc-lock.h (__libc_once_get): New macro.
20253         * sysdeps/mach/bits/libc-lock.h: Likewise.
20254         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
20255         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
20256         instead of using implementation details.
20257
20258         * libio/fileops.c: Unconditionally include <kernel-features.h>.
20259         * libio/freopen.c: Likewise.
20260         * libio/freopen64.c: Likewise.
20261         * misc/syslog.c: Likewise.
20262         * nscd/connections.c: Likewise.
20263         * nscd/netgroupcache.c: Likewise.
20264         * sysdeps/posix/getcwd.c: Likewise.
20265
20266 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20267
20268         * math/w_ilogbf.c: Add #include <limits.h>.
20269
20270 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20271
20272         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
20273         path instead of returning without unlocking.
20274
20275         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
20276         immediate-write ioctls.
20277         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
20278
20279 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20280
20281         * sysdeps/mach/hurd/i386/init-first.c (init): Use
20282         __builtin_frame_address instead of making assumptions about the
20283         location of the return address relative to DATA.  Force early load of
20284         the return address.
20285         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
20286         __builtin_frame_address.
20287
20288         dup3 for GNU Hurd.
20289         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
20290         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
20291         implement dup3 and do some further code clean-ups.
20292         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
20293         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
20294
20295 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20296
20297         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
20298
20299         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
20300         HURD_CRITICAL_END around holding _hurd_dtable_lock.
20301         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
20302         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
20303         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
20304         d->port.lock.
20305
20306         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
20307         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
20308         when handler == SIG_ERR, not when handler != SIG_ERR.
20309
20310 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20311
20312         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
20313         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
20314         definitions.
20315
20316         accept4 for GNU Hurd.
20317         * include/sys/socket.h (__libc_accept4): New prototype.
20318         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
20319         to implement __libc_accept4.
20320         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
20321         __libc_accept4.
20322         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
20323
20324         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
20325         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
20326         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
20327         signal-defines.sym.
20328
20329 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20330
20331         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
20332
20333 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20334
20335         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
20336         assertion on O_CLOEXEC flag.
20337         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
20338         * hurd/intern-fd.c: Likewise.
20339         * hurd/port2fd.c: Likewise.
20340
20341 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20342
20343         [BZ #3906]
20344         * bits/in.h (IPV6_PKTINFO): Define new macro.
20345         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
20346
20347 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20348
20349         [BZ #13954]
20350         [BZ #13955]
20351         [BZ #13956]
20352         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
20353         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
20354         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
20355         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
20356         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
20357         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
20358         * math/libm-test.inc (logb_test) : Additional logb tests.
20359
20360 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
20361             Andreas Jaeger  <aj@suse.de>
20362
20363         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
20364         * configure: Regenerated.
20365         * config.h.in (LINK_OBSOLETE_RPC): New macro.
20366         * config.make.in (link-obsolete-rpc): New substituted variable.
20367         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
20368         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
20369         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
20370         (shared-only-routines): Don't set it under [link-obsolete-rpc],
20371         so that libc.a contains the symbols.
20372         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
20373         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
20374         * sunrpc/auth_none.c: Likewise.
20375         * sunrpc/auth_unix.c: Likewise.
20376         * sunrpc/authdes_prot.c: Likewise.
20377         * sunrpc/authuxprot.c: Likewise.
20378         * sunrpc/clnt_gen.c: Likewise.
20379         * sunrpc/clnt_perr.c: Likewise.
20380         * sunrpc/clnt_raw.c: Likewise.
20381         * sunrpc/clnt_simp.c: Likewise.
20382         * sunrpc/clnt_tcp.c: Likewise.
20383         * sunrpc/clnt_udp.c: Likewise.
20384         * sunrpc/clnt_unix.c: Likewise.
20385         * sunrpc/des_crypt.c: Likewise.
20386         * sunrpc/des_soft.c: Likewise.
20387         * sunrpc/get_myaddr.c: Likewise.
20388         * sunrpc/key_call.c: Likewise.
20389         * sunrpc/key_prot.c: Likewise.
20390         * sunrpc/netname.c: Likewise.
20391         * sunrpc/pm_getmaps.c: Likewise.
20392         * sunrpc/pm_getport.c: Likewise.
20393         * sunrpc/pmap_clnt.c: Likewise.
20394         * sunrpc/pmap_prot.c: Likewise.
20395         * sunrpc/pmap_prot2.c: Likewise.
20396         * sunrpc/pmap_rmt.c: Likewise.
20397         * sunrpc/publickey.c: Likewise.
20398         * sunrpc/rpc_cmsg.c: Likewise.
20399         * sunrpc/rpc_common.c: Likewise.
20400         * sunrpc/rpc_dtable.c: Likewise.
20401         * sunrpc/rpc_prot.c: Likewise.
20402         * sunrpc/rpc_thread.c: Likewise.
20403         * sunrpc/rtime.c: Likewise.
20404         * sunrpc/svc.c: Likewise.
20405         * sunrpc/svc_auth.c: Likewise.
20406         * sunrpc/svc_raw.c: Likewise.
20407         * sunrpc/svc_run.c: Likewise.
20408         * sunrpc/svc_tcp.c: Likewise.
20409         * sunrpc/svc_udp.c: Likewise.
20410         * sunrpc/svc_unix.c: Likewise.
20411         * sunrpc/svcauth_des.c: Likewise.
20412         * sunrpc/xcrypt.c: Likewise.
20413         * sunrpc/xdr.c: Likewise.
20414         * sunrpc/xdr_array.c: Likewise.
20415         * sunrpc/xdr_float.c: Likewise.
20416         * sunrpc/xdr_intXX_t.c: Likewise.
20417         * sunrpc/xdr_mem.c: Likewise.
20418         * sunrpc/xdr_rec.c: Likewise.
20419         * sunrpc/xdr_ref.c: Likewise.
20420         * sunrpc/xdr_sizeof.c: Likewise.
20421         * sunrpc/xdr_stdio.c: Likewise.
20422
20423 2012-05-10  Roland McGrath  <roland@hack.frob.com>
20424
20425         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
20426         change.  Update copyright years.
20427
20428 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
20429
20430         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
20431
20432 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
20433             Joseph Myers  <joseph@codesourcery.com>
20434             Paul Pluzhnikov  <ppluzhnikov@google.com>
20435
20436         [BZ #14012]
20437         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
20438         requiring rpcgen.
20439         [cross-compiling] (extra-libs): Likewise.
20440         [cross-compiling] (extra-libs-others): Likewise.
20441         [cross-compiling] (librpcsvc-routines): Likewise.
20442         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
20443         [cross-compiling] (omit-deps): Likewise.
20444         (sunrpc-CPPFLAGS): New variable.
20445         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
20446         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
20447         (cross-rpcgen-objs): New variable.
20448         (extra-objs): Append $(cross-rpcgen-objs).
20449         ($(cross-rpcgen-objs)): New rule.
20450         ($(objpfx)cross-rpcgen): Likewise.
20451         (rpcgen-cmd): Define to use $(built-program-file).  Expand
20452         comment.
20453         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
20454         ($(objpfx)x%.stmp): Likewise.
20455         * sunrpc/proto.h [IS_IN_build] (_): Define.
20456         [IS_IN_build] (_libc_intl_domainname): Likewise.
20457
20458 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20459
20460         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
20461         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
20462         and R_X86_64_TPOFF64.
20463
20464 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
20465
20466         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
20467         sysdeps/unix/sysv/syscalls.list.
20468         (stime): Likewise.
20469         (utime): Likewise.
20470         * sysdeps/unix/sysv/syscalls.list: Remove file.
20471
20472 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20473
20474         [BZ #3440]
20475         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
20476         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
20477         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
20478         (__LC_IDENTIFICATION): Make these macros useful in #if
20479         expressions, as required by C99.
20480
20481 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
20482
20483         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
20484         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
20485         after this.
20486
20487 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20488
20489         * stdlib/longlong.h: Updated from GCC.
20490
20491 2012-05-09  Andreas Jaeger  <aj@suse.de>
20492
20493         * nscd/nscd.c (run_modes): Make named enum, reorder so that
20494         default is first entry.
20495         (run_mode): Set type.
20496         (main): Remove informal message about syslog.
20497         (options): Fix typo.
20498
20499         [BZ #14053]
20500         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
20501         to asm.
20502         (lrint): Likewise.
20503         (llrintf): Likewise.
20504         (llrint): Likewise.
20505         (rint): Likewise.
20506         (rintf): Likewise.
20507         (nearbyint): Likewise.
20508         (nearbyintf): Likewise.
20509
20510 2012-05-09  Andreas Jaeger  <aj@suse.de>
20511             Pedro Alves  <palves@redhat.com>
20512
20513         * nscd/nscd.c (run_mode): Use enum.
20514         (main): Cleanup coding style issue.
20515
20516 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
20517             Andreas Jaeger  <aj@suse.de>
20518
20519         * nscd/nscd.c (go_background): Replaced with...
20520         (run_mode): ... this.
20521         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
20522         (options): Add -F --foreground.
20523         (main): Implement it.
20524         (parse_opt): Parse it.
20525
20526 2012-05-09  Andreas Jaeger  <aj@suse.de>
20527
20528         [BZ #14083]
20529         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
20530         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
20531         -Wconversion warning.
20532         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
20533         Likewise.
20534
20535 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
20536
20537         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
20538         == 0.
20539         (LC_ALL): Use macro-int-constant.
20540         (LC_COLLATE): Likewise.
20541         (LC_CTYPE): Likewise.
20542         (LC_MESSAGES): Likewise.
20543         (LC_MONETARY): Likewise.
20544         (LC_NUMERIC): Likewise.
20545         (LC_TIME): Likewise.
20546         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
20547         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
20548         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20549         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
20550         Specify type.
20551         [C99-based standards] (float_t): Expect type.
20552         [C99-based standards] (double_t): Expect type.
20553         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
20554         type.
20555         [C99-based standards] (HUGE_VALL): Likewise.
20556         [C99-based standards] (INFINITY): Likewise.
20557         [C99-based standards] (NAN): Likewise.
20558         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
20559         [C99-based standards] (FP_NAN): Likewise.
20560         [C99-based standards] (FP_NORMAL): Likewise.
20561         [C99-based standards] (FP_SUBNORMAL): Likewise.
20562         [C99-based standards] (FP_ZERO): Likewise.
20563         [C99-based standards] (FP_FAST_FMA): Use
20564         optional-macro-int-constant.  Specify type.  Require == 1.
20565         [C99-based standards] (FP_FAST_FMAF): Likewise.
20566         [C99-based standards] (FP_FAST_FMAL): Likewise.
20567         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
20568         [C99-based standards] (FP_ILOGBNAN): Likewise.
20569         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
20570         Specify type.
20571         [C99-based standards] (MATH_ERREXCEPT): Likewise.
20572         [C99-based standards] (math_errhandling): Specify type.
20573         [ISO99 || ISO11] (signgam): Do not allow.
20574         [non-C99-based standards] (copysignf): Do not allow.
20575         [non-C99-based standards] (exp2f): Likewise.
20576         [non-C99-based standards] (log2f): Likewise.
20577         [non-C99-based standards] (modff): Allow.
20578         [non-C99-based standards] (erff): Do not allow.
20579         [non-C99-based standards] (erfcf): Likewise.
20580         [non-C99-based standards] (gammaf): Likewise.
20581         [non-C99-based standards] (hypotf): Likewise.
20582         [non-C99-based standards] (j0f): Likewise.
20583         [non-C99-based standards] (j1f): Likewise.
20584         [non-C99-based standards] (jnf): Likewise.
20585         [non-C99-based standards] (lgammaf): Likewise.
20586         [non-C99-based standards] (tgammaf): Likewise.
20587         [non-C99-based standards] (y0f): Likewise.
20588         [non-C99-based standards] (y1f): Likewise.
20589         [non-C99-based standards] (ynf): Likewise.
20590         [non-C99-based standards] (isnanf): Likewise.
20591         [non-C99-based standards] (acoshf): Likewise.
20592         [non-C99-based standards] (asinhf): Likewise.
20593         [non-C99-based standards] (atanhf): Likewise.
20594         [non-C99-based standards] (cbrtf): Likewise.
20595         [non-C99-based standards] (expm1f): Likewise.
20596         [non-C99-based standards] (ilogbf): Likewise.
20597         [non-C99-based standards] (log1pf): Likewise.
20598         [non-C99-based standards] (logbf): Likewise.
20599         [non-C99-based standards] (nextafterf): Likewise.
20600         [non-C99-based standards] (remainderf): Likewise.
20601         [non-C99-based standards] (rintf): Likewise.
20602         [non-C99-based standards] (scalbf): Likewise.
20603         [non-C99-based standards] (copysignl): Likewise.
20604         [non-C99-based standards] (exp2l): Likewise.
20605         [non-C99-based standards] (log2l): Likewise.
20606         [non-C99-based standards] (modfl): Allow.
20607         [non-C99-based standards] (erfl): Do not allow.
20608         [non-C99-based standards] (erfcl): Likewise.
20609         [non-C99-based standards] (gammal): Likewise.
20610         [non-C99-based standards] (hypotl): Likewise.
20611         [non-C99-based standards] (j0l): Likewise.
20612         [non-C99-based standards] (j1l): Likewise.
20613         [non-C99-based standards] (jnl): Likewise.
20614         [non-C99-based standards] (lgammal): Likewise.
20615         [non-C99-based standards] (tgammal): Likewise.
20616         [non-C99-based standards] (y0l): Likewise.
20617         [non-C99-based standards] (y1l): Likewise.
20618         [non-C99-based standards] (ynl): Likewise.
20619         [non-C99-based standards] (isnanl): Likewise.
20620         [non-C99-based standards] (acoshl): Likewise.
20621         [non-C99-based standards] (asinhl): Likewise.
20622         [non-C99-based standards] (atanhl): Likewise.
20623         [non-C99-based standards] (cbrtl): Likewise.
20624         [non-C99-based standards] (expm1l): Likewise.
20625         [non-C99-based standards] (ilogbl): Likewise.
20626         [non-C99-based standards] (log1pl): Likewise.
20627         [non-C99-based standards] (logbl): Likewise.
20628         [non-C99-based standards] (nextafterl): Likewise.
20629         [non-C99-based standards] (remainderl): Likewise.
20630         [non-C99-based standards] (rintl): Likewise.
20631         [non-C99-based standards] (scalbl): Likewise.
20632         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20633         [non-C99-based standards] (FP_*): Do not allow.
20634         [C99-based standards] (FP_*): Change to
20635         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
20636         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
20637         allow.
20638         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
20639         (SIG_ERR): Likewise.
20640         [X/Open-based standards] (SIG_HOLD): Likewise.
20641         (SIG_IGN): Likewise.
20642         (SIGABRT): Use macro-int-constant.  Specify type.  Require
20643         positive value.
20644         (SIGFPE): Likewise.
20645         (SIGILL): Likewise.
20646         (SIGINT): Likewise.
20647         (SIGSEGV): Likewise.
20648         (SIGTER): Likewise.
20649         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
20650         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
20651         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
20652         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
20653         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
20654         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
20655         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
20656         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
20657         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
20658         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
20659         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
20660         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
20661         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
20662         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
20663         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
20664         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
20665         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
20666         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
20667         [X/Open-based standards] (SIGTRAP): Likewise.
20668         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
20669         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
20670         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
20671         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
20672         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
20673         allow.
20674
20675 2012-05-08  Ian Wienand  <ianw@vmware.com>
20676
20677         [BZ #14080]
20678         * time/tzset.c (__tzset_parse_tz): Update default rules for
20679         daylight time changes in the Energy Policy Act of 2005.
20680
20681 2012-05-09  Andreas Jaeger  <aj@suse.de>
20682
20683         [BZ #13983]
20684         * elf/ldconfig.c (parse_conf): Change string to make clear that
20685         ldconfig only issued a warning if ld.so.conf does not exist.
20686
20687 2012-05-08  David S. Miller  <davem@davemloft.net>
20688
20689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
20690         movxtod instead of popping the value on the stack.
20691
20692         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20693
20694 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
20695
20696         * config.h.in: Add HAVE_ARM_PCS_VFP.
20697
20698 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
20699
20700         [BZ #13979]
20701         * include/features.h: Warn if user requests __FORTIFY_SOURCE
20702         checking but the checks are disabled for any reason.
20703
20704 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20705
20706         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
20707         and ELF64_R_TYPE with ELFW(R_TYPE).
20708
20709 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
20710
20711         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
20712         (ulimit): Likewise.
20713
20714         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
20715         (settimeofday): Likewise.
20716
20717 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
20718
20719         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
20720         a struct th_u2 inside the union, and move tu_block/tu_code into
20721         a new th_u3 union of tu_block/tu_code inside of that.  Move
20722         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
20723         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
20724         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
20725         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
20726         (th_stuff): Change to th_u1.tu_stuff.
20727         (th_data): Define.
20728         (th_msg): Change to th_u1.th_u2.tu_data.
20729
20730 2012-05-07  David S. Miller  <davem@davemloft.net>
20731
20732         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20733
20734         [BZ #14074]
20735         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
20736         (SETUP_PIC_REG): Use it.
20737         (SETUP_PIC_REG_LEAF): Use it.
20738
20739 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
20740
20741         [BZ #13885]
20742         [BZ #13923]
20743         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20744         USE_AS_EXPM1L.
20745         (EXPL_FINITE): Likewise.
20746         (FLDLOG): Likewise.
20747         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
20748         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
20749         e_expl.S.
20750         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20751         USE_AS_EXPM1L.
20752         (EXPL_FINITE): Likewise.
20753         (FLDLOG): Likewise.
20754         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
20755         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
20756         e_expl.S.
20757         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
20758         test of -max_value argument for long double.
20759         * sysdeps/i386/fpu/libm-test-ulps: Update.
20760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20761
20762 2012-05-06  David S. Miller  <davem@davemloft.net>
20763
20764         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
20765         quad soft-float symbols whose references which are compiler
20766         generated.
20767         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
20768
20769 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
20770
20771         [BZ #13884]
20772         [BZ #13914]
20773         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20774         USE_AS_EXP10L.
20775         (EXPL_FINITE): Likewise.
20776         (FLDLOG): Likewise.
20777         (c0): Likewise.
20778         (c1): Likewise.
20779         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
20780         Adjust comments for base varying.
20781         (__expl_finite): Change alias to EXPL_FINITE.
20782         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
20783         e_expl.S.
20784         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
20785         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
20786         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
20787         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
20788         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20789         USE_AS_EXP10L.
20790         (EXPL_FINITE): Likewise.
20791         (FLDLOG): Likewise.
20792         (c0): Likewise.
20793         (c1): Likewise.
20794         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
20795         Adjust comments for base varying.
20796         (__expl_finite): Change alias to EXPL_FINITE.
20797         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
20798         tests for bugs.
20799         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20800
20801         [BZ #14064]
20802         * math/libm-test.inc (check_float_internal): Correct ulp
20803         calculation for subnormal expected results.
20804
20805 2012-05-06  Andreas Jaeger  <aj@suse.de>
20806
20807         * Makeconfig (+math-flags): New, set to -frounding-math.
20808         (+cflags): Add +math-flags so that all of glibc gets compiled with
20809         it.
20810
20811         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
20812
20813 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
20814
20815         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
20816         Disable one test.
20817
20818         [BZ #13787]
20819         [BZ #13922]
20820         [BZ #14036]
20821         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
20822         (__ieee754_expl): Allow for and saturate large arguments.
20823         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
20824         (u_threshold): Likewise.
20825         (__exp): Call __ieee754_exp before checking for overflow and
20826         underflow.
20827         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
20828         (u_threshold): Likewise.
20829         (__expf): Call __ieee754_expf before checking for overflow and
20830         underflow.
20831         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
20832         (u_threshold): Likewise.
20833         (__expl): Call __ieee754_expl before checking for overflow and
20834         underflow.
20835         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
20836         (__ieee754_expl): Allow for and saturate large arguments.
20837         * math/libm-test.inc (exp_test): Add another test.  Do not allow
20838         missing overflow exception on overflow.
20839         (expm1_test): Do not allow missing overflow exception on overflow.
20840
20841         * sysdeps/i386/fpu/e_expl.c: Move to ...
20842         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
20843         rather than using inline asm.
20844         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
20845         * sysdeps/x86_64/fpu/e_expl.S: Copy from
20846         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
20847
20848         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
20849         (nice): Likewise.
20850         (poll): Likewise.
20851         (signal): Likewise.
20852         (time): Likewise.
20853         (times): Likewise.
20854
20855 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
20856
20857         * sysdeps/unix/syscalls.list (adjtime): Add entry from
20858         sysdeps/unix/common/syscalls.list.
20859         (fchmod): Likewise.
20860         (fchown): Likewise.
20861         (ftruncate): Likewise.
20862         (getrusage): Likewise.
20863         (gettimeofday): Likewise.
20864         (setpgid): Likewise.
20865         (setregid): Likewise.
20866         (setreuid): Likewise.
20867         (sigaction): Likewise.
20868         (truncate): Likewise.
20869         (vhangup): Likewise.
20870         * sysdeps/unix/common/syscalls.list: Remove file.
20871         * sysdeps/unix/bsd/Implies: Don't include unix/common.
20872         * sysdeps/unix/sysv/linux/Implies: Likewise.
20873
20874 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20875
20876         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
20877         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
20878         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
20879         Moved to ...
20880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
20881         Here.
20882         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
20883         to ...
20884         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
20885         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
20886         to ...
20887         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
20888         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
20889         to ...
20890         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
20891         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
20892         to ...
20893         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
20894         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
20895         to ...
20896         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
20897         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
20898         to ...
20899         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
20900         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
20901         to ...
20902         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
20903         Here.
20904         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
20905         to ...
20906         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
20907         Here.
20908         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
20909         to ...
20910         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
20911         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
20912         Moved to ...
20913         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
20914         Here.
20915         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
20916         to ...
20917         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
20918
20919 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
20920
20921         * sysdeps/unix/common/bits/dirent.h: Remove file.
20922         * sysdeps/unix/common/bits/fcntl.h: Likewise.
20923
20924         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
20925         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
20926         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
20927         * sysdeps/unix/bsd/isatty.c: Likewise.
20928         * sysdeps/unix/bsd/tcdrain.c: Likewise.
20929         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
20930         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
20931
20932 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20933
20934         [BZ #13563]
20935         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
20936         long double comparison inaccuracies.
20937         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20938         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20939
20940 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
20941
20942         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
20943         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
20944
20945 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
20946
20947         [BZ #14049]
20948         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
20949         nonzero digits before rounding a hex value.
20950         * stdlib/tst-strtod.c (tests): Add another test.
20951
20952 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20953
20954         * sysdeps/s390/fpu/libm-test-ulps: Update.
20955
20956 2012-05-03  Andreas Jaeger  <aj@suse.de>
20957
20958         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
20959         does not get optimized out.
20960         (malloc_opt_barrier): New.
20961
20962 2012-05-03  Andreas Jaeger  <aj@suse.de>
20963             Roland McGrath  <roland@hack.frob.com>
20964
20965         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
20966         intermediate file deletion.
20967         (generated): Add .symlist files.
20968
20969 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
20970
20971         [BZ #13775]
20972         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
20973         Redirect under this condition.
20974         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
20975         [__USE_GNU] (__dprintf_chk): Not under this condition.
20976         [__USE_GNU] (__vdprintf_chk): Likewise.
20977         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
20978         under this condition.
20979         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
20980         [__USE_XOPEN2K8] (dprintf): Define under this condition.
20981         [__USE_XOPEN2K8] (vdprintf): Likewise.
20982         [__USE_GNU] (__dprintf_chk): Not under this condition.
20983         [__USE_GNU] (__vdprintf_chk): Likewise.
20984         [__USE_GNU] (dprintf): Likewise.
20985         [__USE_GNU] (vdprintf): Likewise.
20986
20987 2012-05-03  Roland McGrath  <roland@hack.frob.com>
20988
20989         * elf/Makefile (common-generated): Set this instead of generated for
20990         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
20991         $(all-built-dso)-derived lists.
20992
20993 2012-05-03  Andreas Jaeger  <aj@suse.de>
20994
20995         * sysdeps/i386/fpu/libm-test-ulps: Update.
20996
20997         * FAQ: Removed.
20998         * FAQ.in: Likewise.
20999         * scripts/gen-FAQ.pl: Likewise.
21000         * manual/install.texi (Installation): Point to online location of
21001         FAQ.
21002         * Makefile (files-for-dist): Remove FAQ.
21003         (FAQ): Remove.
21004
21005 2012-05-02  Allan McRae  <allan@archlinux.org>
21006
21007         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
21008         (LDFLAGS-reldepmod5.so): Likewise.
21009         (LDFLAGS-reldep6mod1.so): Likewise.
21010         (LDFLAGS-reldep6mod4.so): Likewise.
21011         (LDFLAGS-reldep8mod3.so): Likewise.
21012         (LDFLAGS-unload4mod1.so): Likewise.
21013         (LDFLAGS-unload4mod2.so): Likewise.
21014         (LDFLAGS-tst-initorder): Likewise.
21015         (LDFLAGS-tst-initordera2.so): Likewise.
21016         (LDFLAGS-tst-initordera3.so): Likewise.
21017         (LDFLAGS-tst-initordera4.so): Likewise.
21018         (LDFLAGS-tst-initorderb2.so): Likewise.
21019         (LDFLAGS-noload): Likewise.
21020         (LDFLAGS-next): Likewise.
21021         (LDFLAGS-order2mod1.so): Likewise.
21022         (LDFLAGS-order2mod2.so): Likewise.
21023         (LDFLAGS-tst-initorder2): Likewise.
21024         (LDFLAGS-tst-initorder2a.so): Likewise.
21025         (LDFLAGS-tst-initorder2b.so): Likewise.
21026         (LDFLAGS-tst-initorder2c.so): Likewise.
21027         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
21028
21029 2012-05-02  David S. Miller  <davem@davemloft.net>
21030
21031         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21032
21033 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
21034
21035         [BZ #14055]
21036         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
21037
21038 2012-05-02  Andreas Jaeger  <aj@suse.de>
21039
21040         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
21041         since we manipulate rounding mode.
21042         (CPPFLAGS-test-idouble.c): Likewise.
21043         (CPPFLAGS-test-ifloat.c): Likewise.
21044         (CFLAGS-test-ldouble.c): Likewise.
21045         (CFLAGS-test-double.c): Likewise.
21046         (CFLAGS-test-float.c): Likewise.
21047         (CFLAGS-test-misc.c): Likewise.
21048         (CFLAGS-test-test-fenv.c): Likewise.
21049
21050 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21051
21052         [BZ #2550]
21053         [BZ #2570]
21054         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
21055         comparisons to determine direction to adjust input.
21056
21057 2012-05-01  Roland McGrath  <roland@hack.frob.com>
21058
21059         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
21060         output to the target.
21061
21062         * scripts/localplt.awk: New file.
21063         * elf/Makefile ($(objpfx)check-localplt): Target removed.
21064         (check-localplt-CFLAGS): Variable removed.
21065         ($(all-built-dso:=.jmprel)): New static pattern rule.
21066         (generated): Add those targets.
21067         (localplt-built-dso): New variable.
21068         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
21069
21070         * elf/check-localplt.c: File removed.
21071
21072         * scripts/check-execstack.awk: New file.
21073         * elf/Makefile ($(objpfx)check-execstack): Target removed.
21074         (check-execstack-CFLAGS): Variable removed.
21075         ($(objpfx)check-execstack.h): Target removed.
21076         ($(objpfx)execstack-default): New target.
21077         (generated): Add that instead of check-execstack.h.
21078         ($(all-built-dso:=.phdr)): New static pattern rule.
21079         (generated): Add those targets.
21080         * elf/check-execstack.c: File removed.
21081
21082         * scripts/check-textrel.awk: New file.
21083         * elf/Makefile ($(objpfx)check-textrel): Target removed.
21084         (check-textrel-CFLAGS): Variable removed.
21085         (all-built-dso): Use := to define.o
21086         ($(all-built-dso:=.dyn)): New static pattern rule.
21087         (generated): Add those targets.
21088         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
21089         * config.make.in (READELF): New substituted variable.
21090         * elf/check-textrel.c: File removed.
21091
21092 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21093
21094         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21095         allow.
21096         * conform/data/ctype.h-data [C99-based standards] (isblank):
21097         Expect function.
21098         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
21099         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
21100         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21101         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
21102         Specify type.  Require positive value.
21103         (EILSEQ): Likewise.
21104         (ERANGE): Likewise.
21105         [ISO || POSIX] (EILSEQ): Do not expect.
21106         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
21107         Specify type.  Require positive value.
21108         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
21109         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
21110         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
21111         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
21112         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
21113         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
21114         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
21115         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
21116         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
21117         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
21118         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
21119         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
21120         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
21121         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
21122         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
21123         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
21124         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
21125         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
21126         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
21127         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
21128         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
21129         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
21130         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
21131         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
21132         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
21133         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
21134         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
21135         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
21136         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
21137         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
21138         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
21139         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
21140         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
21141         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
21142         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
21143         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
21144         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
21145         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
21146         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
21147         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
21148         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
21149         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
21150         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
21151         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
21152         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
21153         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
21154         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
21155         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
21156         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
21157         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
21158         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
21159         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
21160         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
21161         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
21162         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
21163         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
21164         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
21165         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
21166         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
21167         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
21168         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
21169         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
21170         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
21171         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
21172         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
21173         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
21174         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
21175         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
21176         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
21177         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
21178         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
21179         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
21180         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
21181         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
21182         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
21183         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
21184         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
21185         Require >= 2.
21186         (FLT_ROUNDS): Expect as macro, not constant.
21187         (FLT_MANT_DIG): Use macro-int-constant.
21188         (DBL_MANT_DIG): Likewise.
21189         (LDBL_MANT_DIG): Likewise.
21190         (FLT_DIG): Likewise.
21191         (DBL_DIG): Likewise.
21192         (LDBL_DIG): Likewise.
21193         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
21194         (DBL_MIN_EXP): Likewise.
21195         (LDBL_MIN_EXP): Likewise.
21196         (FLT_MAX_EXP): Use macro-int-constant.
21197         (DBL_MAX_EXP): Likewise.
21198         (LDBL_MAX_EXP): Likewise.
21199         (FLT_MAX_10_EXP): Likewise.
21200         (DBL_MAX_10_EXP): Likewise.
21201         (LDBL_MAX_10_EXP): Likewise.
21202         (FLT_MAX): Use macro-constant.
21203         (DBL_MAX): Likewise.
21204         (LDBL_MAX): Likewise.
21205         (FLT_EPSILON): Use macro-constant.  Give upper bound.
21206         (DBL_EPSILON): Likewise.
21207         (LDBL_EPSILON): Likewise.
21208         (FLT_MIN): Likewise.
21209         (DBL_MIN): Likewise.
21210         (LDBL_MIN): Likewise.
21211         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
21212         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
21213         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
21214         [ISO11] (FLT_HAS_SUBNORM): Likewise.
21215         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
21216         [ISO11] (DBL_DECIMAL_DIG): Likewise.
21217         [ISO11] (FLT_DECIMAL_DIG): Likewise.
21218         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
21219         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
21220         [ISO11] (FLT_TRUE_MIN): Likewise.
21221         [ISO11] (LDBL_TRUE_MIN): Likewise.
21222         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21223         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
21224         (SCHAR_MIN): Use macro-int-constant.  Specify type.
21225         (SCHAR_MAX): Likewise.
21226         (UCHAR_MAX): Likewise.
21227         (CHAR_MIN): Likewise.
21228         (CHAR_MAX): Likewise.
21229         (MB_LEN_MAX): Use macro-int-constant.
21230         (SHRT_MIN): Use macro-int-constant.  Specify type.
21231         (SHRT_MAX): Likewise.
21232         (USHRT_MAX): Likewise.
21233         (INT_MAX): Likewise.
21234         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
21235         bound negative.
21236         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21237         bound with "U".
21238         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21239         bound with "L".
21240         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
21241         bound negative.  Suffix upper bound with "L".
21242         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
21243         bound with "UL".
21244         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
21245         Specify type.
21246         [C99-based standards] (LLONG_MAX): Likewise.
21247         [C99-based standards] (ULLONG_MAX): Likewise.
21248         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
21249         == 0.
21250         [ISO11] (max_align_t): Require type.
21251         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21252
21253         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
21254         from $CFLAGS, without defining away __attribute__ calls.
21255         (checknamespace): Use $CFLAGS_namespace.
21256
21257         * conform/conformtest.pl (@keywords): Only include C99 keywords
21258         for standards based on C99 or C11.
21259
21260         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
21261         Disable tests.
21262         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
21263         UNIX98]: Likewise.
21264
21265         * conform/conformtest.pl: Handle "macro-int-constant" and test for
21266         usability of symbols in #if.
21267
21268         * conform/conformtest.pl: If macro or constant types start
21269         "promoted:", expect the symbol to be of the following type
21270         promoted by the integer promotions.
21271
21272         * conform/conformtest.pl: Parse all "constant" and "macro" lines
21273         in one place.  Also handle "macro-constant".
21274
21275         * conform/conformtest.pl: Only accept expected macro values with
21276         "==".  Parse all "macro" lines in one place.
21277         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
21278
21279         * conform/conformtest.pl: Handle braced types on "constant" lines
21280         instead of handling "typed-constant".
21281         * conform/data/signal.h-data: Use "constant" instead of
21282         "typed-constant".
21283
21284         * conform/conformtest.pl: Handle "optional-" at start of lines in
21285         one place rather than duplicating several cases.  Handle each
21286         format of "macro" line with initial "optional-".
21287
21288         * conform/conformtest.pl: Only accept expected constant or
21289         optional-constant values with "==".  Parse all "constant" lines in
21290         one place.  Parse all "optional-constant" lines in one place.
21291         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
21292         * conform/data/fmtmsg.h-data: Likewise.
21293         * conform/data/netinet/in.h-data: Likewise.
21294         * conform/data/tar.h-data: Likewise.
21295         * conform/data/limits.h-data: Use "==" form on "constant" and
21296         "optional-constant" lines.
21297
21298         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
21299         Use -std=c99 for XOPEN2K.
21300         (@knownproblems): Remove.
21301         (newtoken): Don't check %isknown.
21302
21303         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
21304         Do not expect macro.
21305         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
21306         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
21307         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
21308         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
21309         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
21310         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
21311         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
21312         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
21313         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
21314         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
21315         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
21316         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
21317         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
21318         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
21319         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
21320         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
21321         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
21322         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
21323         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
21324         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
21325         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
21326         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
21327         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
21328         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
21329         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
21330         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
21331         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
21332         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
21333         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
21334         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
21335         [XPG3] (acosh): Likewise.
21336         [XPG3] (asinh): Likewise.
21337         [XPG3] (atanh): Likewise.
21338         [XPG3] (cbrt): Likewise.
21339         [XPG3] (expm1): Likewise.
21340         [XPG3] (ilogb): Likewise.
21341         [XPG3] (log1p): Likewise.
21342         [XPG3] (logb): Likewise.
21343         [XPG3] (nextafter): Likewise.
21344         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
21345         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
21346         [XPG3] (remainder): Likewise.
21347         [XPG3] (rint): Likewise.
21348         [XPG3 || XPG4 || UNIX98] (round): Likewise.
21349         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
21350         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
21351         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
21352         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
21353         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
21354         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
21355         [UNIX98 || XOPEN2K] (scalb): Expect.
21356         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
21357         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
21358         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
21359         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
21360         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
21361         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
21362         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
21363         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
21364         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
21365         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
21366         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
21367         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
21368         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
21369         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
21370         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
21371         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
21372         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
21373         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
21374         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
21375         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
21376         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
21377         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
21378         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
21379         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
21380         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
21381         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
21382         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
21383         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
21384         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
21385         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
21386         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
21387         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
21388         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
21389         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
21390         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
21391         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
21392         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
21393         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
21394         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
21395         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
21396         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
21397         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
21398         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
21399         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
21400         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
21401         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
21402         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
21403         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
21404         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
21405         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
21406         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
21407         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
21408         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
21409         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
21410         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
21411         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
21412         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
21413         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
21414         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
21415         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
21416         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
21417         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
21418         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
21419         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
21420         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
21421         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
21422         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
21423         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
21424         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
21425         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
21426         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
21427         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
21428         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
21429         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
21430         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
21431         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
21432         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
21433         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
21434         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
21435         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
21436         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
21437         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
21438         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
21439         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
21440         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
21441         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
21442         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
21443         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
21444         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
21445         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
21446         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
21447         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
21448         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
21449         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
21450         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
21451         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
21452         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
21453         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
21454         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
21455         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
21456         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
21457         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
21458         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
21459         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
21460         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
21461         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
21462         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
21463         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
21464         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
21465         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
21466         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
21467         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
21468         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
21469         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
21470         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
21471         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
21472         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
21473         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
21474         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
21475         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
21476         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
21477         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
21478         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
21479         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
21480         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
21481         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
21482         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
21483         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
21484         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
21485         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
21486         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
21487         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
21488         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
21489         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
21490         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
21491         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
21492         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
21493
21494         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
21495         _XOPEN_SOURCE_EXTENDED for XPG4.
21496
21497         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
21498
21499         * Makeconfig (localtime): Remove variable.
21500         (inst_localtime-file): Likewise.
21501
21502 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21503
21504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
21505         Update.
21506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21507         Update.
21508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
21509         Update.
21510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
21511         Update.
21512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
21513         Update.
21514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
21515         Update.
21516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21517         Update.
21518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
21519         Update.
21520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
21521         Update.
21522
21523 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21524
21525         [BZ #2550]
21526         [BZ #2570]
21527         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
21528         comparisons to determine direction to adjust input.
21529         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
21530         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
21531         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
21532         Likewise.
21533         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
21534         Likewise.
21535         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
21536         Likewise.
21537         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
21538         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
21539         Likewise.
21540         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
21541         Likewise.
21542         * math/libm-test.inc (nexttoward_test): Add more tests.
21543
21544 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21545
21546         [BZ #14040]
21547         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
21548         in version GLIBC_2.1, not GLIBC_2.0.
21549         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
21550         Likewise.
21551
21552 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
21553
21554         [BZ #13942]
21555         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
21556         (1 - x) * (1 + x).
21557         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
21558         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
21559         * math/libm-test.inc (acos_test): Add more tests.
21560         (asin_test): Likewise.
21561         * sysdeps/i386/fpu/libm-test-ulps: Update.
21562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21563
21564         [BZ #14034]
21565         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
21566         of square root.
21567         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
21568         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
21569         * math/libm-test.inc (acos_test_tonearest): New function.
21570         (acos_test_towardzero): Likewise.
21571         (acos_test_downward): Likewise.
21572         (acos_test_upward): Likewise.
21573         (asin_test_tonearest): Likewise.
21574         (asin_test_towardzero): Likewise.
21575         (asin_test_downward): Likewise.
21576         (asin_test_upward): Likewise.
21577         (main): Call the new functions.
21578         * sysdeps/i386/fpu/libm-test-ulps: Update.
21579         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21580
21581         [BZ #13884]
21582         [BZ #13924]
21583         * math/e_exp10.c: Include <float.h>.
21584         (__ieee754_exp10): Handle underflow here rather than multiplying
21585         large negative argument by M_LN10.
21586         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
21587         of __ieee754_expf.
21588         * math/e_exp10l.c: Include <float.h>.
21589         (__ieee754_exp10l): Handle underflow here rather than multiplying
21590         large negative argument by M_LN10l.
21591         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
21592         spurious overflow exception on underflow.
21593
21594 2012-04-29  Marek Polacek  <polacek@redhat.com>
21595
21596         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
21597         (__fortify_function): New macro.
21598         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
21599         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
21600         __extern_always_inline.
21601         * libio/bits/stdio2.h: Likewise.
21602         * libio/bits/stdio.h: Likewise.
21603         * string/string.h: Likewise.
21604         * string/bits/string3.h: Likewise.
21605         * include/stdio.h: Likewise.
21606         * stdlib/bits/stdlib.h: Likewise.
21607         * stdlib/stdlib.h: Likewise.
21608         * rt/bits/mqueue2.h: Likewise.
21609         * rt/mqueue.h: Likewise.
21610         * posix/bits/unistd.h: Likewise.
21611         * posix/unistd.h: Likewise.
21612         * io/bits/poll2.h: Likewise.
21613         * io/bits/fcntl2.h: Likewise.
21614         * io/fcntl.h: Likewise.
21615         * io/sys/poll.h: Likewise.
21616         * misc/bits/syslog.h: Likewise.
21617         * misc/bits/syslog-ldbl.h: Likewise.
21618         * misc/sys/syslog.h: Likewise.
21619         * socket/bits/socket2.h: Likewise.
21620         * socket/sys/socket.h: Likewise.
21621         * debug/tst-chk1.c: Likewise.
21622         * wcsmbs/bits/wchar2.h: Likewise.
21623         * wcsmbs/bits/wchar-ldbl.h: Likewise.
21624         * wcsmbs/wchar.h: Likewise.
21625
21626 2012-04-29  Andreas Jaeger  <aj@suse.de>
21627
21628         * Makerules (tests): Remove enable-check-abi protection.
21629         (check-abi-warn): Remove.
21630         (check-abi-%): Remove check-abi-warn usage.
21631
21632         * configure.in: Remove check-abi configure option.
21633         * configure: Regenerated.
21634         * config.make.in (enable-check-abi): Remove.
21635
21636 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
21637
21638         [BZ #14033]
21639         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
21640         double functions to double *_finite functions.
21641
21642         [BZ #13941]
21643         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
21644         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
21645         LDBL_MIN_EXP.
21646         * stdio-common/Makefile (tests): Add tst-sprintf3.
21647         * stdio-common/tst-sprintf3.c: New file.
21648
21649         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
21650         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
21651
21652 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
21653
21654         * conform/conformtest.pl: Remove duplicate typed-constant
21655         handling.
21656
21657 2012-04-28  David S. Miller  <davem@davemloft.net>
21658
21659         * Makerules (%.abilist): Add vpath on sysdep_dirs.
21660         (check-abi-%): Remove AWK script prerequisite and explicit
21661         abilist directory.
21662         (check-abi): Rewrite to just diff the symlist with the abilist.
21663         (config-tls, config-abi-config): Delete, no longer used.
21664         (update-abi-%): Remove AWK script and explicit abilist directory.
21665         (update-abi): Rewrite to simply compare and conditionally copy the
21666         symlist and the sysdep abilist file.  Remove update-abi-config
21667         checks.
21668         * abilist/ld.abilist: Remove.
21669         * abilist/libBrokenLocale.abilist: Remove.
21670         * abilist/libanl.abilist: Remove.
21671         * abilist/libcrypt.abilist: Remove.
21672         * abilist/libdl.abilist: Remove.
21673         * abilist/librt.abilist: Remove.
21674         * abilist/libthread_db.abilist: Remove.
21675         * abilist/libutil.abilist: Remove.
21676         * scripts/extract-abilist.awk: Remove.
21677         * scripts/merge-abilist.awk: Remove.
21678         * sysdeps/generic/libcidn.abilist: New file.
21679         * sysdeps/generic/libnss_compat.abilist: New file.
21680         * sysdeps/generic/libnss_db.abilist: New file.
21681         * sysdeps/generic/libnss_dns.abilist: New file.
21682         * sysdeps/generic/libnss_files.abilist: New file.
21683         * sysdeps/generic/libnss_hesiod.abilist: New file.
21684         * sysdeps/generic/libnss_nis.abilist: New file.
21685         * sysdeps/generic/libnss_nisplus.abilist: New file.
21686         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
21687         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
21688         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
21689         file.
21690         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
21691         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
21692         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
21693         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
21694         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
21695         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
21696         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
21697         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
21698         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
21699         file.
21700         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
21701         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
21702         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
21703         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
21704         file.
21705         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
21706         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
21707         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
21708         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
21709         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
21710         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
21711         file.
21712         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
21713         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
21714         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
21715         file.
21716         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
21717         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
21718         New file.
21719         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
21720         New file.
21721         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
21722         New file.
21723         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
21724         New file.
21725         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
21726         New file.
21727         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
21728         New file.
21729         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
21730         New file.
21731         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
21732         New file.
21733         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
21734         New file.
21735         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
21736         New file.
21737         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
21738         New file.
21739         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
21740         New file.
21741         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
21742         New file.
21743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
21744         file.
21745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
21746         New file.
21747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
21748         New file.
21749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
21750         file.
21751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
21752         New file.
21753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
21754         New file.
21755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
21756         file.
21757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
21758         New file.
21759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
21760         New file.
21761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
21762         New file.
21763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
21764         New file.
21765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
21766         New file.
21767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
21768         New file.
21769         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
21770         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
21771         file.
21772         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
21773         New file.
21774         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
21775         file.
21776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
21777         file.
21778         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
21779         file.
21780         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
21781         file.
21782         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
21783         file.
21784         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
21785         New file.
21786         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
21787         file.
21788         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
21789         file.
21790         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
21791         New file.
21792         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
21793         file.
21794         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
21795         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
21796         file.
21797         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
21798         New file.
21799         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
21800         file.
21801         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
21802         file.
21803         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
21804         file.
21805         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
21806         file.
21807         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
21808         file.
21809         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
21810         New file.
21811         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
21812         file.
21813         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
21814         file.
21815         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
21816         New file.
21817         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
21818         file.
21819         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
21820         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
21821         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
21822         file.
21823         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
21824         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
21825         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
21826         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
21827         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
21828         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
21829         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
21830         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
21831         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
21832         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
21833         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
21834         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
21835         file.
21836         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
21837         New file.
21838         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
21839         file.
21840         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
21841         file.
21842         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
21843         file.
21844         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
21845         file.
21846         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
21847         file.
21848         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
21849         New file.
21850         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
21851         New file.
21852         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
21853         file.
21854         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
21855         New file.
21856         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
21857         file.
21858         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
21859         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
21860         file.
21861         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
21862         New file.
21863         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
21864         file.
21865         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
21866         file.
21867         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
21868         file.
21869         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
21870         file.
21871         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
21872         file.
21873         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
21874         New file.
21875         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
21876         New file.
21877         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
21878         file.
21879         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
21880         New file.
21881         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
21882         file.
21883
21884 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
21885
21886         * conform/conformtest.pl: Fix typo in handling typed-constant from
21887         allow-header.
21888
21889 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
21890
21891         * README: Cut down references to pre-2.6 Linux kernels and
21892         Linuxthreads.  Update lists of configurations in libc and ports
21893         and sort alphabetically.  Say "or newer" with Linux kernel version
21894         requirements.
21895
21896         * config.h.in [IS_IN_build]: Allow compiling without optimization.
21897
21898 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
21899
21900         [BZ #887]
21901         * math/libm-test.inc (logb_test_downward): New test to expose
21902         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
21903         rounding mode.
21904
21905 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
21906
21907         [BZ #14027]
21908         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
21909         to be done.
21910         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
21911         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
21912
21913 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
21914
21915         * sysdeps/unix/i386/brk.S: Remove file.
21916         * sysdeps/unix/i386/dl-brk.S: Likewise.
21917         * sysdeps/unix/i386/pipe.S: Likewise.
21918         * sysdeps/unix/i386/sigreturn.S: Likewise.
21919         * sysdeps/unix/i386/syscall.S: Likewise.
21920         * sysdeps/unix/i386/vfork.S: Likewise.
21921         * sysdeps/unix/i386/wait.S: Likewise.
21922
21923         * sysdeps/unix/common/tcsendbrk.c: Move to ...
21924         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
21925
21926         * configure.in (arm*-none*): Do not allow without
21927         --enable-hacker-mode.
21928         (netbsd*): Remove case setting base_os.
21929         (386bsd*): Likewise.
21930         (freebsd*): Likewise.
21931         (bsdi*): Likewise.
21932         (osf*): Likewise.
21933         (sunos*): Likewise.
21934         (ultrix*): Likewise.
21935         (newsos*): Likewise.
21936         (dynix*): Likewise.
21937         (*bsd*): Likewise.
21938         (sysv*): Likewise.
21939         (isc*): Likewise.
21940         (esix*): Likewise.
21941         (sco*): Likewise.
21942         (minix*): Likewise.
21943         (irix4*): Likewise.
21944         (irix6*): Likewise.
21945         (solaris[2-9]*): Likewise.
21946         (none): Likewise.
21947         * configure: Regenerated.
21948
21949 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21950
21951         [BZ #11521]
21952         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
21953         overflow or cancellation in calculating denominator.
21954         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
21955         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
21956         down expression to avoid unexpected rounding in newer GCCs.
21957         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
21958
21959 2012-04-26  David S. Miller  <davem@davemloft.net>
21960
21961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
21962         long-double compat symbols.
21963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
21964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
21965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
21966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
21967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
21968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
21969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
21970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
21971         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
21972         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
21973         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
21974         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
21975         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
21976
21977 2012-04-25  David S. Miller  <davem@davemloft.net>
21978
21979         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
21980         HWCAP_* values only after the memory barriers have been defined.
21981         (atomic_full_barrier): Define.
21982         (atomic_read_barrier): Define.
21983         (atomic_write_barrier): Define.
21984
21985 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21986
21987         * shlib-versions: Add libgcc_s version information.
21988         * sysdeps/generic/libgcc_s.h: Remove.
21989         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
21990         libgcc_s.h.
21991         * sysdeps/gnu/unwind-resume.c: Likewise.
21992         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
21993
21994 2012-04-25  David S. Miller  <davem@davemloft.net>
21995
21996         * sysdeps/unix/sparc/brk.S: Delete.
21997         * sysdeps/unix/sparc/dl-brk.S: Delete.
21998         * sysdeps/unix/sparc/pipe.S: Delete.
21999         * sysdeps/unix/sparc/sysdep.S: Delete.
22000         * sysdeps/unix/sparc/sysdep.h: Delete.
22001         * sysdeps/unix/sparc/vfork.S: Delete.
22002         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
22003         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
22004         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
22005         ret_ERRVAL, r0, r1, MOVE): Define.
22006         (JUMPTARGET): Remove.
22007         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
22008         sysdeps/unix/sparc/sysdep.h
22009         (ENTRY, END): Remove.
22010         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22011
22012 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
22013
22014         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
22015         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
22016         -DIS_IN_build.
22017
22018         * timezone/README: Update upstream location and email address for
22019         tzcode and tzdata.
22020         * timezone/zdump.c: Update from tzcode 2012b.
22021         * timezone/zic.c: Likewise.
22022
22023         * configure.in (libc_cv_as_needed): Remove test.
22024         * configure: Regenerated.
22025         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
22026         conditional definition.
22027         [$(have-as-needed) != yes] (no-as-needed): Likewise.
22028         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
22029         * config.make.in (have-as-needed): Remove variable.
22030
22031 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
22032             Paul Pluzhnikov  <ppluzhnikov@google.com>
22033
22034         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
22035         strings correctly.
22036
22037 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
22038
22039         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
22040         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
22041         * sysdeps/sh/strlen.S: Likewise.
22042
22043 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22044
22045         * sysdeps/unix/fork.S: Remove file.
22046         * sysdeps/unix/i386/fork.S: Likewise.
22047         * sysdeps/unix/sparc/fork.S: Likewise.
22048
22049         * sysdeps/unix/system.c: Remove file.
22050         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
22051
22052         * sysdeps/unix/getegid.S: Remove file.
22053         * sysdeps/unix/geteuid.S: Likewise.
22054
22055 2012-04-24  Roland McGrath  <roland@hack.frob.com>
22056
22057         * scripts/check-localplt.awk: New file.
22058         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
22059         of diff.
22060         * scripts/data/localplt-generic.data: Add a comment.
22061
22062         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
22063         NODE when __dir_mkfile failed.
22064         * sysdeps/mach/hurd/symlinkat.c: Likewise.
22065         Reported by Ludovic Courtès <ludo@gnu.org>.
22066
22067 2012-04-24  Andreas Jaeger  <aj@suse.de>
22068
22069         * Makerules (common-clean): Also remove gen-as-const-headers
22070         files.
22071
22072 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22073
22074         * Makerules (native-compile): Do not change working directory for
22075         build.  Use $(OUTPUT_OPTION) in command.
22076         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
22077
22078 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22079
22080         [BZ #13886]
22081         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
22082         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
22083         * math/libm-test.inc (floor_test): Add more tests.
22084         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
22085
22086 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22087
22088         * sysdeps/unix/getdents.c: Remove file.
22089         * sysdeps/unix/sysv/getdents.c: Likewise.
22090         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
22091
22092         * sysdeps/unix/syscalls.list (madvise): Add syscall from
22093         sysdeps/unix/mman/syscalls.list.
22094         (mmap): Likewise.
22095         (mprotect): Likewise.
22096         (msync): Likewise.
22097         (munmap): Likewise.
22098         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
22099         * sysdeps/unix/mman/syscalls.list: Remove.
22100         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
22101
22102         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
22103         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
22104         * configure: Regenerated.
22105         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
22106         $(libgcc_s_suffix).
22107         * config.make.in (libgcc_s_suffix): Remove variable.
22108
22109 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
22110
22111         * sysdeps/unix/sysv/gethostname.c: Move to ...
22112         * sysdeps/posix/gethostname.c: ... here.
22113
22114         * sysdeps/unix/execve.S: Remove file.
22115
22116         * sysdeps/unix/_exit.S: Remove file.
22117
22118 2012-04-23  Andreas Jaeger  <aj@suse.de>
22119
22120         [BZ #13739]
22121         * manual/Makefile: Remove make dist support, there's no
22122         need for a stand-alone documentation tar ball.
22123         (TEXI2DVI): Define always, it's not in Makeconfig.
22124         (dist): Removed.
22125         (tar-it): Removed.
22126         (edition): Removed.
22127         (glibc-doc-$(edition).tar): Removed
22128         (%.Z): Removed.
22129         (%.gz): Removed.
22130         (%.uu): Removed.
22131         (ETAGS): Remove, it's in Makeconfig.
22132         (move-if-change): Remove, it's in Makeconfig.
22133
22134 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22135
22136         [BZ #13970]
22137         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
22138         (strtod, strtof, strtold, strtol, strtoul, strtoq)
22139         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
22140         (strtod_l, strtof_l, strtold_l): Remove __wur.
22141         It is not necessarily an error to ignore strtol's return value.
22142         One can reliably look at the stored endptr to decide whether
22143         the number had valid syntax.
22144
22145 2012-04-21  Andreas Jaeger  <aj@suse.de>
22146
22147         [BZ #13739]
22148         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
22149
22150 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
22151
22152         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
22153         * sysdeps/unix/sysv/Versions: Remove file.
22154
22155 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
22156
22157         [BZ #13927]
22158         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22159
22160 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
22161
22162         [BZ #7064]
22163         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
22164         version from __vm86.
22165
22166 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
22167
22168         * sysdeps/unix/common/lxstat.c: Remove file.
22169         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
22170
22171         * sysdeps/unix/sysv/Makefile: Remove file.
22172
22173         * sysdeps/unix/sysv/direct.h: Remove file.
22174
22175         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
22176         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
22177         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
22178         * sysdeps/unix/sysv/bits/signum.h: Likewise.
22179         * sysdeps/unix/sysv/bits/stat.h: Likewise.
22180         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
22181         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
22182
22183         * sysdeps/unix/sysv/setrlimit.c: Remove file.
22184
22185         * sysdeps/unix/xmknod.c: Remove file.
22186         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
22187
22188         * sysdeps/unix/sysv/settimeofday.c: Remove file.
22189
22190         * sysdeps/unix/sysv/i386/time.S: Remove file.
22191
22192         * sysdeps/unix/fxstat.c: Remove file.
22193         * sysdeps/unix/xstat.c: Likewise.
22194         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
22195
22196         * sysdeps/unix/sysv/sigaction.c: Remove file.
22197
22198         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
22199         (sysdep_headers): Remove variable.
22200         [termio.h not in sysdep_headers] (generated): Likewise.
22201         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
22202         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
22203         * sysdeps/unix/sysv/tcdrain.c: Likewise.
22204         * sysdeps/unix/sysv/tcflow.c: Likewise.
22205         * sysdeps/unix/sysv/tcflush.c: Likewise.
22206         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
22207         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
22208         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
22209         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
22210         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
22211
22212         * sysdeps/unix/siglist.c: Remove file.
22213
22214         * sysdeps/unix/getppid.S: Remove file.
22215
22216         * sysdeps/unix/mkdir.c: Remove file.
22217         * sysdeps/unix/rmdir.c: Likewise.
22218
22219 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
22220
22221         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
22222         ERR_MAX value.
22223         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
22224         errlist-compat value.
22225
22226 2012-04-18  David S. Miller  <davem@davemloft.net>
22227
22228         * sysdeps/generic/memcopy.h (reg_char): Delete.
22229         * debug/strcat_chk.c: Use char, not reg_char.
22230         * debug/strcpy_chk.c: Likewise.
22231         * debug/strncat_chk.c: Likewise.
22232         * debug/strncpy_chk.c: Likewise.
22233         * string/memchr.c: Likewise.
22234         * string/memrchr.c: Likewise.
22235         * string/rawmemchr.c: Likewise.
22236         * string/strcat.c: Likewise.
22237         * string/strchr.c: Likewise.
22238         * string/strchrnul.c: Likewise.
22239         * string/strcmp.c: Likewise.
22240         * string/strcpy.c: Likewise.
22241         * string/strncat.c: Likewise.
22242         * string/strncmp.c: Likewise.
22243         * string/strncpy.c: Likewise.
22244
22245 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22246
22247         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
22248         __builtin_memcopy is called when src and dest ranges are known to not
22249         overlap.
22250
22251 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22252
22253         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
22254         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
22255         fwd_align_merge macro call.
22256         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
22257         bwd_align_merge macro call.
22258         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22259
22260 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
22261
22262         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
22263         bwd_align_merge macros.
22264         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
22265         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
22266         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
22267
22268 2012-04-18  David S. Miller  <davem@davemloft.net>
22269
22270         * sysdeps/sparc/sparc64/memcopy.h: Delete.
22271
22272 2012-04-18  Andreas Jaeger  <aj@suse.de>
22273
22274         [BZ# 6794]
22275         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
22276         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
22277         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22278
22279         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
22280         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
22281         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22282
22283         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
22284         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
22285         Adjust for changed ldbl-128 files.
22286
22287         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
22288         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
22289         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
22290
22291 2012-04-17  David S. Miller  <davem@davemloft.net>
22292
22293         * sysdeps/sparc/sparc32/memcopy.h: Delete.
22294
22295 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
22296
22297         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
22298         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
22299         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
22300         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
22301         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
22302         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
22303
22304 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22305
22306         [BZ #6794]
22307         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
22308         * math/libm-test.inc: Add ilogb errno and exception tests.
22309         * math/w_ilogb.c: New file: ilogb wrapper.
22310         * math/w_ilogbf.c: New file: ilogbf wrapper.
22311         * math/w_ilogbl.c: New file: ilogbl wrapper.
22312         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
22313         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
22314         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
22315         exception being thrown with 0.0 as argument.
22316         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
22317         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
22318         exception being thrown with 0.0 as argument.
22319         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
22320         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
22321         exception being thrown with 0.0 as argument.
22322         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
22323         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
22324         exception being thrown with 0.0 as argument.
22325         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
22326         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
22327         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
22328         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
22329         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
22330         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
22331         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
22332         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
22333         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
22334
22335 2012-04-17  Petr Baudis  <pasky@ucw.cz>
22336
22337         * include/sys/uio.h: Change __vector to __iovec to avoid clash
22338         with altivec.
22339
22340 2012-04-16  Marek Polacek  <polacek@redhat.com>
22341
22342         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
22343
22344 2012-04-16  Marek Polacek  <polacek@redhat.com>
22345
22346         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
22347         operands of fdivp instruction.
22348
22349 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22350
22351         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
22352         * elf/tst-auditmod3b.c: Likewise.
22353         * elf/tst-auditmod4b.c: Likewise.
22354         * elf/tst-auditmod5b.c: Likewise.
22355         * elf/tst-auditmod6b.c: Likewise.
22356         * elf/tst-auditmod6c.c: Likewise.
22357         * elf/tst-auditmod7b.c: Likewise.
22358         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
22359         * sysdeps/x86_64/preconfigure.in: Likewise.
22360         * sysdeps/x86_64/preconfigure: Regenerated.
22361
22362 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22363
22364         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
22365         __ILP32__.
22366
22367 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
22368
22369         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
22370         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
22371
22372 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
22373
22374         [BZ #13973]
22375         * locale/iso-639.def: Fix gl language name. Spotted by
22376         Yaron Shahrabani.
22377
22378 2012-04-12  Roland McGrath  <roland@hack.frob.com>
22379
22380         [BZ #2074]
22381         * libio/libio.h (__io_write_fn): Update comment.
22382
22383 2012-04-12  Petr Baudis  <pasky@ucw.cz>
22384
22385         [BZ #2074]
22386         * stdio.texi (Hook Functions): The user provided writer function
22387         is not allowed to return -1.
22388
22389 2012-04-11  David S. Miller  <davem@davemloft.net>
22390
22391         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22392
22393 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
22394
22395         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
22396         Add a leading slash to rtkaio.
22397
22398 2012-04-11  Jim Meyering  <meyering@redhat.com>
22399
22400         [BZ #11959]
22401         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
22402         It is not necessarily an error to ignore fwrite's return
22403         value.  One can reliably use ferror to test for errors after
22404         the fact.
22405
22406 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22407
22408         * bits/types.h (__snseconds_t): New type.
22409         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
22410
22411         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
22412         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22413         (__SNSECONDS_T_TYPE): Likewise.
22414         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22415         (__SNSECONDS_T_TYPE): Likewise.
22416         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22417         (__SNSECONDS_T_TYPE): Likewise.
22418
22419 2012-04-10  Andreas Jaeger  <aj@suse.de>
22420
22421         [BZ #2636]
22422         * manual/time.texi (Processor Time): Return type of times is
22423         elapsed real time since an arbitrary point in the past.
22424         (CPU Time): Move CLK_TCK from here...
22425         (Processor Time): ...to here.  Correct description.
22426         * manual/conf.texi (Constants for Sysconf): Correct description of
22427         _SC_CLK_TCK.
22428
22429 2012-04-10  David S. Miller  <davem@davemloft.net>
22430
22431         [BZ #13967]
22432         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
22433         where the is a gap between DT_REL(A) and DT_JMPREL.
22434
22435 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22436
22437         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
22438         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
22439         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
22440
22441 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22442
22443         * elf/dl-support.c (_dl_inhibit_cache): New variable.
22444         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
22445         (dl_main): Handle --inhibit-cache.
22446         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
22447         _dl_inhibit_cache.
22448         * elf/dl-load.c (_dl_map_object): Use it.
22449         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
22450
22451 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
22452
22453         [BZ #13872]
22454         * sysdeps/i386/fpu/e_powl.S (p78): New object.
22455         (__ieee754_powl): Saturate large exponents rather than testing for
22456         overflow of y*log2(x).
22457         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
22458         * math/libm-test.inc (pow_test): Do not permit spurious overflow
22459         exceptions.
22460
22461         [BZ #11521]
22462         * math/s_ctan.c: Include <float.h>.
22463         (__ctan): Avoid internal overflow or cancellation in calculating
22464         denominator.
22465         * math/s_ctanf.c: Likewise.
22466         * math/s_ctanl.c: Likewise.
22467         * math/s_ctanh.c: Likewise.
22468         * math/s_ctanhf.c: Likewise.
22469         * math/s_ctanhl.c: Likewise.
22470         * math/libm-test.inc (ctan_test): Add more tests.
22471         (ctanh_test): Likewise.
22472         * sysdeps/i386/fpu/libm-test-ulps: Update.
22473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22474
22475 2012-04-09  Andreas Jaeger  <aj@suse.de>
22476
22477         [BZ #6894]
22478         * manual/filesys.texi (Directory Entries): Mention that d_namlen
22479         is an optional BSD extension.
22480
22481         [BZ #10254]
22482         * manual/stdio.texi (Opening Streams): Document additional fopen
22483         parameters.
22484
22485 2012-04-09  Roland McGrath  <roland@hack.frob.com>
22486
22487         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
22488         %eax without telling the compiler.
22489
22490 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
22491
22492         [BZ # 13963]
22493         * manual/install.texi: Use sourceware.org.
22494
22495 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
22496
22497         [BZ #13873]
22498         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
22499         (__ieee754_pow): Generate overflow and underflow using huge*huge
22500         and tiny*tiny rather than just returning constant infinity or zero
22501         for large exponents.
22502         * math/libm-test.inc (pow_test): Require overflow exceptions for
22503         applicable cases of large exponents.
22504
22505         [BZ #706]
22506         * sysdeps/i386/fpu/e_pow.S (p10): New object.
22507         (__ieee754_pow): Use iterative multiplication algorithm only for
22508         integer exponents with absolute value below 1024.  Check for odd
22509         integer exponents when using algorithm for real exponents.
22510         * math/libm-test.inc (pow_test): Add more tests.
22511         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22512
22513 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
22514
22515         [BZ #13705]
22516         * math/libm-test.inc (exp_test): Do not allow overflow exception
22517         on underflow test.
22518
22519 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
22520
22521         [BZ #13705]
22522         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
22523         instead of __kernel_standard_f.
22524
22525 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
22526
22527         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
22528         * sysdeps/x86_64/memset_chk.S: Likewise.
22529
22530 2012-04-08  Andreas Jaeger  <aj@suse.de>
22531
22532         [BZ #10153]
22533         * manual/startup.texi (Environment Access): Describe return value
22534         for putenv and setenv.
22535
22536         [BZ #6895]
22537         * manual/filesys.texi (Directory Entries): Add description for
22538         DT_LNK.
22539
22540         [BZ #6890]
22541         * manual/filesys.texi (Directory Entries): Clarify that it's file
22542         system not operating system in the description of DT_UNKNOWN.
22543
22544         [BZ #6578]
22545         * manual/syslog.texi (closelog): Fix reference, it's openlog.
22546
22547 2012-04-08  Stephen Compall  <s11@member.fsf.org>
22548
22549         [BZ #6649]
22550         * manual/llio.texi (Opening and Closing Files): Add cross
22551         reference to explain mode argument.
22552
22553 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
22554
22555         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
22556         * sysdeps/x86_64/memset_chk.S: Likewise.
22557
22558 2012-04-07  David S. Miller  <davem@davemloft.net>
22559
22560         * elf/elf.h (R_SPARC_WDISP10): Define.
22561         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
22562         R_SPARC_SIZE32.
22563         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
22564         R_SPARC_SIZE64 and R_SPARC_H34.
22565
22566 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
22567
22568         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
22569         conditions and remove no longer applicable assertion.
22570
22571 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22572
22573         * bits/byteswap.h: Include <features.h>.
22574         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
22575         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
22576
22577 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22578
22579         * bits/byteswap.h (__bswap_16): Removed.
22580         Include <bits/byteswap-16.h> to get __bswap_16.
22581         * sysdeps/i386/bits/byteswap.h: Likewise.
22582         * sysdeps/s390/bits/byteswap.h: Likewise.
22583         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22584         * bits/byteswap-16.h: New file.
22585         * sysdeps/i386/bits/byteswap-16.h: Likewise.
22586         * sysdeps/s390/bits/byteswap-16.h: Likewise.
22587         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
22588         * string/Makefile (headers): Add bits/byteswap-16.h.
22589
22590 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
22591
22592         [BZ #13895]
22593         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
22594         extra indirection.
22595         * nss/Makefile (tests-static, tests): Add tst-nss-static.
22596         * nss/tst-nss-static.c: New.
22597
22598 2012-04-06  Robert Millan  <rmh@gnu.org>
22599
22600         [BZ #6486]
22601         * manual/llio.texi (File Position Primitive): lseek
22602         refers to WHENCE when it really means OFFSET.
22603
22604 2012-04-06  Andreas Jaeger  <aj@suse.de>
22605
22606         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
22607         strncmp declarations.
22608
22609         * abilist/libc.abilist: Add __poll and __ppoll.
22610
22611 2012-04-05  David S. Miller  <davem@davemloft.net>
22612
22613         * scripts/check-local-headers.sh: Accept a host triplet in the
22614         path matched by the exclude regexp.
22615
22616         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
22617         definition.
22618         * sysdeps/powerpc/powerpc32/dl-machine.h
22619         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
22620         * sysdeps/s390/s390-32/dl-machine.h
22621         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22622         * sysdeps/sparc/sparc32/dl-machine.h
22623         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22624         * sysdeps/sparc/sparc64/dl-machine.h
22625         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
22626
22627         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
22628         lazy binding.
22629         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
22630         undefined symbol errors.
22631
22632         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
22633         DT_NEEDED entries.
22634
22635 2012-04-05  Michael Matz  <matz@suse.de>
22636
22637         [BZ #13592]
22638         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
22639
22640 2012-04-05  Andreas Jaeger  <aj@suse.de>
22641
22642         [BZ #13908]
22643         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
22644         comment.
22645
22646 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22647
22648         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
22649         which ROUND is no valid rounding mode.
22650
22651 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22652
22653         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
22654         read again.
22655         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
22656
22657 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22658
22659         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
22660         an exception using FPU order intentionally.
22661
22662 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
22663
22664         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
22665         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
22666         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
22667         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
22668
22669 2012-04-05  Simon Josefsson  <simon@josefsson.org>
22670
22671         [BZ #12340]
22672         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
22673         EINVAL when BUFLEN is too smal.
22674
22675 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
22676
22677         [BZ #13553]
22678         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
22679         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
22680
22681 2012-04-03  Andreas Jaeger  <aj@suse.de>
22682
22683         [BZ #13938]
22684         * manual/setjmp.texi (System V contexts): Fix sentence.
22685
22686         [BZ #13926]
22687         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
22688         New macro for this case.
22689         [!__GNUC__] (__bswap_64): New inline function for this case.
22690         * sysdeps/x86_64/bits/byteswap.h: Likewise.
22691         * bits/byteswap.h: Likewise.
22692         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
22693         ull, guard with __GLIBC_HAVE_LONG_LONG.
22694
22695         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
22696         __GLIBC_HAVE_LONG_LONG.
22697
22698         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
22699         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
22700
22701 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22702
22703         [BZ #13691]
22704         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
22705         inptr and inend, rather than using last_ch.
22706
22707 2012-04-02  David S. Miller  <davem@davemloft.net>
22708
22709         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
22710         * stdio-common/printf-parse.h (read_int): Change return type to
22711         'int', return -1 on INT_MAX overflow.
22712         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
22713         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
22714         overflows INT_MAX.  Check for overflow of in-format-string precision
22715         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
22716         SIZE_MAX not INT_MAX for integer overflow test.
22717         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
22718         skip the construct in the format string but do not record anything.
22719         * stdio-common/bug22.c: Adjust to test both width/prevision
22720         INT_MAX overflow as well as total length INT_MAX overflow.  Check
22721         explicitly for proper errno values.
22722
22723 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
22724
22725         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
22726         CHAR_MAX.
22727         * string/test-strcmp.c [! WIDE]: Likewise.
22728         * time/tst-mktime2.c: Likewise for INT_MAX.
22729         * string/test-string.h: #include <sys/param.h> for MIN.
22730
22731         * csu/init-first.c (__libc_init_first): Call __ctype_init.
22732         * sysdeps/i386/init-first.c (init): Likewise.
22733         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
22734         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
22735         * sysdeps/sh/init-first.c (init): Likewise.
22736
22737 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
22738
22739         * po/ru.po: Update from translation team.
22740         * po/vi.po: Likewise.
22741
22742 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22743
22744         * resolv/nss_dns/dns-host.c: Merge copyright years.
22745
22746 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22747
22748         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
22749         Optimize memcpy with prefetch if
22750         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
22751         src, dst pointers have unequal 16 byte alignments.
22752
22753 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
22754
22755         [BZ #13928]
22756         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
22757         from a CNAME entry and return the minimum ttl for the query.
22758         (gaih_getanswer_slice): Likewise.
22759
22760 2012-03-30  Jeff Law  <law@redhat.com>
22761
22762         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
22763         due to long keys.
22764         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
22765         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
22766
22767         * resolv/nss_dns/dns-host.c: Update copyright year.
22768
22769 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
22770
22771         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
22772         requests to save a system call.  Fix check that all bytes are sent.
22773
22774         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
22775         comments for sendmmsg.
22776
22777 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22778
22779         [BZ #13691]
22780         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
22781         with only 1 character between 0x0041 and 0x01b0.
22782         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
22783         * wcsmbs/tst-mbsnrtowcs.c: New file.
22784
22785 2012-03-29  David S. Miller  <davem@davemloft.net>
22786
22787         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
22788         small copies by hand.
22789
22790 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22791
22792         [BZ #13761]
22793         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
22794         _nss_compat_initgroups_dyn): Fall back to malloc/free
22795         for large group memberships.
22796
22797 2012-03-28  David S. Miller  <davem@davemloft.net>
22798
22799         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
22800         that branches into memcpy.
22801         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
22802         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
22803         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22804         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
22805         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
22806         bits.
22807         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
22808         implementation too.
22809         * sysdeps/sparc/mempcpy.S: New file.
22810
22811         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
22812         the IFUNC routine in the libc case.
22813         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
22814
22815         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
22816         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
22817         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
22818         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
22819         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
22820         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
22821         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
22822         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
22823
22824         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
22825         loop to 256 bytes instead of 64 bytes and fix test signedness.
22826
22827         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
22828         * sysdeps/sparc/sparc32/Makefile: rather than here...
22829         * sysdeps/sparc/sparc64/Makefile: and here.
22830
22831 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
22832
22833         * malloc/mallocbug.c: Avoid warnings about unused variables.
22834
22835 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
22836
22837         [BZ #13760]
22838         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
22839         in the right place. Discard and retry query if response is
22840         larger than input buffer size.
22841
22842 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
22843
22844         [BZ #369]
22845         [BZ #2678]
22846         [BZ #3866]
22847         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
22848         x for large integer exponent.
22849         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
22850         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
22851         sign of result as needed afterwards.
22852         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
22853         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
22854         result for underflowing pow the same as for overflow.
22855         (__kernel_standard_l): Handle powl overflow and underflow here
22856         rather than calling __kernel_standard.
22857         * math/libm-test.inc (pow_test): Add more tests.
22858
22859         [BZ #3868]
22860         [BZ #13879]
22861         [BZ #13910]
22862         [BZ #13911]
22863         [BZ #13912]
22864         [BZ #13913]
22865         [BZ #13915]
22866         [BZ #13916]
22867         [BZ #13917]
22868         [BZ #13918]
22869         [BZ #13919]
22870         [BZ #13920]
22871         [BZ #13921]
22872         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
22873         * sysdeps/ieee754/k_standard.c: Include <float.h>.
22874         (__kernel_standard_l): New function.
22875         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
22876         __kernel_standard.
22877         * math/w_acosl.c (__acosl): Likewise.
22878         * math/w_asinl.c (__asinl): Likewise.
22879         * math/w_atan2l.c (__atan2l): Likewise.
22880         * math/w_atanhl.c (__atanhl): Likewise.
22881         * math/w_coshl.c (__coshl): Likewise.
22882         * math/w_exp10l.c (__exp10l): Likewise.
22883         * math/w_exp2l.c (__exp2l): Likewise.
22884         * math/w_fmodl.c (__fmodl): Likewise.
22885         * math/w_hypotl.c (__hypotl): Likewise.
22886         * math/w_j0l.c (__j0l, __y0l): Likewise.
22887         * math/w_j1l.c (__j1l, __y1l): Likewise.
22888         * math/w_jnl.c (__jnl, __ynl): Likewise.
22889         * math/w_lgammal.c (__lgammal): Likewise.
22890         * math/w_log10l.c (__log10l): Likewise.
22891         * math/w_log2l.c (__log2l): Likewise.
22892         * math/w_logl.c (__logl): Likewise.
22893         * math/w_powl.c (__powl): Likewise.
22894         * math/w_remainderl.c (__remainderl): Likewise.
22895         * math/w_scalbl.c (sysv_scalbl): Likewise.
22896         * math/w_sinhl.c (__sinhl): Likewise.
22897         * math/w_sqrtl.c (__sqrtl): Likewise.
22898         * math/w_tgammal.c (__tgammal): Likewise.
22899         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
22900         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
22901         * math/libm-test.inc (acos_test): Add more tests.
22902         (acosh_test): Likewise.
22903         (asin_test): Likewise.
22904         (atanh_test): Likewise.
22905         (exp_test): Likewise.
22906         (exp10_test): Likewise.
22907         (exp2_test): Likewise.
22908         (expm1_test): Likewise.
22909         (lgamma_test): Likewise.
22910         (log_test): Likewise.
22911         (log10_test): Likewise.
22912         (log1p_test): Likewise.
22913         (log2_test): Likewise.
22914         (pow_test): Do not allow some spurious overflow exceptions.
22915         (sqrt_test): Add more tests.
22916         (tgamma_test): Likewise.
22917         (y0_test): Likewise.
22918         (y1_test): Likewise.
22919         (yn_test): Likewise.
22920
22921 2012-03-27  Anton Blanchard  <anton@samba.org>
22922
22923         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
22924         MAP_HUGETLB.
22925         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
22926         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
22927         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
22928
22929 2012-03-27  David S. Miller  <davem@davemloft.net>
22930
22931         * conform/Makefile: Run run-conformtest.sh using $(BASH).
22932
22933         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
22934         have-as-vis3 check.
22935
22936 2012-03-27  Andreas Jaeger  <aj@suse.de>
22937
22938         * sysdeps/x86_64/elf/configure.in: Moved to ...
22939         * sysdeps/x86_64/configure.in: ... here.
22940         * sysdeps/x86_64/elf/start.S: Moved to ...
22941         * sysdeps/x86_64/start.S: ... here.
22942         * sysdeps/x86_64/elf/configure: Delete.
22943
22944         * sysdeps/x86_64/configure.in: Merge contents from
22945         sysdeps/i386/configure.in (without i686 check).
22946
22947         * sysdeps/i386/elf/Versions: Merge into ...
22948         * sysdeps/i386/Versions: ... this.
22949         * sysdeps/i386/elf/Versions: Delete file.
22950         * sysdeps/i386/elf/start.S: Moved to ...
22951         * sysdeps/i386/start.S: ...here.
22952         * sysdeps/i386/elf/configure.in: Merge into...
22953         * sysdeps/i386/configure.in: ...here.
22954         * sysdeps/i386/elf/configure.in: Delete file.
22955         * sysdeps/i386/elf/configure: Delete file.
22956
22957         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
22958         * debug/backtracesyms.c: ... here.
22959         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
22960         * debug/backtracesymsfd.c: ... here.
22961         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
22962         * sysdeps/generic/ifunc-sel.h: ... here.
22963
22964         * sysdeps/unix/i386/start.c: Delete file.
22965         * sysdeps/unix/sparc/start.c: Delete file.
22966         * sysdeps/unix/start.c: Delete file.
22967
22968         * sysdeps/sh/elf/configure.in: Moved to ...
22969         * sysdeps/sh/configure.in: ... here.
22970         * sysdeps/sh/elf/start.S: Moved to ...
22971         * sysdeps/sh/start.S: ... here.
22972         * sysdeps/sh/elf/configure: Delete file.
22973
22974         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
22975         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
22976         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
22977         * sysdeps/powerpc/powerpc64/entry.h: ... here.
22978         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
22979         * sysdeps/powerpc/powerpc64/start.S: here.
22980         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
22981         * sysdeps/powerpc/powerpc64/Makefile: ... this.
22982         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
22983         * sysdeps/powerpc/powerpc64/configure.in: ... this.
22984         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
22985
22986         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
22987         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
22988         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
22989         * sysdeps/powerpc/powerpc32/start.S: ... here.
22990         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
22991         * sysdeps/powerpc/powerpc32/configure.in: ... this.
22992         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
22993
22994         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
22995         * sysdeps/powerpc/ifunc-sel.h: ... here.
22996         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
22997         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
22998
22999         * sysdeps/sparc/elf/configure.in: Moved to ...
23000         * sysdeps/sparc/configure.in: ... here.
23001         * sysdeps/sparc/elf/configure: Delete file.
23002         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
23003         * sysdeps/sparc/sparc32/start.S: ... here.
23004         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
23005         * sysdeps/sparc/sparc64/start.S: ... here.
23006         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
23007         * sysdeps/sparc/sparc32/Makefile: ... this.
23008         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
23009         * sysdeps/sparc/sparc64/Makefile: ... this.
23010
23011         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
23012         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
23013         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
23014         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
23015         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
23016         * sysdeps/s390/s390-32/setjmp.S: ... here.
23017         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
23018         * sysdeps/s390/s390-32/configure.in: ... here.
23019         * sysdeps/s390/s390-32/elf/configure: Delete file.
23020         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
23021         * sysdeps/s390/s390-32/start.S: ... here.
23022
23023         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
23024         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
23025         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
23026         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
23027         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
23028         * sysdeps/s390/s390-64/setjmp.S: ... here.
23029         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
23030         * sysdeps/s390/s390-64/configure.in: ... here
23031         * sysdeps/s390/s390-64/elf/configure: Delete file.
23032         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
23033         * sysdeps/s390/s390-64/start.S: ... here.
23034         * sysdeps/s390/s390-64/elf/configure: Delete.
23035
23036         * configure.in: Remove support for elf directories in sysdeps.
23037
23038         * configure: Regenerated.
23039         * sysdeps/i386/configure: Regenerated.
23040         * sysdeps/powerpc/powerpc32/configure: Regenerated.
23041         * sysdeps/powerpc/powerpc64/configure: Regenerated.
23042         * sysdeps/s390/s390-32/configure: Regenerated.
23043         * sysdeps/s390/s390-64/configure: Regenerated.
23044         * sysdeps/sh/configure: Regenerated.
23045         * sysdeps/sparc/configure: Regenerated.
23046         * sysdeps/x86_64/configure: Regenerated.
23047
23048 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
23049
23050         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23051
23052         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
23053         denormal result into account.
23054
23055 2012-03-25  Roland McGrath  <roland@hack.frob.com>
23056
23057         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
23058         Reported by Allan McRae <allan@archlinux.org>.
23059
23060 2012-03-23  Jeff Law  <law@redhat.com>
23061
23062         * nss/getnssent.c (__nss_getent): Fix typo.
23063
23064 2012-03-23  David S. Miller  <davem@davemloft.net>
23065
23066         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23067
23068 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
23069
23070         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
23071         to pad to uint64_t for each field.
23072         (dl_tls_index): Replace unsigned long with uint64_t.
23073
23074 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
23075         Paul Pluzhnikov  <ppluzhnikov@google.com>
23076
23077         [BZ #6528]
23078         * grp/Makefile (otherlibs): Don't set it.
23079         * inet/Makefile (otherlibs): Likewise.
23080         * login/Makefile (otherlibs): Likewise.
23081         * nscd/Makefile (otherlibs): Likewise.
23082         * posix/Makefile (otherlibs): Likewise.
23083         * pwd/Makefile (otherlibs): Likewise.
23084         * rt/Makefile (otherlibs): Likewise.
23085         * sunrpc/Makefile (otherlibs): Likewise.
23086         * nss/Makefile (otherlibs): Likewise.
23087         Add libnss_files to routines and static-only-routines.
23088         ($(objpfx)getent): Remove rule.
23089         * resolv/Makefile: Add libnss_dns and libresolv to routines and
23090         static-only-routines.
23091
23092 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23093
23094         [BZ #13892]
23095         * math/s_cexp.c: Include <float.h>.
23096         (__cexp): Handle exp result overflowing not necessarily
23097         overflowing both real and imaginary parts of result.
23098         * math/s_cexpf.c: Likewise.
23099         * math/s_cexpl.c: Likewise.
23100         * math/libm-test.inc (cexp_test): Add more tests.
23101         * sysdeps/i386/fpu/libm-test-ulps: Update.
23102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23103
23104 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23105
23106         * include/link.h (ELFW): New macro.
23107         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
23108         Replace ELF64_R_TYPE with ELFW(R_TYPE).
23109
23110 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23111
23112         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
23113         with uint64_t.
23114
23115 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23116
23117         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
23118         declaration.
23119         (struct La_x32_retval): Likewise.
23120
23121 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23122
23123         * sysdeps/x86_64/preconfigure.in: New file.
23124         * sysdeps/x86_64/preconfigure: New generated file.
23125
23126 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23127
23128         [BZ #13824]
23129         * math/e_exp2l.c: Include <float.h>.
23130         (__ieee754_exp2l): Handle overflow and underflow cases
23131         separately.  Only pass fractional part of argument to
23132         __ieee754_expl.
23133         * math/libm-test.inc (exp2_test): Add more tests.
23134
23135         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
23136         negating x to take absolute value.
23137         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
23138         Likewise.
23139         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
23140         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
23141         Likewise.
23142         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
23143         computing low part if x was negated.
23144         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
23145
23146 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23147
23148         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
23149         la_x32_gnu_pltexit.
23150         (pltexit): Cast int_retval to ptrdiff_t.
23151         * elf/tst-auditmod3b.c: Likewise.
23152         * elf/tst-auditmod4b.c: Likewise.
23153         * elf/tst-auditmod5b.c: Likewise.
23154         * elf/tst-auditmod6b.c: Likewise.
23155         * elf/tst-auditmod6c.c: Likewise.
23156         * elf/tst-auditmod7b.c: Likewise.
23157
23158         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
23159         and x32_gnu_pltexit.
23160
23161         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
23162         __ELF_NATIVE_CLASS.
23163         (La_x32_regs): New macro.
23164         (La_x32_retval): Likewise.
23165         (la_x32_gnu_pltenter): New function prototype.
23166         (la_x32_gnu_pltexit): Likewise.
23167
23168 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
23169
23170         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
23171         exponent.
23172
23173         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23174
23175         * configure.in (libc_cv_cc_nofma): Check for option to disable
23176         generation of FMA instructions.
23177         * configure: Regenerate.
23178         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
23179         * sysdeps/ieee754/dbl-64/Makefile: New file.
23180         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23181         Remove brandred-fma4.
23182         (CFLAGS-brandred-fma4.c): Remove.
23183         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
23184         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
23185         define.
23186         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
23187         define.
23188
23189 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23190
23191         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
23192         LLONG_MAX != LONG_MAX.
23193         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23194         (_fitoa_word): Likewise.
23195         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
23196         LLONG_MAX != LONG_MAX.
23197         * stdio-common/_itowa.h: Include <_itoa.h>.
23198         (_itowa_word): Use _ITOA_WORD_TYPE on value.
23199         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
23200         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
23201         only if not defined.
23202         (_ITOA_WORD_TYPE): Likewise.
23203         (_itoa_word): Use _ITOA_WORD_TYPE on value.
23204         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
23205
23206 2012-03-21  David S. Miller  <davem@davemloft.net>
23207
23208         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23209
23210 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23211
23212         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
23213         of x86_64 when setting libc_cv_slibdir, libdir and
23214         libc_cv_localedir.
23215         * sysdeps/unix/sysv/linux/configure: Regenerated.
23216
23217 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23218
23219         * manual/lang.texi (Old Varargs): Remove section.
23220         (How Variadic): Update menu.
23221         (va_start): Do not mention varargs.h.
23222
23223 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23224             Joseph Myers  <joseph@codesourcery.com>
23225
23226         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
23227         link test.
23228         * configure: Regenerated.
23229
23230 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
23231
23232         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
23233         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
23234         conformtest.pl
23235
23236 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23237
23238         * NOTES: Remove.
23239         * Makefile (files-for-dist): Remove NOTES.
23240         (NOTES): Remove rule.
23241         * README: Don't refer to NOTES.
23242         * manual/creature.texi: Don't include macros.texi.
23243         * manual/intro.texi (creature.texi): Remove comment referring to
23244         NOTES.
23245
23246         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
23247         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
23248         * configure: Regenerated.
23249         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
23250         LIBC_TRY_CC_OPTION.
23251         (libc_cv_as_i686): Likewise.
23252         (libc_cv_cc_avx): Likewise.
23253         (libc_cv_cc_sse2avx): Likewise.
23254         (libc_cv_cc_fma4): Likewise.
23255         (libc_cv_cc_novzeroupper): Likewise.
23256         * sysdeps/i386/configure: Regenerated.
23257
23258         [BZ #13883]
23259         * sysdeps/i386/fpu/s_cexp.S: Remove.
23260         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
23261         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
23262         * math/libm-test.inc (cexp_test): Add more tests.
23263         * sysdeps/i386/fpu/libm-test-ulps: Update.
23264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23265
23266 2012-03-21  Allan McRae  <allan@archlinux.org>
23267
23268         * timezone/Makefile: Do not install iso3166.tab and zone.tab
23269
23270 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
23271
23272         [BZ #13871]
23273         * math/w_exp2.c: Do not include <float.h>.
23274         (o_threshold, u_threshold): Remove.
23275         (__exp2): Calculate result before checking finiteness and calling
23276         __kernel_standard.
23277         * math/w_exp2f.c: Likewise.
23278         * math/w_exp2l.c: Likewise.
23279         * math/libm-test.inc (exp2_test): Require overflow exception for
23280         1e6 input.
23281
23282         [BZ #3866]
23283         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
23284         range of signed 64-bit integers before using fistpll.  Remove
23285         checks for whether integers fit in mantissa bits.
23286         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
23287         the range of signed 32-bit integers before using fistpl.  Remove
23288         checks for whether integers fit in mantissa bits.
23289         * sysdeps/i386/fpu/e_powl.S (p64): New object.
23290         (__ieee754_powl): Test for y outside the range of signed 64-bit
23291         integers before using fistpll.  Reduce 64-bit values to 63-bit
23292         ones as needed.
23293         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
23294         divide-by-zero is raised for zero to large negative powers.
23295         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
23296         (__ieee754_powl): Test for y outside the range of signed 64-bit
23297         integers before using fistpll.  Reduce 64-bit values to 63-bit
23298         ones as needed.
23299         * math/libm-test.inc (pow_test): Add more tests.
23300
23301 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23302
23303         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
23304         <stdio-common/_itoa.h>.
23305         * debug/segfault.c: Likewise.
23306         * elf/dl-cache.c: Likewise.
23307         * elf/dl-minimal.c: Likewise.
23308         * elf/dl-misc.c: Likewise.
23309         * elf/dl-sysdep.c: Likewise.
23310         * elf/dl-version.c: Likewise.
23311         * elf/rtld.c: Likewise.
23312         * hurd/hurdsock.c: Likewise.
23313         * hurd/lookup-retry.c: Likewise.
23314         * malloc/malloc.c: Likewise.
23315         * malloc/mtrace.c: Likewise.
23316         * nscd/nscd_getgr_r.c: Likewise.
23317         * nscd/nscd_getpw_r.c: Likewise.
23318         * nscd/nscd_getserv_r.c: Likewise.
23319         * posix/getopt_init.c: Likewise.
23320         * posix/wordexp.c: Likewise.
23321         * stdio-common/_itoa.c: Likewise.
23322         * stdio-common/printf_fphex.c: Likewise.
23323         * stdio-common/vfprintf.c: Likewise.
23324         * string/_strerror.c: Likewise.
23325         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
23326         * sysdeps/i386/i686/hp-timing.h: Likewise.
23327         * sysdeps/mach/_strerror.c: Likewise.
23328         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
23329         * sysdeps/mach/hurd/sethostid.c: Likewise.
23330         * sysdeps/mach/hurd/xmknodat.c: Likewise.
23331         * sysdeps/mach/xpg-strerror.c: Likewise.
23332         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23333         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23334         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
23335         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
23336         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23337         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
23338         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
23339         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
23340         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
23341         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
23342         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
23343         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
23344         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
23345         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
23346         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
23347         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
23348         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
23349         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
23350         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
23351         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
23352         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
23353
23354         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
23355
23356         * stdio-common/_itoa.h: Moved to ...
23357         * sysdeps/generic/_itoa.h: Here.
23358
23359         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
23360
23361         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
23362         instead of "_itoa.h" and "_itowa.h".
23363         * stdio-common/vfprintf.: Likewise.
23364
23365 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23366
23367         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
23368         <bits/wordsize.h>.
23369         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
23370         (__signbit): Likwise.
23371         (llrintf): Likwise.
23372         (llrint): Likwise.
23373
23374 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
23375
23376         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
23377         __WORDSIZE != 64.
23378
23379 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
23380
23381         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
23382         OVERFLOW_EXCEPTION_OK.
23383         * math/libm-test.inc ("Philosophy"): Update comment about
23384         exception testing.
23385         (OVERFLOW_EXCEPTION): Define.
23386         (OVERFLOW_EXCEPTION_OK): Likewise.
23387         (INVALID_EXCEPTION_OK): Renumber.
23388         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
23389         (IGNORE_ZERO_INF_SIGN): Likewise.
23390         (test_exceptions): Handle FE_OVERFLOW.
23391         (exp10_test): Expect overflow exceptions.
23392         (exp2_test): Likewise.
23393         (expm1_test): Likewise.
23394         (nextafter_test): Likewise.
23395         (pow_test): Likewise.
23396         (scalbn_test): Likewise.
23397         (scalbln_test): Likewise.
23398
23399 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23400
23401         * sysdeps/x86_64/bits/atomic.h
23402         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
23403         64bit integer.
23404         (atomic_exchange_acq): Likewise.
23405         (__arch_exchange_and_add_body): Likewise.
23406         (__arch_add_body): Likewise.
23407         (atomic_add_negative): Likewise.
23408         (atomic_add_zero): Likewise.
23409
23410 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23411
23412         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
23413         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
23414
23415 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23416
23417         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
23418         Check __x86_64__ instead of __WORDSIZE.
23419
23420 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23421
23422         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
23423
23424 2012-03-19  David S. Miller  <davem@davemloft.net>
23425
23426         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23427
23428         * sysdeps/sparc/fpu/fenv_private.h: New file.
23429         * sysdeps/sparc/fpu/math_private.h: Use it.
23430         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
23431         Remove.
23432         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
23433         (libc_feholdexcept_setroundl): Remove.
23434         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
23435         Remove.
23436         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
23437         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
23438
23439 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23440
23441         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
23442         int64_t instead of long int.
23443         (INSERT_WORDS64): Likwise.
23444
23445 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
23446
23447         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
23448         _Unwind_GetCFA return to _Unwind_Ptr first.
23449
23450 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
23451
23452         [BZ #13629]
23453         * math/s_clog.c: Include <float.h>.
23454         (__clog): Scale large or subnormal inputs.
23455         * math/s_clogf.c: Likewise.
23456         * math/s_clogl.c: Likewise.
23457         * math/s_clog10.c: Include <float.h>.
23458         (M_LOG10_2): Define.
23459         (__clog10): Scale large or subnormal inputs.
23460         * math/s_clog10f.c: Likewise.
23461         * math/s_clog10l.c: Likewise.
23462         * math/libm-test.inc (clog_test): Add more tests.
23463         (clog10_test): Likewise.
23464         * sysdeps/i386/fpu/libm-test-ulps: Update.
23465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23466
23467         [BZ #11451]
23468         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
23469         x and y.
23470         * math/libm-test.inc (atan2_test): Add another test.
23471
23472         * Makerules (common-objdir-compile): Remove.
23473         * sysdeps/unix/Makefile (config-generated): Do not add
23474         $(unix-generated) to variable.
23475         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
23476         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
23477         Remove rule.
23478         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
23479         Likewise.
23480         [generic bits/local_lim.h] (before-compile): Do not append to
23481         variable.
23482         [generic bits/local_lim.h] (common-generated): Likewise.
23483         [generic sys/param.h] (before-compile): Do not append to variable.
23484         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
23485         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
23486         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
23487         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
23488         include.
23489         [generic sys/param.h] (sys/param.h-includes): Remove variable.
23490         [generic sys/param.h] (sys/param.h-includes): Remove rule.
23491         [generic sys/param.h] ($(addprefix
23492         $(common-objpfx),$(sys/param.h-includes))): Likewise.
23493         [generic sys/param.h] (common-generated): Do not append to
23494         variable.
23495         [generic sys/param.h] (sysdep_headers): Likewise.
23496         [generic bits/errno.h] (before-compile): Do not append to
23497         variable.
23498         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
23499         rule.
23500         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
23501         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
23502         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
23503         [generic bits/errno.h] (common-generated): Do not append to
23504         variable.
23505         [generic bits/ioctls.h] (before-compile): Do not append to
23506         variable.
23507         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
23508         rule.
23509         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
23510         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
23511         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
23512         rule.
23513         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
23514         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
23515         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
23516         [generic bits/ioctls.h] (common-generated): Do not append to
23517         variable.
23518         [generic sys/syscall.h] (syscall.h): Remove variable.
23519         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
23520         rule.
23521         [generic sys/syscall.h] (before-compile): Do not append to
23522         variable.
23523         [generic sys/syscall.h] (common-generated): Likewise.
23524         * sysdeps/unix/errnos-tmpl.c: Remove file.
23525         * sysdeps/unix/errnos.awk: Likewise.
23526         * sysdeps/unix/ioctls-tmpl.c: Likewise.
23527         * sysdeps/unix/ioctls.awk: Likewise.
23528         * sysdeps/unix/mk-local_lim.c: Likewise.
23529         * sysdeps/unix/snarf-ioctls: Likewise.
23530
23531 2012-03-19  Richard Henderson  <rth@twiddle.net>
23532
23533         * sysdeps/i386/fpu/fenv_private.h: New file.
23534         * sysdeps/i386/fpu/math_private.h: Use it.
23535         (math_opt_barrier, math_force_eval): Remove.
23536         (libc_feholdexcept_setround_53bit): Remove.
23537         (libc_feupdateenv_53bit): Remove.
23538         * sysdeps/x86_64/fpu/math_private.h: Likewise.
23539         (math_opt_barrier, math_force_eval): Remove.
23540         (libc_feholdexcept): Remove.
23541         (libc_feholdexcept_setround): Remove.
23542         (libc_fetestexcept, libc_fesetenv): Remove.
23543         (libc_feupdateenv_test): Remove.
23544         (libc_feupdateenv, libc_feholdsetround): Remove.
23545         (libc_feresetround): Remove.
23546
23547         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
23548         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
23549
23550         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
23551         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
23552         (libc_feupdateenv_testl): New.
23553         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
23554         (libc_feupdateenv_testf): New.
23555         (libc_feupdateenv): Use libc_feupdateenv_test.
23556         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
23557         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
23558
23559         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
23560         (libc_feholdsetroundf, libc_feholdsetroundl): New.
23561         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
23562         (libc_feresetround_noex): New.
23563         (libc_feresetround_noexf): New.
23564         (libc_feresetround_noexl): New.
23565         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
23566         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
23567         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
23568         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
23569         SET_RESTORE_ROUND.
23570         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
23571         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
23572         (__cos): Likewise.
23573         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
23574         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
23575         SET_RESTORE_ROUND_NOEX.
23576         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
23577         SET_RESTORE_ROUND_NOEXF.
23578         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
23579         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
23580         (libc_feholdsetroundf): New.
23581         (libc_feresetround, libc_feresetroundf): New.
23582
23583         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
23584         (libc_feholdexcept_setround_53bit): Convert from macro to function.
23585         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
23586
23587         * sysdeps/generic/math_private.h: Include <fenv.h>.
23588         (default_libc_feholdexcept): New.
23589         (default_libc_feholdexcept_setround): New.
23590         (default_libc_fesetenv, default_libc_feupdateenv): New.
23591         (libc_feholdexcept): Only define if undefined.
23592         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
23593         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
23594         (libc_feholdexcept_setroundl): Likewise.
23595         (libc_feholdexcept_setround_53bit): Likewise.
23596         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
23597         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
23598         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
23599         (libc_feupdateenv_53bit): Likewise.
23600         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
23601         (libc_feholdexcept): Convert from macro to inline function.
23602         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
23603         (libc_fesetenv, libc_feupdateenv): Likewise.
23604
23605         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
23606         not previously defined.
23607         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
23608         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
23609         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
23610         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
23611         * sysdeps/ieee754/flt-32/math_private.h: New file.
23612         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
23613         math_private.h below SET_FLOAT_WORD.
23614         (__isnan, __isinf_ns, __finite): Remove.
23615         (__isnanf, __isinf_nsf, __finitef): Remove.
23616
23617 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
23618
23619         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23620
23621 2012-03-17  David S. Miller  <davem@davemloft.net>
23622
23623         [BZ #6471]
23624         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
23625         for 2.16.
23626
23627 2012-03-16  David S. Miller  <davem@davemloft.net>
23628
23629         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
23630         warnings.
23631
23632         [BZ #6471]
23633         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
23634         properly.
23635         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
23636         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
23637         sysdep_routines when subdir is sysvipc.
23638         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
23639         __getshmlba helper.
23640
23641         * sysdeps/sparc/fpu/libm-test/ulps: Update.
23642
23643 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23644
23645         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
23646         [__LP64__].
23647
23648 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23649
23650         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
23651         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
23652         (__lround): Renamed to ...
23653         (__llround): This.  Replace long int with long long int.
23654         Define lround functions as aliases of llround functions.
23655         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
23656
23657 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23658
23659         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
23660         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
23661         adresses to uintptr_t.  Replace "long int" and "unsigned long
23662         int" with "greg_t" on va_arg.
23663
23664 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23665
23666         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
23667         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
23668
23669         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
23670         Move e_machine check before EI_CLASS check.  Handle x32
23671         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
23672         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
23673         SKIP_EM_IA_64 and include
23674         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
23675
23676         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
23677         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
23678         (add_system_dir): New macro.
23679
23680         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
23681         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
23682
23683 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
23684
23685         [BZ #2551]
23686         [BZ #2552]
23687         [BZ #2553]
23688         [BZ #2554]
23689         [BZ #2562]
23690         [BZ #2563]
23691         [BZ #2565]
23692         [BZ #2566]
23693         [BZ #2576]
23694         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
23695         (y0): Likewise.
23696         * math/w_j0f.c (j0f): Likewise.
23697         (y0f): Likewise.
23698         * math/w_j0l.c (__j0l): Likewise.
23699         (__y0l): Likewise.
23700         * math/w_j1.c (j1): Likewise.
23701         (y1): Likewise.
23702         * math/w_j1f.c (j1f): Likewise.
23703         (y1f): Likewise.
23704         * math/w_j1l.c (__j1l): Likewise.
23705         (__y1l): Likewise.
23706         * math/w_jn.c (jn): Likewise.
23707         (yn): Likewise.
23708         * math/w_jnf.c (jnf): Likewise.
23709         (ynf): Likewise.
23710         * math/w_jnl.c (__jnl): Likewise.
23711         (__ynl): Likewise.
23712         * math/libm-test.inc (j0_test): Add more tests.
23713         (j1_test): Likewise.
23714         (jn_test): Likewise.  Add trailing semicolon to existing test.
23715         (y0_test): Likewise.
23716         (y1_test): Likewise.
23717         * sysdeps/i386/fpu/libm-test-ulps: Update.
23718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23719
23720         [BZ #13851]
23721         [BZ #13854]
23722         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
23723         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
23724         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
23725         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
23726         (__tanl): Set errno for infinite argument.
23727         * sysdeps/i386/fpu/mptan.c: Remove.
23728         * sysdeps/i386/fpu/s_tan.S: Likewise.
23729         * sysdeps/i386/fpu/s_tanl.S: Likewise.
23730         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
23731         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
23732         * math/libm-test.inc (tan_test): Add more tests and enable more
23733         tests for double and long double.
23734         * sysdeps/i386/fpu/libm-test-ulps: Update.
23735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23736
23737 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
23738
23739         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
23740         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
23741
23742 2012-03-16  Roland McGrath  <roland@hack.frob.com>
23743
23744         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
23745         * configure.in: Use it for both main tree and add-ons.
23746         * configure: Regenerated.
23747
23748 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
23749
23750         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
23751
23752 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
23753
23754         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
23755         in comment.
23756
23757         [BZ #13851]
23758         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
23759         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
23760         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
23761         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
23762         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
23763         infinite argument.
23764         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
23765         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
23766         != 0 for prec == 2.
23767         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
23768         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
23769         * sysdeps/i386/fpu/s_cosl.S: Likewise.
23770         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
23771         * sysdeps/i386/fpu/s_sinl.S: Likewise.
23772         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
23773         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
23774         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
23775         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
23776         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
23777         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
23778         * math/libm-test.inc (cos_test): Add more tests and enable more
23779         tests for long double.
23780         (sin_test): Likewise.
23781         (sincos_test): Likewise.
23782         * sysdeps/i386/fpu/libm-test-ulps: Update.
23783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23784
23785 2012-03-16  David S. Miller  <davem@davemloft.net>
23786
23787         * sysdeps/sparc/fpu/math_private.h: New file.
23788
23789 2012-03-15  David S. Miller  <davem@davemloft.net>
23790
23791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
23792         file.
23793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
23794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
23795         file.
23796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
23797         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
23798         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
23799         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
23800         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
23801         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
23802         sysdep routines.
23803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
23804
23805         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
23806         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
23807
23808         * sysdeps/sparc/sparc-ifunc.h: New file.
23809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
23810         sparc-ifunc.h
23811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
23812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23813         Likewise.
23814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23815         Likewise.
23816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
23817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
23820         Likewise.
23821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
23822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
23823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
23824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
23825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
23826         Likewise.
23827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
23828         Likewise.
23829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
23830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
23832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
23833         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
23834         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
23835         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
23836         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
23837         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
23838         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
23839         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
23840         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
23841         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
23842         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
23843         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
23844         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23845         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
23846         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23847         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
23848         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23849         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
23850         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23851         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
23852         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23853
23854 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
23855
23856         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
23857         scaling.
23858         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23859
23860 2012-03-15  Andreas Jaeger  <aj@suse.de>
23861
23862         [BZ #13852]
23863         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
23864         ieee754/flt-32 implementation for sin, cos and sincos.
23865         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
23866         * sysdeps/i386/fpu/s_cosf.S: Likewise.
23867         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
23868         * sysdeps/i386/fpu/s_sinf.S: Likewise.
23869         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
23870         ieee754/flt-32 implementation for tan.
23871
23872         * math/libm-test.inc (cos_test): Enable some large input tests for
23873         float as well
23874         (sin_test): Likewise.
23875         (sincos_test): Likewise.
23876         (tan_test): Add tests for large input.
23877
23878         * sysdeps/i386/fpu/libm-test-ulps: Update.
23879
23880 2012-03-15  Andreas Jaeger  <aj@suse.de>
23881
23882         [BZ #13658]
23883         * math/libm-test.inc (cos_test): Add more test cases.
23884         (sin_test): Likewise.
23885         (sincos_test): Likewise.
23886
23887 2012-03-15  Andreas Jaeger  <aj@suse.de>
23888
23889         [BZ #13837]
23890         * math/libm-test.inc (cos_test): Add a test case for large input
23891         value.
23892         (sin_test): Likewise.
23893         (sincos_test): Likewise.
23894
23895 2012-03-15  Andreas Jaeger  <aj@suse.de>,
23896         Joseph Myers  <joseph@codesourcery.com>
23897
23898         [BZ #13658]
23899         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
23900         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
23901         * sysdeps/i386/fpu/branred.c: Likewise.
23902         * sysdeps/i386/fpu/dosincos.c: Likewise.
23903         * sysdeps/i386/fpu/mpa.c: Likewise.
23904         * sysdeps/i386/fpu/s_cos.S: Likewise.
23905         * sysdeps/i386/fpu/s_sin.S: Likewise.
23906         * sysdeps/i386/fpu/s_sincos.S: Likewise.
23907         * sysdeps/i386/fpu/sincos32.c: Likewise.
23908
23909         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
23910         Define.
23911         (libc_feupdateenv_53bit): Define.
23912         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
23913         Define.
23914         (libc_feupdateenv_53bit): Define.
23915
23916         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
23917         53 bit (without extend i386 double precision).
23918
23919         * math/libm-test.inc (sincos_test): Add tests for large input.
23920         (sin): Likewise.
23921         (cos): Likewise.
23922
23923         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
23924
23925 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
23926
23927         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23928
23929 2012-03-15  David S. Miller  <davem@davemloft.net>
23930
23931         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
23932         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
23933         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
23934         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
23935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
23936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
23937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
23938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
23939         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
23940         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
23941         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
23942         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
23943         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
23944         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
23945         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
23946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
23947         file.
23948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
23949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
23950         file.
23951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
23952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
23953         file.
23954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
23955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
23956         file.
23957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
23958         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
23959         fmin/fmax sysdep routines.
23960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
23961
23962 2012-03-14  David S. Miller  <davem@davemloft.net>
23963
23964         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
23965         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
23966         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
23967         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
23968         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
23969         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
23970         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
23971         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
23972         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
23973         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
23974         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
23975         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
23976         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
23977         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
23978         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
23979         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
23980         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
23981         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
23982         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
23983         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
23984         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
23985         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
23986         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
23987         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
23988         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
23989         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
23990         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
23991         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
23992         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
23993         routines.
23994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
23995         file.
23996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
23997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
23998         file.
23999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
24000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
24001         file.
24002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
24003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
24004         file.
24005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
24006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
24007         file.
24008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
24009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
24010         file.
24011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
24012         file.
24013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
24014         file.
24015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
24016         file.
24017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
24018         New file.
24019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
24020         file.
24021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
24022         file.
24023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
24024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
24025         file.
24026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
24027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
24028         file.
24029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
24030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
24031         file.
24032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
24033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
24034         VIS3 routines.
24035
24036         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
24037         New file.
24038
24039         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24040
24041         * sysdeps/sparc/configure.in: New file.
24042         * sysdeps/sparc/configure: Generate.
24043         * configure.in (libc_cv_sparc_as_vis3): Substitute.
24044         * configure: Regenerate.
24045         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
24046         * config.make.in (have-as-vis3): New.
24047         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
24048         available use -Av9d instead of -Av9a.
24049         * sysdeps/sparc/sparc64/Makefile: Likewise.
24050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
24051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
24052         New file.
24053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
24054         file.
24055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
24056         New file.
24057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
24058         file.
24059         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
24060         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
24061         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
24062         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
24063         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
24064
24065         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
24066         fzeros/fnegs to load 0x80000000 into a float register instead of
24067         using the stack.
24068         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
24069
24070 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24071
24072         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24073         bits/syscall.h.
24074         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
24075         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
24076         ($(inst_includedir)/bits/syscall.h): Remove rule.
24077         ($(objpfx)bits/syscall.d): Include instead of
24078         $(objpfx)syscall-list.d.
24079         (generated): Change syscall-list.h and syscall-list.d to
24080         bits/syscall.h and bits/syscall.d.
24081
24082 2012-03-14  Roland McGrath  <roland@hack.frob.com>
24083
24084         [BZ #13846]
24085         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
24086
24087 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24088
24089         [BZ #13841]
24090         * math/s_csqrt.c: Include <float.h>.
24091         (__csqrt): Scale large or subnormal inputs.
24092         * math/s_csqrtf.c: Likewise.
24093         * math/s_csqrtl.c: Likewise.
24094         * math/libm-test.inc (csqrt_test): Add more tests.
24095         * sysdeps/i386/fpu/libm-test-ulps: Update.
24096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24097
24098         [BZ #13840]
24099         * math/libm-test.inc (hypot_test): Add more tests.
24100
24101 2012-03-13  David S. Miller  <davem@davemloft.net>
24102
24103         [BZ #13840]
24104         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
24105         double-precision for the calculation instead of scaling.
24106
24107 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
24108
24109         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
24110         manipulate bits before adding and subtracting TWO52[sx].
24111         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
24112         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
24113         Likewise.
24114         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
24115
24116 2012-03-13  David S. Miller  <davem@davemloft.net>
24117
24118         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
24119         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
24120         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
24121         rtld-global-offsets.h
24122         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24123
24124         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
24125         large parameters.
24126
24127         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
24128
24129         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
24130         'err' in the ifdef scope in which it is actually used.
24131
24132         * nss/nss_db/db-init.c: Include string.h
24133
24134 2012-03-12  David S. Miller  <davem@davemloft.net>
24135
24136         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24137         masking out of the most significant byte of random value used.
24138         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24139         Fix coding style in previous change.
24140
24141         * sysdeps/unix/sysv/linux/kernel-features.h
24142         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
24143         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
24144         expression.
24145         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
24146         later.
24147
24148 2012-03-11  David S. Miller  <davem@davemloft.net>
24149
24150         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24151         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
24152         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
24153         for 'resultvar' otherwise things get truncated on 64-bit.
24154
24155         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24156         Fix masking out of the most significant byte of random value used.
24157
24158         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24159
24160 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
24161
24162         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24163
24164 2012-03-09  David S. Miller  <davem@davemloft.net>
24165
24166         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
24167         variables with appropriate CPP guards.
24168         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
24169         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
24170         on resulting framesize and the management of the outregs buffer for pltexit.
24171         Preserve floating point return values across _dl_call_pltexit call.
24172         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
24173         framesize and the management of the outregs buffer for pltexit.
24174         Preserve floating point return values across _dl_call_pltexit
24175         call.
24176         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
24177         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
24178         (print_exit): Fix format string for return register value.
24179
24180 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
24181
24182         * sunrpc/Makefile (others): Add rpcgen.
24183         ($(objpfx)rpcgen): Remove special build rule and dependency on
24184         libc.
24185         * sunrpc/rpcgen.c: New file.
24186
24187 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
24188
24189         [BZ #13673]
24190         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
24191         * stdio-common/bug-vfprintf-nargs.c: Likewise.
24192         * sysdeps/i386/crti.S: Likewise.
24193         * sysdeps/i386/crtn.S: Likewise.
24194         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
24195         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
24196         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
24197         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
24198         * sysdeps/sh/crti.S: Likewise.
24199         * sysdeps/sh/crtn.S: Likewise.
24200         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
24201
24202         [BZ #13673]
24203         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
24204         with URL.
24205         * locale/programs/locfile-kw.gperf: Likewise.
24206         * locale/programs/charmap-kw.h: Regenerated.
24207         * locale/programs/locfile-kw.h: Likewise.
24208
24209         [BZ #13673]
24210         * intl/plural.y: Replace FSF snail mail address with URL.
24211         * intl/plural.c: Regenerated.
24212
24213 2012-03-09  Richard Henderson  <rth@twiddle.net>
24214
24215         * include/math_private.h: Remove file.
24216         * math/math_private.h: Move file ...
24217         * sysdeps/generic/math_private.h: ... here.
24218
24219         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
24220         * sysdeps/powerpc/fpu/math_private.h: Likewise.
24221         * sysdeps/x86_64/fpu/math_private.h: Likewise.
24222
24223         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
24224         and <math_private.h>.
24225         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
24226         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
24227         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
24228         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
24229         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
24230         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
24231         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24232         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24233         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
24234         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24235         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24236         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24237         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
24238         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24239         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
24240         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
24241         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
24242         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
24243         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
24244         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
24245         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24246         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
24247         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
24248         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24249         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
24250         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24251         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
24252         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24253         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24254         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
24255         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
24256         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24257         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
24258         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
24259         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
24260         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
24261         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
24262         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
24263         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
24264         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24265         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
24266         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
24267         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
24268         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
24269         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
24270         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
24271         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
24272         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
24273         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
24274         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
24275         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
24276         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
24277         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
24278         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
24279         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
24280         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
24281         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
24282         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
24283         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
24284         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
24285         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
24286         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
24287         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24288         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
24289         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
24290         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
24291         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
24292         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
24293         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
24294         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
24295         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
24296         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
24297         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
24298         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24299         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
24300         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
24301         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
24302         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
24303         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
24304         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
24305         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
24306         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
24307         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
24308         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
24309         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
24310         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
24311         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
24312         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
24313         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
24314         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24315         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24316         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
24317         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24318         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
24319         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
24320         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
24321         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
24322         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
24323         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24324         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
24325         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
24326         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
24327         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
24328         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
24329         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
24330         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
24331         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
24332         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
24333         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
24334         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
24335         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
24336         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
24337         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
24338         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
24339         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
24340         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
24341         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
24342         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
24343         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
24344         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
24345         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
24346         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
24347         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
24348         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
24349         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
24350         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
24351         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
24352         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
24353         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
24354         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
24355         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
24356         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
24357         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
24358         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
24359         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
24360         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
24361         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
24362         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
24363         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
24364         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
24365         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
24366         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
24367         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
24368         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
24369         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
24370         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24371         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
24372         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
24373         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
24374         * sysdeps/ieee754/k_standard.c: Likewise.
24375         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
24376         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
24377         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24378         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
24379         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
24380         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
24381         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
24382         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
24383         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
24384         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
24385         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24386         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
24387         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
24388         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
24389         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
24390         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
24391         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
24392         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
24393         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
24394         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
24395         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
24396         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
24397         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
24398         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
24399         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
24400         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
24401         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
24402         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
24403         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
24404         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
24405         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
24406         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
24407         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
24408         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
24409         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
24410         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
24411         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
24412         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
24413         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
24414         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
24415         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
24416         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
24417         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
24418         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
24419         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
24420         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
24421         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
24422         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
24423         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
24424         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
24425         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
24426         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
24427         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
24428         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
24429         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
24430         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
24431         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
24432         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
24433         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
24434         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
24435         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
24436         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
24437         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
24438         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
24439         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24440         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24441         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
24442         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
24443         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
24444         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
24445         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
24446         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24447         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
24448         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
24449         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
24450         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
24451         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
24452         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
24453         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24454         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
24455         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
24456         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
24457         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
24458         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
24459         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
24460         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24461         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
24462         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
24463         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
24464         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
24465         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
24466         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
24467         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24468         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
24469         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24470         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
24471         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
24472         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24473         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24474         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
24475         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
24476         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24477         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
24478         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
24479         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
24480         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
24481         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24482         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24483         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
24484         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
24485         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
24486         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
24487         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
24488         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24489         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
24490         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
24491         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
24492         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24493         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
24494         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
24495         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24496         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
24497         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
24498         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
24499         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24500         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
24501         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
24502         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
24503         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
24504         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
24505         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
24506         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
24507         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
24508         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
24509         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
24510         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
24511         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
24512         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
24513         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
24514         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
24515         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
24516         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
24517         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
24518         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
24519         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
24520         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
24521         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
24522         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
24523         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
24524         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
24525         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
24526         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
24527         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
24528         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
24529         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
24530         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
24531         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
24532         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
24533         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
24534         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
24535         * sysdeps/ieee754/s_lib_version.c: Likewise.
24536         * sysdeps/ieee754/s_matherr.c: Likewise.
24537         * sysdeps/ieee754/s_signgam.c: Likewise.
24538         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24539         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24540         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
24541         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
24542         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
24543         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
24544         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
24545         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
24546         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
24547         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
24548         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
24549         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
24550         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
24551         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
24552         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
24553         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
24554         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24555         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
24556         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24557         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
24558         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
24559
24560 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
24561
24562         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
24563         * sunrpc/rpc_main.c: Likewise.
24564         * sunrpc/rpc_svcout.c: Likewise.
24565
24566 2012-03-09  David S. Miller  <davem@davemloft.net>
24567
24568         * include/math_private.h: New file.
24569
24570 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
24571
24572         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
24573         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
24574         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
24575         from <bits/socket_type.h>.
24576         (enum __socket_type): Don't define here.
24577         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
24578         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24579         bits/socket_type.h.
24580
24581         [BZ #13566]
24582         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
24583         checking __USE_GNU.
24584
24585         * Makerules ($(inst_includedir)/%.h): New rule.
24586         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
24587         (install-others): Remove variable setting.
24588         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
24589
24590 2012-03-08  Richard Henderson  <rth@twiddle.net>
24591
24592         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
24593         from macro to inline function; merge with the
24594         !__LIBC_INTERNAL_MATH_INLINES version.
24595         (__ieee754_sqrtf): Likewise.
24596
24597         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
24598         to inline function.
24599         (__rintf, __floor, __floorf): Likewise.
24600
24601         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
24602         macro to inline function.
24603         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
24604
24605         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
24606         not <math/math_private.h>.
24607
24608 2012-03-08  David S. Miller  <davem@davemloft.net>
24609
24610         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
24611         copyright year.
24612         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
24613
24614 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
24615
24616         * resolv/gai_misc.c (handle_requests): Fix struct timespec
24617         normalization.
24618         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
24619         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
24620
24621 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
24622
24623         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
24624         be defined individually, they must be defined as a block.  Define
24625         S for printing a string instead of hidint the different by using a
24626         macro for adding the 'l'.
24627         * stdio-common/tst-fphex-wide.c: Adjust.
24628
24629 2012-03-07  Marek Polacek  <polacek@redhat.com>
24630
24631         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
24632
24633 2012-03-08  Marek Polacek  <polacek@redhat.com>
24634
24635         [BZ #13806]
24636         * stdio-common/Makefile (tests): Add tst-fphex-wide.
24637         * stdio-common/tst-fphex.c: Define a few macros to make the
24638         test reusable.  Use them.
24639         * stdio-common/tst-fphex-wide.c: New file.
24640
24641 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
24642
24643         [BZ #6911]
24644         * manual/macros.texi (gnusystems): New macro.
24645         (nongnusystems): Likewise.
24646         (gnulinuxhurdsystems): Likewise.
24647         (gnuhurdsystems): Likewise..
24648         (gnulinuxsystems): Likewise.
24649         * manual/charset.texi: Use new macros or @theglibc{} to refer to
24650         variants of the GNU system, not "GNU system".
24651         * manual/conf.texi: Likewise.
24652         * manual/errno.texi: Likewise.  Update example of errno macro
24653         expansion.
24654         * manual/filesys.texi: Likewise.
24655         (getumask): Document as specific to GNU/Hurd.
24656         * manual/install.texi: Likewise.  Reword some references to
24657         GNU/Linux.
24658         * manual/intro.texi: Likewise.
24659         * manual/io.texi: Likewise.
24660         (File Name Portability): Detail which constraints are inapplicable
24661         to all GNU systems and which are only inapplicable to GNU/Hurd.
24662         * manual/job.texi: Likewise.
24663         * manual/llio.texi: Likewise.
24664         (O_NOCTTY): Document as present on GNU/Linux.
24665         * manual/maint.texi: Likewise.
24666         * manual/memory.texi: Likewise.
24667         * manual/pattern.texi: Likewise.
24668         * manual/pipe.texi: Likewise.
24669         * manual/process.texi: Likewise.
24670         * manual/resource.texi: Likewise.
24671         (RUSAGE_CHILDREN): Remove statement about specifying a particular
24672         child on GNU/Hurd.
24673         * manual/setjmp.texi: Likewise.
24674         * manual/signal.texi: Likewise.
24675         * manual/startup.texi: Likewise.
24676         * manual/stdio.texi: Likewise.
24677         * manual/terminal.texi: Likewise.
24678         (ONLCR): Document as POSIX.
24679         (OXTABS): Document availability on GNU/Linux as XTABS.
24680         (ONOEOT): Document availability separately from other bits.
24681         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
24682         * manual/time.texi: Likewise.
24683         * manual/users.texi: Likewise.
24684         * INSTALL: Regenerated.
24685         * sysdeps/gnu/errlist.c: Regenerated.
24686
24687         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
24688         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
24689         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
24690         puts.
24691         * configure: Regenerated.
24692
24693 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
24694
24695         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
24696         default includes instead of AC_HEADER_CHECK.
24697         * sysdeps/i386/configure: Regenerated.
24698
24699         [BZ #10716]
24700         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
24701         * math/s_cacoshf.c (__cacoshf): Likewise.
24702         * math/s_cacoshl.c (__cacoshl): Likewise.
24703         * math/s_casinh.c (__casinh): Set signs of result from argument.
24704         * math/s_casinhf.c (__casinhf): Likewise.
24705         * math/s_casinhl.c (__casinhl): Likewise.
24706         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
24707         (casinh_test): Add more tests.
24708         * sysdeps/i386/fpu/libm-test-ulps: Update.
24709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24710
24711 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
24712
24713         * po/zh_TW.po: Update from translation team.
24714
24715         * login/Makefile (distribute): Remove variable.
24716         * catgets/Makefile: Likewise.
24717         * mach/Makefile: Likewise.
24718         * malloc/Makefile: Likewise.
24719         * misc/Makefile: Likewise.
24720         * iconv/Makefile: Likewise.
24721         * nscd/Makefile: Likewise.
24722         * hurd/Makefile: Likewise.
24723         * manual/Makefile: Likewise.
24724         * locale/Makefile: Likewise.
24725         * intl/Makefile: Likewise.
24726         * conform/Makefile: Likewise.
24727         * nss/Makefile: Likewise.
24728         * time/Makefile: Likewise.
24729         * soft-fp/Makefile: Likewise.
24730         * dirent/Makefile: Likewise.
24731         * gmon/Makefile: Likewise.
24732         * po/Makefile: Likewise.
24733         * rt/Makefile: Likewise.
24734         * socket/Makefile: Likewise.
24735         * math/Makefile: Likewise.
24736         * signal/Makefile: Likewise.
24737         * debug/Makefile: Likewise.
24738         * elf/Makefile: Likewise.
24739         * timezone/Makefile: Likewise.
24740         * stdlib/Makefile: Likewise.
24741         * iconvdata/Makefile: Likewise.
24742         * sunrpc/Makefile: Likewise.
24743         * io/Makefile: Likewise.
24744         * argp/Makefile: Likewise.
24745         * inet/Makefile: Likewise.
24746         * hesiod/Makefile: Likewise.
24747         * grp/Makefile: Likewise.
24748         * csu/Makefile: Likewise.
24749         * wctype/Makefile: Likewise.
24750         * crypt/Makefile: Likewise.
24751         * libio/Makefile: Likewise.
24752         * string/Makefile: Likewise.
24753         * nis/Makefile: Likewise.
24754         * resolv/Makefile: Likewise.
24755         * stdio-common/Makefile: Likewise.
24756         * wcsmbs/Makefile: Likewise.
24757         * dlfcn/Makefile: Likewise.
24758         * posix/Makefile: Likewise.
24759
24760         [BZ #6959]
24761         * timezone/Makefile: Don't install timezone files, just the programs
24762         and scripts.
24763
24764 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
24765
24766         * nss/databases.def: Add missing gshadow entry.
24767
24768         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
24769
24770 2012-03-06  Marek Polacek  <polacek@redhat.com>
24771
24772         [BZ #13726]
24773         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
24774         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
24775         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
24776         * stdio-common/tst-long-dbl-fphex.c: New file.
24777
24778 2012-03-06  David S. Miller  <davem@davemloft.net>
24779
24780         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
24781         (set_obp_int): New function.
24782         (get_obp_int): New function.
24783         (__get_clockfreq_via_dev_openprom): Likewise.
24784         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
24785         Avoid unused variable warnings on 'val' and use builtin_expect.
24786         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
24787         __builtin_expect.
24788         (INLINE_CLONE_SYSCALL): Likewise.
24789
24790 2012-03-05  David S. Miller  <davem@davemloft.net>
24791
24792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24793
24794 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
24795
24796         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24797
24798         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
24799         only for |x| >= 40.
24800         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24801
24802 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
24803
24804         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
24805         Replace gettimeofday with __vdso_gettimeofday.
24806
24807         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24808         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
24809         __vdso_clock_gettime and __vdso_getcpu.
24810
24811         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
24812         time with __vdso_time.
24813
24814 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
24815
24816         * manual/lang.texi (size_t): Note types to which size_t may be
24817         equivalent with the GNU C Library, but do not describe when
24818         differences between them are significant.
24819
24820 2012-03-05  Andreas Jaeger  <aj@suse.de>
24821
24822         * sysdeps/i386/fpu/libm-test-ulps: Update.
24823
24824 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
24825
24826         [BZ #3976]
24827         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
24828         (__ieee754_pow): Save and restore rounding mode and use
24829         round-to-nearest for main computations.
24830         * math/libm-test.inc (pow_test_tonearest): New function.
24831         (pow_test_towardzero): Likewise.
24832         (pow_test_downward): Likewise.
24833         (pow_test_upward): Likewise.
24834         (main): Call the new functions.
24835         * sysdeps/i386/fpu/libm-test-ulps: Update.
24836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24837
24838         [BZ #3976]
24839         * math/libm-test.inc (cosh_test_tonearest): New function.
24840         (cosh_test_towardzero): Likewise.
24841         (cosh_test_downward): Likewise.
24842         (cosh_test_upward): Likewise.
24843         (sinh_test_tonearest): Likewise.
24844         (sinh_test_towardzero): Likewise.
24845         (sinh_test_downward): Likewise.
24846         (sinh_test_upward): Likewise.
24847         (main): Call the new functions.
24848         * sysdeps/i386/fpu/libm-test-ulps: Update.
24849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24850
24851 2012-03-05  Tom de Vries  <tom@codesourcery.com>
24852
24853         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
24854         default stack guard is set in last bytes.
24855         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
24856
24857 2012-03-05  Kees Cook  <keescook@chromium.org>
24858
24859         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
24860
24861         [BZ #13656]
24862         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
24863         possibly allocate from heap instead of stack.
24864         * stdio-common/bug-vfprintf-nargs.c: New file.
24865         * stdio-common/Makefile (tests): Add nargs overflow test.
24866
24867 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
24868
24869         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24870
24871 2012-03-03  Marek Polacek  <polacek@redhat.com>
24872
24873         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
24874         * math/math_private.h: Likewise.
24875         * stdlib/tst-strtod.c: Likewise.
24876         * sysdeps/i386/i486/bits/atomic.h: Likewise.
24877         * sysdeps/x86_64/bits/atomic.h: Likewise.
24878
24879 2012-03-02  David S. Miller  <davem@davemloft.net>
24880
24881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
24882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
24883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
24884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
24885         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
24886         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
24887         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
24888         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
24889
24890 2012-03-02  Roland McGrath  <roland@hack.frob.com>
24891
24892         [BZ #13792]
24893         * manual/examples/README: New file, says the example source files
24894         can be used under GPL>=2.
24895         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
24896         line containing just "*/".
24897         * manual/examples/add.c: Add copyright header (GPL>=2).
24898         * manual/examples/argp-ex1.c: Likewise.
24899         * manual/examples/argp-ex2.c: Likewise.
24900         * manual/examples/argp-ex3.c: Likewise.
24901         * manual/examples/argp-ex4.c: Likewise.
24902         * manual/examples/atexit.c: Likewise.
24903         * manual/examples/db.c: Likewise.
24904         * manual/examples/dir.c: Likewise.
24905         * manual/examples/dir2.c: Likewise.
24906         * manual/examples/execinfo.c: Likewise.
24907         * manual/examples/filecli.c: Likewise.
24908         * manual/examples/filesrv.c: Likewise.
24909         * manual/examples/fmtmsgexpl.c: Likewise.
24910         * manual/examples/genpass.c: Likewise.
24911         * manual/examples/inetcli.c: Likewise.
24912         * manual/examples/inetsrv.c: Likewise.
24913         * manual/examples/isockad.c: Likewise.
24914         * manual/examples/longopt.c: Likewise.
24915         * manual/examples/memopen.c: Likewise.
24916         * manual/examples/memstrm.c: Likewise.
24917         * manual/examples/mkfsock.c: Likewise.
24918         * manual/examples/mkisock.c: Likewise.
24919         * manual/examples/mygetpass.c: Likewise.
24920         * manual/examples/pipe.c: Likewise.
24921         * manual/examples/popen.c: Likewise.
24922         * manual/examples/rprintf.c: Likewise.
24923         * manual/examples/search.c: Likewise.
24924         * manual/examples/select.c: Likewise.
24925         * manual/examples/setjmp.c: Likewise.
24926         * manual/examples/sigh1.c: Likewise.
24927         * manual/examples/sigusr.c: Likewise.
24928         * manual/examples/stpcpy.c: Likewise.
24929         * manual/examples/strdupa.c: Likewise.
24930         * manual/examples/strftim.c: Likewise.
24931         * manual/examples/strncat.c: Likewise.
24932         * manual/examples/subopt.c: Likewise.
24933         * manual/examples/swapcontext.c: Likewise.
24934         * manual/examples/termios.c: Likewise.
24935         * manual/examples/testopt.c: Likewise.
24936         * manual/examples/testpass.c: Likewise.
24937         * manual/examples/timeval_subtract.c: Likewise.
24938
24939         [BZ #13792]
24940         * manual/time.texi (Elapsed Time): Move timeval_subtract example
24941         function to ...
24942         * manual/timeval_subtract.c.texi: ... here, new file.
24943
24944 2012-03-02  David S. Miller  <davem@davemloft.net>
24945
24946         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
24947
24948 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
24949
24950         [BZ #3976]
24951         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
24952         (__sin): Save and restore rounding mode and use round-to-nearest
24953         for all computations.
24954         (__cos): Save and restore rounding mode and use round-to-nearest
24955         for all computations.
24956         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
24957         <fenv.h>.
24958         (tan): Save and restore rounding mode and use round-to-nearest for
24959         all computations.
24960         * math/libm-test.inc (cos_test_tonearest): New function.
24961         (cos_test_towardzero): Likewise.
24962         (cos_test_downward): Likewise.
24963         (cos_test_upward): Likewise.
24964         (sin_test_tonearest): Likewise.
24965         (sin_test_towardzero): Likewise.
24966         (sin_test_downward): Likewise.
24967         (sin_test_upward): Likewise.
24968         (tan_test_tonearest): Likewise.
24969         (tan_test_towardzero): Likewise.
24970         (tan_test_downward): Likewise.
24971         (tan_test_upward): Likewise.
24972         (main): Call the new functions.
24973         * sysdeps/i386/fpu/libm-test-ulps: Update.
24974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24975
24976         [BZ #10135]
24977         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
24978         small n, then large n, before computing and testing k+n.
24979         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
24980         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
24981         Likewise.
24982         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
24983         Likewise.
24984         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
24985         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
24986         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
24987         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
24988         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
24989         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
24990         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
24991         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
24992         * math/libm-test.inc (scalbn_test): Add more tests.
24993         (scalbln_test): Likewise.
24994
24995         * manual/filesys.texi (mode_t): Describe constraints on size and
24996         signedness, not exact equivalence to a particular type.
24997         (ino_t): Likewise.
24998         (ino64_t): Likewise.
24999         (dev_t): Likewise.
25000         (nlink_t): Likewise.
25001         (blkcnt_t): Likewise.
25002         (blkcnt64_t): Likewise.
25003         * manual/llio.texi (off_t): Likewise.
25004
25005         [BZ #3976]
25006         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
25007         (__ieee754_exp): Save and restore rounding mode and use
25008         round-to-nearest for all computations.
25009         * math/libm-test.inc (exp_test_tonearest): New function.
25010         (exp_test_towardzero): Likewise.
25011         (exp_test_downward): Likewise.
25012         (exp_test_upward): Likewise.
25013         (main): Call the new functions.
25014         * sysdeps/i386/fpu/libm-test-ulps: Update.
25015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25016
25017 2012-03-01  Chris Demetriou  <cgd@google.com>
25018
25019         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
25020         have predictable order.
25021
25022 2012-03-01  David S. Miller  <davem@davemloft.net>
25023
25024         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
25025
25026         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
25027         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
25028         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
25029         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
25030
25031         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
25032         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
25033         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
25034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
25035         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
25036         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
25037         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
25038         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
25039         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
25040
25041         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25042
25043         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
25044         * sysdeps/sparc/fpu/libm-test-ulps: to here.
25045         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
25046
25047         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
25048         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25049         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25050         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
25051         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
25052         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
25053         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
25054         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25055         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25056         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
25057         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
25058         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25059         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25060         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25061         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25062         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25063         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
25064         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
25065         * sysdeps/sparc/elf/configure: Regenerated.
25066
25067 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
25068
25069         * configure.in (AS, LD): Require binutils 2.20 or later.
25070         * configure: Regenerated.
25071         * manual/install.texi (Tools for Compilation): Give binutils 2.20
25072         as required minimum version.
25073         * INSTALL: Regenerated.
25074
25075         [BZ #2541]
25076         [BZ #4108]
25077         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
25078         before squaring exponent.
25079         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
25080         bottom long double and 27 bits of top long double before squaring
25081         exponent.
25082         * math/libm-test.inc (erfc_test): Add more tests.
25083         * sysdeps/i386/fpu/libm-test-ulps: Update.
25084         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25086
25087 2012-03-01  Kai Tietz  <ktietz@redhat.com>
25088
25089         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
25090         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
25091         containing bit-fields.
25092         * soft-fp/extended.h (_FP_UNION_E): Likewise.
25093         * soft-fp/single.h (_FP_UNION_S): Likewise.
25094         * soft-fp/double.h (_FP_UNION_D): Likewise.
25095
25096 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25097
25098         [BZ #13786]
25099         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
25100         not include ../strcmp.S.
25101         [USE_AS_STRNCASECMP_L]: Likewise.
25102         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
25103         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
25104         * sysdeps/i386/i686/multiarch/strncase_l-c.c
25105         (__strncasecmp_l_ia32): Define as alias to
25106         __strncasecmp_l_nonascii.
25107
25108         [BZ #5794]
25109         * math/libm-test.inc (expm1_test): Add test for bug 5794.
25110         * sysdeps/i386/fpu/libm-test-ulps: Update.
25111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25112
25113         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
25114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25115
25116 2012-02-29  Jeff Law  <law@redhat.com>
25117
25118         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
25119         out of bounds read.
25120
25121 2012-02-29  Marek Polacek  <polacek@redhat.com>
25122
25123         [BZ #13706]
25124         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
25125         * elf/Makefile: Add rules to run tst-unused-dep.out.
25126
25127 2012-02-28  David S. Miller  <davem@davemloft.net>
25128
25129         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
25130         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
25131         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
25132         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
25133         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
25134         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
25135
25136 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25137
25138         * math/libm-test.inc (llround_test): Move one test from
25139         lround_test.  Use TEST_f_L in moved test.
25140         (lround_test): Move misplaced test to llround_test.  Add testcase
25141         from bug 2561.
25142
25143 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
25144
25145         * sysdeps/x86_64/fpu/e_expf.S: New file.
25146         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
25147
25148 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
25149
25150         [BZ #13637]
25151         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
25152         of remain_len that may cause incomplete multi-byte character and
25153         false match.
25154         * posix/bug-regex33.c: New file.
25155         * posix/Makefile (tests): Add bug-regex33.
25156
25157 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
25158
25159         * manual/macros.texi: New file.
25160         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
25161         * manual/libc.texinfo: Include macros.texi.
25162         * manual/creatute.texi: Likewise.
25163         * manual/install.texi: Likewise.
25164         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
25165         @glibcadj{} in references to the GNU C Library.
25166         * manual/charset.texi: Likewise.
25167         * manual/conf.texi: Likewise.
25168         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
25169         when not using those macros.
25170         * manual/creature.texi: Likewise.
25171         * manual/crypt.texi: Likewise.
25172         * manual/errno.texi: Likewise.
25173         * manual/filesys.texi: Likewise.
25174         * manual/header.texi: Likewise.
25175         * manual/install.texi: Likewise.
25176         * manual/intro.texi: Likewise.
25177         * manual/io.texi: Likewise.
25178         * manual/job.texi: Likewise.
25179         * manual/lang.texi: Likewise.
25180         * manual/libc.texiinfo: Likewise.
25181         * manual/llio.texi: Likewise.
25182         * manual/locale.texi: Likewise.
25183         * manual/maint.texi: Likewise.
25184         * manual/math.texi: Likewise.
25185         * manual/memory.texi: Likewise.
25186         * manual/message.texi: Likewise.
25187         * manual/nss.texi: Likewise.
25188         * manual/pattern.texi: Likewise.
25189         * manual/process.texi: Likewise.
25190         * manual/resource.texi: Likewise.
25191         * manual/search.texi: Likewise.
25192         * manual/setjmp.texi: Likewise.
25193         * manual/signal.texi: Likewise.
25194         * manual/socket.texi: Likewise.
25195         * manual/startup.texi: Likewise.
25196         * manual/stdio.texi: Likewise.
25197         * manual/string.texi: Likewise.
25198         * manual/sysinfo.texi: Likewise.
25199         * manual/syslog.texi: Likewise.
25200         * manual/terminal.texi: Likewise.
25201         * manual/time.texi: Likewise.
25202         * manual/users.texi: Likewise.
25203         * INSTALL: Regenerated.
25204         * NOTES: Regenerated.
25205         * sysdeps/gnu/errlist.c: Regenerated.
25206
25207 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
25208
25209         * include/dirent.h: Include <dirstream.h> before
25210         <dirent/dirent.h>.
25211
25212 2012-02-28  David S. Miller  <davem@davemloft.net>
25213
25214         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
25215         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
25216         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
25217         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
25218
25219 2012-02-27  David S. Miller  <davem@davemloft.net>
25220
25221         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
25222         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
25223         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
25224         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
25225
25226         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
25227         frame pointer instead of stack pointer relative arg slot.
25228         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25229         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25230         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25231
25232 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
25233
25234         [BZ #3992]
25235         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
25236
25237 2012-02-27  David S. Miller  <davem@davemloft.net>
25238
25239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
25240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
25241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
25242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
25243         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
25244         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
25245         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
25246         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
25247
25248 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25249
25250         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
25251         later.  Allow versions 5-9.
25252         * configure: Regenerated.
25253         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
25254         required minimum version and 4.6 as recommended version.  Do not
25255         mention bugs in GCC 2.7 and 2.8.
25256         * INSTALL: Regenerated.
25257
25258 2012-02-27  David S. Miller  <davem@davemloft.net>
25259
25260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
25261         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
25262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
25263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
25264         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
25265         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
25266         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
25267         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
25268
25269         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
25270         manipulate bits before adding and subtracting TWO112[sx].
25271         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25272
25273 2012-02-27  Roland McGrath  <roland@hack.frob.com>
25274
25275         [BZ #13775]
25276         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
25277         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
25278         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
25279         being in POSIX, because they are in 1003.1-2008.
25280
25281         * rt/tst-aio.c: Include <fcntl.h>.
25282         * rt/tst-aio7.c: Likewise.
25283         * rt/tst-aio64.c: Likewise.
25284
25285         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
25286
25287 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
25288
25289         * manual/install.texi (--with-headers): Describe headers as
25290         interface headers, not private headers.
25291         (Specific advice for GNU/Linux systems): Describe use of headers
25292         from "make headers_install", not private headers from older
25293         kernels.
25294         * INSTALL: Regenerated.
25295         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
25296         Change to 2.6.19.
25297         * sysdeps/unix/sysv/linux/configure: Regenerated.
25298
25299         * manual/llio.texi (fclean): Remove documentation.
25300
25301         * manual/Makefile (libc-texi-generated): New variable.  Include
25302         version.texi.
25303         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
25304         $(libc-texi-generated), not duplicated list of files.
25305         (version.texi, stamp-version): New rules.
25306         (realclean): Remove $(libc-texi-generated), not individual files
25307         from that list.  Do not remove dir-add.texinfo.
25308         * manual/libc.texinfo: Comment out uses of edition numbers and
25309         references to printed manual.  Remove last-updated dates.
25310         (EDITION): Comment out.
25311         (ISBN): Likewise.
25312         (VERSION, UPDATED): Remove.
25313         (version.texi): Include.
25314
25315 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
25316
25317         * sysdeps/posix/spawni.c: Include <signal.h>.
25318         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
25319         * sysdeps/pthread/aio_fsync.c: Likewise.
25320
25321 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
25322
25323         * conform/Makefile (tests): Run only when not cross-compiling and
25324         when fast-check is not defined.
25325
25326         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
25327         * conform/data/limits.h-data: Fixes for POSIX2008.
25328         * conform/run-conformtest.sh: Run all tests.
25329         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
25330         headers.
25331         * include/bits/dlfcn.h: Likewise.
25332         * include/langinfo.h: Likewise.
25333         * include/monetary.h: Likewise.
25334         * include/sys/poll.h: Likewise.
25335
25336         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
25337         for __USE_GNU.
25338         * posix/spawn.h: Define __need_sigset_t.
25339         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
25340         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
25341         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
25342         to get sigevent_t only.
25343         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
25344         only for __USE_GNU.
25345         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25346         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
25347         process_vm_writev only for __USE_GNU.
25348         * termios/termios.h: Declare tcgetsid also for POSIX2008.
25349
25350         * conform/Makefile: For now ignore errors from run-conformtest.
25351         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
25352         POSIX to avoid namespace pollution.  Don't prepend headers.
25353         * conform/data/aio.h-data: Fixes for POSIX testing.
25354         * conform/data/fcntl.h-data: Likewise.
25355         * conform/data/glob.h-data: Likewise.
25356         * conform/data/grp.h-data: Likewise.
25357         * conform/data/pthread.h-data: Likewise.
25358         * conform/data/pwd.h-data: Likewise.
25359         * conform/data/signal.h-data: Likewise.
25360         * conform/data/spawn.h-data: Likewise.
25361         * conform/data/stdio.h-data: Likewise.
25362         * conform/data/stdlib.h-data: Likewise.
25363         * conform/data/stropts.h-data: Likewise.
25364         * conform/data/sys/mman.h-data: Likewise.
25365         * conform/data/sys/stat.h-data: Likewise.
25366         * conform/data/sys/types.h-data: Likewise.
25367         * conform/data/sys/wait.h-data: Likewise.
25368         * conform/data/time.h-data: Likewise.
25369         * conform/data/unistd.h-data: Likewise.
25370         * conform/data/utime.h-data: Likewise.
25371
25372         * io/sys/stat.h: fchmod was always in POSIX.
25373         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
25374         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
25375         * rt/aio.h: Define __need_timespec before including <time.h>.
25376         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
25377         struct.  Add forward declaration of pthread_attr_t and use it in
25378         sigevent.
25379         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25380         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25381         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
25382         always remove CLK_TCK definition.
25383
25384 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
25385
25386         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
25387
25388 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
25389
25390         * conform/run-conformtest.sh: New file.
25391         * conform/Makefile: Run run-conformtest for tests.
25392         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
25393         support.
25394
25395         * conform/data/uchar.h-data: New file.
25396         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
25397         * conform/data/arpa/inet.h-data: Likewise.
25398         * conform/data/assert.h-data: Likewise.
25399         * conform/data/complex.h-data: Likewise.
25400         * conform/data/cpio.h-data: Likewise.
25401         * conform/data/ctype.h-data: Likewise.
25402         * conform/data/dirent.h-data: Likewise.
25403         * conform/data/dlfcn.h-data: Likewise.
25404         * conform/data/errno.h-data: Likewise.
25405         * conform/data/fcntl.h-data: Likewise.
25406         * conform/data/float.h-data: Likewise.
25407         * conform/data/fmtmsg.h-data: Likewise.
25408         * conform/data/fnmatch.h-data: Likewise.
25409         * conform/data/ftw.h-data: Likewise.
25410         * conform/data/glob.h-data: Likewise.
25411         * conform/data/grp.h-data: Likewise.
25412         * conform/data/iconv.h-data: Likewise.
25413         * conform/data/inttypes.h-data: Likewise.
25414         * conform/data/langinfo.h-data: Likewise.
25415         * conform/data/libgen.h-data: Likewise.
25416         * conform/data/limits.h-data: Likewise.
25417         * conform/data/locale.h-data: Likewise.
25418         * conform/data/math.h-data: Likewise.
25419         * conform/data/monetary.h-data: Likewise.
25420         * conform/data/mqueue.h-data: Likewise.
25421         * conform/data/ndbm.h-data: Likewise.
25422         * conform/data/net/if.h-data: Likewise.
25423         * conform/data/netdb.h-data: Likewise.
25424         * conform/data/netinet/in.h-data: Likewise.
25425         * conform/data/nl_types.h-data: Likewise.
25426         * conform/data/poll.h-data: Likewise.
25427         * conform/data/pthread.h-data: Likewise.
25428         * conform/data/pwd.h-data: Likewise.
25429         * conform/data/regex.h-data: Likewise.
25430         * conform/data/sched.h-data: Likewise.
25431         * conform/data/search.h-data: Likewise.
25432         * conform/data/semaphore.h-data: Likewise.
25433         * conform/data/setjmp.h-data: Likewise.
25434         * conform/data/signal.h-data: Likewise.
25435         * conform/data/spawn.h-data: Likewise.
25436         * conform/data/stdarg.h-data: Likewise.
25437         * conform/data/stdio.h-data: Likewise.
25438         * conform/data/stdlib.h-data: Likewise.
25439         * conform/data/string.h-data: Likewise.
25440         * conform/data/strings.h-data: Likewise.
25441         * conform/data/stropts.h-data: Likewise.
25442         * conform/data/sys/ipc.h-data: Likewise.
25443         * conform/data/sys/mman.h-data: Likewise.
25444         * conform/data/sys/msg.h-data: Likewise.
25445         * conform/data/sys/resource.h-data: Likewise.
25446         * conform/data/sys/select.h-data: Likewise.
25447         * conform/data/sys/sem.h-data: Likewise.
25448         * conform/data/sys/shm.h-data: Likewise.
25449         * conform/data/sys/socket.h-data: Likewise.
25450         * conform/data/sys/stat.h-data: Likewise.
25451         * conform/data/sys/statvfs.h-data: Likewise.
25452         * conform/data/sys/time.h-data: Likewise.
25453         * conform/data/sys/timeb.h-data: Likewise.
25454         * conform/data/sys/times.h-data: Likewise.
25455         * conform/data/sys/types.h-data: Likewise.
25456         * conform/data/sys/uio.h-data: Likewise.
25457         * conform/data/sys/un.h-data: Likewise.
25458         * conform/data/sys/utsname.h-data: Likewise.
25459         * conform/data/sys/wait.h-data: Likewise.
25460         * conform/data/syslog.h-data: Likewise.
25461         * conform/data/tar.h-data: Likewise.
25462         * conform/data/termios.h-data: Likewise.
25463         * conform/data/utime.h-data: Likewise.
25464         * conform/data/utmpx.h-data: Likewise.
25465         * conform/data/varargs.h-data: Likewise.
25466         * conform/data/wchar.h-data: Likewise.
25467         * conform/data/wctype.h-data: Likewise.
25468         * conform/data/wordexp.h-data: Likewise.
25469
25470         * include/stropts.h: New file.
25471         * include/uchar.h: New file.
25472         * include/aio.h: Changes to allow conformtest.pl to use the headers.
25473         * include/assert.h: Likewise.
25474         * include/ctype.h: Likewise.
25475         * include/dirent.h: Likewise.
25476         * include/dlfcn.h: Likewise.
25477         * include/fcntl.h: Likewise.
25478         * include/fnmatch.h: Likewise.
25479         * include/glob.h: Likewise.
25480         * include/grp.h: Likewise.
25481         * include/libio.h: Likewise.
25482         * include/locale.h: Likewise.
25483         * include/math.h: Likewise.
25484         * include/net/if.h: Likewise.
25485         * include/netdb.h: Likewise.
25486         * include/netinet/in.h: Likewise.
25487         * include/pthread.h: Likewise.
25488         * include/pwd.h: Likewise.
25489         * include/regex.h: Likewise.
25490         * include/sched.h: Likewise.
25491         * include/search.h: Likewise.
25492         * include/setjmp.h: Likewise.
25493         * include/signal.h: Likewise.
25494         * include/stdio.h: Likewise.
25495         * include/stdlib.h: Likewise.
25496         * include/string.h: Likewise.
25497         * include/sys/cdefs.h: Likewise.
25498         * include/sys/mman.h: Likewise.
25499         * include/sys/msg.h: Likewise.
25500         * include/sys/resource.h: Likewise.
25501         * include/sys/select.h: Likewise.
25502         * include/sys/socket.h: Likewise.
25503         * include/sys/stat.h: Likewise.
25504         * include/sys/statvfs.h: Likewise.
25505         * include/sys/time.h: Likewise.
25506         * include/sys/times.h: Likewise.
25507         * include/sys/uio.h: Likewise.
25508         * include/sys/utsname.h: Likewise.
25509         * include/sys/wait.h: Likewise.
25510         * include/termios.h: Likewise.
25511         * include/time.h: Likewise.
25512         * include/ulimit.h: Likewise.
25513         * include/unistd.h: Likewise.
25514         * include/utime.h: Likewise.
25515         * include/wchar.h: Likewise.
25516         * include/wctype.h: Likewise.
25517         * include/wordexp.h: Likewise.
25518
25519         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
25520
25521         * time/time.h: TIME_UTC must be a macro.
25522         Make timespec_get available for ISO C11 only as well.
25523
25524 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
25525
25526         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
25527         Reported by Peng Haitao <penght@cn.fujitsu.com>.
25528
25529 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25530
25531         * configure.in: Use -o not -a in test for unsupported multi-arch.
25532
25533 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25534
25535         * manual/texinfo.tex: Update to version 2012-01-19.16.
25536
25537 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
25538
25539         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
25540
25541 2012-02-24  Roland McGrath  <roland@hack.frob.com>
25542
25543         [BZ #13738]
25544         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
25545         * manual/fdl-1.3.texi: New file.
25546         * manual/fdl-1.1.texi: File removed.
25547
25548         [BZ #13738]
25549         * manual/libc.texinfo (FDL_VERSION): New @set.
25550         Use it for mention of FDL in cover text.
25551         (Documentation License): Use it in @include file name.
25552
25553 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25554             Roland McGrath  <roland@hack.frob.com>
25555
25556         [BZ #5461]
25557         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
25558         not LONG_LONG_MAX and LONG_LONG_MIN.
25559         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
25560         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
25561         name.
25562         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
25563
25564 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25565
25566         [BZ #2547]
25567         [BZ #11365]
25568         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
25569         manipulate bits before adding and subtracting TWO23[sx].
25570         * math/libm-test.inc (nearbyint_test): Add more tests.
25571
25572 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25573
25574         [BZ #2548]
25575         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
25576         bits before adding and subtracting TWO23[sx].
25577         * math/libm-test.inc (rint_test): Add more tests.
25578         (rint_test_tonearest): Likewise.
25579         (rint_test_towardzero): Likewise.
25580         (rint_test_downward): Likewise.
25581         (rint_test_upward: Likewise.
25582
25583 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25584
25585         [BZ #10110]
25586         * include/stdc-predef.h: New file.  Extracted from features.h.
25587         * include/features.h: Include stdc-predef.h.
25588         * Makefile (headers): Add stdc-predef.h.
25589         * CONFORMANCE (Compiler limitations): Update.
25590
25591 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
25592
25593         * manual/libc.texinfo (VERSION, UPDATED): Revert.
25594
25595 2012-02-21  David S. Miller  <davem@davemloft.net>
25596
25597         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
25598         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
25599
25600 2012-02-20  David S. Miller  <davem@davemloft.net>
25601
25602         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
25603         using a normal save/restore sequence, rather than allocating a
25604         dummy stack frame just to store a frame pointer and restore.
25605         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25606
25607 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25608
25609         * manual/install.texi: Fix stray word in line-wrapped comment.
25610
25611 2012-02-20  David S. Miller  <davem@davemloft.net>
25612
25613         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
25614         both binutils and gcc support GOTDATA.
25615
25616         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
25617         "rd %pc" in the PIC register setup sequences.
25618
25619         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
25620         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25621         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25622         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25623         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25624         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
25625         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25626         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25627         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
25628         (SYSCALL_ERROR_HANDLER): Likewise.
25629         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25630         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25631         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
25632         (SYSCALL_ERROR_HANDLER): Likewise.
25633
25634         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
25635         (HAVE_GCC_GOTDATA): New.
25636         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
25637         relocation support in both binutils and gcc.
25638         * sysdeps/sparc/elf/configure: Regenerate.
25639
25640         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
25641         * sysdeps/sparc/sparc32/elf/configure: Delete.
25642         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
25643         * sysdeps/sparc/sparc64/elf/configure: Delete.
25644         * sysdeps/sparc/elf/configure.in: New file.
25645         * sysdeps/sparc/elf/configure: Generate.
25646
25647         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
25648         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
25649         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
25650         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
25651         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
25652
25653 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25654
25655         * manual/install.texi: Do not mention specific glibc version
25656         numbers.
25657         * manual/libc.texinfo (VERSION, UPDATED): Update.
25658         (@copying): Use @copyright{} and range of years.
25659
25660 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
25661
25662         [BZ #13695]
25663         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
25664         [crti.S not in sysdirs] (generated): Do not append.
25665         [crti.S not in sysdirs] (omit-deps): Likewise.
25666         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
25667         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
25668         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
25669         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
25670         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
25671         Likewise.
25672         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
25673         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
25674         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
25675         * csu/defs.awk: Remove file.
25676         * sysdeps/generic/initfini.c: Likewise.
25677         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
25678         variable.
25679         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
25680         Likewise.
25681
25682 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25683
25684         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
25685         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
25686         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
25687         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
25688         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
25689         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
25690         <bits/epoll.h>.
25691         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
25692         (__EPOLL_PACKED): Define to empty if not defined by
25693         <bits/epoll.h>.
25694         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
25695         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25696         bits/epoll.h.
25697
25698 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25699
25700         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
25701         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
25702         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
25703         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
25704         <bits/timerfd.h>.
25705         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
25706         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25707         bits/timerfd.h.
25708
25709 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
25710
25711         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
25712         in C locale.
25713         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25714         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
25715         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
25716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25717
25718 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
25719
25720         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25721         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
25722
25723 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
25724
25725         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
25726         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
25727         defined.
25728         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
25729         Likewise.
25730         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
25731         entry for 2.16.
25732
25733 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
25734
25735         * math/w_acos.c: Use non-signaling floating-point comparisons.
25736         * math/w_acosf.c: Likewise.
25737         * math/w_acosh.c: Likewise.
25738         * math/w_acoshf.c: Likewise.
25739         * math/w_acoshl.c: Likewise.
25740         * math/w_acosl.c: Likewise.
25741         * math/w_asin.c: Likewise.
25742         * math/w_asinf.c: Likewise.
25743         * math/w_asinl.c: Likewise.
25744         * math/w_atanh.c: Likewise.
25745         * math/w_atanhf.c: Likewise.
25746         * math/w_atanhl.c: Likewise.
25747         * math/w_exp2.c: Likewise.
25748         * math/w_exp2f.c: Likewise.
25749         * math/w_exp2l.c: Likewise.
25750         * math/w_j0.c: Likewise.
25751         * math/w_j0f.c: Likewise.
25752         * math/w_j0l.c: Likewise.
25753         * math/w_j1.c: Likewise.
25754         * math/w_j1f.c: Likewise.
25755         * math/w_j1l.c: Likewise.
25756         * math/w_jn.c: Likewise.
25757         * math/w_jnf.c: Likewise.
25758         * math/w_log.c: Likewise.
25759         * math/w_log10.c: Likewise.
25760         * math/w_log10f.c: Likewise.
25761         * math/w_log10l.c: Likewise.
25762         * math/w_log2.c: Likewise.
25763         * math/w_log2f.c: Likewise.
25764         * math/w_log2l.c: Likewise.
25765         * math/w_logf.c: Likewise.
25766         * math/w_logl.c: Likewise.
25767         * math/w_sqrt.c: Likewise.
25768         * math/w_sqrtf.c: Likewise.
25769         * math/w_sqrtl.c: Likewise.
25770         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
25771         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
25772         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
25773         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
25774         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
25775
25776 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
25777
25778         [BZ #9739]
25779         * manual/string.texi (strnlen): Use correct parameter name in
25780         equivalent expression.
25781
25782 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
25783
25784         [BZ #11174]
25785         * manual/users.texi (seteuid): Consistently use neweuid for
25786         argument name.
25787
25788 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
25789
25790         [BZ #13704]
25791         * manual/nss.texi (Services in the NSS configuration): Correct
25792         list of services in example configuration file.
25793
25794 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
25795
25796         [BZ #11322]
25797         * manual/arith.texi: Remove statements about negative zero
25798         behaving identically to zero.
25799
25800 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
25801
25802         [BZ #5993]
25803         * manual/install.texi: Do not document upgrading from libc5.
25804
25805 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
25806
25807         [BZ #4596]
25808         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
25809
25810 2012-02-18  David S. Miller  <davem@davemloft.net>
25811
25812         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
25813         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
25814         %o7 across the call.
25815         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
25816         instead.
25817         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
25818         SETUP_PIC_REG_LEAF.
25819         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25820         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
25821         * sysdeps/sparc/crtn.S: Likewise.
25822
25823 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
25824
25825         * aout/Makefile: Remove.
25826
25827 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
25828
25829         [BZ #13058]
25830         * manual/examples/argp-ex1.c (main): Format definition in GNU
25831         style.
25832         * manual/examples/argp-ex2.c (main): Likewise.
25833         * manual/examples/argp-ex3.c (main): Likewise.
25834         * manual/examples/argp-ex4.c (main): Likewise.
25835         * manual/examples/longopt.c (main): Use new-style prototype
25836         definition.
25837         * manual/examples/strncat.c (main): Specify return type and use
25838         (void) for arguments.
25839         * manual/examples/subopt.c (main): Use char **argv argument.
25840
25841 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25842
25843         [BZ #5077]
25844         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
25845         rounding modes.
25846
25847 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
25848
25849         [BZ #6907]
25850         * manual/string.texi (strchr): Change when strchrnul is
25851         recommended.
25852
25853 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
25854
25855         [BZ #174]
25856         * manual/locale.texi (setlocale): Document LOCPATH.
25857
25858 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25859
25860         [BZ #10210]
25861         * manual/process.texi (execle): Move @dots{} before last argument.
25862
25863 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
25864
25865         [BZ #12047]
25866         * manual/charset.texi (Generic Charset Conversion): Fix typo
25867         (LC_TYPE -> LC_CTYPE).
25868
25869 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
25870
25871         [BZ #5805]
25872         * manual/arith.texi (scalbn): Use @var{} on parameter names.
25873         (scalbnf): Likewise.
25874         (scalbnl): Likewise.
25875         (scalbln): Likewise.
25876         (scalblnf): Likewise.
25877         (scalblnl): Likewise.
25878         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
25879         (vwarnx): Likewise.
25880         (verr): Likewise.
25881         (verrx): Likewise.
25882         * manual/filesys.texi (telldir): Use braces around return type.
25883         * manual/llio.texi (mmap): Add space after comma.
25884         (mmap64): Likewise.
25885         * manual/math.texi (jn): Use @var{} on parameter names.
25886         (jnf): Likewise.
25887         (jnl): Likewise.
25888         (yn): Likewise.
25889         (ynf): Likewise.
25890         (ynl): Likewise.
25891         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
25892         line.
25893         * manual/resource.texi (ulimit): Use @dots{} instead of literal
25894         "...".
25895         (sched_get_priority_min): Remove semicolon on @deftypefun line.
25896         (sched_get_priority_max): Likewise.
25897         * manual/signal.texi (sigvec): Add space after comma.
25898         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
25899         names.
25900         (if_indextoname): Likewise.
25901         (if_freenameindex): Likewise.
25902         (sendto): Use ',' instead of '.' in prototype.
25903         * manual/startup.texi (syscall): Use @dots{} instead of literal
25904         "...".
25905         * manual/stdio.texi (__fpending): Separate initial words of
25906         paragraph from @deftypefun line.
25907         * manual/syslog.texi (syslog): Use @dots{} instead of literal
25908         "...".
25909         (vsyslog): Use @var{} on parameter names.
25910         * manual/terminal.texi (stty): Use @var{} on parameter names.
25911         * manual/users.texi (getutmp): Use @var{} on parameter names.
25912         (getutmpx): Likewise.
25913
25914 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25915
25916         [BZ #6884]
25917         * manual/stdio.texi (fopen): Fix typos in description of
25918         ",ccs=STRING".
25919
25920 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
25921
25922         [BZ #4026]
25923         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
25924         get clock_id definition.
25925
25926 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
25927
25928         [BZ #4822]
25929         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
25930         (madvise): Cast every argument to void on its own.
25931
25932 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25933
25934         [BZ #9902]
25935         * manual/startup.texi (Exit Status): Fix typo.
25936
25937 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25938
25939         [BZ #10140]
25940         * manual/examples/argp-ex1.c: Include <stdlib.h>.
25941         * manual/examples/argp-ex2.c: Likewise.
25942         * manual/examples/argp-ex3.c: Likewise.
25943
25944 2012-02-16  Richard Henderson  <rth@redhat.com>
25945
25946         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
25947         * sysdeps/s390/s390-32/initfini.c: Remove.
25948         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
25949         * sysdeps/s390/s390-64/initfini.c: Remove.
25950
25951 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
25952
25953         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
25954         compiler output for sysdeps/generic/initfini.c.
25955         * sysdeps/sh/elf/initfini.c: Remove file.
25956
25957 2012-02-16  David S. Miller  <davem@davemloft.net>
25958
25959         [BZ #11494]
25960         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
25961
25962         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
25963         * sysdeps/sparc/crti.S: New file.
25964         * sysdeps/sparc/crtn.S: New file.
25965         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
25966         * sysdeps/sparc/sparc64/Makefile: Likewise.
25967
25968 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
25969
25970         [BZ #3335]
25971         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
25972
25973 2012-02-15  Roland McGrath  <roland@hack.frob.com>
25974
25975         [BZ #4822]
25976         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
25977
25978         * mach/devstream.c (cookie_io_functions_t): Macro removed.
25979         (write, read, close): Likewise.
25980         Patch by Aurelien Jarno <aurelien@aurel32.net>.
25981
25982 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
25983
25984         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
25985         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
25986         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
25987         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
25988         <bits/signalfd.h>.
25989         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
25990         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25991         bits/signalfd.h.
25992
25993 2012-02-14  Marek Polacek  <polacek@redhat.com>
25994
25995         * sysdeps/x86_64/crti.S: New file.
25996         * sysdeps/x86_64/crtn.S: New file.
25997         * sysdeps/x86_64/elf/initfini.c: Remove file.
25998
25999 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26000
26001         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
26002         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
26003         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
26004         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
26005         <bits/inotify.h>.
26006         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
26007         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26008         bits/inotify.h.
26009
26010 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26011
26012         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
26013         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
26014         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
26015         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
26016         <bits/eventfd.h>.
26017         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
26018         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26019         bits/eventfd.h.
26020
26021 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
26022
26023         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
26024         __feraiseexcept instead of feraiseexcept.
26025
26026         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
26027         nanosleep invocations.
26028         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
26029         strings, and add error checking for a nanosleep invocations.
26030
26031 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26032
26033         Replace FSF snail mail address with URLs, as per GNU coding standards.
26034         Most of the snail mail addresses were wrong anyway, and omitting
26035         them makes the source code easier to maintain.  Almost all of the
26036         changes are to license notices and to locale LC_IDENTIFICATION
26037         addresses, except for this one:
26038         * manual/libc.texinfo: In "Published by", give the FSF's URL,
26039         not its snail mail address.
26040
26041 2012-02-09  Richard Henderson  <rth@twiddle.net>
26042
26043         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
26044         of kernel-features.h.
26045
26046         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
26047
26048 2012-02-08  Marek Polacek  <polacek@redhat.com>
26049
26050         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
26051         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
26052         * sysdeps/gnu/_G_config.h: Likewise.
26053         * sysdeps/generic/_G_config.h: Likewise.
26054
26055 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
26056
26057         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
26058         tests.
26059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26060
26061         * sysdeps/powerpc/powerpc32/crti.S: New file.
26062         * sysdeps/powerpc/powerpc32/crtn.S: New file.
26063         * sysdeps/powerpc/powerpc64/crti.S: New file.
26064         * sysdeps/powerpc/powerpc64/crtn.S: New file.
26065
26066         * Makeconfig (have-initfini): Don't set.
26067         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
26068         * configure.in (nopic_initfini): Don't substitute.
26069         * config.h.in (HAVE_INITFINI): Don't #undef.
26070         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
26071         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
26072
26073 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
26074
26075         Support crti.S and crtn.S provided directly by architectures.
26076         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
26077         [crti.S in sysdirs] (omit-deps): Likewise.
26078         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
26079         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
26080         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
26081         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
26082         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
26083         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
26084         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
26085         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
26086         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
26087         compiler output for sysdeps/generic/initfini.c.
26088         * sysdeps/i386/elf/Makefile: Remove file.
26089         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
26090
26091 2012-02-07  Marek Polacek  <polacek@redhat.com>
26092
26093         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
26094         * sysdeps/gnu/_G_config.h: Likewise.
26095         * sysdeps/mach/hurd/_G_config.h: Likewise.
26096
26097 2012-02-07  Marek Polacek  <polacek@redhat.com>
26098
26099         * math/Makefile (tests): Add tst-CMPLX2.
26100         * math/tst-CMPLX2.c: New file.
26101
26102 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
26103
26104         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26105
26106         * math/libm-test.inc (jn_test): Add missing L suffix.
26107
26108 2012-02-06  Marek Polacek  <polacek@redhat.com>
26109
26110         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
26111         * sysdeps/i386/fpu/e_powf.S: Likewise.
26112         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
26113         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26114         * sysdeps/i386/fpu/e_acosh.S: Likewise.
26115         * sysdeps/i386/fpu/e_pow.S: Likewise.
26116         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
26117         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
26118         * sysdeps/i386/fpu/s_expm1.S: Likewise.
26119         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
26120         * sysdeps/i386/fpu/e_log2.S: Likewise.
26121         * sysdeps/i386/fpu/e_log2l.S: Likewise.
26122         * sysdeps/i386/fpu/e_scalb.S: Likewise.
26123         * sysdeps/i386/fpu/e_powl.S: Likewise.
26124         * sysdeps/i386/fpu/s_log1p.S: Likewise.
26125         * sysdeps/i386/fpu/e_log10f.S: Likewise.
26126         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
26127         * sysdeps/i386/fpu/e_logl.S: Likewise.
26128         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
26129         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
26130         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
26131         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
26132         * sysdeps/i386/fpu/e_log2f.S: Likewise.
26133         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
26134         * sysdeps/i386/fpu/e_log.S: Likewise.
26135         * sysdeps/i386/fpu/s_cexp.S: Likewise.
26136         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
26137         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
26138         * sysdeps/i386/fpu/e_logf.S: Likewise.
26139         * sysdeps/i386/fpu/e_log10l.S: Likewise.
26140         * sysdeps/i386/fpu/e_atanh.S: Likewise.
26141         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
26142         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
26143         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26144         * sysdeps/i386/fpu/e_log10.S: Likewise.
26145         * sysdeps/i386/fpu/s_frexp.S: Likewise.
26146         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
26147         * sysdeps/i386/fpu/s_asinh.S: Likewise.
26148         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
26149         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
26150         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
26151         * sysdeps/i386/asm-syntax.h: Likewise.
26152         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
26153         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26154         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
26155         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
26156         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
26157         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
26158         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
26159         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
26160         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
26161         * sysdeps/powerpc/sysdep.h: Likewise.
26162         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
26163         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
26164
26165 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26166
26167         [BZ #411]
26168         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
26169
26170 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26171
26172         * sysdeps/i386/sysdep.h: Include <features.h>.
26173         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
26174         version.
26175
26176 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
26177
26178         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
26179         Define.
26180         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
26181         LOAD_PIC_REG_STR.
26182
26183 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26184
26185         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
26186         (SETUP_PIC_REG): Use GET_PC_THUNK.
26187         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
26188         macro.
26189
26190 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26191
26192         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
26193         for non-PIC compilation.
26194         (SETUP_PIC_REG): Add .p2align directive.
26195         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
26196         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
26197         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26198         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26199         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
26200         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26201         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
26202         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26203         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26204         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26205         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26206         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26207         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26208         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26209         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26210         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
26211         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
26212         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26213         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26214         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26215         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26216         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
26217         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26218         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26219         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
26220         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
26221         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26222         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
26223         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26224         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26225         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26226         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26227         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26228         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26229         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26230         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26231         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26232         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26233         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26234         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26235         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26236
26237 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26238
26239         * math/tst-CMPLX.c: Include <stdio.h>.
26240
26241 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
26242
26243         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
26244         float.
26245         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26246         * sysdeps/sparc/bits/mathdef.h: Likewise.
26247
26248 2012-01-31  Marek Polacek  <polacek@redhat.com>
26249
26250         * libio/libio.h: Don't define _PARAMS.
26251         * locale/programs/config.h: Don't define PARAMS.
26252         * stdlib/strtol_l.c: Likewise.
26253         (__strtol_l): Remove PARAMS from the prototype.
26254
26255 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
26256
26257         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
26258         names.  Just use the correct names.  Remove unnecessary wrapper
26259         functions.
26260         * malloc/arena.c: Likewise.
26261         * malloc/hooks.c: Likewise.
26262
26263         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
26264         ARENA_TEST says not to.  Simplify test for creation of a new arena.
26265         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
26266
26267 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
26268
26269         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
26270         into tail calls.
26271         (update_get_addr): New function.
26272         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
26273         GET_ADDR_MODULE parameter.
26274
26275 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
26276
26277         * crypt/cert.c: Remove __STDC__ conditionals.
26278         * crypt/crypt-entry.c: Likewise.
26279         * crypt/crypt_util.c: Likewise.
26280         * libio/filedoalloc.c: Likewise.
26281         * libio/fileops.c: Likewise.
26282         * libio/genops.c: Likewise.
26283         * libio/iofclose.c: Likewise.
26284         * libio/iofdopen.c: Likewise.
26285         * libio/iofopen.c: Likewise.
26286         * libio/iofopen64.c: Likewise.
26287         * libio/iogetdelim.c: Likewise.
26288         * libio/iopopen.c: Likewise.
26289         * libio/obprintf.c: Likewise.
26290         * libio/oldfileops.c: Likewise.
26291         * libio/oldiofclose.c: Likewise.
26292         * libio/oldiofdopen.c: Likewise.
26293         * libio/oldiofopen.c: Likewise.
26294         * libio/oldiopopen.c: Likewise.
26295         * libio/wfiledoalloc.c: Likewise.
26296         * libio/wgenops.c: Likewise.
26297         * locale/programs/xmalloc.c: Likewise.
26298         * misc/syslog.c: Likewise.
26299         * stdio-common/xbug.c: Likewise.
26300         * string/memchr.c: Likewise.
26301         * string/memcmp.c: Likewise.
26302         * string/memrchr.c: Likewise.
26303         * string/rawmemchr.c: Likewise.
26304         * sysdeps/posix/getcwd.c: Likewise.
26305         * time/strftime_l.c: Likewise.
26306
26307 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
26308
26309         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
26310         * config.make.in (config-cflags-sse2avx): Define.
26311         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
26312         Fix typo.
26313
26314 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
26315
26316         * scripts/config.guess: Update from upstream config git repository.
26317         * scripts/config.sub: Likewise.
26318
26319 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
26320
26321         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
26322         (EM_NUM): Update.
26323         (R_TILEPRO_*, R_TILEGX_*): New macros.
26324
26325         * scripts/firstversions.awk: Fix bug in version range handling.
26326
26327         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
26328
26329         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
26330
26331         * include/sys/epoll.h: New file.
26332         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
26333         libc_hidden_def.
26334
26335 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
26336
26337         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
26338         Avoid unnecessary __WORDSIZE == 64 test.
26339         (fmaxf): Use VEX format if possible.
26340         (fmax): Likewise.
26341         (fminf): Likewise.
26342         (fmin): Likewise.
26343
26344         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
26345         * math/math_private.h: Remove libc_fegetround* and
26346         libc_fesetround*.
26347         * sysdeps/i386/configure.in: Check for -msse2avx.
26348         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
26349         also if SSE2AVX is defined.
26350         Remove libc_fegetround* and libc_fesetround*.
26351         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
26352         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
26353         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
26354         of HAS_YMM_USABLE.
26355         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26356         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26357         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26358         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26359         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26360
26361         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
26362
26363 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26364
26365         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
26366         size is not set.
26367         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
26368
26369 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
26370
26371         [BZ #13618]
26372         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
26373         relocation.
26374         * Makeconfig (libm): Define.
26375         * elf/Makefile: Add rules to build and run tst-relsort1.
26376         * elf/tst-relsort1.c: New file.
26377         * elf/tst-relsort1mod1.c: New file.
26378         * elf/tst-relsort1mod2.c: New file.
26379
26380 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
26381
26382         * math/s_ldexp.c: Remove __STDC__ conditionals.
26383         * math/s_ldexpf.c: Likewise.
26384         * math/s_ldexpl.c: Likewise.
26385         * math/s_nextafter.c: Likewise.
26386         * math/s_nexttowardf.c: Likewise.
26387         * math/s_significand.c: Likewise.
26388         * math/s_significandf.c: Likewise.
26389         * math/s_significandl.c: Likewise.
26390         * math/w_jnl.c: Likewise.
26391         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
26392         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
26393         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
26394         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
26395         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
26396         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
26397         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
26398         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
26399         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
26400         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
26401         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
26402         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
26403         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
26404         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
26405         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
26406         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
26407         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
26408         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
26409         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
26410         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
26411         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
26412         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
26413         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
26414         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
26415         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
26416         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
26417         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
26418         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
26419         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
26420         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
26421         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
26422         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
26423         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
26424         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
26425         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
26426         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
26427         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
26428         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
26429         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
26430         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
26431         * sysdeps/ieee754/k_standard.c: Likewise.
26432         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
26433         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
26434         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
26435         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
26436         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
26437         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
26438         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
26439         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
26440         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
26441         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
26442         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
26443         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
26444         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
26445         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
26446         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
26447         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
26448         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
26449         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
26450         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
26451         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
26452         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
26453         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
26454         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
26455         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
26456         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
26457         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
26458         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
26459         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
26460         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
26461         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
26462         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
26463         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
26464         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
26465         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
26466         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
26467         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
26468         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
26469         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
26470         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
26471         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
26472         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
26473         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
26474         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
26475         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
26476         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
26477         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
26478         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
26479         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
26480         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
26481         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
26482         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
26483         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
26484         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
26485         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
26486         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
26487         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
26488         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
26489         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
26490         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
26491         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
26492         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
26493         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
26494         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
26495         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
26496         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
26497         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
26498         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
26499         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
26500         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
26501         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
26502         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
26503         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
26504         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
26505         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
26506         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
26507         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
26508         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
26509         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
26510         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
26511         * sysdeps/ieee754/s_matherr.c: Likewise.
26512         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
26513         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
26514         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
26515         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
26516
26517 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
26518
26519         * crypt/md5.h: Remove __STDC__ conditionals.
26520         * libio/libioP.h: Likewise.
26521         * locale/programs/config.h: Likewise.
26522         * sysdeps/generic/sysdep.h: Likewise.
26523         * sysdeps/i386/asm-syntax.h: Likewise.
26524         * sysdeps/s390/asm-syntax.h: Likewise.
26525         * sysdeps/unix/sysdep.h: Likewise.
26526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26528
26529 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
26530
26531         * libio/libio.h: Remove __STDC__ conditionals.
26532         * malloc/obstack.h: Likewise.
26533         * math/complex.h: Likewise.
26534         * math/math.h: Likewise.
26535         * sysdeps/generic/_G_config.h: Likewise.
26536         * sysdeps/gnu/_G_config.h: Likewise.
26537         * sysdeps/mach/hurd/_G_config.h: Likewise.
26538         * sysdeps/powerpc/bits/mathdef.h: Likewise.
26539         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
26540         * sysdeps/sparc/bits/mathdef.h: Likewise.
26541
26542 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
26543
26544         [BZ #13583]
26545         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
26546         Clean up HAS_* macros.
26547         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
26548         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
26549         possible.
26550         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
26551         HAS_AVX.
26552         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26553         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26554         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26555         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26556         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26557
26558 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
26559
26560         * elf/tst-unique3.cc (gets): Remove declaration.
26561         * elf/tst-unique3lib.cc (gets): Likewise.
26562         * elf/tst-unique3lib2.cc (gets): Likewise.
26563         * elf/tst-unique4.cc (gets): Likewise.
26564
26565 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
26566
26567         * include/stdio.h: Add C++ protection.  Add gets declarations and
26568         definitions.
26569         * debug/tst-chk1.c: Don't declare gets here.
26570         * stdio-common/tst-gets.c: Likewise.
26571
26572 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
26573
26574         * posix/glob: Remove directory.
26575
26576 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
26577
26578         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
26579
26580 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
26581
26582         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
26583         of the non-standard EPFNOSUPPORT.
26584
26585 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26586
26587         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
26588         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
26589         ANYWHERE set to 1 only on KERN_NO_SPACE error.
26590
26591 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
26592
26593         * wcsmbs/uchar.h: Test __STDC_VERSION__.
26594
26595 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
26596
26597         * nscd/aicache.c (addhstaiX): Do not cache negative results of
26598         transient errors.
26599         * nscd/grpcache.c (cache_addgr): Likewise.
26600         * nscd/hstcache.c (cache_addhst): Likewise.
26601         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26602         * nscd/pwdcache.c (cache_addpw): Likewise.
26603         * nscd/servicescache.c (cache_addserv): Likewise.
26604
26605 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
26606
26607         * malloc/malloc.c: Various cleanups.
26608         * malloc/hooks.c: Likewise.
26609
26610         * stdlib/Makefile (tests): Add bug-fmtmsg1.
26611         * stdlib/bug-fmtmsg1.c: New file.
26612
26613         * stdlib/fmtmsg.c (init): Add missing unlock.
26614         Patch by Peng Haitao <penght@cn.fujitsu.com>.
26615
26616 2012-01-12  Marek Polacek  <polacek@redhat.com>
26617
26618         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
26619         and _GNU_SOURCE.
26620
26621 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
26622
26623         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
26624         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
26625         macro to ensure uniqueness of label name.
26626         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
26627         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
26628
26629 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
26630
26631         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
26632
26633         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
26634         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
26635         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
26636         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
26637
26638 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
26639
26640         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
26641
26642         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
26643         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
26644         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
26645
26646         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
26647
26648         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
26649         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
26650         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
26651         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
26652
26653         * math/bits/math-finite.h: Add ldexp support.
26654
26655 2012-01-10  Marek Polacek  <polacek@redhat.com>
26656
26657         * locale/programs/localedef.h (show_archive_content): Add noreturn
26658         attribute.
26659
26660 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
26661
26662         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
26663
26664 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26665
26666         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
26667
26668         * io/Makefile (headers): Add bits/poll2.h.
26669
26670 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
26671
26672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
26673         typo #include statement.
26674
26675 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26676
26677         * include/sys/cdefs.h: Define __attribute_alloc_size.
26678         * catgets/gencat.c: Add alloc_size attribute and apply consistently
26679         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
26680         * elf/pldd.c: Likewise.
26681         * iconv/iconv_charmap.c: Likewise.
26682         * iconv/iconvconfig.c: Likewise.
26683         * iconv/strtab.c: Likewise.
26684         * locale/programs/locale.c: Likewise.
26685         * locale/programs/localedef.h: Likewise.
26686         * locale/programs/simple-hash.c: Likewise.
26687         * nscd/nscd.h: Likewise.
26688         * nss/makedb.c: Likewise.
26689         * sysdeps/generic/ldconfig.h: Likewise.
26690         * locale/programs/localedef.c: Remove xmalloc prototype.
26691         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
26692
26693 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26694
26695         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
26696         appropriate.
26697
26698 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
26699
26700         * math/Makefile (tests): Add tst-CMPLX.
26701         * math/tst-CMPLX.c: New file.
26702
26703         * math/complex.h (CMPLXL): Fix typo.
26704
26705         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
26706         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
26707         GLIBC_2.16.
26708         * debug/tst-chk1.c: Add poll and ppoll tests.
26709         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
26710         * include/sys/poll.h: Add hidden proto for ppoll.
26711         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
26712         * sysdeps/mach/hurd/ppoll.c: Likewise.
26713         * io/ppoll.c: Likewise.
26714         * debug/poll_chk.c: New file.
26715         * debug/ppoll_chk.c: New file.
26716         * include/bits/poll2.h: New file.
26717         * io/bits/poll2.h: New file.
26718
26719         [BZ #1350]
26720         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
26721
26722         * configure.in: static is always set to yes.  Remove.
26723         * config.make.in: Don't set build-static.
26724         * Makeconfig: Remove use of build-static.
26725         * dlfcn/Makefile: Likewise.
26726         * elf/Makefile: Likewise.
26727         * math/Makefile: Likewise.
26728         * misc/Makefile: Likewise.
26729         * nptl/Makefile: Likewise.
26730         * sysdeps/mach/hurd/Makefile: Likewise.
26731
26732         * configure.in: PWD_P is not used anymore.
26733         * config.make.in: Remove PWD_P entry.
26734
26735         * configure.in: Remove last remnants of RANLIB.
26736         No need to check for signed size_t anymore.
26737         Don't set libc_commonpagesize and libc_relro_required here for Alpha
26738         and IA-64.
26739         Remove __builtin_expect test because we require at least gcc 3.4.
26740         * aclocal.m4: Likewise.
26741
26742         * wcsmbs/mbrtoc16.c: Implement using towc function.
26743         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
26744         * wcsmbs/wcsmbsload.c: Likewise.
26745         * iconv/gconv_simple.c: Likewise.
26746         * iconv/gconv_int.h: Likewise.
26747         * iconv/gconv_builtin.h: Likewise.
26748         * iconv/iconv_prog.c: Remove CHAR16 handling.
26749
26750         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
26751
26752         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
26753
26754         * configure.in: Remove --with-elf and --enable-bounded options.
26755         Dont set base_machine for ia64.  More non-ELF conditions removed.
26756         Remove testing and setting of leading underscore information.
26757         * config.make.in (build-bounded): Set to no.
26758         * config.h.in: Remove NO_UNDERSCORES entry.
26759         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
26760         them.
26761         * csu/start.c: Remove !NO_UNDERSCORE code.
26762         * locale/localeinfo.h: Likewise.
26763         * sysdeps/generic/machine-gmon.h: Likewise.
26764         * sysdeps/generic/sysdep.h: Likewise.
26765         * sysdeps/i386/sysdep.h: Likewise.
26766         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
26767         * sysdeps/mach/sysdep.h: Likewise.
26768         * sysdeps/s390/s390-32/sysdep.h: Likewise.
26769         * sysdeps/s390/s390-64/sysdep.h: Likewise.
26770         * sysdeps/sh/sysdep.h: Likewise.
26771         * sysdeps/sparc/sparc32/alloca.S: Likewise.
26772         * sysdeps/unix/i386/sysdep.S: Likewise.
26773         * sysdeps/unix/sparc/start.c: Likewise.
26774         * sysdeps/unix/sparc/sysdep.S: Likewise.
26775         * sysdeps/unix/sparc/sysdep.h: Likewise.
26776         * sysdeps/unix/start.c: Likewise.
26777         * sysdeps/unix/x86_64/sysdep.S: Likewise.
26778         * sysdeps/x86_64/sysdep.h: Likewise.
26779
26780 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
26781
26782         [BZ #13553]
26783         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
26784         for non-gcc.
26785         * argp/argp-fmtstream.h: Use const instead __const.
26786         * argp/argp.h: Likewise.
26787         * assert/assert.h: Likewise.
26788         * bits/fenv.h: Likewise.
26789         * bits/sched.h: Likewise.
26790         * bits/sigset.h: Likewise.
26791         * bits/sigthread.h: Likewise.
26792         * catgets/nl_types.h: Likewise.
26793         * conform/data/pthread.h-data: Likewise.
26794         * crypt/crypt-private.h: Likewise.
26795         * crypt/crypt.h: Likewise.
26796         * crypt/crypt_util.c: Likewise.
26797         * ctype/ctype.h: Likewise.
26798         * debug/execinfo.h: Likewise.
26799         * debug/mbsnrtowcs_chk.c: Likewise.
26800         * debug/mbsrtowcs_chk.c: Likewise.
26801         * debug/wcsnrtombs_chk.c: Likewise.
26802         * debug/wcsrtombs_chk.c: Likewise.
26803         * debug/wcstombs_chk.c: Likewise.
26804         * dirent/dirent.h: Likewise.
26805         * dlfcn/dlfcn.h: Likewise.
26806         * elf/neededtest4.c: Likewise.
26807         * grp/grp.h: Likewise.
26808         * gshadow/gshadow.h: Likewise.
26809         * iconv/gconv.h: Likewise.
26810         * iconv/gconv_int.h: Likewise.
26811         * iconv/gconv_simple.c: Likewise.
26812         * iconv/iconv.h: Likewise.
26813         * iconv/loop.c: Likewise.
26814         * iconv/skeleton.c: Likewise.
26815         * include/aio.h: Likewise.
26816         * include/aliases.h: Likewise.
26817         * include/argz.h: Likewise.
26818         * include/arpa/inet.h: Likewise.
26819         * include/assert.h: Likewise.
26820         * include/dirent.h: Likewise.
26821         * include/dlfcn.h: Likewise.
26822         * include/execinfo.h: Likewise.
26823         * include/fcntl.h: Likewise.
26824         * include/fenv.h: Likewise.
26825         * include/glob.h: Likewise.
26826         * include/grp.h: Likewise.
26827         * include/libintl.h: Likewise.
26828         * include/mntent.h: Likewise.
26829         * include/netdb.h: Likewise.
26830         * include/pwd.h: Likewise.
26831         * include/rpc/netdb.h: Likewise.
26832         * include/sched.h: Likewise.
26833         * include/search.h: Likewise.
26834         * include/shadow.h: Likewise.
26835         * include/signal.h: Likewise.
26836         * include/stdio.h: Likewise.
26837         * include/stdlib.h: Likewise.
26838         * include/string.h: Likewise.
26839         * include/sys/socket.h: Likewise.
26840         * include/sys/stat.h: Likewise.
26841         * include/sys/statfs.h: Likewise.
26842         * include/sys/statvfs.h: Likewise.
26843         * include/sys/syslog.h: Likewise.
26844         * include/sys/time.h: Likewise.
26845         * include/sys/uio.h: Likewise.
26846         * include/time.h: Likewise.
26847         * include/unistd.h: Likewise.
26848         * include/utmp.h: Likewise.
26849         * include/wchar.h: Likewise.
26850         * include/wctype.h: Likewise.
26851         * inet/aliases.h: Likewise.
26852         * inet/arpa/inet.h: Likewise.
26853         * inet/netinet/ether.h: Likewise.
26854         * inet/netinet/in.h: Likewise.
26855         * intl/libintl.h: Likewise.
26856         * io/bits/fcntl2.h: Likewise.
26857         * io/fcntl.h: Likewise.
26858         * io/ftw.h: Likewise.
26859         * io/sys/poll.h: Likewise.
26860         * io/sys/stat.h: Likewise.
26861         * io/sys/statfs.h: Likewise.
26862         * io/sys/statvfs.h: Likewise.
26863         * io/utime.h: Likewise.
26864         * libio/bits/stdio.h: Likewise.
26865         * libio/bits/stdio2.h: Likewise.
26866         * libio/libio.h: Likewise.
26867         * libio/libioP.h: Likewise.
26868         * libio/stdio.h: Likewise.
26869         * locale/lc-ctype.c: Likewise.
26870         * locale/locale.h: Likewise.
26871         * login/utmp.h: Likewise.
26872         * malloc/arena.c: Likewise.
26873         * malloc/malloc.c: Likewise.
26874         * malloc/malloc.h: Likewise.
26875         * malloc/mcheck.c: Likewise.
26876         * malloc/mtrace.c: Likewise.
26877         * math/bits/mathcalls.h: Likewise.
26878         * math/fenv.h: Likewise.
26879         * math/math_private.h: Likewise.
26880         * misc/bits/error.h: Likewise.
26881         * misc/bits/syslog.h: Likewise.
26882         * misc/err.h: Likewise.
26883         * misc/error.h: Likewise.
26884         * misc/fstab.h: Likewise.
26885         * misc/mntent.h: Likewise.
26886         * misc/regexp.h: Likewise.
26887         * misc/search.h: Likewise.
26888         * misc/sgtty.h: Likewise.
26889         * misc/sys/mman.h: Likewise.
26890         * misc/sys/syslog.h: Likewise.
26891         * misc/sys/uio.h: Likewise.
26892         * misc/sys/xattr.h: Likewise.
26893         * misc/ttyent.h: Likewise.
26894         * nis/rpcsvc/ypclnt.h: Likewise.
26895         * nss/nss.h: Likewise.
26896         * posix/bits/unistd.h: Likewise.
26897         * posix/fnmatch.h: Likewise.
26898         * posix/glob.h: Likewise.
26899         * posix/sched.h: Likewise.
26900         * posix/spawn.h: Likewise.
26901         * posix/sys/wait.h: Likewise.
26902         * posix/unistd.h: Likewise.
26903         * posix/wordexp.h: Likewise.
26904         * pwd/pwd.h: Likewise.
26905         * resolv/netdb.h: Likewise.
26906         * resource/sys/resource.h: Likewise.
26907         * rt/aio.h: Likewise.
26908         * rt/bits/mqueue2.h: Likewise.
26909         * rt/mqueue.h: Likewise.
26910         * shadow/shadow.h: Likewise.
26911         * signal/signal.h: Likewise.
26912         * socket/send.c: Likewise.
26913         * socket/sendto.c: Likewise.
26914         * socket/sys/socket.h: Likewise.
26915         * stdio-common/printf.h: Likewise.
26916         * stdlib/bits/stdlib.h: Likewise.
26917         * stdlib/fmtmsg.h: Likewise.
26918         * stdlib/monetary.h: Likewise.
26919         * stdlib/stdlib.h: Likewise.
26920         * stdlib/ucontext.h: Likewise.
26921         * streams/stropts.h: Likewise.
26922         * string/argz.h: Likewise.
26923         * string/bits/string2.h: Likewise.
26924         * string/string.h: Likewise.
26925         * string/strings.h: Likewise.
26926         * sunrpc/rpc/auth.h: Likewise.
26927         * sunrpc/rpc/auth_des.h: Likewise.
26928         * sunrpc/rpc/clnt.h: Likewise.
26929         * sunrpc/rpc/netdb.h: Likewise.
26930         * sunrpc/rpc/pmap_clnt.h: Likewise.
26931         * sunrpc/rpc/xdr.h: Likewise.
26932         * sysdeps/generic/inttypes.h: Likewise.
26933         * sysdeps/generic/net/if.h: Likewise.
26934         * sysdeps/generic/sys/swap.h: Likewise.
26935         * sysdeps/gnu/net/if.h: Likewise.
26936         * sysdeps/gnu/utmpx.h: Likewise.
26937         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
26938         * sysdeps/i386/i486/bits/string.h: Likewise.
26939         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
26940         * sysdeps/s390/bits/string.h: Likewise.
26941         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
26942         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
26943         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26944         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
26945         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
26946         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
26947         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
26948         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
26949         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
26950         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
26951         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
26952         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
26953         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
26954         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
26955         * sysdeps/unix/sysv/linux/readv.c: Likewise.
26956         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
26957         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
26958         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26959         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
26960         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
26961         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
26962         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
26963         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
26964         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
26965         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
26966         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
26967         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
26968         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
26969         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
26970         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
26971         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
26972         * sysvipc/sys/ipc.h: Likewise.
26973         * sysvipc/sys/msg.h: Likewise.
26974         * sysvipc/sys/sem.h: Likewise.
26975         * sysvipc/sys/shm.h: Likewise.
26976         * termios/termios.h: Likewise.
26977         * time/sys/time.h: Likewise.
26978         * time/time.h: Likewise.
26979         * wcsmbs/bits/wchar2.h: Likewise.
26980         * wcsmbs/uchar.h: Likewise.
26981         * wcsmbs/wchar.h: Likewise.
26982         * wctype/wctype.h: Likewise.
26983
26984         [BZ #13551]
26985         * Makeconfig: Remove all but ELF support including AIX support.
26986         * Makerules: Likewise.
26987         * config.h.in: Likewise.
26988         * config.make.in: Likewise.
26989         * configure: Likewise.
26990         * configure.in: Likewise.
26991         * csu/Makefile: Likewise.
26992         * csu/version.c: Likewise.
26993         * debug/Makefile: Likewise.
26994         * dlfcn/Makefile: Likewise.
26995         * elf/Makefile: Likewise.
26996         * extra-lib.mk: Likewise.
26997         * iconv/Makefile: Likewise.
26998         * include/libc-symbols.h: Likewise.
26999         * include/shlib-compat.h: Likewise.
27000         * resolv/Makefile: Likewise.
27001         * resolv/res_libc.c: Likewise.
27002         * rt/Makefile: Likewise.
27003         * sysdeps/i386/asm-syntax.h: Likewise.
27004         * sysdeps/i386/sysdep.h: Likewise.
27005         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27006         * sysdeps/mach/sysdep.h: Likewise.
27007         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
27008         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
27009         * sysdeps/s390/asm-syntax.h: Likewise.
27010         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27011         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27012         * sysdeps/sh/sysdep.h: Likewise.
27013         * sysdeps/unix/sparc/sysdep.h: Likewise.
27014         * sysdeps/wordsize-32/divdi3.c: Likewise.
27015         * sysdeps/x86_64/sysdep.h: Likewise.
27016
27017         * argp/Versions: Remove _argp_unlock_xxx.
27018
27019         [BZ #13559]
27020         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
27021         * abilist/libBrokenLocale.abilist: Likewise.
27022         * abilist/libanl.abilist: Likewise.
27023         * abilist/libc.abilist: Likewise.
27024         * abilist/libcrypt.abilist: Likewise.
27025         * abilist/libdl.abilist: Likewise.
27026         * abilist/libm.abilist: Likewise.
27027         * abilist/libnsl.abilist: Likewise.
27028         * abilist/libpthread.abilist: Likewise.
27029         * abilist/libresolv.abilist: Likewise.
27030         * abilist/librt.abilist: Likewise.
27031         * abilist/libthread_db.abilist: Likewise.
27032         * abilist/libutil.abilist: Likewise.
27033         * abilist/libnss_db.abilist: New file.
27034
27035         * scripts/abilist.awk: Add support for indirect functions.
27036
27037         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
27038
27039         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
27040
27041         * shlib-versions: Remove entries for ports architectures.
27042
27043         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
27044         files in ports.
27045         * elf/stackguard-macros.h: Remove support for IA-64.
27046         * elf/tst-auditmod1.c: Likewise.
27047         * sysdeps/generic/ldsodefs.h: Likewise.
27048
27049         * sysdeps/unix/sysv/linux/configure.in: Ports should define
27050         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
27051         configure files.
27052
27053         [BZ #13552]
27054         * configure.in: Remove --enable-omitfp support.
27055         * FAQ.in: Adjust.
27056         * config.make.in: Likewise.
27057         * Makeconfig: Likewise.
27058         * manual/install.texi: Likewise.
27059
27060         In case anyone cares, the IA-64 architecture could move to ports.
27061         * sysdeps/ia64/*: Removed.
27062         * sysdeps/unix/sysv/linux/ia64/*: Removed.
27063         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
27064
27065         [BZ #13555]
27066         * configure.in: Remove entries for unsupported architectures.
27067
27068         [BZ #13533]
27069         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
27070         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
27071         routines.
27072         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
27073         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
27074         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
27075         fall back to using wcrtomb.
27076         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
27077         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
27078         renaming.
27079         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
27080         * wcsmbs/tst-c16c32-1.c: New file.
27081
27082         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
27083         local variable.
27084
27085         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
27086
27087         * elf/tst-unique3.cc: Add explicit declaration of gets.
27088         * elf/tst-unique3lib.cc: Likewise.
27089         * elf/tst-unique3lib2.cc: Likewise.
27090         * elf/tst-unique4.cc: Likewise.
27091
27092         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
27093
27094 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
27095
27096         [BZ #13566]
27097         * assert/assert.h (static_assert): Don't define for C++.
27098         * libio/stdio.h (gets): Do declare for C++ <= C++11.
27099         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
27100
27101 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
27102
27103         * iconv/loop.c (single loop): Fix assertion in storing of
27104         remaining bytes.
27105
27106         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
27107
27108 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
27109
27110         * posix/getconf.c: Update copyright year.
27111         * nss/getent.c: Likewise.
27112         * nss/makedb.c: Likewise.
27113         * iconv/iconvconfig.c: Likewise.
27114         * iconv/iconv_prog.c: Likewise.
27115         * elf/ldconfig.c: Likewise.
27116         * elf/pldd.c: Likewise.
27117         * elf/sotruss.ksh: Likewise.
27118         * catgets/gencat.c: Likewise.
27119         * csu/version.c: Likewise.
27120         * elf/ldd.bash.in: Likewise.
27121         * elf/sprof.c (print_version): Likewise.
27122         * locale/programs/locale.c: Likewise.
27123         * locale/programs/localedef.c: Likewise.
27124         * login/programs/pt_chown.c: Likewise.
27125         * nscd/nscd.c (print_version): Likewise.
27126         * debug/xtrace.sh: Likewise.
27127         * malloc/memusage.sh: Likewise.
27128         * malloc/mtrace.pl: Likewise.
27129         * debug/catchsegv.sh: Likewise.
27130
27131 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
27132
27133         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
27134         pure attribute.
27135
27136 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
27137
27138         [BZ #13533]
27139         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
27140         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
27141         transformations.
27142         * iconv/gconv_int.h: Likewise.
27143         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
27144         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
27145         from libc for GLIBC_2.16.
27146         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
27147         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
27148         * wcsmbs/uchar.h: Really define mbstate_t.
27149         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
27150         * wcsmbs/c16rtomb.c: New file.
27151         * wcsmbs/mbrtoc16.c: New file.
27152         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
27153         for C/POSIX locale.
27154         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
27155         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
27156
27157         * wcsmbs/wchar.h: Add missing __restrict.
27158
27159 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27160
27161         [BZ #13532]
27162         * time/Makefile (routines): Add timespec_get.
27163         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
27164         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
27165         timespec for ISO C11.
27166         * time/timespec_get.c: New file.
27167         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
27168         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
27169
27170         [BZ #13531]
27171         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
27172         * stdlib/stdlib.h: Declare aligned_alloc.
27173         * Versions.def: Add GLIBC_2.16 for libc.
27174         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
27175
27176         [BZ 13527]
27177         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
27178         ISO C11.
27179
27180         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
27181         code.
27182
27183         [BZ #13528]
27184         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
27185
27186         [BZ #13529]
27187         * assert/assert.h (static_assert): Define.
27188
27189         * version.h: Update for 2.16 development version.
27190
27191         [BZ #13526]
27192         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
27193         _ISOC11_SOURCE.
27194
27195         * version.h (RELEASE): Bump for 2.15 release.
27196         * include/features.h (__GLIBC_MINOR__): Bump to 15.
27197
27198         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
27199         Patch by Marek Polacek <mpolacek@redhat.com>.
27200
27201         * bits/byteswap.h: Protect long long constants with __extension__.
27202         * sysdeps/i386/bits/byteswap.h: Likewise.
27203         * sysdeps/ia64/bits/byteswap.h: Likewise.
27204         * sysdeps/s390/bits/byteswap.h: Likewise.
27205         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27206
27207 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27208
27209         [BZ #13540]
27210         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
27211         destination buffer.
27212         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
27213
27214 2011-12-23  Marek Polacek  <polacek@redhat.com>
27215
27216         * elf/dl-addr.c (determine_info): Add inline keyword.
27217         * elf/tst-auditmod4b.c (check_avx): Likewise.
27218         * elf/tst-auditmod6b.c (check_avx): Likewise.
27219         * elf/tst-auditmod6c.c (check_avx): Likewise.
27220         * elf/tst-auditmod7b.c (check_avx): Likewise.
27221
27222 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27223
27224         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
27225         !__SSE_MATH__.
27226
27227 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27228
27229         [BZ #13540]
27230         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
27231         processing for last bytes.
27232
27233 2011-08-06  Bruno Haible  <bruno@clisp.org>
27234
27235         [BZ #13061]
27236         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
27237         U+0385, not to U+1FEE.
27238
27239         [BZ #13062]
27240         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
27241         entry for U+00A5 U+0301.
27242
27243 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27244
27245         [BZ #13166]
27246         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
27247         buffer for the output is too small.
27248
27249         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
27250         optimization.
27251
27252         [BZ #13185]
27253         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
27254         SSE flags if possible.
27255
27256 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27257
27258         [BZ #13540]
27259         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
27260         processing for last bytes.
27261
27262 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
27263
27264         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
27265         (syscall-list-default-options, syscall-list-default-condition)
27266         (syscall-list-includes): Define.
27267         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
27268         list of ABIs and options and #if conditions for each ABI.  Do not
27269         handle common syscalls between ABIs specially.
27270         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
27271         Remove.
27272         (syscall-list-variants, syscall-list-32bit-options)
27273         (syscall-list-32bit-condition, syscall-list-64bit-options)
27274         (syscall-list-64bit-condition): Define.
27275         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
27276         (syscall-list-variants, syscall-list-32bit-options)
27277         (syscall-list-32bit-condition, syscall-list-64bit-options)
27278         (syscall-list-64bit-condition): Define.
27279         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
27280         Remove.
27281         (syscall-list-variants, syscall-list-32bit-options)
27282         (syscall-list-32bit-condition, syscall-list-64bit-options)
27283         (syscall-list-64bit-condition): Define.
27284         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
27285         Remove.
27286         (syscall-list-variants, syscall-list-32bit-options)
27287         (syscall-list-32bit-condition, syscall-list-64bit-options)
27288         (syscall-list-64bit-condition): Define.
27289
27290 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
27291
27292         * locale/iso-639.def: Add brx entry.
27293
27294         [BZ #13328]
27295         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
27296         Proposed by Mariusz_Cukr <marcukr@op.pl>.
27297
27298         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
27299         __feraiseexcept_renamed.
27300
27301 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
27302
27303         [BZ #13538]
27304         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
27305         EPOLLET with unsigned values.
27306         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27307         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27308
27309         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
27310         to large cancellation.
27311         * math/s_cacoshf.c: Likewise.
27312         * math/s_cacoshl.c: Likewise.
27313
27314 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
27315
27316         [BZ #13305]
27317         [BZ #12786]
27318         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
27319         * math/s_cacoshf.c: Likewise.
27320         * math/s_cacoshl.c: Likewise.
27321
27322 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
27323
27324         [BZ #13439]
27325         * iconv/gconv.h: Define __GCONV_SWAP.
27326         * iconvdata/unicode.c: The swap bit must be stored in __flags.
27327         * iconvdata/utf-16.c: Likewise.
27328         * iconvdata/utf-32.c: Likewise.
27329
27330 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
27331
27332         [BZ #13524]
27333         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
27334         numerator after shifting it by one limb.
27335
27336 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
27337
27338         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
27339         under [__USE_EXTERN_INLINES].
27340
27341 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
27342
27343         [BZ #13446]
27344         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
27345
27346 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27347
27348         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
27349         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
27350         optimized code.
27351         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
27352         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
27353         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
27354         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
27355         for strncasecmp/strncasecmp_l compilation.
27356         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
27357         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
27358
27359 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
27360
27361         [BZ #13484]
27362         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
27363         of __asm__.
27364
27365 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
27366
27367         [BZ #13506]
27368         * time/tzfile.c (__tzfile_read): Check values from file header.
27369
27370 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
27371
27372         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
27373         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
27374         * powerpc/powerpc32/dl-start.S: Likewise.
27375         * powerpc/powerpc32/elf/start.S: Likewise.
27376         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
27377         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
27378         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
27379         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
27380         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
27381         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
27382         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
27383         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
27384         * powerpc/powerpc32/fpu/s_round.S: Likewise.
27385         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
27386         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
27387         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
27388         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
27389         * powerpc/powerpc32/memset.S: Likewise.
27390         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
27391         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
27392         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
27393         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
27394         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
27395         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
27396         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
27397         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
27398         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
27399         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
27400         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
27401         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
27402         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
27403
27404 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27405
27406         * math/libm-test.inc: Added more nearbyint tests.
27407         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
27408         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
27409         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
27410         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
27411
27412 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
27413
27414         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
27415         FD_CLOEXEC.
27416
27417 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27418
27419         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
27420         Add wcscpy-ssse3 wcscpy-c.
27421         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
27422         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
27423         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
27424         * sysdeps/x86_64/wcschr.S: New file.
27425         * sysdeps/x86_64/wcsrchr.S: New file.
27426         * string/test-strcmp.c: Remove checking of wcscmp function for
27427         wrong alignments.
27428         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
27429         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
27430         wcsrchr-sse2 wcsrchr-c.
27431         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
27432         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
27433         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
27434         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
27435         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
27436         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
27437         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
27438         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
27439         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
27440         * wcsmbc/wcschr.c (WCSCHR): New macro.
27441
27442 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27443
27444         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
27445         * wcsmbs/test-wcsrchr.c: New file.
27446         * string/test-strrchr.c: Add wcsrchr support.
27447         (WIDE): New macro.
27448         * wcsmbs/test-wcscpy.c: New file.
27449         * string/test-strcpy.c: Add wcscpy support.
27450         (WIDE): New macro.
27451
27452 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
27453
27454         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
27455         the inner loop.
27456
27457 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
27458
27459         [BZ #13472]
27460         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
27461
27462 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
27463
27464         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
27465         Minor optimizations.
27466
27467         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
27468         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
27469         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
27470
27471 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
27472
27473         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
27474         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
27475         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
27476         for gcc to avoid warnings.
27477         * inet/Makefile (tests): Add tst-checks.
27478         * inet/tst-checks.c: New file.
27479
27480         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
27481         warning.
27482
27483         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
27484         __wmemcmp_sse2.
27485
27486         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
27487         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
27488
27489         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
27490
27491 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
27492
27493         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
27494         problem.
27495
27496         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
27497
27498 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
27499
27500         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
27501         conditional on GCC version.
27502         (__arch_compare_and_exchange_val_8_acq)
27503         (__arch_compare_and_exchange_val_16_acq)
27504         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
27505         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
27506         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
27507
27508 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
27509
27510         * sysdeps/sh/backtrace.c: New file.
27511
27512 2011-12-02  Andreas Schwab  <schwab@redhat.com>
27513
27514         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
27515         parenthesis.
27516
27517 2011-12-01  Andreas Schwab  <schwab@redhat.com>
27518
27519         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
27520         falling back to utime.
27521
27522 2011-11-30  Andreas Schwab  <schwab@redhat.com>
27523
27524         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
27525         expectations for float.
27526
27527 2011-11-29  Andreas Schwab  <schwab@redhat.com>
27528
27529         * locale/weight.h (findidx): Add parameter len.
27530         * locale/weightwc.h (findidx): Likewise.
27531         * posix/fnmatch_loop.c (FCT): Adjust caller.
27532         * posix/regcomp.c (build_equiv_class): Likewise.
27533         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
27534         * posix/regexec.c (check_node_accept_bytes): Likewise.
27535         * string/strcoll_l.c (STRCOLL): Likewise.
27536         * string/strxfrm_l.c (STRXFRM): Likewise.
27537
27538 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
27539
27540         * Makefile.in: Remove CVSOPT handling.
27541         * configure.in: Remove use of AC_REVISION.
27542         * iconvdata/Makefile (distribute): No need to filter out CVS.
27543         * scripts/list-sources.sh: Remove CVS, subversion and monotone
27544         handling.
27545
27546 2011-11-16  Andreas Schwab  <schwab@redhat.com>
27547
27548         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
27549         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
27550         [USE_AS_STRNCASECMP_L]: Likewise.
27551         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
27552         NO_TLS_DIRECT_SEG_REFS.
27553         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
27554         Fix argument offsets for non-PIC.
27555         [USE_AS_STRNCASECMP_L]: Likewise.
27556         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
27557         NO_TLS_DIRECT_SEG_REFS.
27558
27559 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
27560
27561         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
27562         O_CLOEXEC.
27563         * locale/loadlocale.c (_nl_load_locale): Likewise.
27564
27565 2011-11-15  Andreas Schwab  <schwab@redhat.com>
27566
27567         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
27568         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
27569         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
27570         (SYSCALL_GETTIME): Set errno on error.
27571
27572         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
27573         count references to noai6ai_cached.
27574
27575 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
27576
27577         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
27578
27579         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
27580         FD_CLOEXEC for /proc/self/maps.
27581
27582         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
27583         FD_CLOEXEC for /proc/meminfo.
27584
27585         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
27586         gai.conf.
27587
27588         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
27589         FD_CLOEXEC for given file.
27590
27591         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
27592
27593         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
27594         FD_CLOEXEC for /etc/hosts.
27595         (_gethtent): Likewise.
27596
27597         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
27598
27599         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
27600         cancellation and set FD_CLOEXEC for /etc/netgroup.
27601
27602         * nss/nss_files/files-key.c (search): Don't allow cancellation when
27603         reading /etc/publickey.
27604
27605         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
27606         allow cancellation when reading /etc/group.
27607
27608         * nss/nss_files/files-alias.c (internal_setent): Don't allow
27609         cancellation.
27610         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
27611
27612         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
27613         when using data file.
27614
27615         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
27616
27617         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
27618         (write_nis_obj): Use "c" and "e" in fopen.
27619
27620         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
27621
27622         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
27623
27624         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
27625
27626         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
27627
27628         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
27629         locale.alias.
27630
27631         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
27632
27633         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
27634
27635         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
27636
27637         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
27638         file parsing and set FD_CLOEXEC.
27639
27640 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
27641
27642         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
27643
27644 2011-11-14  Andreas Schwab  <schwab@redhat.com>
27645
27646         * malloc/arena.c (arena_get2): Don't call reused_arena when
27647         _int_new_arena failed.
27648
27649 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
27650
27651         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
27652         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
27653         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
27654         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27655         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27656         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
27657         to compile strcasecmp and strncasecmp.
27658         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
27659         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
27660
27661         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
27662
27663 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
27664
27665         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
27666         locale-defines.sym to gen-as-const-headers.
27667         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
27668         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
27669         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
27670         to compile strcasecmp and strncasecmp.
27671         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
27672         strcasecmp_l and strncasecmp_l.
27673         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
27674         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
27675         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
27676         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
27677         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
27678         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
27679         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
27680         * sysdeps/i386/i686/multiarch/strncase.S: New file.
27681         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
27682         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
27683         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
27684
27685 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
27686
27687         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
27688         result of SYSDEP_GETTIME_CPU to retval.
27689         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
27690         parameter list to macro.  Remove trailing semicolon.  Adjust users.
27691
27692         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
27693         variable.
27694
27695         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
27696         mantissa words.
27697         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
27698
27699         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
27700         from unused variable.
27701
27702         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
27703         DWARF definitions.
27704         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
27705         for assembling.
27706
27707         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
27708         over namespaces.
27709
27710         * sunrpc/rpc_prot.c (rejected): Fix case value.
27711
27712         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
27713         unsigned long long int to avoid warnings in shift.
27714
27715         * posix/regex_internal.c (re_string_reconstruct): Actually use result
27716         of use of trans.
27717         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
27718         variable tmp.
27719
27720         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
27721         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
27722         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
27723
27724         * nis/nis_table.c (nis_list): Use variable of correct type for
27725         result of __follow_path call.
27726
27727 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27728
27729         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
27730         of math functions ceil, trunc, floor, round, and sqrt, when
27731         avaliable on the platform.
27732         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
27733         name clash.
27734         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
27735         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
27736         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
27737
27738 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
27739
27740         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
27741         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
27742
27743 2011-11-11  Roland McGrath  <roland@hack.frob.com>
27744
27745         * include/unistd.h: Fix __readlink return type.
27746         Reported by Chris Metcalf <cmetcalf@tilera.com>.
27747
27748 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
27749
27750         * stdlib/ucontext.h: Undo last change for makecontext.
27751
27752 2011-11-11  Andreas Schwab  <schwab@redhat.com>
27753
27754         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
27755
27756         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
27757         * setjmp/setjmp.h: Mark functions as non-leaf.
27758         * setjmp/bits/setjmp2.h: Likewise.
27759         * stdlib/ucontext.h: Likewise.
27760
27761 2011-11-10  Andreas Schwab  <schwab@redhat.com>
27762
27763         * malloc/arena.c (_int_new_arena): Don't increment narenas.
27764         (reused_arena): Don't check arena limit.
27765         (arena_get2): Atomically check arena limit.
27766
27767 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
27768
27769         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
27770         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
27771
27772         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
27773         instructions.
27774
27775 2011-11-07  Andreas Schwab  <schwab@redhat.com>
27776
27777         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
27778         handler when locking.
27779
27780         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
27781         Fix size of allocated buffer.
27782
27783 2011-11-04  Andreas Schwab  <schwab@redhat.com>
27784
27785         [BZ #10103]
27786         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
27787         declarations for long double functions.
27788         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
27789
27790         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
27791
27792 2011-11-03  Andreas Schwab  <schwab@redhat.com>
27793
27794         * nscd/nscd.c (main): Don't start AVC thread until credentials are
27795         installed.
27796
27797         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
27798         is disabled.
27799
27800 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27801
27802         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
27803
27804 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
27805
27806         * include/alloca.h (stackinfo_alloca_round): Define.
27807         (extend_alloca): Use it.
27808         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
27809         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
27810         here.
27811
27812         * scripts/check-local-headers.sh: Ignore libaudit.h.
27813
27814         * nscd/Makefile (extra-objs): Make recursively expanded.
27815
27816 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
27817
27818         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
27819         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
27820
27821         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
27822         * posix/tst-rfc3484-2.c: Likewise.
27823         * posix/tst-rfc3484-3.c: Likewise.
27824
27825         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
27826         process_vm_writev.
27827         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
27828         process_vm_writev.
27829         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
27830         process_vm_writev from libc using GLIBC_2.15 version.
27831
27832         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
27833
27834 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
27835
27836         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
27837         stack usage.
27838
27839 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
27840
27841         [BZ #13367]
27842         * nss/getent.c (initgroups_keys): Show error message in case no group
27843         names are given.
27844
27845         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
27846         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
27847         __bump_nl_timestamp.
27848         * nscd/connections (nscd_init): When host database is served open
27849         netlink socket and request notification about configuration changes.
27850         (main_loop_poll): Track netlink file descriptor and bump timestamp
27851         in case data becomes available.
27852         (main_loop_epoll): Likewise.
27853         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
27854         (database_pers_head): Add extra_data fileds.
27855         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
27856         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
27857         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
27858         Adjust caller.
27859         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
27860         in6ai data, call __free_in6ai.
27861         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
27862         Add -DHAVE_NETLINK.
27863         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
27864         interface information.  Reuse previous data if netlink timestamp
27865         is not changed.
27866         (__bump_nl_timestamp): New function.
27867         (__free_in6ai): New function.
27868
27869 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
27870
27871         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
27872         close_not_cancel_no_status here.
27873         (__check_pf): Reorganize code a bit to not call close twice if OOM.
27874
27875 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
27876
27877         [BZ #13276]
27878         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
27879         return value.
27880
27881         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
27882         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
27883         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
27884
27885 2011-07-03  Andreas Jaeger  <aj@suse.de>
27886
27887         [BZ #10709]
27888         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
27889         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
27890         * math/libm-test.inc (sin_test): Add test case.
27891
27892 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
27893
27894         [BZ #13337]
27895         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
27896         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
27897
27898         * elf/chroot_canon.c (chroot_canon): Cleanups.
27899
27900         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
27901
27902         [BZ #13335]
27903         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
27904         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
27905
27906         * string/test-strchr.c: Make usable for strchrnul testing.
27907         * string/test-strchrnul.c: New file.
27908         * string/Makefile (strop-tests): Add strchrnul.
27909
27910         * po/it.po: Update from translation team.
27911         * po/es.po: Likewise.
27912
27913 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
27914
27915         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
27916         the three constants needed as parameters.  Drop the others.
27917         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
27918         __m128i_strloadu_tolower.
27919         Create and initialize variable zero and use it in all the places
27920         where _mm_setzero_si128 was used.
27921
27922         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
27923         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
27924         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
27925         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
27926         anymore.
27927         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
27928         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
27929         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
27930         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
27931         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
27932         __mpranred, __mptan.
27933         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
27934         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
27935         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
27936         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
27937         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
27938         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
27939         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
27940         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
27941         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
27942
27943 2011-10-28  Andreas Schwab  <schwab@redhat.com>
27944
27945         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
27946         redefine if SHARED.
27947         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
27948
27949         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
27950         wide char related routines to wcsmbs subdir.
27951
27952 2011-10-27  Andreas Schwab  <schwab@redhat.com>
27953
27954         [BZ #13344]
27955         * misc/sys/cdefs.h (__THROWNL): Define.
27956         * posix/unistd.h: Use __THREADNL instead of __THREAD
27957         for memory synchronization functions.
27958
27959 2011-10-26  Roland McGrath  <roland@hack.frob.com>
27960
27961         [BZ #13349]
27962         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
27963         doesn't exist.
27964         * manual/stdio.texi (Obstack Streams): Node removed.
27965
27966 2011-10-26  Andreas Schwab  <schwab@redhat.com>
27967
27968         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
27969         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
27970         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
27971
27972         * math/math_private.h (math_force_eval): Allow non-addressable
27973         arguments.
27974         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
27975
27976 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
27977
27978         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
27979         file is not needed.
27980
27981         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
27982         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27983         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27984         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27985         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27986         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27987         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27988         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
27989         Add AVX variants.
27990         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
27991         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
27992         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
27993         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
27994         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
27995         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
27996         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
27997         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
27998         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
27999         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
28000         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
28001         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
28002         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
28003         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
28004         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
28005         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
28006         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
28007         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
28008         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
28009
28010         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
28011         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
28012
28013         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
28014         place.  Use VEX encoding when compiling for AVX.
28015
28016 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28017
28018         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
28019         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
28020
28021         * string/test-strchr.c (do_test): Don't generate NUL bytes.
28022
28023 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28024
28025         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
28026         useless if() expression.
28027         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28028         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28029         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28030         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28031         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28032         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28033         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28034         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28035         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28036         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28037         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28038         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28039         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28040         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28041         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28042         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28043         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28044         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28045         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28046
28047         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
28048
28049 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28050
28051         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
28052         condition.
28053         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28054
28055 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28056
28057         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
28058         .text section.  Avoid duplicate constants.
28059         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28060         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28061         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28062         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28063         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28064         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28065         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28066         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28067         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
28068         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
28069         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
28070         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
28071         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
28072         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
28073         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
28074         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
28075         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
28076         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
28077         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28078         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28079         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28080         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28081         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28082         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
28083         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
28084         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
28085         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
28086         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
28087         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
28088         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
28089         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
28090         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
28091         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
28092         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
28093         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
28094         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
28095         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
28096         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
28097         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
28098         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
28099         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
28100         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
28101         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
28102         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
28103         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
28104
28105 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
28106
28107         * sysdeps/x86_64/dla.h: Move to ...
28108         * sysdeps/x86_64/fpu/dla.h: ...here.
28109         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
28110         situations.  Use __builtin_fma only for gcc 4.6 and up.
28111
28112         * config.make.in: Add have-mfma4 entry.
28113         * configure.in: Substitute libc_cv_cc_fma4.
28114         * math/Makefile (dbl-only-routines): Add sincostab.
28115         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
28116         Use __sincostab not sincos.
28117         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
28118         name is a macro.
28119         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28120         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28121         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28122         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
28123         using __copysign.
28124         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
28125         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
28126         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
28127         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
28128         and __inv.
28129         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
28130         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
28131         __copysign.
28132         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
28133         define aliases when function name is a macro.
28134         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
28135         sysdeps/ieee754/dbl-64/sincos.tbl.
28136         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
28137         fma4-enabled routines.
28138         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
28139         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
28140         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
28141         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
28142         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
28143         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
28144         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
28145         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
28146         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
28147         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
28148         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
28149         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
28150         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
28151         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
28152         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
28153         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
28154         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
28155         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
28156         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
28157         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
28158         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
28159         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
28160         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
28161         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
28162         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
28163         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
28164         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
28165         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
28166         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
28167         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
28168
28169         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
28170         rename.
28171         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28172         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28173         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28174         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28175         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28176         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28177         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28178         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28179
28180 2011-10-24  Andreas Schwab  <schwab@redhat.com>
28181
28182         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
28183
28184 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28185
28186         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
28187
28188         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
28189         prediction.
28190         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
28191
28192         * string/strnlen.c: Don't define STRNLEN, reverse logic.
28193         Remove unused variable magic_bits.
28194         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
28195
28196         * string/strnlen.c: Define and use STRNLEN macro.
28197         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
28198         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
28199         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
28200         * wcsmbs/wcslen.c: Define and use WCSLEN.
28201         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
28202         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
28203         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
28204         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
28205         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
28206         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
28207         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
28208
28209 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28210
28211         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28212         strnlen-sse2-no-bsf.
28213         Rename strlen-no-bsf to strlen-sse2-no-bsf.
28214         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
28215         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
28216         Add strnlen support.
28217         (USE_AS_STRNLEN): New macro.
28218         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
28219         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
28220         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
28221         * sysdeps/x86_64/wcslen.S: New file.
28222
28223 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
28224
28225         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
28226         XMM-moves are used for copying on small sizes.
28227
28228 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28229
28230         * wcsmbs/Makefile (strop-tests): Add wcschr.
28231         * wcsmbs/test-wcschr.c: New file.
28232         * string/test-strchr.c: Update.
28233         Add wcschr support.
28234         (WIDE): New macro.
28235
28236 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28237
28238         * wcsmbs/Makefile (strop-tests): Add wcslen.
28239         * wcsmbs/test-wcslen.c: New file.
28240         * string/test-strlen.c: Update.
28241         Add wcslen support.
28242         (WIDE): New macro.
28243
28244 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28245
28246         * po/it.po: Update from translation team.
28247
28248 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28249
28250         * sysdeps/x86_64/wcscmp.S: Update.
28251         Fix wrong comparison semantics.
28252         wcscmp shall use signed comparison not unsigned.
28253         Don't use substraction to avoid overflow bug.
28254         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
28255         * wcsmbc/wcscmp.c: Likewise.
28256         * string/test-strcmp.c: Likewise.
28257         Add new tests to check cases with negative values.
28258
28259 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28260
28261         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
28262         * sysdeps/x86_64/dla.h: ...here.  New file.
28263         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
28264         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28265         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28266         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28267         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28268         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28269         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28270         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28271         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28272
28273 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
28274
28275         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
28276         __ynl_finite aliases.
28277
28278 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
28279
28280         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28281
28282         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
28283         define DLA_FMA.
28284         [DLA_FMA] (EMULV): Use DLA_FMA.
28285         [DLA_FMA] (MUL12): Use EMULV.
28286         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
28287         that are not needed.
28288         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28289         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28290         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28291         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28292         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28293         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28294         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28295
28296 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
28297
28298         * math/s_nan.c: Undef __nan.
28299         * math/s_nanf.c: Undef __nanf.
28300         * math/s_nanl.c: Undef __nanl.
28301         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
28302         "math_private.h".
28303
28304 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
28305
28306         * math/s_catan.c: Add branch predictions.
28307         * math/s_catanf.c: Likewise.
28308         * math/s_catanh.c: Likewise.
28309         * math/s_catanhf.c: Likewise.
28310         * math/s_catanhl.c: Likewise.
28311         * math/s_catanl.c: Likewise.
28312         * math/s_cexp.c: Likewise.
28313         * math/s_cexpf.c: Likewise.
28314         * math/s_cexpl.c: Likewise.
28315         * math/s_clog.c: Likewise.
28316         * math/s_clog10.c: Likewise.
28317         * math/s_clog10f.c: Likewise.
28318         * math/s_clog10l.c: Likewise.
28319         * math/s_clogf.c: Likewise.
28320         * math/s_clogl.c: Likewise.
28321         * math/s_csqrt.c: Likewise.
28322         * math/s_csqrtf.c: Likewise.
28323         * math/s_csqrtl.c: Likewise.
28324         * math/s_ctanf.c: Likewise.
28325         * math/s_ctanh.c: Likewise.
28326         * math/s_ctanhf.c: Likewise.
28327         * math/s_ctanhl.c: Likewise.
28328         * math/s_ctanl.c: Likewise.
28329
28330         * math/math_private.h: Define __nan, __nanf, __nanl.
28331         * math/s_cacosh.c: Include <math_private.h>.
28332         * math/s_cacoshl.c: Likewise.
28333         * math/s_casinh.c: Likewise.
28334         * math/s_casinhf.c: Likewise.
28335         * math/s_casinhl.c: Likewise.
28336         * math/s_ccos.c: Rely entire on ccosh.
28337         * math/s_ccosf.c: Rely entire on ccoshf.
28338         * math/s_ccosl.c: Rely entirely on ccoshl.
28339         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
28340         Remove tests for FE_INVALID.
28341         * math/s_ccoshf.c: Likewise.
28342         * math/s_ccoshl.c: Likewise.
28343         * math/s_csin.c: Likewise.
28344         * math/s_csinf.c: Likewise.
28345         * math/s_csinh.c Likewise.
28346         * math/s_csinhf.c: Likewise.
28347         * math/s_csinhl.c: Likewise.
28348         * math/s_csinl.c: Likewise.
28349         * math/s_ctan.c: Likewise.
28350         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
28351         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
28352         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
28353
28354 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
28355
28356         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
28357         compilation problems.
28358
28359         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
28360         __builtin_expect.
28361
28362 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
28363
28364         * sysdeps/i386/configure.in: Test for -mfma4 option.
28365         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
28366         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
28367         COMMON_CPUID_INDEX_80000001.
28368         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
28369         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
28370         use it if FMA3 is not supported.
28371         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
28372
28373         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
28374         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
28375
28376 2011-10-20  Andreas Schwab  <schwab@redhat.com>
28377
28378         [BZ #12892]
28379         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
28380         it would create a cycle with a link time dependency.
28381
28382 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
28383
28384         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
28385         instruction.
28386         * string/Makefile (strop-tests): Add rawmemchr.
28387         * string/test-rawmemchr.c: New file.
28388
28389         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
28390         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
28391         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
28392         when compiling str{,n}casecmp and when AVX is available.  Hook up
28393         new optimized code in initializers.
28394
28395 2011-10-19  Andreas Schwab  <schwab@redhat.com>
28396
28397         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
28398         __feraiseexcept instead of feraiseexcept.
28399
28400 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
28401
28402         * math/math_private.h: Define defaults for libc_fetestexcept and
28403         libc_feupdateenv.
28404         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
28405         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
28406         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
28407         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
28408         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28409         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
28410         libc_fetestexcept and libc_feupdateenv.
28411
28412         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
28413         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
28414         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
28415         * sysdeps/x86_64/fpu/math_private.h: Define special version of
28416         libc_feholdexcept_setround.
28417
28418         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
28419         Add s_nearbyint-c and s_nearbyintf-c.
28420         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
28421         nearbyintf inlines.
28422         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
28423         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
28424         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
28425         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
28426
28427         * math/math_private.h: Define defaults for libc_fegetround,
28428         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
28429         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
28430         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
28431         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
28432         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
28433         standard functions.
28434         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
28435         Remove comments and hacks for old compiler versions.
28436         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
28437         libc_fegetround, libc_fesetround, libc_feholdexcept, and
28438         libc_feholdexceptl.
28439
28440 2011-10-18  Andreas Schwab  <schwab@redhat.com>
28441
28442         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
28443         (__feraiseexcept_renamed): Add __NTH.
28444         (feraiseexcept): Add __NTH.  Rename local variables to fix
28445         namespace violations.
28446
28447 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
28448
28449         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
28450
28451         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
28452
28453         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
28454         recently added interfaces.
28455         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
28456
28457         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
28458         about macro parameter expansion.
28459
28460         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
28461         __NO_MATH_INLINES is defined.  Cleanups.
28462
28463         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
28464         and __floorf is target has SSE4.1.
28465         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
28466         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
28467         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
28468         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
28469
28470         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
28471         name.
28472         (floorf): Likewise.
28473
28474         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
28475
28476 2011-10-17  Andreas Schwab  <schwab@redhat.com>
28477
28478         * misc/sys/cdefs.h: Fix last change.
28479
28480         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
28481         database lookup.
28482
28483 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
28484
28485         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
28486
28487         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
28488         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28489         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
28490         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28491         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28492         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28493         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28494         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28495         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28496         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
28497         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
28498         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
28499         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
28500         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
28501         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
28502         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
28503         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
28504         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
28505         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
28506         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
28507         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
28508         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
28509
28510         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
28511         ceil, ceilf, floor, floorf.
28512
28513         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
28514         Perform IRELATIVE relocations last.
28515
28516         * elf/do-rel.h: Add another parameter nrelative, replacing the
28517         local variable with the same name.  Change name of the function
28518         to end in Rel or Rela (uppercase).
28519         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
28520         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
28521         elf_dynamic_do_##reloc function.
28522
28523 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
28524
28525         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
28526         is sufficient, at least on modern CPUs.
28527
28528         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
28529
28530         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
28531         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
28532
28533         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
28534         __expl_finite.
28535         * math/bits/math-finite.h: Add entries for exp.
28536         * math/e_expl.c: Add __*_finite alias.
28537         * sysdeps/i386/fpu/e_exp.S: Likewise.
28538         * sysdeps/i386/fpu/e_expf.S: Likewise.
28539         * sysdeps/i386/fpu/e_expl.c: Likewise.
28540         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28541         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
28542         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
28543         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
28544         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
28545         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
28546         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
28547
28548         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
28549         is sufficient, at least on modern CPUs.
28550
28551         * ctype/ctype-info.c (__ctype_init): Define.
28552         * include/ctype.h (__ctype_init): Declare.
28553         (__ctype_b_loc): The variable is always initialized.
28554         (__ctype_toupper_loc): Likewise.
28555         (__ctype_tolower_loc): Likewise.
28556         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
28557         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
28558
28559 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
28560
28561         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
28562
28563         * configure.in: Also look in $cxxmachine/include for C++ system
28564         headers.
28565
28566 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28567
28568         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
28569         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
28570         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
28571         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
28572         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
28573         (USE_AS_WMEMCMP): New macro.
28574         Fixing indents.
28575         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
28576         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
28577         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
28578         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
28579         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28580         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
28581         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
28582         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
28583         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
28584         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
28585         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
28586         (USE_AS_WMEMCMP): New macro.
28587         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
28588         * sysdeps/string/test-memcmp.c: Update.
28589         Fix simple_wmemcmp.
28590         Add new tests.
28591         * wcsmbs/wmemcmp.c: Update.
28592         (WMEMCMP): New macro.
28593         Fix overflow bug.
28594
28595 2011-10-12  Andreas Jaeger  <aj@suse.de>
28596
28597         [BZ #13268]
28598         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
28599
28600 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
28601
28602         * libio/iofwide.c (do_length): Avoid warning.
28603
28604         * ctype/ctype.h (__isctype_f): Add missing __THROW.
28605
28606 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
28607
28608         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
28609
28610         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
28611         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
28612         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
28613         * sysdeps/i386/i686/fpu/e_log.S: New file.
28614         * sysdeps/i386/i686/fpu/e_logf.S: New file.
28615         * sysdeps/i386/i686/fpu/e_logl.S: New file.
28616
28617         * ctype/ctype.h: Add support for inlined isXXX functions when
28618         compiling C++ code.
28619
28620 2011-10-14  Andreas Schwab  <schwab@redhat.com>
28621
28622         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28623
28624         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
28625
28626 2011-10-13  Roland McGrath  <roland@hack.frob.com>
28627
28628         [BZ #13291]
28629         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
28630
28631 2011-10-13  Andreas Schwab  <schwab@redhat.com>
28632
28633         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
28634         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
28635         feraiseexcept.
28636
28637         * sysdeps/x86_64/memrchr.S: Check for zero size.
28638
28639         * string/stratcliff.c: Add memrchr tests.
28640
28641 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28642
28643         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28644         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
28645         rawmemchr-sse2 rawmemchr-sse2-bsf.
28646         * sysdeps/i386/i686/multiarch/memchr.S: New file.
28647         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
28648         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
28649         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
28650         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
28651         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
28652         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
28653         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
28654         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
28655         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
28656         * string/memrchr.c (MEMRCHR): New macro.
28657
28658 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
28659
28660         Add integration with gcc's -ffinite-math-only and optimize wrapper
28661         functions in libm.
28662         * Versions.def: Define GLIBC_2.15 version for libm.
28663         * math/Makefile (headers): Add bits/math-finite.h.
28664         * math/bits/math-finite.h: New file.
28665         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
28666         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
28667         * math/e_acoshl.c: Add __*_finite alias.
28668         * math/e_acosl.c: Likewise.
28669         * math/e_asinl.c: Likewise.
28670         * math/e_atan2l.c: Likewise.
28671         * math/e_atanhl.c: Likewise.
28672         * math/e_coshl.c: Likewise.
28673         * math/e_exp10.c: Likewise.
28674         * math/e_exp10f.c: Likewise.
28675         * math/e_exp10l.c: Likewise.
28676         * math/e_exp2l.c: Likewise.
28677         * math/e_fmodl.c: Likewise.
28678         * math/e_gammal_r.c: Likewise.
28679         * math/e_hypotl.c: Likewise.
28680         * math/e_j0l.c: Likewise.
28681         * math/e_j1l.c: Likewise.
28682         * math/e_jnl.c: Likewise.
28683         * math/e_lgammal_r.c: Likewise.
28684         * math/e_log10l.c: Likewise.
28685         * math/e_log2l.c: Likewise.
28686         * math/e_logl.c: Likewise.
28687         * math/e_powl.c: Likewise.
28688         * math/e_sinhl.c: Likewise.
28689         * math/e_sqrtl.c: Likewise.
28690         * math/e_scalb.c: Completely rewritten and optimized.
28691         * math/e_scalbf.c: Likewise.
28692         * math/e_scalbl.c: Likewise.
28693         * math/w_acos.c: Likewise.
28694         * math/w_acosf.c: Likewise.
28695         * math/w_acosl.c: Likewise.
28696         * math/w_acosh.c: Likewise.
28697         * math/w_acoshf.c: Likewise.
28698         * math/w_acoshl.c: Likewise.
28699         * math/w_asin.c: Likewise.
28700         * math/w_asinf.c: Likewise.
28701         * math/w_asinl.c: Likewise.
28702         * math/w_atan2.c: Likewise.
28703         * math/w_atan2f.c: Likewise.
28704         * math/w_atan2l.c: Likewise.
28705         * math/w_atanh.c: Likewise.
28706         * math/w_atanhf.c: Likewise.
28707         * math/w_atanhl.c: Likewise.
28708         * math/w_exp10.c: Likewise.
28709         * math/w_exp10f.c: Likewise.
28710         * math/w_exp10l.c: Likewise.
28711         * math/w_fmod.c: Likewise.
28712         * math/w_fmodf.c: Likewise.
28713         * math/w_fmodl.c: Likewise.
28714         * math/w_j0.c: Likewise.
28715         * math/w_j0f.c: Likewise.
28716         * math/w_j0l.c: Likewise.
28717         * math/w_j1.c: Likewise.
28718         * math/w_j1f.c: Likewise.
28719         * math/w_j1l.c: Likewise.
28720         * math/w_jn.c: Likewise.
28721         * math/w_jnf.c: Likewise.
28722         * math/w_log.c: Likewise.
28723         * math/w_logf.c: Likewise.
28724         * math/w_logl.c: Likewise.
28725         * math/w_log10.c: Likewise.
28726         * math/w_log10f.c: Likewise.
28727         * math/w_log10l.c: Likewise.
28728         * math/w_log2.c: Likewise.
28729         * math/w_log2f.c: Likewise.
28730         * math/w_log2l.c: Likewise.
28731         * math/w_pow.c: Likewise.
28732         * math/w_powf.c: Likewise.
28733         * math/w_powl.c: Likewise.
28734         * math/w_remainder.c: Likewise.
28735         * math/w_remainderf.c: Likewise.
28736         * math/w_remainderl.c: Likewise.
28737         * math/w_scalb.c: Likewise.
28738         * math/w_scalbf.c: Likewise.
28739         * math/w_scalbl.c: Likewise.
28740         * math/w_sqrt.c: Likewise.
28741         * math/w_sqrtf.c: Likewise.
28742         * math/w_sqrtl.c: Likewise.
28743         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
28744         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
28745         used.
28746         * math/math_private.h: Declare __kernel_standard_f.
28747         * math/w_cosh.c: Remove cruft and optimize a bit.
28748         * math/w_coshf.c: Likewise.
28749         * math/w_coshl.c: Likewise.
28750         * math/w_exp2.c: Likewise.
28751         * math/w_exp2f.c: Likewise.
28752         * math/w_exp2l.c: Likewise.
28753         * math/w_hypot.c: Likewise.
28754         * math/w_hypotf.c: Likewise.
28755         * math/w_hypotl.c: Likewise.
28756         * math/w_lgamma.c: Likewise.
28757         * math/w_lgamma_r.c: Likewise.
28758         * math/w_lgammaf.c: Likewise.
28759         * math/w_lgammaf_r.c: Likewise.
28760         * math/w_lgammal.c: Likewise.
28761         * math/w_lgammal_r.c: Likewise.
28762         * math/w_sinh.c: Likewise.
28763         * math/w_sinhf.c: Likewise.
28764         * math/w_sinhl.c: Likewise.
28765         * math/w_tgamma.c: Likewise.
28766         * math/w_tgammaf.c: Likewise.
28767         * math/w_tgammal.c: Likewise.
28768         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
28769         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28770         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
28771         Minor optimizations.  Pretty printing.  Remove cruft.
28772         * sysdeps/i386/fpu/e_acosf.S: Likewise.
28773         * sysdeps/i386/fpu/e_acosh.S: Likewise.
28774         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
28775         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
28776         * sysdeps/i386/fpu/e_acosl.c: Likewise.
28777         * sysdeps/i386/fpu/e_asin.S: Likewise.
28778         * sysdeps/i386/fpu/e_asinf.S: Likewise.
28779         * sysdeps/i386/fpu/e_atan2.S: Likewise.
28780         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
28781         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
28782         * sysdeps/i386/fpu/e_atanh.S: Likewise.
28783         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
28784         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
28785         * sysdeps/i386/fpu/e_exp10.S: Likewise.
28786         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
28787         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
28788         * sysdeps/i386/fpu/e_exp2.S: Likewise.
28789         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
28790         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
28791         * sysdeps/i386/fpu/e_fmod.S: Likewise.
28792         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
28793         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
28794         * sysdeps/i386/fpu/e_hypot.S: Likewise.
28795         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
28796         * sysdeps/i386/fpu/e_log.S: Likewise.
28797         * sysdeps/i386/fpu/e_log10.S: Likewise.
28798         * sysdeps/i386/fpu/e_log10f.S: Likewise.
28799         * sysdeps/i386/fpu/e_log10l.S: Likewise.
28800         * sysdeps/i386/fpu/e_log2.S: Likewise.
28801         * sysdeps/i386/fpu/e_log2f.S: Likewise.
28802         * sysdeps/i386/fpu/e_log2l.S: Likewise.
28803         * sysdeps/i386/fpu/e_logf.S: Likewise.
28804         * sysdeps/i386/fpu/e_logl.S: Likewise.
28805         * sysdeps/i386/fpu/e_pow.S: Likewise.
28806         * sysdeps/i386/fpu/e_powf.S: Likewise.
28807         * sysdeps/i386/fpu/e_powl.S: Likewise.
28808         * sysdeps/i386/fpu/e_remainder.S: Likewise.
28809         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
28810         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
28811         * sysdeps/i386/fpu/e_scalb.S: Likewise.
28812         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
28813         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
28814         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
28815         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
28816         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
28817         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
28818         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28819         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28820         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
28821         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
28822         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
28823         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
28824         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
28825         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28826         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
28827         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
28828         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
28829         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28830         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
28831         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
28832         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28833         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
28834         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
28835         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28836         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28837         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
28838         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
28839         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
28840         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
28841         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
28842         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
28843         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
28844         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
28845         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
28846         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
28847         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28848         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
28849         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28850         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
28851         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
28852         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
28853         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
28854         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
28855         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
28856         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
28857         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
28858         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
28859         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
28860         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
28861         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28862         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
28863         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
28864         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
28865         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
28866         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
28867         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
28868         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
28869         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
28870         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28871         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
28872         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
28873         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
28874         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
28875         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
28876         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
28877         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
28878         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
28879         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
28880         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
28881         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
28882         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
28883         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
28884         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
28885         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
28886         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
28887         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
28888         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
28889         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
28890         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
28891         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
28892         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28893         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
28894         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
28895         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
28896         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
28897         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28898         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
28899         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
28900         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
28901         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28902         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
28903         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28904         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
28905         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
28906         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
28907         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
28908         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
28909         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
28910         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
28911         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
28912         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
28913         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
28914         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
28915         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
28916         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
28917         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
28918         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
28919         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
28920         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
28921         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
28922         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
28923         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
28924         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
28925         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
28926         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
28927         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
28928         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
28929         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
28930         (__isnanf): Likewise.
28931         (__isinf_ns): Likewise.
28932         (__isinf_nsf): Likewise.
28933         (__finite): Likewise.
28934         (__finitef): Likewise.
28935         (__ieee754_sqrt): Define as macro.
28936         (__ieee754_sqrtf): Define as macro.
28937         (__ieee754_sqrtl): Define as macro.
28938         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
28939         inlined copy.
28940         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
28941         __FINITE_MATH_ONLY__ consistent.
28942         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
28943
28944 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
28945
28946         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
28947         of rawmemchr.
28948
28949         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
28950
28951 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
28952
28953         * po/ja.po: Update from translation team.
28954
28955 2011-10-08  Roland McGrath  <roland@hack.frob.com>
28956
28957         * locale/programs/locarchive.c (prepare_address_space): New function.
28958         (create_archive, enlarge_archive, open_archive): Use it.
28959
28960         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
28961         inside [SHARED], where it is used.
28962
28963         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
28964
28965         * nss/getent.c (netgroup_keys): Remove unused variable.
28966         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
28967
28968 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
28969
28970         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
28971         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
28972         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
28973         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
28974         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
28975         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
28976         * math/Makefile (libm-calls): Add s_isinf_ns.
28977         * math/divtc3.c: Use __isinf_nsl instead of isinf.
28978         * math/multc3.c: Likewise.
28979         * math/s_casin.c: Likewise.
28980         * math/s_casinf.c: Likewise.
28981         * math/s_casinl.c: Likewise.
28982         * math/s_ccos.c: Likewise.
28983         * math/s_ccosf.c: Likewise.
28984         * math/s_ccosl.c: Likewise.
28985         * math/s_ctan.c: Likewise.
28986         * math/s_ctanf.c: Likewise.
28987         * math/s_ctanh.c: Likewise.
28988         * math/s_ctanhf.c: Likewise.
28989         * math/s_ctanhl.c: Likewise.
28990         * math/s_ctanl.c: Likewise.
28991         * math/w_fmod.c: Likewise.
28992         * math/w_fmodf.c: Likewise.
28993         * math/w_fmodl.c: Likewise.
28994         * math/w_remainder.c: Likewise.
28995         * math/w_remainderf.c: Likewise.
28996         * math/w_remainderl.c: Likewise.
28997         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
28998         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
28999         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
29000         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
29001         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
29002         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
29003         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
29004         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
29005
29006         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
29007         of the number.
29008         * stdio-common/printf_fphex.c: Likewise.
29009         * stdio-common/printf_size.c: Likewise.
29010
29011         * math/e_exp10.c: Include math_private.h using <...> not "...".
29012         * math/e_exp10f.c: Likewise.
29013         * math/e_exp10l.c: Likewise.
29014         * math/e_exp2l.c: Likewise.
29015         * math/e_j0l.c: Likewise.
29016         * math/e_j1l.c: Likewise.
29017         * math/e_jnl.c: Likewise.
29018         * math/e_lgammal_r.c: Likewise.
29019         * math/e_rem_pio2l.c: Likewise.
29020         * math/e_scalb.c: Likewise.
29021         * math/e_scalbf.c: Likewise.
29022         * math/e_scalbl.c: Likewise.
29023         * math/k_cosl.c: Likewise.
29024         * math/k_sinl.c: Likewise.
29025         * math/k_tanl.c: Likewise.
29026         * math/s_cacoshf.c: Likewise.
29027         * math/s_catan.c: Likewise.
29028         * math/s_catanf.c: Likewise.
29029         * math/s_catanh.c: Likewise.
29030         * math/s_catanhf.c: Likewise.
29031         * math/s_catanhl.c: Likewise.
29032         * math/s_catanl.c: Likewise.
29033         * math/s_ccosh.c: Likewise.
29034         * math/s_ccoshf.c: Likewise.
29035         * math/s_ccoshl.c: Likewise.
29036         * math/s_cexp.c: Likewise.
29037         * math/s_cexpf.c: Likewise.
29038         * math/s_cexpl.c: Likewise.
29039         * math/s_clog.c: Likewise.
29040         * math/s_clog10.c: Likewise.
29041         * math/s_clog10f.c: Likewise.
29042         * math/s_clog10l.c: Likewise.
29043         * math/s_clogf.c: Likewise.
29044         * math/s_clogl.c: Likewise.
29045         * math/s_csin.c: Likewise.
29046         * math/s_csinf.c: Likewise.
29047         * math/s_csinh.c: Likewise.
29048         * math/s_csinhf.c: Likewise.
29049         * math/s_csinhl.c: Likewise.
29050         * math/s_csinl.c: Likewise.
29051         * math/s_csqrt.c: Likewise.
29052         * math/s_csqrtf.c: Likewise.
29053         * math/s_csqrtl.c: Likewise.
29054         * math/s_ctan.c: Likewise.
29055         * math/s_ctanf.c: Likewise.
29056         * math/s_ctanh.c: Likewise.
29057         * math/s_ctanhf.c: Likewise.
29058         * math/s_ctanhl.c: Likewise.
29059         * math/s_ctanl.c: Likewise.
29060         * math/s_ldexp.c: Likewise.
29061         * math/s_ldexpf.c: Likewise.
29062         * math/s_ldexpl.c: Likewise.
29063         * math/s_significand.c: Likewise.
29064         * math/s_significandf.c: Likewise.
29065         * math/s_significandl.c: Likewise.
29066         * math/w_acos.c: Likewise.
29067         * math/w_acosf.c: Likewise.
29068         * math/w_acosh.c: Likewise.
29069         * math/w_acoshf.c: Likewise.
29070         * math/w_acoshl.c: Likewise.
29071         * math/w_acosl.c: Likewise.
29072         * math/w_asin.c: Likewise.
29073         * math/w_asinf.c: Likewise.
29074         * math/w_asinl.c: Likewise.
29075         * math/w_atan2.c: Likewise.
29076         * math/w_atan2f.c: Likewise.
29077         * math/w_atan2l.c: Likewise.
29078         * math/w_atanh.c: Likewise.
29079         * math/w_atanhf.c: Likewise.
29080         * math/w_atanhl.c: Likewise.
29081         * math/w_cosh.c: Likewise.
29082         * math/w_coshf.c: Likewise.
29083         * math/w_coshl.c: Likewise.
29084         * math/w_dremf.c: Likewise.
29085         * math/w_exp10.c: Likewise.
29086         * math/w_exp10f.c: Likewise.
29087         * math/w_exp10l.c: Likewise.
29088         * math/w_exp2.c: Likewise.
29089         * math/w_exp2f.c: Likewise.
29090         * math/w_fmod.c: Likewise.
29091         * math/w_fmodf.c: Likewise.
29092         * math/w_fmodl.c: Likewise.
29093         * math/w_hypot.c: Likewise.
29094         * math/w_hypotf.c: Likewise.
29095         * math/w_hypotl.c: Likewise.
29096         * math/w_j0.c: Likewise.
29097         * math/w_j0f.c: Likewise.
29098         * math/w_j0l.c: Likewise.
29099         * math/w_j1.c: Likewise.
29100         * math/w_j1f.c: Likewise.
29101         * math/w_j1l.c: Likewise.
29102         * math/w_jn.c: Likewise.
29103         * math/w_jnf.c: Likewise.
29104         * math/w_jnl.c: Likewise.
29105         * math/w_lgamma.c: Likewise.
29106         * math/w_lgamma_r.c: Likewise.
29107         * math/w_lgammaf.c: Likewise.
29108         * math/w_lgammaf_r.c: Likewise.
29109         * math/w_lgammal.c: Likewise.
29110         * math/w_lgammal_r.c: Likewise.
29111         * math/w_log.c: Likewise.
29112         * math/w_log10.c: Likewise.
29113         * math/w_log10f.c: Likewise.
29114         * math/w_log10l.c: Likewise.
29115         * math/w_log2.c: Likewise.
29116         * math/w_log2f.c: Likewise.
29117         * math/w_log2l.c: Likewise.
29118         * math/w_logf.c: Likewise.
29119         * math/w_logl.c: Likewise.
29120         * math/w_pow.c: Likewise.
29121         * math/w_powf.c: Likewise.
29122         * math/w_powl.c: Likewise.
29123         * math/w_remainder.c: Likewise.
29124         * math/w_remainderf.c: Likewise.
29125         * math/w_remainderl.c: Likewise.
29126         * math/w_scalb.c: Likewise.
29127         * math/w_scalbf.c: Likewise.
29128         * math/w_scalbl.c: Likewise.
29129         * math/w_sinh.c: Likewise.
29130         * math/w_sinhf.c: Likewise.
29131         * math/w_sinhl.c: Likewise.
29132         * math/w_sqrt.c: Likewise.
29133         * math/w_sqrtf.c: Likewise.
29134         * math/w_sqrtl.c: Likewise.
29135         * math/w_tgamma.c: Likewise.
29136         * math/w_tgammaf.c: Likewise.
29137         * math/w_tgammal.c: Likewise.
29138
29139         * po/ja.po: Update from translation team.
29140
29141 2011-09-29  Andreas Jaeger  <aj@suse.de>
29142
29143         [BZ #13179]
29144         * sunrpc/netname.c (netname2host): Fix logic.
29145
29146         [BZ #6779]
29147         [BZ #6783]
29148         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
29149         correctly.
29150         * math/w_remainder.c (__remainder): Likewise.
29151         * math/w_remainderf.c (__remainderf): Likewise.
29152         * math/libm-test.inc (remainder_test): Add test cases.
29153
29154 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29155
29156         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
29157         sdiv_qrnnd.
29158
29159 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29160
29161         * string/test-memcmp.c: Avoid unncessary #defines.
29162         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29163
29164 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29165
29166         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
29167         Use new sse2 version for core i3 - i7 as it's faster
29168         than sse42 version.
29169         (bit_Prefer_PMINUB_for_stringop): New.
29170         * sysdeps/x86_64/rawmemchr.S: Update.
29171         Replace with faster SSE2 version.
29172         * sysdeps/x86_64/memrchr.S: New file.
29173         * sysdeps/x86_64/memchr.S: Update.
29174         Replace with faster SSE2 version.
29175
29176 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
29177
29178         * elf/dl-load.c (lose): Add cast to avoid warning.
29179
29180 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29181
29182         * po/ca.po: Update from translation team.
29183
29184         * inet/getnetgrent_r.c: Hook up nscd.
29185         * nscd/Makefile (routines): Add nscd_netgroup.
29186         (nscd-modules): Add netgroupcache.
29187         (CFLAGS-netgroupcache.c): Define.
29188         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
29189         (cache_search): Add const to second parameter.
29190         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
29191         INNETGR.
29192         (dbs): Add netgrdb entry.
29193         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
29194         (verify_persistent_db): Handle netgrdb.
29195         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
29196         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
29197         GETFDNETGR.
29198         (netgroup_response_header): Define.
29199         (innetgroup_response_header): Define.
29200         (datahead): Add netgroup_response_header and innetgroup_response_header
29201         elements.
29202         * nscd/nscd.conf: Add entries for netgroup cache.
29203         * nscd/nscd.h (dbtype): Add netgrdb.
29204         (_PATH_NSCD_NETGROUP_DB): Define.
29205         (netgroup_iov_disabled): Declare.
29206         (xmalloc, xcalloc, xrealloc): Move declarations here.
29207         (cache_search): Adjust prototype.
29208         Add netgroup-related prototypes.
29209         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
29210         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
29211         (__nscd_innetgr): Declare.
29212         * nscd/selinux.c (perms): Use access_vector_t as element type and
29213         add netgroup-related initializers.
29214         * nscd/netgroupcache.c: New file.
29215         * nscd/nscd_netgroup.c: New file.
29216         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
29217         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
29218         For four parameters use innetgr.
29219         * nss/nss_files/files-init.c: Add definition and callback for netgr.
29220         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
29221         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
29222         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
29223
29224         * nscd/connections.c (register_traced_file): Don't register file
29225         for disabled databases.
29226
29227 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
29228
29229         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
29230
29231         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
29232         from tree and freeing node.
29233
29234 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
29235
29236         * nss/nsswitch.c (__nss_database_lookup): Handle
29237         nss_parse_service_list out of memory case.
29238
29239 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
29240
29241         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
29242         out of memory case.
29243
29244 2011-10-04  Andreas Schwab  <schwab@redhat.com>
29245
29246         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
29247         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
29248         pass it down.
29249         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
29250         elf_machine_rela, elf_machine_lazy_rel.
29251         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
29252         (ELF_DYNAMIC_DO_REL): Likewise.
29253         (ELF_DYNAMIC_DO_RELA): Likewise.
29254         (ELF_DYNAMIC_RELOCATE): Likewise.
29255         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
29256         to ELF_DYNAMIC_DO_REL.
29257         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
29258         (dl_main): In trace mode always set __RTLD_NOIFUNC.
29259         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
29260         elf_machine_rela.
29261         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
29262         skip_ifunc, don't call ifunc function if non-zero.
29263         (elf_machine_rela): Likewise.
29264         (elf_machine_lazy_rel): Likewise.
29265         (elf_machine_lazy_rela): Likewise.
29266         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
29267         (elf_machine_lazy_rel): Likewise.
29268         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
29269         Likewise.
29270         (elf_machine_lazy_rel): Likewise.
29271         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29272         Likewise.
29273         (elf_machine_lazy_rel): Likewise.
29274         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
29275         (elf_machine_lazy_rel): Likewise.
29276         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
29277         (elf_machine_lazy_rel): Likewise.
29278         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
29279         (elf_machine_lazy_rel): Likewise.
29280         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
29281         (elf_machine_lazy_rel): Likewise.
29282         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
29283         (elf_machine_lazy_rel): Likewise.
29284         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
29285         (elf_machine_lazy_rel): Likewise.
29286
29287 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
29288
29289         * nss/nss_files/files-init.c (_nss_files_init): Use static
29290         initialization for all the *_traced_file variables.
29291
29292 2011-09-28  Andreas Schwab  <schwab@redhat.com>
29293
29294         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29295
29296 2011-09-27  Roland McGrath  <roland@hack.frob.com>
29297
29298         [BZ #13226]
29299         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
29300
29301 2011-09-27  Andreas Schwab  <schwab@redhat.com>
29302
29303         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
29304         Reread the line before reparsing it.
29305
29306 2011-09-26  Andreas Schwab  <schwab@redhat.com>
29307
29308         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
29309
29310 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
29311             Maxim Kuvyrkov  <maxim@codesourcery.com>
29312             Joseph Myers  <joseph@codesourcery.com>
29313
29314         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
29315         if needed for __stack_chk_guard.
29316
29317 2011-09-19  Roland McGrath  <roland@hack.frob.com>
29318
29319         * sysdeps/posix/spawni.c (script_execute): Always define it.
29320         It will be optimized away if unused.
29321         (maybe_script_execute): New function.
29322         (__spawni): Call it.
29323
29324         * Makerules: Don't include tls.make.
29325         (config-tls): Always set to thread.
29326         * tls.make.c: File removed.
29327
29328 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
29329
29330         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
29331         * config.make.in (CPPFLAGS-config): New substituted variable.
29332
29333 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
29334
29335         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
29336
29337         [BZ #13192]
29338         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
29339         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
29340
29341 2011-09-15  Roland McGrath  <roland@hack.frob.com>
29342
29343         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
29344         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
29345         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
29346         (CALL_FAIL): Likewise.
29347         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
29348         (CALL_FAIL): Macro removed.
29349         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
29350
29351 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
29352
29353         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
29354         for __FINITE_MATH_ONLY__ == 1.
29355
29356 2011-09-15  Andreas Schwab  <schwab@redhat.com>
29357
29358         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
29359         __ieee754_sqrt instead of sqrt.
29360         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
29361         __ieee754_sqrtf instead of sqrtf.
29362         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
29363         __floorf instead of floorf.
29364         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
29365         __floorf, __truncf instead of floorf, truncf.
29366
29367 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
29368
29369         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
29370
29371         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
29372         __extern_always_inline.
29373         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
29374         32-bit.
29375
29376 2011-09-14  Andreas Schwab  <schwab@redhat.com>
29377
29378         * elf/rtld.c (dl_main): Also relocate in dependency order when
29379         doing symbol dependency testing.
29380
29381 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
29382
29383         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
29384         Always define `refsym'.
29385
29386 2011-09-13  Andreas Schwab  <schwab@redhat.com>
29387
29388         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
29389         (__FD_ELT): Renamed from __FDELT.
29390         * misc/bits/select2.h (__FD_ELT): Likewise.
29391         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
29392         __FD_MASK instead of __FDELT, __FDMASK.
29393         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
29394         Likewise.
29395         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
29396         Likewise.
29397
29398         * elf/Makefile (gen-ldd): Fix pattern.
29399
29400         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
29401         (init_tls): Likewise.
29402
29403 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
29404
29405         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
29406
29407 2011-09-12  Andreas Schwab  <schwab@redhat.com>
29408
29409         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
29410         `struct cmsghdr *' instead of `void *'.
29411         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
29412         Likewise.
29413
29414 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
29415
29416         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
29417         if non-absolute.
29418         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
29419         ldd_rewrite_script.
29420
29421 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
29422
29423         * configure.in: Remove --with-tls option.
29424         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
29425         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
29426         out in case it is missing.
29427         * sysdeps/ia64/elf/configure.in: Likewise.
29428         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
29429         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
29430         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
29431         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
29432         * sysdeps/sh/elf/configure.in: Likewise.
29433         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
29434         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
29435         * sysdeps/x86_64/elf/configure.in: Likewise.
29436         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
29437         * sysdeps/mach/hurd/tls.h: Likewise.
29438
29439         [BZ #13067]
29440         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
29441
29442         [BZ #13090]
29443         * configure.in: Fix use of AC_INIT.
29444
29445         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
29446
29447 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
29448
29449         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
29450         __set_errno.
29451         * malloc/hooks.c: Likewise.
29452
29453         [BZ #11929]
29454         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
29455         variables statically.
29456         (narenas): Initialize.
29457         (list_lock): Initialize.
29458         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
29459         initializtion of main_arena and list_lock.  Small cleanups.
29460         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
29461         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
29462         Add initializers to main_arena and mp_.
29463         (malloc_state): Remove pagesize member.  Change all users to use
29464         GLRO(dl_pagesize).
29465
29466         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
29467         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
29468         is always initialized.
29469
29470         * malloc/malloc.c: Removed unused configurations and dead code.
29471         * malloc/arena.c: Likewise.
29472         * malloc/hooks.c: Likewise.
29473         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
29474
29475         * include/tls.h: Removed.  USE___THREAD must always be defined.
29476         * bits/libc-tsd.h: Don't handle !USE___THREAD.
29477         * elf/dl-libc.c: Likewise.
29478         * elf/dl-tsd.c: Likewise.
29479         * include/errno.h: Likewise.
29480         * include/netdb.h: Likewise.
29481         * include/resolv.h: Likewise.
29482         * inet/herrno-loc.c: Likewise.
29483         * inet/herrno.c: Likewise.
29484         * malloc/arena.c: Likewise.
29485         * malloc/hooks.c: Likewise.
29486         * malloc/malloc.c: Likewise.
29487         * resolv/res-state.c: Likewise.
29488         * resolv/res_libc.c: Likewise.
29489         * sysdeps/i386/dl-machine.h: Likewise.
29490         * sysdeps/ia64/dl-machine.h: Likewise.
29491         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29492         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29493         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29494         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29495         * sysdeps/sh/dl-machine.h: Likewise.
29496         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29497         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29498         * sysdeps/unix/i386/sysdep.S: Likewise.
29499         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
29500         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
29501         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
29502         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
29503         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
29504         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
29505         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
29506         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
29507         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29508         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
29509         * sysdeps/unix/x86_64/sysdep.S: Likewise.
29510         * sysdeps/x86_64/dl-machine.h: Likewise.
29511         * tls.make.c: Likewise.
29512
29513         * configure.in: Remove --with-__thread option.  Make tests for
29514         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
29515         tls_model attribute fail if no support is available.  Remove
29516         USE_IN_LIBIO.
29517         * Makeconfig: Adjust for dropped configure option.  All features are
29518         now mandatory.
29519         * Makerules: Likewise.
29520         * Versions.def: Likewise.
29521         * argp/argp-fmtstream.c: Likewise.
29522         * argp/argp-fmtstream.h: Likewise.
29523         * argp/argp-help.c: Likewise.
29524         * assert/assert.c: Likewise.
29525         * config.h.in: Likewise.
29526         * config.make.in: Likewise.
29527         * configure: Likewise.
29528         * configure.in: Likewise.
29529         * csu/Versions: Likewise.
29530         * csu/init.c: Likewise.
29531         * elf/tst-audit2.c: Likewise.
29532         * elf/tst-tls10.c: Likewise.
29533         * elf/tst-tls10.h: Likewise.
29534         * elf/tst-tls11.c: Likewise.
29535         * elf/tst-tls12.c: Likewise.
29536         * elf/tst-tls14.c: Likewise.
29537         * elf/tst-tlsmod11.c: Likewise.
29538         * elf/tst-tlsmod12.c: Likewise.
29539         * elf/tst-tlsmod13.c: Likewise.
29540         * elf/tst-tlsmod13a.c: Likewise.
29541         * elf/tst-tlsmod14a.c: Likewise.
29542         * elf/tst-tlsmod15b.c: Likewise.
29543         * elf/tst-tlsmod16a.c: Likewise.
29544         * elf/tst-tlsmod16b.c: Likewise.
29545         * elf/tst-tlsmod7.c: Likewise.
29546         * elf/tst-tlsmod8.c: Likewise.
29547         * elf/tst-tlsmod9.c: Likewise.
29548         * gmon/gmon.c: Likewise.
29549         * grp/fgetgrent_r.c: Likewise.
29550         * grp/putgrent.c: Likewise.
29551         * hurd/fopenport.c: Likewise.
29552         * include/libc-symbols.h: Likewise.
29553         * include/tls.h: Likewise.
29554         * intl/gettextP.h: Likewise.
29555         * intl/loadinfo.h: Likewise.
29556         * locale/global-locale.c: Likewise.
29557         * locale/localeinfo.h: Likewise.
29558         * mach/devstream.c: Likewise.
29559         * malloc/arena.c: Likewise.
29560         * malloc/set-freeres.c: Likewise.
29561         * misc/err.c: Likewise.
29562         * misc/getttyent.c: Likewise.
29563         * misc/mntent_r.c: Likewise.
29564         * posix/getopt.c: Likewise.
29565         * posix/wordexp.c: Likewise.
29566         * pwd/fgetpwent_r.c: Likewise.
29567         * resolv/Versions: Likewise.
29568         * resolv/res_hconf.c: Likewise.
29569         * shadow/fgetspent_r.c: Likewise.
29570         * shadow/putspent.c: Likewise.
29571         * stdio-common/printf_fphex.c: Likewise.
29572         * stdio-common/tmpfile.c: Likewise.
29573         * stdlib/abort.c: Likewise.
29574         * stdlib/fmtmsg.c: Likewise.
29575         * sunrpc/auth_unix.c: Likewise.
29576         * sunrpc/clnt_perr.c: Likewise.
29577         * sunrpc/clnt_tcp.c: Likewise.
29578         * sunrpc/clnt_udp.c: Likewise.
29579         * sunrpc/clnt_unix.c: Likewise.
29580         * sunrpc/openchild.c: Likewise.
29581         * sunrpc/svc_simple.c: Likewise.
29582         * sunrpc/svc_tcp.c: Likewise.
29583         * sunrpc/svc_udp.c: Likewise.
29584         * sunrpc/svc_unix.c: Likewise.
29585         * sunrpc/xdr.c: Likewise.
29586         * sunrpc/xdr_array.c: Likewise.
29587         * sunrpc/xdr_rec.c: Likewise.
29588         * sunrpc/xdr_ref.c: Likewise.
29589         * sunrpc/xdr_stdio.c: Likewise.
29590
29591 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29592
29593         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29594
29595 2011-07-03  Andreas Jaeger  <aj@suse.de>
29596
29597         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
29598         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
29599         regenerate with gen-libm-tests.pl.
29600
29601 2010-05-12  Petr Baudis  <pasky@suse.cz>
29602
29603         [BZ #11589]
29604         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
29605         around j0() zero points by switching to j1().
29606         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29607         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29608         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
29609         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29610
29611 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29612
29613         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
29614         instead of 0.
29615         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
29616         instead of 0.
29617         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29618         Patch in part by Pavel Roskin <proski@gnu.org>.
29619
29620         [BZ #13138]
29621         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
29622         realloc.
29623         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
29624         Free memory block if necessary.
29625
29626         [BZ #12847]
29627         * libio/genops.c (INTDEF): For string streams the _lock pointer can
29628         be NULL.  Don't lock in this case.
29629
29630 2011-09-09  Roland McGrath  <roland@hack.frob.com>
29631
29632         * elf/elf.h (ELFOSABI_GNU): New macro.
29633         (ELFOSABI_LINUX): Define to that.
29634
29635 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
29636
29637         * string/strncat.c (strncat): Undef the symbol in case it has been
29638         defined in bits/string.h.
29639
29640 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
29641
29642         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
29643
29644         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
29645         link map.
29646
29647 2011-08-17  Andreas Jaeger  <aj@suse.de>
29648
29649         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
29650
29651 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
29652             Ian Lance Taylor  <iant@google.com>
29653
29654         * math/libm-test.inc (lround_test): New testcase.
29655         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
29656
29657 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
29658
29659         * Makefile: Remove support for automatic cvs check-ins.
29660         * Makerules: Likewise.
29661         * config.make.in: Likewise.
29662         * configure.in: Likewise.
29663         * intl/Makefile: Likewise.
29664         * locale/Makefile: Likewise.
29665         * po/Makefile: Likewise.
29666         * posix/Makefile: Likewise.
29667         * sysdeps/gnu/Makefile: Likewise.
29668         * sysdeps/mach/hurd/Makefile: Likewise.
29669         * sysdeps/sparc/sparc32/Makefile: Likewise.
29670
29671         [BZ #13118]
29672         * posix/Makefile (bug-regex32-ENV): Define.
29673         Patch by John Stanley <jpsinthemix@verizon.net>.
29674
29675         * misc/Makefile (headers): Add bits/select2.h.
29676         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
29677         * misc/bits/select2.h: New file.
29678         * include/bits/select2.h: New file.
29679         * debug/Makefile (routines): Add fdelt_chk.
29680         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
29681         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
29682         FD_ISSET.
29683         * debug/fdelt_chk.c: New file.
29684
29685         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
29686         * wcsmbs/test-wmemcmp.c: Likewise.
29687         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
29688         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
29689
29690 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29691
29692         * string/Makefile (strop-tests): Add memcmp.
29693         * string/test-wmemcmp.c: New file.
29694         * string/test-memcmp.c: Add wmemcmp support.
29695
29696 2011-09-08  Roland McGrath  <roland@hack.frob.com>
29697
29698         [BZ #13153]
29699         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
29700         2011-07-19 change.
29701
29702         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
29703         garbage value in a __mach_port_mod_refs call in the cases of the
29704         task-self and thread-self ports.
29705
29706 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29707
29708         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
29709
29710 2011-09-08  Andreas Schwab  <schwab@redhat.com>
29711
29712         * elf/dl-load.c (lose): Check for non-null L.
29713
29714 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
29715
29716         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
29717
29718         * elf/dl-libc.c (dlerror_run): Pass back error code from
29719         dl_catch_error.
29720
29721         [BZ #13123]
29722         * elf/dl-load.c (lose): Free l_origin if it is valid.
29723
29724         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
29725         names.
29726         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
29727         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
29728         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
29729         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
29730         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
29731         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
29732
29733 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29734
29735         * sysdeps/powerpc/fpu/e_hypot.c: New file.
29736         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
29737         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
29738         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
29739         * sysdeps/powerpc/fpu/k_cosf.c: New file.
29740         * sysdeps/powerpc/fpu/k_sinf.c: New file.
29741         * sysdeps/powerpc/fpu/s_cosf.c: New file.
29742         * sysdeps/powerpc/fpu/s_sinf.c: New file.
29743         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
29744         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
29745
29746 2011-08-15  Alan Modra  <amodra@gmail.com>
29747
29748         [BZ #13092]
29749         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
29750         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
29751         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
29752         ppc_mcount to static-only-routines.
29753         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
29754         __mcount_internal.
29755         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
29756         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
29757
29758 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
29759
29760         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
29761         for finite and infinity parameters.
29762
29763 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
29764
29765         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
29766         and add nop instructions for throughput optimization.
29767         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
29768
29769 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
29770
29771         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
29772         aligned copy for power7 with vector-scalar instructions.
29773         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
29774
29775 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
29776
29777         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
29778         AVX check.
29779
29780 2011-09-07  Andreas Schwab  <schwab@redhat.com>
29781
29782         [BZ #13144]
29783         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
29784         last change.
29785
29786 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
29787
29788         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29789         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
29790         syscall wrapper around clock_gettime in __vdso_clock_gettime.
29791         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
29792         clock_gettime.
29793
29794 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
29795
29796         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
29797         Forgot to demangle the pointer.
29798
29799         * sysdeps/i386/sysdep.h: Define atom_text_section.
29800         * sysdeps/x86_64/sysdep.h: Likewise.
29801         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
29802         section with atom_text_section.
29803         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
29804         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
29805         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
29806         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
29807         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
29808
29809         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
29810         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
29811         already be defined.  Change to take two parameters and don't assign
29812         result to variable.  Adjust all users.
29813         Define INTERNAL_GETTIME if not already defined.
29814         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
29815         call.
29816         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
29817         HAVE_CLOCK_GETTIME_VSYSCALL.
29818         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
29819
29820         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
29821         gettimeofday vsyscall, just use time.
29822
29823 2011-09-06  Andreas Schwab  <schwab@redhat.com>
29824
29825         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
29826         <errno.h>.
29827
29828 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
29829
29830         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
29831         syscall on x86-64.
29832         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
29833         syscall.
29834         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
29835         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
29836         syscall if possible.
29837
29838 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29839
29840         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
29841         e_ident.  Don't pass to find_mapsXX.
29842         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
29843
29844 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29845
29846         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29847         strchr-sse2-no-bsf strrchr-sse2-no-bsf
29848         * sysdeps/x86_64/multiarch/strchr.S: Update.
29849         Check bit_slow_BSF bit.
29850         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
29851         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
29852         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
29853
29854 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29855
29856         [BZ #13134]
29857         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
29858         before glibc 2.15.
29859         (tryshell): Define.
29860         (__spawni): Change last parameter to be flag.  Test
29861         SPAWN_XFLAGS_USE_PATH flag to use path or not.
29862         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
29863         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
29864         * posix/spawni.c: Likewise.
29865         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
29866         * posix/spawnp.c: Likewise.  Change normal version to use
29867         SPAWN_XFLAGS_USE_PATH.
29868         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
29869         SPAWN_XFLAGS_TRY_SHELL.
29870
29871         [BZ #13150]
29872         * posix/glob.h: Remove gcc 1.x support.
29873
29874         [BZ #13068]
29875         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
29876
29877 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29878
29879         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29880         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
29881         strrchr-sse2-bsf
29882         * sysdeps/i386/i686/multiarch/strchr.S: New file.
29883         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
29884         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
29885         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
29886         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
29887         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
29888
29889 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29890
29891         * sysdeps/x86_64/wcscmp.S: New file.
29892
29893         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
29894         wcscmp-c wcscmp-sse2
29895         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
29896         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
29897         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
29898         * wcsmbs/wcscmp.c: Allow renaming.
29899
29900 2011-09-05  David S. Miller  <davem@davemloft.net>
29901
29902         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
29903         stack slot, rather than the struct return pointer slot.
29904         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
29905         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
29906         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
29907         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
29908
29909 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29910
29911         * po/ja.po: Update from translation team.
29912
29913         [BZ #13144]
29914         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
29915         kernel in 64-bit binaries.
29916
29917 2011-09-01  David S. Miller  <davem@davemloft.net>
29918
29919         * elf/elf.h (HWCAP_SPARC_*): Move to..
29920         * sysdeps/sparc/sysdep.h: this new file and add new values.
29921         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
29922         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
29923         _DL_HWCAP_COUNT to 24.
29924         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
29925         entries.
29926         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
29927         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
29928         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
29929         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
29930         instead of magic constants.
29931         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29932
29933 2011-08-31  David S. Miller  <davem@davemloft.net>
29934
29935         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
29936         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
29937         Reimplement to do errno handling inline.
29938         (SYSCALL_ERROR_HANDLER): New macro.
29939         (__SYSCALL_STRING): Do not do errno handling in asm.
29940         (__CLONE_SYSCALL_STRING): Delete.
29941         (__INTERNAL_SYSCALL_STRING): Delete.
29942         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
29943         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
29944         (PSEUDO): Reimplement to do errno handling inline.
29945         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
29946         (SYSCALL_ERROR_HANDLER): New macro.
29947         (__SYSCALL_STRING): Do not do errno handling in asm.
29948         (__CLONE_SYSCALL_STRING): Delete.
29949         (__INTERNAL_SYSCALL_STRING): Delete.
29950         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
29951         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
29952         i386.
29953         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
29954         (inline_syscall*): Add 'err' argument.
29955         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
29956         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
29957         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
29958         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
29959
29960         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
29961         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
29962
29963 2011-08-30  Andreas Schwab  <schwab@redhat.com>
29964
29965         * elf/rtld.c (dl_main): Relocate objects in dependency order.
29966
29967 2011-08-29  Jiri Olsa <jolsa@redhat.com>
29968
29969         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
29970         directive.
29971
29972 2011-08-24  David S. Miller  <davem@davemloft.net>
29973
29974         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
29975
29976 2011-08-24  Andreas Schwab  <schwab@redhat.com>
29977
29978         * elf/Makefile: Add rules to build and run unload8 test.
29979         * elf/unload8.c: New file.
29980         * elf/unload8mod1.c: New file.
29981         * elf/unload8mod1x.c: New file.
29982         * elf/unload8mod2.c: New file.
29983         * elf/unload8mod3.c: New file.
29984
29985         * elf/dl-close.c (_dl_close_worker): Reset private search list if
29986         it wasn't used.
29987
29988 2011-08-23  David S. Miller  <davem@davemloft.net>
29989
29990         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
29991         subtract stack bias.
29992         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
29993         %sp not %fp in calculations.
29994         (_JMPBUF_UNWINDS_ADJ): Likewise.
29995
29996         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
29997         (aio_suspend): Call it to force an exception region around the
29998         AIO_MISC_WAIT() invocation.
29999
30000 2011-08-23  Andreas Schwab  <schwab@redhat.com>
30001
30002         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
30003         backslash.
30004
30005 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
30006
30007         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
30008         protection macro.
30009         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
30010         and <dl-machine.h>.
30011         (Elf64_FuncDesc): Remove.
30012
30013 2011-08-22  David S. Miller  <davem@davemloft.net>
30014
30015         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
30016         sigaltstack check, add missing cfi directives.
30017         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
30018         missing cfi directives, and sigaltstack handling.
30019
30020 2011-08-16  Andreas Schwab  <schwab@redhat.com>
30021
30022         [BZ #11724]
30023         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
30024         object is seen twice.
30025         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30026
30027         * elf/Makefile (distribute): Add tst-initorder2.c.
30028         (tests): Add tst-initorder2.
30029         (modules-names): Add tst-initorder2a tst-initorder2b
30030         tst-initorder2c tst-initorder2d.  Add rules to build them.
30031         ($(objpfx)tst-initorder2.out): New rule.
30032         * elf/tst-initorder2.c: New file.
30033         * elf/tst-initorder2.exp: New file.
30034
30035 2011-08-22  Andreas Schwab  <schwab@redhat.com>
30036
30037         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
30038
30039         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
30040         dependencies back to end of function.
30041
30042         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
30043         $(elfobjdir)/ld.so.
30044
30045 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
30046
30047         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
30048         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
30049         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
30050         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
30051         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
30052         of __vdso_gettimeofday.
30053         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
30054         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
30055         attribute_hidden.
30056         (_libc_vdso_platform_setup): Remove initialization of
30057         __vdso_gettimeofday and __vdso_time.
30058
30059 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30060
30061         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
30062         and fgetc_unlocked.
30063         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
30064         getc_unlocked.
30065
30066         * elf/dl-open.c (add_to_global): Report additions to the global scope
30067         for LD_DEBUG=scopes.
30068         (dl_open_worker): Also print scope of newly loaded dependencies.
30069         (_dl_show_scope): Indicate if there is no scope.
30070
30071         [BZ #13114]
30072         * stdio-common/Makefile (tests): Add bug24.
30073         * stdio-common/bug24.c: New file.
30074
30075 2011-08-19  Andreas Jaeger  <aj@suse.de>
30076
30077         [BZ #13114]
30078         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
30079         non-existant file when using close-on-exec mode.
30080
30081 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30082
30083         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
30084         the very first instruction.
30085
30086         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
30087         the CFI state in the end.
30088         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
30089         inclusion of dl-trampoline.h.
30090         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
30091
30092 2011-08-19  Andreas Schwab  <schwab@redhat.com>
30093
30094         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
30095         expectations for long double.
30096
30097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
30098         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
30099
30100 2011-08-14  David S. Miller  <davem@davemloft.net>
30101
30102         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
30103         artificual limit depends upon the system page size.
30104
30105 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30106
30107         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
30108         * resolv/Makefile: Define CFLAGS-libresolv.
30109
30110 2011-08-17  Andreas Schwab  <schwab@redhat.com>
30111
30112         * nss/makedb.c (compute_tables): Make variables used in nested
30113         function static.
30114
30115 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30116
30117         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
30118         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
30119         if buffer was too small.
30120
30121         * elf/pldd.c (main): Attach to all threads in the process.
30122         Rewrite /proc handling to use *at functions.
30123
30124 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
30125
30126         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
30127         specifies first scope to show.
30128         (dl_open_worker): Update callers.  Move printing scope of new
30129         object to before the relocation.
30130         * elf/rtld.c (dl_main): Update _dl_show_scope call.
30131         * sysdeps/generic/ldsodefs.h: Update declaration.
30132
30133         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
30134         string for the scope number.
30135
30136 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
30137
30138         * nscd/servicescache.c (cache_addserv): Make sure written is always
30139         initialized.
30140
30141 2011-08-14  Roland McGrath  <roland@hack.frob.com>
30142
30143         * sysdeps/i386/i486/bits/atomic.h
30144         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
30145         statement expression, so as to suppress "set but not used" warning.
30146         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
30147
30148         * string/strncat.c (STRNCAT): Use prototype definition.
30149
30150         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
30151         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
30152         -Iprograms here.
30153         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
30154         (localedef-modules): Add localedef.
30155         (locale-modules): Add locale.
30156
30157         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
30158         * elf/rtld.c (dl_main): Invert order of assignment in last change,
30159         to avoid a warning.
30160
30161 2011-08-14  David S. Miller  <davem@davemloft.net>
30162
30163         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
30164         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
30165
30166 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
30167
30168         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
30169         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
30170         * elf/rtld.c (dl_main): Set l_name of vDSO.
30171         Call _dl_show_scope when DL_DEBUG_SCOPES.
30172         (process_dl_debug): Recognize scopes flag and also set it for all.
30173         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
30174         Declare _dl_show_scope.
30175
30176         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
30177         (do_dlopen): Pass caller_dlopen to dl_open.
30178         (__libc_dlopen_mode): Initialize caller_dlopen.
30179
30180         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
30181         of libc.  Make tolower call locale-independent.  Optimize a bit by
30182         using isdigit instead of isalnum.
30183         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
30184
30185 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
30186
30187         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
30188         was a dependency or dynamically loaded.
30189
30190 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
30191
30192         * intl/l10nflist.c: Allow architecture-specific pop function.
30193         * sysdeps/x86_64/l10nflist.c: New file.
30194
30195         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
30196         classification.
30197
30198 2011-08-10  Andreas Schwab  <schwab@redhat.com>
30199
30200         * include/dirent.h: Add libc_hidden_proto for scandirat and
30201         scandirat64.  Don't declare __scandirat64.
30202         * dirent/scandirat.c: Add libc_hidden_def.
30203         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
30204         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
30205
30206 2011-08-10  David S. Miller  <davem@davemloft.net>
30207
30208         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
30209         enum.
30210         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30211         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30212         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30213
30214 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
30215
30216         * Versions.def [libc]: Add GLIBC_2.15.
30217         * dirent/Makefile (routines): Add scandirat and scandirat64.
30218         * dirent/Versions [libc]: Export scandirat and scandirat64 for
30219         GLIBC_2.15.
30220         * dirent/dirent.h: Declare scandirat and scandirat64.
30221         * dirent/scandirat.c: New file.
30222         * dirent/scandirat64.c: New file.
30223         * sysdeps/wordsize-64/scandirat.c: New file.
30224         * sysdeps/wordsize-64/scandirat64.c: New file.
30225         * dirent/opendir.c: Define opendirat.
30226         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
30227         using scandirat.
30228         * dirent/scandir64.c: Adjust for scandir.c change.
30229         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
30230         __scandirat64, and __scandir_cancel_handler.
30231         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
30232         additional parameter and use openat instead of open (outside of ld.so).
30233         Add new __opendir as wrapper around __opendirat.
30234         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
30235         here without requiring old scandirat implementation.
30236
30237 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
30238
30239         * dirent/scandir.c (cancel_handler): Renamed to
30240         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
30241         defined.  Adjust users.
30242         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
30243         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
30244
30245 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
30246
30247         * string/test-string.h (IMPL): Use __STRING to expand name and then
30248         stringify it.
30249
30250         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
30251         of cleanups.
30252
30253 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30254
30255         * string/Makefile: Update.
30256         (strop-tests): Append strncat.
30257         * string/test-wcscmp.c: New file.
30258         New comprehensive test for wcscmp.
30259         * string/test-strcmp.c: Update.
30260         (WIDE): New define.
30261
30262 2011-07-22  Andreas Schwab  <schwab@redhat.com>
30263
30264         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
30265         line.
30266
30267 2011-07-26  Andreas Schwab  <schwab@redhat.com>
30268
30269         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
30270         encoding to ACE if AI_IDN.
30271
30272 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
30273
30274         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
30275         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
30276
30277 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30278
30279         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
30280         Fix overflow bug in strncat.
30281         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30282
30283         * string/test-strncat.c: Update.
30284         Add new tests for checking overflow bugs.
30285
30286 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30287
30288         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30289         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
30290         * sysdeps/i386/i686/multiarch/strcat.S: New file.
30291         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
30292         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
30293         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
30294         * sysdeps/i386/i686/multiarch/strncat.S: New file.
30295         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
30296         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
30297
30298         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
30299         (USE_AS_STRCAT): Define.
30300         Add strcat and strncat support.
30301         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30302
30303 2011-07-25  Andreas Schwab  <schwab@redhat.com>
30304
30305         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
30306         __n bigger than INT_MAX+1.
30307         (__strncmp_g): Likewise.
30308
30309 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
30310
30311         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
30312         * libio/stido.h: Likewise.
30313
30314         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
30315         (AF_NFC): Define.
30316         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
30317         (AF_NFC): Define.
30318
30319         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
30320         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30321         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30322         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30323         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30324
30325         [BZ #13021]
30326         * scripts/test-installation.pl: Don't expect libnss_test1 to be
30327         installed.
30328
30329         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
30330         typo.
30331         (_dl_x86_64_save_sse): Likewise.
30332
30333 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
30334
30335         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
30336         OSXSAVE.
30337         (_dl_x86_64_save_sse): Likewise.
30338
30339         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
30340
30341         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
30342
30343 2011-07-21  Andreas Schwab  <schwab@redhat.com>
30344
30345         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
30346         change.
30347         (_dl_x86_64_save_sse): Use correct AVX check.
30348
30349 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30350
30351         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
30352         bug in strncpy/strncat.
30353         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30354
30355 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
30356
30357         * string/tester.c (test_strcat): Add tests for different alignments
30358         of source and destination.
30359         (test_strncat): Likewise.
30360
30361 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
30362
30363         [BZ #12852]
30364         * posix/glob.c (glob): Check passed in values before using them in
30365         expressions to avoid some overflows.
30366         (glob_in_dir): Likewise.
30367
30368         [BZ #13007]
30369         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
30370         check for AVX enablement so that we don't crash with old kernels and
30371         new hardware.
30372         * elf/tst-audit4.c: Add same checks here.
30373         * elf/tst-audit6.c: Likewise.
30374
30375         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
30376
30377 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
30378
30379         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
30380
30381 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
30382
30383         * po/cs.po: Update from translation team.
30384         * po/bg.po: Likewise.
30385
30386 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
30387
30388         * misc/sys/cdefs.h: Add support for const attribute.
30389         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
30390         to gnu_dev_{major,minor,makedev} functions.
30391
30392 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
30393
30394         * intl/dcigettext.c (get_output_charset): Add missing bracket.
30395
30396 2011-07-20  Andreas Schwab  <schwab@redhat.com>
30397
30398         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
30399         strlen results.
30400
30401 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30402
30403         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
30404         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
30405         register in order to avoid conflicts with the soft frame pointer
30406         being held in r11 when necessary.
30407         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30408         (INTERNAL_VSYSCALL_NCS): Likewise.
30409
30410 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
30411
30412         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
30413         * elf/dl-fini.c (_dl_fini): Adjust caller.
30414         * elf/dl-close.c (_dl_close_worker): Likewise.
30415         * sysdeps/generic/ldsodefs.h: Adjust declaration.
30416
30417 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
30418
30419         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
30420         "aux_cache->nlibs < 0".
30421
30422         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
30423         in the reload-count case.
30424
30425 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30426
30427         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30428         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
30429         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
30430         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
30431         * sysdeps/x86_64/multiarch/strcat.S: New file.
30432         * sysdeps/x86_64/multiarch/strncat.S: New file.
30433         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
30434         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
30435         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
30436         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
30437         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
30438         (USE_AS_STRCAT): Define.
30439         Add strcat and strncat support.
30440         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30441         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30442         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
30443         * string/strncat.c: Update.
30444         (USE_AS_STRNCAT): Define.
30445         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30446         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
30447         and i7.
30448         * sysdeps/x86_64/multiarch/init-arch.h
30449         (bit_Prefer_PMINUB_for_stringop): New.
30450         (index_Prefer_PMINUB_for_stringop): Likewise.
30451         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
30452         bit_Prefer_PMINUB_for_stringop.
30453
30454 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
30455
30456         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
30457         buffer64.
30458         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
30459         of casting of buffer.
30460         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
30461         buffer32 and buffer64.
30462         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
30463         writes instead of casting of buffer.
30464         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
30465         buffer32.
30466         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
30467         casting of buffer.
30468
30469 2011-07-19  Andreas Schwab  <schwab@redhat.com>
30470
30471         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
30472
30473 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
30474
30475         * nscd/nscd.c (termination_handler): Don't do anything for a database
30476         if it has not yet been initialized.
30477
30478 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
30479
30480         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
30481
30482 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
30483
30484         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
30485
30486 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
30487
30488         * po/nl.po: Update from translation team.
30489         * po/sv.po: Likewise.
30490
30491 2011-07-16  Roland McGrath  <roland@hack.frob.com>
30492
30493         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
30494         now disallowed by GCC.
30495
30496         * configure.in (use-default-link): Default to yes if a test -shared
30497         link meets our qualifications.
30498         * configure: Regenerated.
30499
30500         * config.make.in (output-format): New variable.
30501         * configure.in: Check for ld --print-output-format support.
30502         * configure: Regenerated.
30503         * Makerules ($(common-objpfx)format.lds)
30504         [$(output-format) != unknown]: Just use $(output-format),
30505         instead of the linker-script munging.
30506
30507 2011-07-14  Roland McGrath  <roland@hack.frob.com>
30508
30509         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
30510         of $(common-objpfx)shlib.lds.
30511         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
30512
30513         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
30514         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
30515
30516         * configure.in (-z relro check): Adjust test code to add a large
30517         writable data section after it.
30518         * configure: Regenerated.
30519
30520 2011-07-11  Roland McGrath  <roland@hack.frob.com>
30521
30522         * configure.in (-z relro check): Fix test code to make the variable
30523         truly const.
30524         * configure: Regenerated.
30525
30526 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
30527
30528         * nscd/nscd.h (struct traced_file): Define.
30529         (struct database_dyn): Remove inotify_descr, reset_res, and filename
30530         elements.  Add traced_files.
30531         (inotify_fd): Declare.
30532         (register_traced_file): Declare.
30533         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
30534         (inotify_fd): Export.
30535         (resolv_conf_descr): Remove.
30536         (nscd_init): Move inotify descriptor creation to main.
30537         Don't register files for notification here.
30538         (register_traced_file): New function.
30539         (invalidate_cache): Don't use reset_res to determine whether to call
30540         res_init, go through the list of registered files.
30541         (main_loop_poll): The inotify descriptors are now stored in the
30542         structures for the traced files.
30543         (main_loop_epoll): Likewise
30544         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
30545         to __nss_disable_nscd.
30546         * nscd/cache.c (prune_cache): There is no single inotify descriptor
30547         for a database anymore.  Check the records for all the registered
30548         files instead.
30549         * nss/Makefile (libnss_files-routines): Add files-init.
30550         (libnss_db-routines): Add db-init.
30551         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
30552         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
30553         * nss/nss_db/db-init.c: New file.
30554         * nss/nss_files/files-init.c: New file.
30555         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
30556         __nss_lookup_function.
30557         (__nss_lookup_function): Call nss_load_library.
30558         (nss_load_all_libraries): New function.
30559         (__nss_disable_nscd): Take parameter with callback function for files
30560         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
30561         used for the cached services.
30562         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
30563         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
30564         options for features to all the files in nscd.
30565
30566         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
30567
30568 2011-07-10  Roland McGrath  <roland@hack.frob.com>
30569
30570         * csu/elf-init.c (__libc_csu_init): Comment typo.
30571
30572 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
30573
30574         * po/pl.po: Update from translation team.
30575         * po/ja.po: Likewise.
30576         * po/ru.po: Likewise.
30577         * po/ko.po: Likewise.
30578         * po/fr.po: Likewise.
30579
30580 2011-07-09  Roland McGrath  <roland@hack.frob.com>
30581
30582         * configure.in (.ctors/.dtors header and trailer check):
30583         Use an empirical test on a built program.
30584         * configure: Regenerated.
30585
30586         * configure.in (-z relro check): Use an empirical test on a built DSO.
30587         Detect, but do not require, on ia64.
30588         * configure: Regenerated.
30589
30590         * configure.in (READELF): Find it with AC_CHECK_TOOL.
30591         Update tests that use readelf to use $READELF instead.
30592         * configure: Regenerated.
30593
30594 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
30595
30596         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
30597         if the result is not used.
30598
30599 2011-07-05  Andreas Jaeger  <aj@suse.de>
30600
30601         [BZ#9696]
30602         * stdlib/tst-strtod.c: Add testcase.
30603
30604 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
30605
30606         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
30607         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
30608         The latter has a higher limit.  Take additional parameter to pass to
30609         the new function.
30610         (__pathconf): Pass file to __statfs_link_max.
30611         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
30612         __statfs_link_max.
30613         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
30614         __statfs_link_max.
30615
30616         [BZ #12868]
30617         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
30618         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
30619         Handle Lustre.
30620         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
30621         (__statfs_filesize_max): Likewise.
30622         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
30623
30624 2011-07-05  Andreas Jaeger  <aj@suse.de>
30625
30626         * resolv/res_comp.c (dn_skipname): Remove unused variable.
30627
30628 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
30629
30630         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
30631         `status' variable.
30632         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
30633         Likewise.
30634
30635 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
30636
30637         * Makefile (strop-tests): Add strncat.
30638         * string/test-strncat.c: New file.
30639
30640 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
30641
30642         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
30643
30644 2011-06-21  Andreas Jaeger  <aj@suse.de>
30645
30646         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
30647         Copy rule from iconvdata/Makefile.
30648
30649 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
30650
30651         [BZ #12922]
30652         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
30653         but no long options are defined, just return 'W'.
30654
30655 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
30656
30657         [BZ #9696]
30658         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
30659
30660 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
30661
30662         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
30663         netgroups to read.
30664         (innetgr): Likewise.
30665
30666 2011-07-05  Roland McGrath  <roland@hack.frob.com>
30667
30668         * config.make.in (install_root): Default to $(DESTDIR).
30669
30670 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
30671
30672         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
30673
30674 2011-07-02  Roland McGrath  <roland@hack.frob.com>
30675
30676         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
30677
30678         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
30679         containing directory rather than embedding absolute directory names.
30680
30681         * scripts/check-local-headers.sh: Rewritten using awk.
30682         Match by word, not by line.  Print error messages for matches.
30683         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
30684
30685         * Makerules [shlib-lds-flags empty]:
30686         ($(common-objpfx)libc_pic.opts): New target.
30687         ($(common-objpfx)libc_pic.os.clean): New target.
30688         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
30689
30690         * config.make.in (OBJCOPY): New variable.
30691         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
30692         * configure: Regenerated.
30693
30694         * config.make.in (use-default-link): New variable.
30695         * configure.in (use_default_link): Grok --with-default-link to set it.
30696         * configure: Regenerated.
30697         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
30698         (shlib-lds, shlib-lds-flags): Define to empty.
30699
30700         * Makerules (shlib-lds): New variable.
30701         (shlib-lds-flags): New variable.
30702         (build-shlib, build-moduile, build-module-asneeded): Use it.
30703         ($(common-objpfx)libc.so): Use $(shlib-lds).
30704         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
30705         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
30706
30707         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
30708         DT_FLAGS/DT_FLAGS_1 with zero flags.
30709
30710         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
30711         linker script munging.
30712
30713 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
30714
30715         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
30716         as 128-bit value.
30717         * crypt/sha512.c (sha512_process_block): Perform total addition using
30718         128-bit if possible.
30719         (__sha512_finish_ctx): Likewise.
30720         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
30721         as 64-bit value.
30722         * crypt/sha256.c (SWAP64): Define.
30723         (sha256_process_block): Perform total addition using 64-bit if
30724         possible.
30725         (__sha256_finish_ctx): Likewise.
30726
30727 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
30728
30729         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
30730         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30731         * nscd/hstcache.c (cache_addhst): Likewise.
30732         * nscd/grpcache.c (cache_addgr): Likewise.
30733         * nscd/aicache.c (addhstaiX): Likewise
30734         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
30735
30736 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
30737
30738         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
30739         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30740         * nscd/hstcache.c (cache_addhst): Likewise.
30741         * nscd/grpcache.c (cache_addgr): Likewise.
30742         * nscd/aicache.c (addhstaiX): Likewise
30743
30744 2011-07-01  Andreas Schwab  <schwab@redhat.com>
30745
30746         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
30747         domain only when needed.
30748
30749 2011-06-30  Andreas Schwab  <schwab@redhat.com>
30750
30751         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
30752         is always restored.
30753
30754 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
30755
30756         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
30757         are re-adding the entry.
30758         * nscd/servicescache.c (cache_addserv): Likewise.
30759
30760 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
30761
30762         * sysdeps/generic/dl-irel.h: fix protection against multiple
30763         inclusions.
30764         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
30765
30766 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
30767
30768         [BZ #12935]
30769         * malloc/memusage.sh: Fix quoting in message.
30770         * debug/xtrace.sh: Likewise.
30771
30772         * configure.in: Remove support for --experimental-malloc option, make
30773         it the default.
30774         * config.make.in: Likewise.
30775         * malloc/Makefile: Likewise.
30776
30777 2011-06-27  Andreas Schwab  <schwab@redhat.com>
30778
30779         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
30780         two-byte characters.
30781
30782 2011-06-27  Roland McGrath  <roland@hack.frob.com>
30783
30784         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
30785         AC_CACHE_CHECK invocation.
30786         * configure: Regenerated.
30787
30788         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
30789
30790 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
30791
30792         [BZ #12350]
30793         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
30794         bit from old_res_options.
30795
30796         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
30797
30798         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
30799         value type for setfct.
30800
30801 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
30802
30803         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
30804         __gettimeofday instead of gettimeofday.
30805
30806 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
30807
30808         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
30809
30810 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
30811
30812         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
30813
30814         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
30815         info.
30816
30817 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
30818
30819         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30820         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
30821         strcpy-sse2-unaligned strncpy-sse2-unaligned
30822         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
30823         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
30824         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
30825         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
30826         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
30827         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
30828         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
30829         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
30830         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
30831         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
30832         (STRCPY): Support SSE2 and SSSE3 versions.
30833
30834 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
30835
30836         [BZ #12874]
30837         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
30838         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
30839         kernels which artificially limit size of requests.
30840
30841 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
30842
30843         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30844         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
30845         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
30846         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
30847         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
30848         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
30849         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
30850         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
30851         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
30852         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
30853         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
30854         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
30855         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
30856         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
30857         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
30858         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30859         Enable unaligned load optimization for Intel Core i3, i5 and i7
30860         processors.
30861         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
30862         Define.
30863         (index_Fast_Unaligned_Load): Define.
30864         (HAS_FAST_UNALIGNED_LOAD): Define.
30865
30866 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
30867
30868         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
30869
30870 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
30871
30872         [BZ #12907]
30873         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
30874         until it is clear that the information is realy needed.
30875         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
30876
30877 2011-06-22  Andreas Schwab  <schwab@redhat.com>
30878
30879         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
30880
30881 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
30882
30883         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
30884         /sys/devices/system/cpu/online if it is usable.
30885
30886         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
30887         reading the information from the /proc filesystem to once a second.
30888
30889 2011-06-21  Andreas Jaeger  <aj@suse.de>
30890
30891         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
30892         NULL after inclusion of kernel headers.
30893
30894 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
30895
30896         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
30897         calls to internal_setent.
30898
30899         [BZ #12885]
30900         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
30901         addresses using gethostbyname4_r ignore IPv4 addresses.
30902
30903         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
30904         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
30905
30906         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
30907
30908 2011-06-20  David S. Miller  <davem@davemloft.net>
30909
30910         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
30911         inclusions.
30912         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
30913
30914         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
30915         (elf_irel): Use it.
30916         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
30917         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
30918         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
30919         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
30920         * sysdeps/x86_64/dl-irel.h: Likewise.
30921
30922         * elf/dl-runtime.c: Use elf_ifunc_invoke.
30923         * elf/dl-sym.c: Likewise.
30924
30925 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
30926
30927         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
30928         need to dereference resplen2.
30929
30930 2011-06-14  Andreas Schwab  <schwab@redhat.com>
30931
30932         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
30933
30934 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
30935
30936         * Makeconfig: Define vardbdir and inst_vardbdir.
30937         * nss/Makefile: Add rules to install db-Makefile.
30938
30939         * nss/nss_db/db-XXX.c: Cleanup.
30940
30941         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
30942         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
30943         GLIBC_PRIVATE.
30944         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
30945         * nss/makedb.c: Implement -g option to specify that value strings
30946         are generated and should not be added to table iterated over for
30947         get*ent calls.
30948         * nss/nss_db/db-initgroups.c: New file.
30949
30950         * nss/getent.c: Add support for initgroups lookups through getgrouplist
30951         interface.
30952
30953         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
30954         (internal_getgrouplist): Adjust to name change.
30955         Update use_initgroups_entry if this is not the first call.
30956         * nss/databases.def: Add initgroups entry.
30957
30958         * nss/makedb.c (compute_tables): Check result of multiple hash table
30959         sizes to minimize maximum chain length.
30960
30961 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
30962
30963         * Versions.def: Add entry for libnss_db.
30964         * shlib-versions: Likewise.
30965         * nss/Makefile: Add rules to build libnss_db.
30966         * nss/Versions: Add libnss_db information.  Organize libnss_files
30967         entries better.
30968         * nss/db-Makefile: Add gshadow support.  Change rules for the new
30969         makedb progra.  Some minor improvements to generate smaller files.
30970         * nss/nss_db/nss_db.h: Move NSS database header data structures to
30971         here from...
30972         * nss/makedb.c: ...here.
30973         Improve database format to be smaller and require less memory at
30974         runtime.
30975         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
30976         db anymore.
30977         * nss/nss_db/db-netgrp.c: Likewise.
30978         * nss/nss_db/db-open.c: Likewise.
30979         * nss/nss_files/flies-XXX.x: Adjust comments.
30980         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
30981         * nss/nss_files/files-grp.c: Likewise.
30982         * nss/nss_files/files-hosts.c: Likewise.
30983         * nss/nss_files/files-network.c: Likewise.
30984         * nss/nss_files/files-proto.c: Likewise.
30985         * nss/nss_files/files-pwd.c: Likewise.
30986         * nss/nss_files/files-rpc.c: Likewise.
30987         * nss/nss_files/files-service.c: Likewise.
30988         * nss/nss_files/files-sgrp.c: Likewise.
30989         * nss/nss_files/files-spwd.c: Likewise.
30990         * nss/nss_db/db-alias.c: Removed.
30991         * nss/nss_db/dummy-db.h: Removed.
30992
30993 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
30994
30995         * nss/makedb.c: Rewritten to not use database library.
30996         * nss/Makefile: Update to build new makedb program.
30997
30998 2011-06-14  Andreas Jaeger  <aj@suse.de>
30999
31000         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
31001         memset declaration.
31002
31003 2011-06-10  Andreas Schwab  <schwab@redhat.com>
31004
31005         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
31006         tmpbuf.
31007
31008 2011-06-10  Roland McGrath  <roland@hack.frob.com>
31009
31010         * Makerules (shlib.lds): Fail if the linker script comes out empty.
31011         * elf/Makefile ($(objpfx)ld.so): Likewise.
31012
31013         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
31014         Don't list ld.so twice in dependencies.
31015
31016         * posix/bug-regex31.c: Include <stdlib.h>.
31017
31018         * nscd/hstcache.c (cache_addhst): Remove unused variable.
31019
31020         * nis/nss_compat/compat-spwd.c
31021         (getspent_next_nss_netgr): Remove unused variable.
31022         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
31023
31024         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
31025         nonmembers" output to use the right array.
31026
31027         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
31028
31029         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
31030
31031         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
31032         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
31033         * catgets/gencat.c (read_input_file): Likewise.
31034         * locale/programs/locarchive.c (enlarge_archive): Likewise.
31035
31036         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
31037         variable definition inside #if's controlling its use.
31038
31039         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
31040
31041         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
31042
31043         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
31044
31045         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
31046         unreachable code.
31047
31048         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
31049
31050         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
31051         * configure: Regenerated.
31052
31053         * Makerules: Revert last change.
31054         * elf/Makefile: Likewise.
31055
31056 2011-06-09  Roland McGrath  <roland@hack.frob.com>
31057
31058         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
31059         * elf/Makefile ($(objpfx)librtld.os): Likewise.
31060         (reloc-link): Likewise.
31061
31062 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
31063
31064         * elf/Makefile: Add rules to build pldd.
31065         * elf/pldd.c: New file.
31066         * elf/pldd-xx.c: New file.
31067
31068 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
31069
31070         * version.h: Update for 2.15 development version.
31071
31072 2011-06-07  David S. Miller  <davem@davemloft.net>
31073
31074         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
31075         ifuncs.
31076         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
31077         elf_machine_lazy_rel): Likewise.
31078         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
31079         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
31080         elf_machine_lazy_rel): Likewise.
31081         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
31082         dl_hwcap via passed in argument.
31083         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
31084         Likewise.
31085
31086 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31087
31088         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
31089
31090 2011-06-06  Roland McGrath  <roland@hack.frob.com>
31091
31092         [BZ #12849]
31093         * manual/fdl-1.1.texi: New file, verbatim from:
31094         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
31095         * manual/lgpl-2.1.texi: New file, verbatim from:
31096         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
31097         * manual/Makefile (licenses): New variable, list those new file names.
31098         (texis): Use it.
31099         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
31100
31101         * manual/fdl.texi: File removed.
31102         * manual/lesser.texi: File removed.
31103         * manual/libc.texinfo (Copying, Documentation License):
31104         Use new @include file names, put @appendix directive before @include.
31105
31106 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
31107
31108         [BZ #12841]
31109         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
31110         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
31111         (mq_open): Add __NTH.
31112
31113 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
31114
31115         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31116         Assume Intel Core i3/i5/i7 processor if AVX is available.
31117
31118 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31119
31120         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
31121         typo.
31122
31123 2011-05-31  Andreas Schwab  <schwab@redhat.com>
31124
31125         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
31126         memory.  Use alloca_account.  Fix memory leak when retrying.
31127
31128 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31129
31130         * version.h (RELEASE): Bump for 2.14 release.
31131         * include/features.h (__GLIBC_MINOR__): Bump to 14.
31132
31133         * config.make.in (RANLIB): Remove entry.
31134
31135 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
31136
31137         * po/Makefile (po-sed-cmd): Add ksh to extensions.
31138         (libc.pot): Work around missing support for .ksh extension in xgettext.
31139
31140         [BZ #12684]
31141         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
31142         if both request failed.
31143         (send_dg): In case of server errors clear resplen or *resplen2.
31144
31145         [BZ #12454]
31146         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
31147         when there are multiple maps.
31148         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
31149         (_dl_fini): Remove test here.
31150
31151         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
31152
31153 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
31154
31155         [BZ #12350]
31156         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
31157         bit from old_res_options.
31158         (gaih_inet): Likewise.
31159
31160         [BZ #11099]
31161         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
31162         as signed.
31163
31164         * resolv/res_init.c (res_setoptions): Make the code more compact.
31165
31166         [BZ #11558]
31167         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
31168         set RES_USEVC.
31169
31170         [BZ #11634]
31171         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
31172
31173         * malloc/malloc.h: Mark malloc hook variables as deprecated.
31174
31175         [BZ #11781]
31176         * malloc/malloc.h: Declare malloc hook variables as volatile.
31177
31178         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
31179         in last patch.
31180
31181         [BZ #11799]
31182         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
31183         raise in the comment.
31184         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
31185         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
31186         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
31187
31188 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
31189
31190         [BZ #12811]
31191         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
31192         grow the buffers more if it already has to be sufficient.
31193         (build_wcs_upper_buffer): Likewise.
31194         * posix/regexec.c (check_matching): Likewise.
31195         (clean_state_log_if_needed): Likewise.
31196         (extend_buffers): Don't enlarge buffers beyond size of the input
31197         buffer.
31198         Patches mostly by Emil Wojak <emil@wojak.eu>.
31199         * posix/bug-regex32.c: New file.
31200         * posix/Makefile (tests): Add bug-regex32.
31201
31202         * locale/findlocale.c (_nl_find_locale): Return right away if
31203         _nl_explode_name failed.
31204         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
31205
31206         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
31207
31208         * debug/xtrace.sh: Unify messages.
31209         * malloc/memusage.sh: Likewise.
31210
31211         [BZ #12813]
31212         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
31213         time symbol from vDSO.  Substitute with vsyscall if not available.
31214         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
31215         __vdso_time.
31216
31217         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
31218         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
31219         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
31220         Add sendmmsg and internal_sendmmsg.
31221         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
31222         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
31223         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
31224
31225         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
31226         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
31227         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
31228
31229 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
31230
31231         [BZ #12813]
31232         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
31233         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
31234         available.
31235         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
31236         __vdso_getcpu.
31237
31238         [BZ #12814]
31239         * iconvdata/Makefile (tests): Add bug-iconv9.
31240         * iconvdata/bug-iconv9.c: New file.
31241
31242 2011-05-27  Andreas Schwab  <schwab@redhat.com>
31243
31244         [BZ #12814]
31245         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
31246
31247 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
31248
31249         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31250         (struct user_regs_struct): Change intcs field back to cs.
31251
31252 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
31253
31254         * po/ja.po: Update from translation team.
31255
31256 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
31257
31258         [BZ #12795]
31259         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
31260         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
31261
31262 2011-05-20  Andreas Schwab  <schwab@redhat.com>
31263
31264         * stdlib/longlong.h: Update from GCC.
31265
31266 2011-05-23  Andreas Schwab  <schwab@redhat.com>
31267
31268         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
31269         parameter name.
31270         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
31271         Add parameter name.
31272         (__sysconf): Pass it down.
31273
31274 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
31275
31276         [BZ #12671]
31277         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
31278         some situations.
31279         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31280         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
31281         add in in __libc_use_alloca calls.  Adjust callers.
31282         (glob): Use malloc in some situations.
31283
31284         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
31285         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
31286         pltexit.
31287
31288 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
31289
31290         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
31291         and CLOCK_BOOTTIME_ALARM.
31292
31293         [BZ #12782]
31294         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
31295         is returned.
31296
31297         * string/_strerror.c (__strerror_r): Print negative errors as signed
31298         numbers.
31299
31300         [BZ #12777]
31301         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
31302         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
31303         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
31304
31305         * configure.in: Fix typo in redirection and correct removal of test
31306         files in two cases.
31307
31308         [BZ #12788]
31309         * locale/setlocale.c (new_composite_name): Fix test to check for
31310         identical name of all categories.
31311
31312         [BZ #12792]
31313         * libio/filedoalloc.c (local_isatty): New function.
31314         (_IO_file_doallocate): Use local_isatty.
31315         * stdio-common/perror.c (perror): In case a new stream is used
31316         forward the stream error.
31317         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
31318         error flag.
31319
31320 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
31321
31322         [BZ #11869]
31323         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
31324         alloca.
31325         * include/alloca.h (extend_alloca_account): Define.
31326
31327         [BZ #11857]
31328         * posix/regex.h: Fix comments with documentation of user-accessible
31329         fields after compilation and describe correct free'ing of pattern
31330         after re_compile_pattern.
31331         Patch by Reuben Thomas <rrt@sc3d.org>.
31332
31333 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
31334
31335         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
31336         and -mno-altivec to prevent the compiler from using Altivec and/or
31337         VSX instructions when the corresponding registers are not available.
31338
31339 2011-05-19  Andreas Schwab  <schwab@redhat.com>
31340
31341         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
31342
31343 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
31344
31345         * libio/freopen.c (freopen): Use __dup2, not dup2.
31346         * libio/freopen64.c (freopen64): Likewise.
31347
31348 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31349
31350         [BZ #12775]
31351         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
31352         * math/Makefile (tests): Add test-powl.
31353         (CFLAGS-test-powl.c): Define.
31354         * math/test-powl.c: New file.
31355
31356 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31357
31358         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
31359
31360 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
31361
31362         [BZ #11837]
31363         * iconvdata/gb18030.c: Update to GB18020-2005.
31364
31365 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
31366
31367         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
31368         RE_SYNTAX_POSIX_AWK): Update to match recent development.
31369         Patch by Aharon Robbins <arnold@skeeve.com>.
31370
31371         [BZ #11892]
31372         * stdlib/putenv.c (putenv): Don't always create copy of the variable
31373         on the stack.
31374
31375         [BZ #11895]
31376         * misc/pselect.c (__pselect): Handle timeout value errors hidden
31377         through underflows.
31378
31379         [BZ #12766]
31380         * misc/error.c (error_at_line): Ensure file_name and old_file_name
31381         point to strings before performing equality test for error_one_per_line
31382         mode.
31383
31384         [BZ #11697]
31385         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
31386
31387         [BZ #11820]
31388         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
31389         (struct user_fpregs_struct): Avoid __uint*_t types.
31390
31391         [BZ #6420]
31392         * malloc/mtrace.c (tr_where): Add additional parameter to point to
31393         symbol info.  Use it instead of calling _dl_addr locally.
31394         (lock_and_info): New function.
31395         (tr_freehook): Call lock_and_info and pass symbol info as additional
31396         parameter to tr_where.
31397         (tr_mallochook): Likewise.
31398         (tr_reallochook): Likewise.
31399         (tr_memalignhook): Likewise.
31400
31401         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
31402         used and couldn't be at all thread-safe.
31403
31404 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
31405
31406         * libio/freopen.c (freopen): Don't close old file descriptor
31407         before the new one is opened.  Instead dup the new file descriptor
31408         to the old one after the new stream is created.
31409         * libio/freopen64.c (freopen64): Likewise.
31410         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
31411         * libio/fileops.c (_IO_new_file_close_it): Handle new
31412         _IO_FLAGS2_NOCLOSE flag.
31413         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
31414         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
31415         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
31416         _IO_FLAGS2_NOCLOSE flag.
31417         * include/unistd.h: Add hidden_proto for dup3.
31418         Define __have_dup3.
31419         * io/dup3.c: Define hidden symbol.
31420         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
31421
31422         [BZ #7101]
31423         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
31424         when an incomplete long option is used.
31425         * posix/tst-getopt_long1.c: New file.
31426         * posix/Makefile (tests): Add tst-getopt_long1.
31427
31428         [BZ #10138]
31429         * scripts/config.guess: Update from autoconf-2.68.
31430         * scripts/config.sub: Likewise.
31431
31432         [BZ #10157]
31433         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
31434         tests into ...
31435         (has_cpuclock): ...this.  New function.
31436         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
31437         macro here based on has_cpuclock code.
31438
31439         [BZ #10149]
31440         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
31441         First byte (not low byte) is now always NUL.
31442         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
31443
31444         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
31445         Use non-cancelable interfaces.
31446
31447         [BZ #9809]
31448         * locale/iso-639.def: Add entry for Sorani.
31449
31450         [BZ #11901]
31451         * include/stdlib.h: Move include protection to the right place.
31452         Define abort_msg_s.  Declare __abort_msg with it.
31453         * stdlib/abort.c (__abort_msg): Adjust type.
31454         * assert/assert.c (__assert_fail_base): New function.  Majority
31455         of code from __assert_fail.  Allocate memory for __abort_msg with
31456         mmap.
31457         (__assert_fail): Now call __assert_fail_base.
31458         * assert/assert-perr.c: Remove bulk of implementation.  Use
31459         __assert_fail_base.
31460         * include/assert.hL Declare __assert_fail_base.
31461         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
31462         mmap.
31463         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
31464
31465 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
31466
31467         [BZ #11952]
31468         [BZ #12453]
31469         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
31470         until all modules are registered in the DTV.
31471         * elf/Makefile: Add rules to build and run tst-tls19.
31472         * elf/tst-tls19.c: New file.
31473         * elf/tst-tls19mod1.c: New file.
31474         * elf/tst-tls19mod2.c: New file.
31475         * elf/tst-tls19mod3.c: New file.
31476         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
31477
31478         [BZ #12083]
31479         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
31480         correctly.
31481
31482         [BZ #12601]
31483         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
31484         two-byte sequence errors.
31485         * iconvdata/Makefile (tests): Add bug-iconv8.
31486         * iconvdata/bug-iconv8.c: New file.
31487
31488         [BZ #12626]
31489         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
31490         buf2 definition.
31491
31492         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
31493
31494         [BZ #12432]
31495         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
31496         (dummy_getcfa): New function.
31497         (init): Get _Unwind_GetCFA address, use dummy if not found.
31498         (backtrace_helper): In recursion check, also check whether CFA changes.
31499         (__backtrace): Completely initialize arg.
31500
31501         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
31502         storing incomplete byte sequence in state object.  Avoid testing for
31503         guaranteed too small input if we know there is enough data available.
31504
31505 2011-05-11  Andreas Schwab  <schwab@redhat.com>
31506
31507         * Makeconfig (+link-pie): Indent.
31508         * Rules (binaries-pie): Define if $(have-fpie) and
31509         $(build-shared).
31510         (binaries-shared): Also filter out $(binaries-pie).
31511         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
31512         * nscd/Makefile (others-pie): Add nscd.
31513         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
31514         ($(objpfx)nscd): Remove command override.
31515         * login/Makefile (others-pie): Add pt_chown.
31516         ($(objpfx)pt_chown): Remove command override.
31517         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
31518         remove command overrides.
31519
31520 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
31521
31522         * libio/tst_putwc.c: Fix error messages.
31523
31524         [BZ #12724]
31525         * libio/fileops.c (_IO_new_file_close_it): Always flush when
31526         currently writing and seek to current position when not.
31527         * libio/Makefile (tests): Add bug-fclose1.
31528         * libio/bug-fclose1.c: New file.
31529
31530 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
31531
31532         [BZ #12511]
31533         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
31534         don't set DF_1_NODELETE here.
31535         (do_lookup_x): When entering new entry test for copy relocation
31536         and if necessary set DF_1_NODELETE flag.
31537         * elf/tst-unique4.cc: New file.
31538         * elf/tst-unique4.h: New file.
31539         * elf/tst-unique4lib.cc: New file.
31540         * elf/Makefile: Add rules to build and run tst-unique4.
31541         Patch by Piotr Bury <pbury@goahead.com>.
31542
31543 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
31544
31545         [BZ #12052]
31546         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
31547
31548         [BZ #12625]
31549         * misc/mntent_r.c (addmntent): Flush the stream after the output
31550
31551         [BZ #12393]
31552         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
31553         (is_trusted_path_normalize): Skip initial colon.  Append slash
31554         to empty buffer.  Duplicate is_trusted_path code but allow
31555         constructed patch to be prefix.
31556         (is_dst): Allow $ORIGIN followed by /.
31557         (_dl_dst_substitute): Correct clearing of check_for_trusted.
31558         Correct testing of result of is_trusted_path_normalize
31559         (decompose_rpath): Fix warning.
31560
31561 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
31562
31563         [BZ #11257]
31564         * grp/initgroups.c (internal_getgrouplist): When we found the service
31565         list through the initgroups entry in nsswitch.conf do not always
31566         continue on a successful lookup.  Don't always use the
31567         __nss_group_database value if it is set.
31568         * nss/nsswitch.conf (initgroups): Change action for successful db
31569         lookup to continue for compatibility.
31570
31571 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
31572
31573         [BZ #11532]
31574         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
31575         and CP774 modules.
31576         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
31577         and CP774 modules.
31578         * iconvdata/tst-tables.sh: Likewise.
31579         * iconvdata/cp770.c: New file.
31580         * iconvdata/cp771.c: New file.
31581         * iconvdata/cp772.c: New file.
31582         * iconvdata/cp773.c: New file.
31583         * iconvdata/cp774.c: New file.
31584         * iconvdata/testdata/CP770: New file.
31585         * iconvdata/testdata/CP770..UTF8: New file.
31586         * iconvdata/testdata/CP771: New file.
31587         * iconvdata/testdata/CP771..UTF8: New file.
31588         * iconvdata/testdata/CP772: New file.
31589         * iconvdata/testdata/CP772..UTF8: New file.
31590         * iconvdata/testdata/CP773: New file.
31591         * iconvdata/testdata/CP773..UTF8: New file.
31592         * iconvdata/testdata/CP774: New file.
31593         * iconvdata/testdata/CP774..UTF8: New file.
31594
31595         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
31596         END CHARMAP line.
31597         * iconvdata/gen-8bit-gap.sh: Likewise.
31598         * iconvdata/gen-8bit.sh: Likewise.
31599
31600         * locale/iso-639.def: Add ary entry.
31601
31602         [BZ #11258]
31603         * locale/C-translit.h.in: Add U20A1 transliteration.
31604
31605         [BZ #12178]
31606         * locale/iso-639.def: Add wae entry.
31607         Patch by Kevin Bortis <bortis@translate-wae.ch>.
31608
31609         [BZ #12545]
31610         * locale/programs/localedef.c (construct_output_path): Use ssize_t
31611         for n.
31612
31613         [BZ #12711]
31614         * locale/C-translit.h.in: Add entry for U20B9.
31615         Patch by pravin.d.s@gmail.com.
31616
31617 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
31618
31619         [BZ #12713]
31620         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
31621         ENAMETOOLONG use generic getcwd.
31622         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
31623         in rtld.  Use *stat64.
31624         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
31625         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
31626         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
31627         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
31628         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
31629         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
31630         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
31631         __fstatat64 macros.
31632         * include/dirent.h: Add libc_hidden_proto for rewinddir.
31633         * dirent/rewinddir.c: Add libc_hidden_def.
31634         * sysdeps/mach/hurd/rewinddir.c: Likewise.
31635         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
31636
31637         * include/dirent.h (__alloc_dir): Add flags parameter.
31638         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
31639         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
31640         __alloc_dir.
31641         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
31642         from fdopendir if O_CLOEXEC is already set.
31643
31644 2011-03-15  Alan Modra  <amodra@gmail.com>
31645
31646         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
31647         l_tls_firstbyte_offset non-zero.  Save padding offset in
31648         l_tls_firstbyte_offset for later use.
31649         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
31650         freeing static tls block.
31651
31652 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
31653
31654         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
31655         where #ifdef was intended.  The intent is to prevent ARG_MAX from
31656         being defined by the kernel headers.
31657
31658 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
31659
31660         [BZ #12734]
31661         * resolv/resolv.h: Define RES_NOTLDQUERY.
31662         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
31663         no-tld-query and set RES_NOTLDQUERY.
31664         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
31665         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
31666         modern BIND to search name as TLD unless forbidden.
31667
31668 2011-05-07  Petr Baudis  <pasky@suse.cz>
31669             Ulrich Drepper  <drepper@gmail.com>
31670
31671         [BZ #12393]
31672         * elf/dl-load.c (fillin_rpath): Move trusted path check...
31673         (is_trusted_path): ...to here.
31674         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
31675         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
31676         using is_trusted_path_normalize() in setuid scripts.
31677
31678 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
31679
31680         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
31681         __BEGIN/__END_DECLS.
31682
31683 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
31684
31685         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
31686         NSS_STATUS_NOTFOUND if no record was found.
31687
31688 2011-05-05  Andreas Schwab  <schwab@redhat.com>
31689
31690         * sunrpc/Makefile (headers): Add rpc/netdb.h.
31691         (headers-not-in-tirpc): Remove rpc/netdb.h
31692         * resolv/netdb.h: Revert last change.
31693
31694 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
31695
31696         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
31697         circular dependency between libgcc.a and libc.a.
31698
31699 2011-05-05  Andreas Schwab  <schwab@redhat.com>
31700
31701         * resolv/netdb.h: Don't include <rpc/netdb.h>.
31702         * nis/Makefile: Don't install rpcsvc/*.
31703         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
31704         instead of <rpc/types.h>.
31705         (MAXHOSTNAMELEN): Define.
31706
31707 2011-05-03  Andreas Schwab  <schwab@redhat.com>
31708
31709         * elf/ldconfig.c (add_dir): Don't crash on empty path.
31710
31711 2011-04-28  Maciej Babinski  <mbabinski@google.com>
31712
31713         [BZ #12714]
31714         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
31715         gethostbyname4_r when IPv6 results are possible.
31716
31717 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
31718
31719         [BZ #12723]
31720         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
31721         _PC_PIPE_BUF handling.
31722
31723 2011-04-30  Bruno Haible  <bruno@clisp.org>
31724
31725         [BZ #12717]
31726         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
31727         * resolv/netdb.h (getnameinfo): Change type of flags parameter
31728         to 'int'.
31729         * inet/getnameinfo.c (getnameinfo): Likewise.
31730
31731 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
31732
31733         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
31734         to groups setting in database lookup.
31735         * nss/nsswitch.conf: Add initgroups entry.
31736
31737 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
31738
31739         [BZ #12685]
31740         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
31741         mode string.
31742         Patch by Eric Blake <eblake@redhat.com>.
31743
31744 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
31745
31746         * sunrpc/Makefile (need-export-routines): Add svc_run.
31747         (routines): Remove svc_run.
31748         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
31749         * sunrpc/clnt_perr.c (clnt_perrno): Export.
31750         * sunrpc/svc_run.c (svc_run): Likewise.
31751         * sunrpc/svc_udp.c (svcudp_create): Likewise.
31752
31753 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
31754
31755         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
31756         problem in reallocation in last patch.
31757
31758 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
31759
31760         * sunrpc/Makefile: Move inclusion of Rules.
31761
31762 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
31763
31764         * nss/nss_files/files-initgroups.c: New file.
31765         * nss/Makefile (libnss_files-routines): Add files-initgroups.
31766         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
31767         _nss_files_initgroups_dyn.
31768
31769 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
31770
31771         * elf/elf.h (R_ARM_IRELATIVE): Define.
31772
31773 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
31774
31775         * po/ru.po: Update from translation team.
31776
31777 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
31778
31779         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
31780         dependencies.
31781
31782 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
31783
31784         [BZ #12653]
31785         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
31786         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
31787         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
31788         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31789         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
31790
31791 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
31792
31793         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
31794         differing bytes.
31795         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
31796         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
31797         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
31798
31799 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
31800
31801         [BZ #12420]
31802         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
31803         storing it.
31804         * stdlib/bug-getcontext.c: New file.
31805         * stdlib/Makefile: Add rules to build and run bug-getcontext.
31806
31807 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31808
31809         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
31810         instructions into .machine "z9-109".
31811         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
31812         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
31813
31814 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31815
31816         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
31817         between environment variables and auxiliary vector.
31818
31819 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
31820
31821         * Makefile: Add rules to build linkobj/libc.so.
31822         * include/libc-symbols.h: Define libc_hidden_nolink.
31823         * include/rpc/auth.h: Mark functions which are to be hidden.
31824         * include/rpc/auth_des.h: Likewise.
31825         * include/rpc/auth_unix.h: Likewise.
31826         * include/rpc/clnt.h: Likewise.
31827         * include/rpc/des_crypt.h: Likewise.
31828         * include/rpc/key_prot.h: Likewise.
31829         * include/rpc/pmap_clnt.h: Likewise.
31830         * include/rpc/pmap_prot.h: Likewise.
31831         * include/rpc/pmap_rmt.h: Likewise.
31832         * include/rpc/rpc_msg.h: Likewise.
31833         * include/rpc/svc.h: Likewise.
31834         * include/rpc/svc_auth.h: Likewise.
31835         * include/rpc/xdr.h: Likewise.
31836         * nis/Makefile: Link all DSOs against linkobj/libc.so.
31837         * nss/Makefile: Likewise.
31838         * sunrpc/Makefile: Don't install headers.  Build library with normal
31839         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
31840         * sunrpc/auth_des.c: Hide exported symbols by default, export some
31841         for the compat linking library.  Remove use of INTDEF/INTUSE.
31842         * sunrpc/auth_none.c: Likewise.
31843         * sunrpc/auth_unix.c: Likewise.
31844         * sunrpc/authdes_prot.c: Likewise.
31845         * sunrpc/authuxprot.c: Likewise.
31846         * sunrpc/clnt_gen.c: Likewise.
31847         * sunrpc/clnt_perr.c: Likewise.
31848         * sunrpc/clnt_raw.c: Likewise.
31849         * sunrpc/clnt_simp.c: Likewise.
31850         * sunrpc/clnt_tcp.c: Likewise.
31851         * sunrpc/clnt_udp.c: Likewise.
31852         * sunrpc/clnt_unix.c: Likewise.
31853         * sunrpc/des_crypt.c: Likewise.
31854         * sunrpc/des_soft.c: Likewise.
31855         * sunrpc/get_myaddr.c: Likewise.
31856         * sunrpc/key_call.c: Likewise.
31857         * sunrpc/key_prot.c: Likewise.
31858         * sunrpc/netname.c: Likewise.
31859         * sunrpc/pm_getmaps.c: Likewise.
31860         * sunrpc/pm_getport.c: Likewise.
31861         * sunrpc/pmap_clnt.c: Likewise.
31862         * sunrpc/pmap_prot.c: Likewise.
31863         * sunrpc/pmap_prot2.c: Likewise.
31864         * sunrpc/pmap_rmt.c: Likewise.
31865         * sunrpc/publickey.c: Likewise.
31866         * sunrpc/rpc_cmsg.c: Likewise.
31867         * sunrpc/rpc_common.c: Likewise.
31868         * sunrpc/rpc_dtable.c: Likewise.
31869         * sunrpc/rpc_prot.c: Likewise.
31870         * sunrpc/rpc_thread.c: Likewise.
31871         * sunrpc/rtime.c: Likewise.
31872         * sunrpc/svc.c: Likewise.
31873         * sunrpc/svc_auth.c: Likewise.
31874         * sunrpc/svc_authux.c: Likewise.
31875         * sunrpc/svc_raw.c: Likewise.
31876         * sunrpc/svc_run.c: Likewise.
31877         * sunrpc/svc_simple.c: Likewise.
31878         * sunrpc/svc_tcp.c: Likewise.
31879         * sunrpc/svc_udp.c: Likewise.
31880         * sunrpc/svc_unix.c: Likewise.
31881         * sunrpc/svcauth_des.c: Likewise.
31882         * sunrpc/xcrypt.c: Likewise.
31883         * sunrpc/xdr.c: Likewise.
31884         * sunrpc/xdr_array.c: Likewise.
31885         * sunrpc/xdr_float.c: Likewise.
31886         * sunrpc/xdr_intXX_t.c: Likewise.
31887         * sunrpc/xdr_mem.c: Likewise.
31888         * sunrpc/xdr_rec.c: Likewise.
31889         * sunrpc/xdr_ref.c: Likewise.
31890         * sunrpc/xdr_sizeof.c: Likewise.
31891         * sunrpc/xdr_stdio.c: Likewise.
31892
31893 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
31894
31895         [BZ #12650]
31896         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
31897         * sysdeps/ia64/dl-tls.h: Likewise.
31898         * sysdeps/powerpc/dl-tls.h: Likewise.
31899         * sysdeps/s390/dl-tls.h: Likewise.
31900         * sysdeps/sh/dl-tls.h: Likewise.
31901         * sysdeps/sparc/dl-tls.h: Likewise.
31902         * sysdeps/x86_64/dl-tls.h: Likewise.
31903         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
31904
31905 2011-03-14  Andreas Schwab  <schwab@redhat.com>
31906
31907         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
31908         rpath element also skip the following colon.
31909         (expand_dynamic_string_token): Add is_path parameter and pass
31910         down to DL_DST_REQUIRED and _dl_dst_substitute.
31911         (decompose_rpath): Call expand_dynamic_string_token with
31912         non-zero is_path.  Ignore empty rpaths.
31913         (_dl_map_object_from_fd): Call expand_dynamic_string_token
31914         with zero is_path.
31915
31916 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
31917
31918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
31919         Make cancelable.
31920
31921 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
31922
31923         [BZ #12655]
31924         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
31925         Patch by Filipe David Manana <fdmanana@apache.org>.
31926
31927 2011-04-07  Andreas Schwab  <schwab@redhat.com>
31928
31929         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
31930         Maintain aligned stack.
31931         (CHECK_RSP): Remove unused macro.
31932
31933 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
31934
31935         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
31936         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
31937
31938 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
31939
31940         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
31941
31942         * include/features.h: Mention __USE_XOPEN2K8 in comment.
31943
31944 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
31945
31946         [BZ #12518]
31947         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
31948         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
31949         * sysdeps/x86_64/memmove.c: New file.
31950         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
31951         (memcpy): Renamed to ...
31952         (__new_memcpy): This.
31953         (memcpy): Provide GLIBC_2_14 memcpy.
31954         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
31955         (memcpy): Provide GLIBC_2_2_5 memcpy.
31956
31957 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
31958
31959         [BZ #12631]
31960         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
31961
31962 2011-03-30  Andreas Schwab  <schwab@redhat.com>
31963
31964         * misc/syncfs.c: New file.
31965         * misc/Makefile (routines): Add syncfs.
31966         * posix/unistd.h: Declare syncfs.
31967         * sysdeps/unix/syscalls.list: Add syncfs.
31968
31969 2011-04-01  Andreas Schwab  <schwab@redhat.com>
31970
31971         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
31972         open_by_handle_at.
31973         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
31974         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
31975         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
31976         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
31977         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
31978         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
31979         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
31980
31981 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
31982
31983         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
31984         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
31985         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
31986         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
31987         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
31988         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
31989         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
31990
31991         * io/Makefile: Compile fallocate.c, fallocate64.c, and
31992         sync_file_range.c with -fexceptions.
31993         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
31994         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
31995         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
31996         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
31997         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
31998         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
31999         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
32000         sync_file_range as cancellation point
32001         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
32002         now a wrapper around __call_sync_file_range with cancellation handling.
32003         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
32004         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
32005         function name to __call_sync_file_range.
32006         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
32007         Add call_sync_file_range.
32008
32009 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32010
32011         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
32012         bits/timex.h.
32013
32014 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32015
32016         * iconv/iconv.h: Fix typo in comment.
32017         * io/fcntl.h: Likewise.
32018         * libio/stdio.h: Likewise.
32019         * posix/spawn.h: Likewise.
32020         * posix/unistd.h: Likewise.
32021         * stdlib/stdlib.h: Likewise.
32022         * time/time.h: Likewise.
32023         * wcsmbs/wchar.h: Likewise.
32024
32025         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
32026         open_by_handle): Add.
32027         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
32028         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
32029         Augment a few comments.
32030         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32031         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32032         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32033         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32034         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32035         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
32036         open_by_handle.
32037
32038         * io/fcntl.h (AT_EMPTY_PATH): Define.
32039
32040 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
32041
32042         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
32043         * sysdeps/unix/sysv/linux/bits/time.h: New file.
32044         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
32045         to...
32046         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
32047         * Versions.def: Add GLIBC_2.14.
32048         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
32049         Export.
32050
32051 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
32052
32053         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
32054         round counter.
32055         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32056
32057 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
32058
32059         [BZ #12597]
32060         * string/test-strncmp.c (do_page_test): New function.
32061         (check2): Likewise.
32062         (test_main): Call check2.
32063         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
32064
32065 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
32066
32067         [BZ #12587]
32068         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
32069         Handle cache information in CPU leaf 4.
32070         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32071
32072 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
32073
32074         [BZ #12583]
32075         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
32076         character representation.
32077         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
32078
32079 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
32080
32081         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
32082         END(__isnan) to END(__isnanf) to match function entry point/label
32083         EALIGN(__isnanf,...).
32084
32085 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32086
32087         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
32088
32089 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
32090
32091         [BZ #12510]
32092         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
32093         copy from the symbol referenced in the relocation to initialize the
32094         used variable.
32095         Patch by Piotr Bury <pbury@goahead.com>.
32096         * elf/Makefile: Add rules to build and tst-unique3.
32097         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
32098         * elf/tst-unique3.cc: New file.
32099         * elf/tst-unique3.h: New file.
32100         * elf/tst-unique3lib.cc: New file.
32101         * elf/tst-unique3lib2.cc: New file.
32102
32103         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
32104
32105 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
32106
32107         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
32108         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
32109         to _start.
32110
32111 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
32112
32113         * elf/dl-load.c (_dl_map_object): If we are looking for the first
32114         to-be-loaded object along a path to loader is ld.so.
32115
32116 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32117             Ulrich Drepper  <drepper@gmail.com>
32118
32119         * sysdeps/x86_64/memset.S: After aligning destination, code
32120         branches to different locations depending on the value of
32121         misalignment, when multiarch is enabled. Fix this.
32122
32123 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32124
32125         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
32126         Set _x86_64_preferred_memory_instruction for AMD processsors.
32127         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32128         Set bit_Prefer_SSE_for_memop for AMD processors.
32129
32130 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
32131
32132         * libio/fmemopen.c (fmemopen): Optimize a bit.
32133
32134 2011-03-03  Andreas Schwab  <schwab@redhat.com>
32135
32136         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
32137
32138 2011-03-03  Roland McGrath  <roland@redhat.com>
32139
32140         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
32141
32142 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
32143
32144         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
32145         __bzero_ultra1 instead of __memset_ultra1.
32146
32147 2011-02-23  Andreas Schwab  <schwab@redhat.com>
32148             Ulrich Drepper  <drepper@gmail.com>
32149
32150         [BZ #12509]
32151         * include/link.h (struct link_map): Add l_orig_initfini.
32152         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
32153         returning unsuccessfully.
32154         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
32155         close of a file loaded at startup, restore the original l_initfini
32156         list.
32157         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
32158         list, store the pointer.
32159         * elf/Makefile ($(objpfx)noload-mem): New rule.
32160         (noload-ENV): Define.
32161         (tests): Add $(objpfx)noload-mem.
32162         * elf/noload.c: Include <memcheck.h>.
32163         (main): Call mtrace.  Close all opened handles.
32164
32165 2011-02-17  Andreas Schwab  <schwab@redhat.com>
32166
32167         [BZ #12454]
32168         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
32169         dependencies are missing.
32170
32171 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32172
32173         Fix __if_freereq crash: Unlike the generic version which uses free,
32174         Hurd needs munmap.
32175         * sysdeps/mach/hurd/ifreq.h: New file.
32176
32177 2011-01-27  Petr Baudis  <pasky@suse.cz>
32178             Ulrich Drepper  <drepper@gmail.com>
32179
32180         [BZ 12445]#
32181         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
32182         to extend_alloca().
32183         * stdio-common/bug23.c: New file.
32184         * stdio-common/Makefile (tests): Add bug23.
32185
32186 2010-09-28  Andreas Schwab  <schwab@redhat.com>
32187             Ulrich Drepper  <drepper@gmail.com>
32188
32189         [BZ #12489]
32190         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
32191         before performing relro protection.  At old place add assertion
32192         to make sure nothing changed.
32193
32194 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
32195             Glauber de Oliveira Costa  <glommer@gmail.com>
32196
32197         * elf/elf.h: Add new ARM TLS relocs.
32198
32199 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
32200
32201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
32202         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
32203         cast from r3.
32204         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
32205         'tests' variable.
32206         * sysdeps/wordsize-64/tst-writev.c: New file.
32207
32208 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
32209
32210         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
32211         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
32212         insns in _dl_start to prevent a TOC reference before relocs are
32213         resolved.
32214
32215 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
32216
32217         [BZ #12469]
32218         * Makeconfig: Remove RANLIB definition.
32219         * Makerules: Don't use RANLIB.
32220         * aclocal.m4: Remove ranlib test.
32221         * configure.in: No need to check for ranlib.
32222         * elf/rtld-Rules: Don't use RANLIB.
32223
32224 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32225
32226         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
32227         protection macro.
32228         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
32229         inclusion protection macro.
32230
32231         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
32232         SIGRTMIN and SIGRTMAX and print information in that case only when
32233         SIGRTMIN is defined.
32234
32235 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
32236
32237         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
32238         arginfo fn returning -1.
32239
32240         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
32241         and thousands string is zero terminated.
32242
32243 2011-02-03  Andreas Schwab  <schwab@redhat.com>
32244
32245         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
32246         sysdeps/unix/sysv/linux/bits/socket.h.
32247
32248 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32249
32250         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
32251         (__CPU_COUNT): Remove old macros.
32252         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
32253         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
32254         (__CPU_ALLOC, __CPU_FREE): Add macros.
32255         (__sched_cpualloc, __sched_cpufree): Add declarations.
32256
32257 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
32258
32259         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
32260         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
32261         * nscd/aicache.c (addhstaiX): Return timeout of added value.
32262         (readdhstai): Return value of addhstaiX call.
32263         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
32264         (addgrbyX): Return value returned by cache_addgr.
32265         (readdgrbyname): Return value returned by addgrbyX.
32266         (readdgrbygid): Likewise.
32267         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
32268         (addpwbyX): Return value returned by cache_addpw.
32269         (readdpwbyname): Return value returned by addhstbyX.
32270         (readdpwbyuid): Likewise.
32271         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
32272         (addservbyX): Return value returned by cache_addserv.
32273         (readdservbyname): Return value returned by addservbyX:
32274         (readdservbyport): Likewise.
32275         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
32276         (addhstbyX): Return value returned by cache_addhst.
32277         (readdhstbyname): Return value returned by addhstbyX.
32278         (readdhstbyaddr): Likewise.
32279         (readdhstbynamev6): Likewise.
32280         (readdhstbyaddrv6): Likewise.
32281         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
32282         (readdinitgroups): Return value returned by addinitgroupsX.
32283         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
32284         (prune_cache): Keep track of timeout value of re-added entries.
32285         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
32286         * nscd/nscd.h: Adjust prototypes of readd* functions.
32287
32288 2011-02-04  Roland McGrath  <roland@redhat.com>
32289
32290         * nis/nis_server.c (nis_servstate): Use the right name for 0.
32291         (nis_stats): Likewise.
32292         * nis/nis_modify.c (nis_modify): Likewise.
32293         * nis/nis_remove.c (nis_remove): Likewise.
32294         * nis/nis_add.c (nis_add): Likewise.
32295
32296         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
32297
32298         * posix/fnmatch_loop.c: Add some consts.
32299
32300         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
32301
32302 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
32303
32304         [BZ #12460]
32305         * config.make.in (config-cflags-novzeroupper): Define.
32306         * configure.in: Substitute libc_cv_cc_novzeroupper.
32307         * elf/Makefile (AVX-CFLAGS): Define.
32308         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
32309         (CFLAGS-tst-auditmod4a.c): Likewise.
32310         (CFLAGS-tst-auditmod4b.c): Likewise.
32311         (CFLAGS-tst-auditmod6b.c): Likewise.
32312         (CFLAGS-tst-auditmod6c.c): Likewise.
32313         (CFLAGS-tst-auditmod7b.c): Likewise.
32314         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
32315
32316 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
32317
32318         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
32319         function to the callback.
32320         Patch partly by Jiri Olsa <jolsa@redhat.com>.
32321
32322 2011-02-02  Andreas Schwab  <schwab@redhat.com>
32323
32324         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
32325         of errno.
32326
32327 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
32328
32329         [BZ #11724]
32330         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
32331         of constructors.
32332         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
32333         of destructors.
32334         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
32335
32336         [BZ #11724]
32337         * elf/Makefile: Add rules to build and run new test.
32338         * elf/tst-initorder.c: New file.
32339         * elf/tst-initorder.exp: New file.
32340         * elf/tst-initordera1.c: New file.
32341         * elf/tst-initordera2.c: New file.
32342         * elf/tst-initordera3.c: New file.
32343         * elf/tst-initordera4.c: New file.
32344         * elf/tst-initorderb1.c: New file.
32345         * elf/tst-initorderb2.c: New file.
32346         * elf/tst-order-a1.c: New file.
32347         * elf/tst-order-a2.c: New file.
32348         * elf/tst-order-a3.c: New file.
32349         * elf/tst-order-a4.c: New file.
32350         * elf/tst-order-b1.c: New file.
32351         * elf/tst-order-b2.c: New file.
32352         * elf/tst-order-main.c: New file.
32353         New test case by George Gensure <werkt0@gmail.com>.
32354
32355 2010-10-01  Andreas Schwab  <schwab@redhat.com>
32356
32357         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
32358         decoding ACE if AI_CANONIDN.
32359
32360 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
32361
32362         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
32363
32364 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
32365
32366         * version.h (RELEASE): Bump for 2.13 release.
32367         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
32368
32369         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
32370
32371         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
32372         MADV_NOHUGEPAGE.
32373         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
32374         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
32375         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
32376         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
32377         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
32378         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
32379
32380         * posix/getconf.c: Update copyright year.
32381         * catgets/gencat.c: Likewise.
32382         * csu/version.c: Likewise.
32383         * debug/catchsegv.sh: Likewise.
32384         * debug/xtrace.sh: Likewise.
32385         * elf/ldconfig.c: Likewise.
32386         * elf/ldd.bash.in: Likewise.
32387         * elf/sprof.c (print_version): Likewise.
32388         * iconv/iconv_prog.c: Likewise.
32389         * iconv/iconvconfig.c: Likewise.
32390         * locale/programs/locale.c: Likewise.
32391         * locale/programs/localedef.c: Likewise.
32392         * malloc/memusage.sh: Likewise.
32393         * malloc/mtrace.pl: Likewise.
32394         * nscd/nscd.c (print_version): Likewise.
32395         * nss/getent.c: Likewise.
32396
32397         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
32398         PF_CAIF, and PF_ALG.
32399         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
32400
32401 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
32402
32403         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
32404         (modules-names): Use them.
32405         (ifunc-test-modules, ifunc-pie-tests): Define.
32406         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
32407         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
32408         (test-extras): Likewise.
32409         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
32410         $(compile-command.c).
32411         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
32412         (all-built-dso): Define.
32413         (check-textrel.out, check-execstack.out): Depend on it.
32414
32415         * configure.in: Don't override --enable-multi-arch.
32416
32417 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
32418
32419         [BZ #6812]
32420         * nscd/hstcache.c (tryagain): Define.
32421         (cache_addhst): Return tryagain not notfound for temporary errors.
32422         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
32423         failed.
32424
32425 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
32426
32427         [BZ #10563]
32428         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
32429         to make the syscall.
32430         * sysdeps/unix/sysv/linux/setgroups.c: New file.
32431
32432         [BZ #12378]
32433         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
32434         and fall back to matching as normal character if the string ends before
32435         the matching ']' is found.  This is what POSIX requires.
32436         * posix/testfnm.c: Adjust test result.
32437         * posix/globtest.sh: Adjust test result.  Add new test.
32438         * posix/tst-fnmatch.input: Likewise.
32439         * posix/tst-fnmatch2.c: Add new test.
32440
32441 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
32442
32443         * elf/Makefile (check-execstack): Revert last change.  Depend on
32444         check-execstack.h.
32445         (check-execstack.h): New target.
32446         (generated): Add check-execstack.h.
32447         * elf/check-execstack.c: Include "check-execstack.h".
32448         (main): Revert last change.
32449         (handle_file): Return zero if GNU_STACK is absent and
32450         DEFAULT_STACK_PERMS doesn't include PF_X.
32451
32452 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
32453
32454         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
32455         in child fails because the descriptor is already closed.
32456         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
32457         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
32458         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
32459
32460         [BZ #12397]
32461         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
32462         syscall.
32463
32464         [BZ #10484]
32465         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
32466         temporary buffer used to handle multi lookups locally.
32467         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
32468
32469 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
32470
32471         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
32472         loader is ld.so.
32473
32474 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
32475
32476         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
32477         alignment for SSE2.
32478
32479 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
32480
32481         [BZ #12394]
32482         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
32483         characters.  When rounding increased number of integer digits recompute
32484         number of groups.
32485         * stdio-common/tst-grouping.c: New file.
32486         * stdio-common/Makefile: Add rules to build and run tst-grouping.
32487
32488 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
32489
32490         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
32491         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
32492
32493         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
32494         void.
32495         * bits/select.h: Likewise.
32496
32497 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
32498
32499         * po/ja.po: Update from translation team.
32500
32501 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
32502
32503         [BZ #11155]
32504         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
32505         implementation just like for lxstat, fxstatat, et al.
32506
32507 2010-12-27  Jim Meyering  <meyering@redhat.com>
32508
32509         [BZ #12348]
32510         * posix/regexec.c (build_trtable): Return failure indication upon
32511         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
32512
32513 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
32514
32515         [BZ #12201]
32516         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
32517         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
32518         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
32519         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
32520
32521         [BZ #12207]
32522         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
32523
32524         [BZ #12204]
32525         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
32526         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
32527
32528 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
32529
32530         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
32531         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
32532         script has SORT_BY_INIT_PRIORITY.
32533         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
32534         NO_CTORS_DTORS_SECTIONS is defined.
32535         * elf/soinit.c: Likewise.
32536         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
32537         NO_CTORS_DTORS_SECTIONS is defined.
32538         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
32539         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
32540         * sysdeps/sh/init-first.c: Likewise.
32541         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
32542
32543 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
32544
32545         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
32546         always use the slow path.
32547
32548 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
32549
32550         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
32551         similar rule which adds the sysdep directories to the header search in
32552         order to pick up the correct platform stackinfo.h.
32553         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
32554         perform test if it is, otherwise return successfully without testing.
32555         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
32556         DEFAULT_STACK_PERMS define in stackinfo.h.
32557         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
32558         defined in stackinfo.h.
32559         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
32560         DEFAULT_STACK_PERMS defined in stackinfo.h.
32561         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
32562         * sysdeps/ia64/stackinfo.h: Likewise.
32563         * sysdeps/s390/stackinfo.h: Likewise.
32564         * sysdeps/sh/stackinfo.h: Likewise.
32565         * sysdeps/sparc/stackinfo.h: Likewise.
32566         * sysdeps/x86_64/stackinfo.h: Likewise.
32567         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
32568         PF_X for powerpc64.  Retain PF_X for powerpc32.
32569
32570 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
32571
32572         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
32573         accurately.
32574         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
32575         GETDENTS_64BIT_ALIGNED.
32576
32577 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
32578
32579         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
32580
32581 2010-12-10  Andreas Schwab  <schwab@redhat.com>
32582
32583         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
32584         _GNU_SOURCE.
32585
32586         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
32587         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
32588         Remove __restrict.
32589         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
32590         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
32591
32592 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
32593
32594         [BZ #11655]
32595         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
32596         are initialized.
32597
32598 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
32599
32600         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
32601
32602 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
32603
32604         * po/it.po: Update from translation team.
32605
32606 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
32607
32608         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
32609         unused codes.
32610
32611 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
32612
32613         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
32614
32615 2010-11-24  Andreas Schwab  <schwab@redhat.com>
32616
32617         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
32618         specially.
32619         (gaih_getanswer_slice): Likewise.
32620
32621 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
32622
32623         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
32624
32625 2010-05-31  Petr Baudis  <pasky@suse.cz>
32626
32627         [BZ #11149]
32628         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
32629         silently even in the chroot mode.
32630
32631 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
32632
32633         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
32634         last patch a bit.  Pretty printing
32635
32636 2010-05-31  Petr Baudis <pasky@suse.cz>
32637
32638         [BZ #10085]
32639         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
32640         initialization of skip_initgroups_dyn.
32641
32642 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
32643
32644         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
32645         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
32646
32647 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
32648
32649         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
32650
32651 2010-11-11  Andreas Schwab  <schwab@redhat.com>
32652
32653         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
32654         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
32655         (tst-fnmatch-ENV): Set MALLOC_TRACE.
32656         ($(objpfx)tst-fnmatch-mem): New rule.
32657         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
32658         * posix/tst-fnmatch.c (main): Call mtrace.
32659
32660 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
32661
32662         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32663         Support Intel processor model 6 and model 0x2c.
32664
32665 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
32666
32667         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
32668           signed comparison.
32669
32670 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
32671
32672         [BZ #12205]
32673         * string/test-strncasecmp.c (check_result): New function.
32674         (do_one_test): Use it.
32675         (check1): New function.
32676         (test_main): Use it.
32677         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
32678         Support strcasecmp and strncasecmp.
32679
32680 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
32681
32682         [BZ #12194]
32683         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
32684         * sysdeps/x86_64/bits/byteswap.h: Likewise.
32685
32686 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
32687
32688         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
32689         IFUNC support.
32690         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32691         memset-x86-64.
32692         * sysdeps/x86_64/multiarch/bzero.S: New file.
32693         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
32694         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
32695         * sysdeps/x86_64/multiarch/memset.S: New file.
32696         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
32697         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32698         Set bit_Prefer_SSE_for_memop for Intel processors.
32699         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
32700         Define.
32701         (index_Prefer_SSE_for_memop): Define.
32702         (HAS_PREFER_SSE_FOR_MEMOP): Define.
32703
32704 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
32705
32706         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
32707         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
32708
32709 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
32710
32711         [BZ #12191]
32712         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
32713         (__x86_64_raw_data_cache_size_half): Likewise.
32714         (__x86_64_raw_shared_cache_size): Likewise.
32715         (__x86_64_raw_shared_cache_size_half): Likewise.
32716
32717         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
32718         (__x86_64_raw_data_cache_size_half): Likewise.
32719         (__x86_64_raw_shared_cache_size): Likewise.
32720         (__x86_64_raw_shared_cache_size_half): Likewise.
32721         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
32722         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
32723         and __x86_64_raw_shared_cache_size_half.  Round
32724         __x86_64_data_cache_size_half, __x86_64_data_cache_size
32725         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
32726         to multiple of 256 bytes.
32727
32728 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
32729
32730         [BZ #12167]
32731         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
32732         of inacessible symlinks.  Verify result of symlink before returning it.
32733         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
32734         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
32735
32736 2010-10-28  Erich Ritz  <erichritz@gmail.com>
32737
32738         * math/math.h (isinf): Fix typo in comment.
32739
32740 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
32741
32742         * po/da.po: Update from translation team.
32743
32744 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
32745
32746         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
32747         is added to the list.
32748
32749 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32750             Ulrich Drepper  <drepper@gmail.com>
32751
32752         * elf/dl-object.c (_dl_new_object): Don't append the new object to
32753         the global list here.  Move code to...
32754         (_dl_add_to_namespace_list): ...here.  New function.
32755         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
32756         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
32757         * elf/dl-load.c (lose): Don't remove the element from the list.
32758         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
32759         (_dl_map_object): Likewise.
32760
32761 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
32762
32763         [BZ #12159]
32764         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
32765         into all bytes of SSE register.
32766         Patch by Richard Li <richardpku@gmail.com>.
32767
32768 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
32769
32770         [BZ #12140]
32771         * malloc/malloc.c (_int_free): Fill correct number of bytes when
32772         perturbing.
32773
32774 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
32775
32776         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
32777         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
32778         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
32779         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
32780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
32781         submachine.
32782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
32783
32784 2010-10-22  Andreas Schwab  <schwab@redhat.com>
32785
32786         * include/dlfcn.h (__RTLD_SECURE): Define.
32787         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
32788         mode & __RTLD_SECURE instead.
32789         (open_path): Rename preloaded parameter to secure.
32790         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
32791         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
32792         * elf/dl-deps.c (openaux): Likewise.
32793         * elf/rtld.c (struct map_args): Remove is_preloaded.
32794         (map_doit): Don't use it.
32795         (dl_main): Likewise.
32796         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
32797         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
32798
32799 2010-09-09  Andreas Schwab  <schwab@redhat.com>
32800
32801         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
32802         (sysd-rules-targets): Remove duplicates.
32803         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
32804         rtld-%.$o dependency.
32805
32806 2010-10-18  Andreas Schwab  <schwab@redhat.com>
32807
32808         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
32809         _dl_map_object do it.
32810
32811 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
32812
32813         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
32814         fast fma builtins, define the macros in the C99 standard.
32815         (FP_FAST_FMAF): Likewise.
32816         (FP_FAST_FMAL): Likewise.
32817         * sysdeps/x86_64/bits/mathdef.h: Likewise.
32818
32819         * bits/mathdef.h: Update copyright year.
32820         * sysdeps/powerpc/bits/mathdef.h: Likewise.
32821
32822 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
32823
32824         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
32825         builtins, define the macros in the C99 standard.
32826         (FP_FAST_FMAF): Likewise.
32827         (FP_FAST_FMAL): Likewise.
32828         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
32829         multiply/add.
32830         (FP_FAST_FMAF): Likewise.
32831
32832 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
32833
32834         [BZ #3268]
32835         * math/libm-test.inc (fma_test): Some new testcases.
32836         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
32837         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
32838         y and infinite z.  Do multiplication by C already in long double.
32839         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
32840         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
32841         y and infinite z.  Do bitwise or of inexact bit into u.d.
32842         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
32843         * sysdeps/i386/fpu/s_fmaf.S: Removed.
32844         * sysdeps/i386/fpu/s_fma.S: Removed.
32845         * sysdeps/i386/fpu/s_fmal.S: Removed.
32846
32847 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
32848
32849         [BZ #3268]
32850         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
32851         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
32852         computation is not scheduled after fetestexcept.  Fix value
32853         of minimum denormal long double.
32854
32855 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
32856
32857         [BZ #3268]
32858         * math/libm-test.inc (fma_test): Add some more tests.
32859         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
32860         correctly.
32861
32862 2010-10-15  Andreas Schwab  <schwab@redhat.com>
32863
32864         * scripts/data/localplt-s390-linux-gnu.data: New file.
32865         * scripts/data/localplt-s390x-linux-gnu.data: New file.
32866
32867 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
32868
32869         [BZ #3268]
32870         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
32871         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
32872         instead of dbl-64.
32873         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
32874         inlines.
32875         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
32876         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
32877         if one of x and y is very large and the other is subnormal.
32878         * sysdeps/s390/fpu/s_fmaf.c: New file.
32879         * sysdeps/s390/fpu/s_fma.c: New file.
32880         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
32881         * sysdeps/powerpc/fpu/s_fma.S: New file.
32882         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
32883         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
32884         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
32885
32886 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
32887
32888         [BZ #3268]
32889         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
32890         fma tests.
32891         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
32892         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
32893         * sysdeps/i386/i686/multiarch/s_fma.c: Include
32894         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
32895         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
32896         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
32897         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
32898
32899 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
32900
32901         [BZ #12078]
32902         * posix/regcomp.c (parse_branch): One more memory leak plugged.
32903         * posix/bug-regex31.input: Add test case.
32904
32905 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
32906
32907         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
32908         * posix/bug-regex31.input: New file.
32909
32910         [BZ #12078]
32911         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
32912         (parse_sub_exp): Fix last change, use postorder.
32913
32914         * posix/bug-regex31.c: New file.
32915         * posix/Makefile: Add rules to build and run bug-regex31.
32916
32917         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
32918
32919         [BZ #12078]
32920         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
32921
32922         [BZ #12108]
32923         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
32924         to have entries in sys_siglist.
32925
32926         [BZ #12093]
32927         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
32928         be NULL.
32929
32930 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
32931
32932         [BZ #3268]
32933         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
32934         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
32935         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
32936         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
32937         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
32938         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
32939         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
32940         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
32941         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
32942         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
32943         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
32944         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
32945         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
32946         * math/ftestexcept.c (fetestexcept): Likewise.
32947         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
32948         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
32949         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
32950         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
32951         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
32952         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
32953         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
32954
32955 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
32956
32957         [BZ #12107]
32958         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
32959         newline.
32960
32961 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
32962
32963         * string/bug-strstr1.c: New file.
32964         * string/Makefile: Add rules to build and run bug-strstr1.
32965
32966 2010-10-05  Eric Blake  <eblake@redhat.com>
32967
32968         [BZ #12092]
32969         * string/str-two-way.h (two_way_long_needle): Always clear memory
32970         when skipping input due to the shift table.
32971
32972 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
32973
32974         [BZ #12005]
32975         * malloc/mcheck.c: Handle large requests.
32976
32977         [BZ #12077]
32978         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
32979         for strncmp and strncasecmp.
32980         * string/stratcliff.c: Add tests for strcmp and strncmp.
32981         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
32982
32983 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
32984
32985         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
32986         __set_fpscr.
32987
32988 2010-09-30  Andreas Jaeger  <aj@suse.de>
32989
32990         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
32991         (CGROUP_SUPER_MAGIC): Define.
32992         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32993         Handle btrfs and cgroup file systems.
32994         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
32995         Likewise.
32996
32997 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
32998
32999         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
33000         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
33001
33002 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33003
33004         [BZ #12067]
33005         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
33006         trying to locate the ELF header.
33007
33008 2010-09-27  Andreas Schwab  <schwab@redhat.com>
33009
33010         [BZ #11611]
33011         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
33012         Mask out sign-bit copies when constructing f_fsid.
33013
33014 2010-09-24  Petr Baudis <pasky@suse.cz>
33015
33016         * debug/stack_chk_fail_local.c: Add missing licence exception.
33017         * debug/warning-nop.c: Likewise.
33018
33019 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
33020
33021         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
33022         implementing getdents64 using getdents syscall, set d_type if
33023         __ASSUME_GETDENTS32_D_TYPE.
33024
33025 2010-09-16  Andreas Schwab  <schwab@redhat.com>
33026
33027         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
33028         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
33029
33030 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
33031
33032         [BZ #12037]
33033         * posix/unistd.h: Undo change of feature selection for ftruncate from
33034         2010-01-11.
33035
33036 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
33037
33038         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
33039         detection.
33040
33041 2010-09-20  Andreas Schwab  <schwab@redhat.com>
33042
33043         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
33044         fanotify_mark.
33045         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33046
33047 2010-09-14  Andreas Schwab  <schwab@redhat.com>
33048
33049         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
33050         variables after CHECK_SP call.
33051         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
33052
33053 2010-09-13  Andreas Schwab  <schwab@redhat.com>
33054             Ulrich Drepper  <drepper@redhat.com>
33055
33056         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
33057         re-relocationg ld.so.
33058         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
33059         _dl_init_paths call.
33060         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
33061         here anymore.
33062
33063 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
33064
33065         * resolv/res_init.c (__res_vinit): Count the default server we added.
33066
33067 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
33068             Ulrich Drepper  <drepper@redhat.com>
33069
33070         [BZ #11968]
33071         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33072         (____longjmp_chk): Use %ebx for saving value across system call.
33073         Add unwind info.
33074
33075 2010-09-06  Andreas Schwab  <schwab@redhat.com>
33076
33077         * manual/Makefile: Don't mix pattern rules with normal rules.
33078
33079 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
33080
33081         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
33082         operation.
33083         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
33084         * libio/iofopncook.c (_IO_cookie_init): Likewise.
33085         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
33086         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
33087         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33088         Likewise.
33089
33090 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
33091
33092         [BZ #11979]
33093         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
33094         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
33095
33096 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
33097
33098         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
33099         * sysdeps/x86_64/addmul_1.S: Likewise.
33100         * sysdeps/x86_64/lshift.S: Likewise.
33101         * sysdeps/x86_64/mul_1.S: Likewise.
33102         * sysdeps/x86_64/rshift.S: Likewise.
33103         * sysdeps/x86_64/sub_n.S: Likewise.
33104         * sysdeps/x86_64/submul_1.S: Likewise.
33105
33106 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33107
33108         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
33109         Define __sched_param instead of SCHED_* and sched_param when
33110         <bits/sched.h> is included with __need_schedparam defined.
33111         * bits/sched.h [__need_schedparam]
33112         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
33113         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
33114         (__defined_schedparam): Define to 1.
33115         (__sched_param): New structure, identical to sched_param.
33116         (__need_schedparam): Undefine.
33117
33118 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
33119
33120         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
33121         (epoll_create1): Declare.
33122
33123         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
33124
33125 2010-08-31  Andreas Schwab  <schwab@redhat.com>
33126
33127         [BZ #7066]
33128         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
33129         shifting retval into place.
33130
33131 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
33132
33133         * nis/rpcsvc/nis.h: Update copyright notice.
33134         * nis/rpcsvc/nis.x: Likewise.
33135         * nis/rpcsvc/nis_callback.h: Likewise.
33136         * nis/rpcsvc/nis_callback.x: Likewise.
33137         * nis/rpcsvc/nis_object.x: Likewise.
33138         * nis/rpcsvc/nis_tags.h: Likewise.
33139         * nis/rpcsvc/yp.h: Likewise.
33140         * nis/rpcsvc/yp.x: Likewise.
33141         * nis/rpcsvc/ypupd.h: Likewise.
33142         * nis/yp_xdr.c: Likewise.
33143         * nis/ypupdate_xdr.c: Likewise.
33144
33145         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
33146         mainly the body of pmap_getport.  Add parameters to specify timeouts.
33147         (pmap_getport): Use __libc_rpc_getport.
33148         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
33149         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
33150         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
33151
33152 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
33153
33154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
33155         fanotify_mark.
33156
33157 2010-08-27  Roland McGrath  <roland@redhat.com>
33158
33159         * sysdeps/i386/i686/multiarch/Makefile
33160         (CFLAGS-varshift.c): New variable.
33161
33162 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
33163
33164         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
33165         * sysdeps/i386/i686/multiarch/varshift.c: New file.
33166
33167         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
33168
33169         * sysdeps/x86_64/strlen.S: Minimal code improvement.
33170
33171 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
33172
33173         * sysdeps/x86_64/strlen.S: Unroll the loop.
33174         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33175         strlen-sse2 strlen-sse2-bsf.
33176         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
33177         __strlen_no_bsf if bit_Slow_BSF is set.
33178         (__strlen_sse42): Removed.
33179         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
33180         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
33181
33182 2010-08-25  Roland McGrath  <roland@redhat.com>
33183
33184         * sysdeps/x86_64/multiarch/varshift.S: File removed.
33185         * sysdeps/x86_64/multiarch/varshift.c: New file.
33186         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
33187         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
33188         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
33189         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
33190
33191 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
33192
33193         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33194         strlen-sse2 strlen-sse2-bsf.
33195         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
33196         __strlen_sse2_bsf if bit_Slow_BSF is unset.
33197         (__strlen_sse2): Removed.
33198         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
33199         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
33200         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
33201         bit_Slow_BSF for Atom.
33202         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
33203         (index_Slow_BSF): Define.
33204         (HAS_SLOW_BSF): Define.
33205
33206 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
33207
33208         [BZ #10851]
33209         * resolv/res_init.c (__res_vinit): When no server address at all
33210         is given default to loopback.
33211
33212 2010-08-24  Roland McGrath  <roland@redhat.com>
33213
33214         * configure.in: Remove config-name.h generation.
33215         * configure: Regenerated.
33216         * config-name.in: File removed.
33217         * scripts/config-uname.sh: New file.
33218         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
33219         ($(objdir)config-name.h): New target.
33220
33221         * sunrpc/rpc_parse.h: Avoid nested comment.
33222
33223 2010-08-24  Richard Henderson  <rth@redhat.com>
33224             Ulrich Drepper  <drepper@redhat.com>
33225             H.J. Lu  <hongjiu.lu@intel.com>
33226
33227         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
33228         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
33229         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
33230         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
33231         _mm_alignr_epi8 with _mm_loadu_si128.
33232         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
33233         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
33234         (__m128i_shift_right): Removed.
33235         * sysdeps/i386/i686/multiarch/varshift.h: New file.
33236         * sysdeps/i386/i686/multiarch/varshift.S: New file.
33237         * sysdeps/x86_64/multiarch/varshift.h: New file.
33238         * sysdeps/x86_64/multiarch/varshift.S: New file.
33239
33240 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
33241
33242         * configure.in: Move assembler checks to before sysdep dir checking.
33243
33244 2010-08-20  Petr Baudis  <pasky@suse.cz>
33245
33246         * LICENSES: Sync the sunrpc license.
33247
33248 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
33249
33250         * sunrpc/auth_des.c: Update copyright notice once again.
33251         * sunrpc/auth_none.c: Likewise.
33252         * sunrpc/auth_unix.c: Likewise.
33253         * sunrpc/authdes_prot.c: Likewise.
33254         * sunrpc/authuxprot.c: Likewise.
33255         * sunrpc/bindrsvprt.c: Likewise.
33256         * sunrpc/clnt_gen.c: Likewise.
33257         * sunrpc/clnt_perr.c: Likewise.
33258         * sunrpc/clnt_raw.c: Likewise.
33259         * sunrpc/clnt_simp.c: Likewise.
33260         * sunrpc/clnt_tcp.c: Likewise.
33261         * sunrpc/clnt_udp.c: Likewise.
33262         * sunrpc/clnt_unix.c: Likewise.
33263         * sunrpc/des_crypt.c: Likewise.
33264         * sunrpc/des_soft.c: Likewise.
33265         * sunrpc/get_myaddr.c: Likewise.
33266         * sunrpc/getrpcport.c: Likewise.
33267         * sunrpc/key_call.c: Likewise.
33268         * sunrpc/key_prot.c: Likewise.
33269         * sunrpc/openchild.c: Likewise.
33270         * sunrpc/pm_getmaps.c: Likewise.
33271         * sunrpc/pm_getport.c: Likewise.
33272         * sunrpc/pmap_clnt.c: Likewise.
33273         * sunrpc/pmap_prot.c: Likewise.
33274         * sunrpc/pmap_prot2.c: Likewise.
33275         * sunrpc/pmap_rmt.c: Likewise.
33276         * sunrpc/rpc/auth.h: Likewise.
33277         * sunrpc/rpc/auth_unix.h: Likewise.
33278         * sunrpc/rpc/clnt.h: Likewise.
33279         * sunrpc/rpc/des_crypt.h: Likewise.
33280         * sunrpc/rpc/key_prot.h: Likewise.
33281         * sunrpc/rpc/netdb.h: Likewise.
33282         * sunrpc/rpc/pmap_clnt.h: Likewise.
33283         * sunrpc/rpc/pmap_prot.h: Likewise.
33284         * sunrpc/rpc/pmap_rmt.h: Likewise.
33285         * sunrpc/rpc/rpc.h: Likewise.
33286         * sunrpc/rpc/rpc_des.h: Likewise.
33287         * sunrpc/rpc/rpc_msg.h: Likewise.
33288         * sunrpc/rpc/svc.h: Likewise.
33289         * sunrpc/rpc/svc_auth.h: Likewise.
33290         * sunrpc/rpc/types.h: Likewise.
33291         * sunrpc/rpc/xdr.h: Likewise.
33292         * sunrpc/rpc_clntout.c: Likewise.
33293         * sunrpc/rpc_cmsg.c: Likewise.
33294         * sunrpc/rpc_common.c: Likewise.
33295         * sunrpc/rpc_cout.c: Likewise.
33296         * sunrpc/rpc_dtable.c: Likewise.
33297         * sunrpc/rpc_hout.c: Likewise.
33298         * sunrpc/rpc_main.c: Likewise.
33299         * sunrpc/rpc_parse.c: Likewise.
33300         * sunrpc/rpc_parse.h: Likewise.
33301         * sunrpc/rpc_prot.c: Likewise.
33302         * sunrpc/rpc_sample.c: Likewise.
33303         * sunrpc/rpc_scan.c: Likewise.
33304         * sunrpc/rpc_scan.h: Likewise.
33305         * sunrpc/rpc_svcout.c: Likewise.
33306         * sunrpc/rpc_tblout.c: Likewise.
33307         * sunrpc/rpc_util.c: Likewise.
33308         * sunrpc/rpc_util.h: Likewise.
33309         * sunrpc/rpcinfo.c: Likewise.
33310         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
33311         * sunrpc/rpcsvc/key_prot.x: Likewise.
33312         * sunrpc/rpcsvc/klm_prot.x: Likewise.
33313         * sunrpc/rpcsvc/mount.x: Likewise.
33314         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
33315         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
33316         * sunrpc/rpcsvc/rex.x: Likewise.
33317         * sunrpc/rpcsvc/rstat.x: Likewise.
33318         * sunrpc/rpcsvc/rusers.x: Likewise.
33319         * sunrpc/rpcsvc/sm_inter.x: Likewise.
33320         * sunrpc/rpcsvc/spray.x: Likewise.
33321         * sunrpc/rpcsvc/yppasswd.x: Likewise.
33322         * sunrpc/rtime.c: Likewise.
33323         * sunrpc/svc.c: Likewise.
33324         * sunrpc/svc_auth.c: Likewise.
33325         * sunrpc/svc_authux.c: Likewise.
33326         * sunrpc/svc_raw.c: Likewise.
33327         * sunrpc/svc_run.c: Likewise.
33328         * sunrpc/svc_simple.c: Likewise.
33329         * sunrpc/svc_tcp.c: Likewise.
33330         * sunrpc/svc_udp.c: Likewise.
33331         * sunrpc/svc_unix.c: Likewise.
33332         * sunrpc/svcauth_des.c: Likewise.
33333         * sunrpc/xcrypt.c: Likewise.
33334         * sunrpc/xdr.c: Likewise.
33335         * sunrpc/xdr_array.c: Likewise.
33336         * sunrpc/xdr_float.c: Likewise.
33337         * sunrpc/xdr_mem.c: Likewise.
33338         * sunrpc/xdr_rec.c: Likewise.
33339         * sunrpc/xdr_ref.c: Likewise.
33340         * sunrpc/xdr_sizeof.c: Likewise.
33341         * sunrpc/xdr_stdio.c: Likewise.
33342
33343         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
33344         handling.
33345
33346 2010-08-19  Andreas Schwab  <schwab@redhat.com>
33347
33348         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
33349
33350 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
33351
33352         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
33353         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
33354         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
33355         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
33356         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
33357         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
33358         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
33359         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
33360         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
33361         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
33362         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
33363         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
33364         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
33365         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
33366
33367 2010-07-26  Anton Blanchard  <anton@samba.org>
33368
33369         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
33370         * malloc/arena.c (heap_trim): Likewise.
33371
33372 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
33373
33374         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
33375         here.  Not...
33376         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
33377         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
33378
33379 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33380
33381         * sysdeps/i386/elf/Makefile: New file.
33382
33383 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
33384
33385         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
33386         from fanotify_init.
33387         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
33388         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
33389
33390 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
33391
33392         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
33393         of strncasecmp_l.
33394         * sysdeps/multiarch/strcmp.S: Likewise.
33395
33396 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
33397
33398         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
33399         strncase_l-nonascii.
33400         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
33401         Add strncase_l-ssse3.
33402         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
33403         * sysdeps/x86_64/strcmp.S: Likewise.
33404         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
33405         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
33406         * sysdeps/x86_64/strncase.S: New file.
33407         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
33408         * sysdeps/x86_64/strncase_l.S: New file.
33409         * string/Makefile (strop-tests): Add strncasecmp.
33410         * string/test-strncasecmp.c: New file.
33411
33412         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
33413         warning.
33414
33415         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
33416         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
33417
33418 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
33419
33420         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
33421
33422 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
33423
33424         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
33425         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
33426         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
33427
33428 2010-05-01  Alan Modra  <amodra@gmail.com>
33429
33430         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
33431         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
33432         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
33433         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
33434         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
33435         tidying.  Don't tail-call __sigjmp_save for static lib.
33436         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
33437         save location.
33438         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
33439         (CALL_MCOUNT): Add eh info, and nop after bl.
33440         (TAIL_CALL_SYSCALL_ERROR): New macro.
33441         (PSEUDO_RET): Use it.
33442         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
33443         Correct save location of integer regs and cr.
33444         (_dl_profile_resolve): Correct cr save location.  Delete nops
33445         after bl when SHARED.  Reduce cfi size a little by better
33446         placement of cfi directives.
33447         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
33448         make a stack frame.  Instead use parm save area as a temp.
33449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
33450         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
33451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
33452         Don't make a stack frame for parent, use parm save area.
33453         Increase child stack frame to 112 bytes.  Don't save unused reg,
33454         and adjust reg usage.  Set up cfi on error recovery and
33455         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
33456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
33457         (__makecontext): Add dummy nop after jump to exit.
33458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
33459         Use correct parm save area and cr save, reduce stack frame.
33460         Correct cfi for possible PSEUDO_RET frame setup.
33461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
33462         Branch to local label emitted by PSEUDO_RET rather than
33463         __syscall_error.
33464
33465 2010-08-12  Andreas Schwab  <schwab@redhat.com>
33466
33467         [BZ #11904]
33468         * locale/programs/locale.c (print_assignment): New function.
33469         (show_locale_vars): Use it.
33470
33471 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
33472
33473         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
33474         field.
33475         (struct statfs64): Likewise.
33476         (_STATFS_F_FLAGS): Define.
33477         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
33478         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33479         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
33480         (ST_VALID): Define locally.
33481         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
33482         __statvfs_getflags, use the provided value.
33483         * sysdeps/unix/sysv/linux/kernel-features.h: Define
33484         __ASSUME_STATFS_F_FLAGS.
33485
33486         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
33487
33488         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
33489         Add sys/fanotify.h.
33490         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
33491         fanotify_mask for GLIBC_2.13.
33492         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
33493         fanotify_init and fanotify_mark.
33494         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
33495         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
33496
33497         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
33498         Add prlimit.
33499         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
33500         prlimit64 for GLIBC_2.13.
33501         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
33502         prlimit64.
33503         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
33504         syscall.
33505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
33506         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33507         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
33508         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
33509         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
33510         add prlimit alias.
33511         * sysdeps/unix/sysv/linux/prlimit.c: New file.
33512
33513         [BZ #11903]
33514         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
33515         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
33516
33517         * nss/Makefile: Add rules to build and run tst-nss-test1.
33518         * shlib-versions: Add entry for libnss_test1.
33519         * nss/nss_test1.c: New file.
33520         * nss/tst-nss-test1.c: New file.
33521
33522         * nss/nsswitch.c (__nss_database_custom): Define new variable.
33523         (__nss_configure_lookup): Set appropriate entry in
33524         __nss_configure_lookup to true.
33525         * nss/nsswitch.h: Define enum with indeces of databases in
33526         databases and __nss_database_custom arrays.  Declare
33527         __nss_database_custom.
33528         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
33529         to avoid using nscd when custom rules are installed.
33530         * nss/getXXbyYY_r.c: Likewise.
33531         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
33532
33533         * nss/nss_files/files-parse.c: Whitespace fixes.
33534
33535 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
33536
33537         [BZ #11883]
33538         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
33539         * posix/fnmatch_loop.c: Likewise.
33540
33541 2010-07-17  Andi Kleen  <ak@linux.intel.com>
33542
33543         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
33544         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
33545         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
33546         * Versions.def [GLIBC_2.13]: Add.
33547
33548 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
33549
33550         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33551         Also fail if tpwd after pwuid call is NULL.
33552
33553 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33554
33555         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
33556         when converting to ms.
33557
33558 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33559
33560         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
33561         EOPNOTSUPP errors with ENOTTY.
33562         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
33563         EOPNOTSUPP errors with ENOTTY.
33564
33565 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
33566
33567         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
33568         Add strcasecmp_l-ssse3.
33569         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
33570         strcasecmp.
33571         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
33572         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
33573         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
33574
33575 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
33576
33577         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
33578
33579         * string/Makefile (strop-tests): Add strcasecmp.
33580         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
33581         strcasecmp_l-nonascii.
33582         (gen-as-const-headers): Add locale-defines.sym.
33583         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
33584         * sysdeps/x86_64/strcasecmp.S: New file.
33585         * sysdeps/x86_64/strcasecmp_l.S: New file.
33586         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
33587         * sysdeps/x86_64/locale-defines.sym: New file.
33588         * string/test-strcasecmp.c: New file.
33589
33590         * string/test-strcasestr.c: Test both ends of the range of characters.
33591         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
33592
33593 2010-07-29  Roland McGrath  <roland@redhat.com>
33594
33595         [BZ #11856]
33596         * manual/locale.texi (Yes-or-No Questions): Fix example code.
33597
33598 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
33599
33600         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
33601         for ld.so.
33602
33603 2010-07-27  Andreas Schwab  <schwab@redhat.com>
33604
33605         * manual/memory.texi (Malloc Tunable Parameters): Document
33606         M_PERTURB.
33607
33608 2010-07-26  Roland McGrath  <roland@redhat.com>
33609
33610         [BZ #11840]
33611         * configure.in (-fgnu89-inline check): Set and substitute
33612         gnu89_inline, not libc_cv_gnu89_inline.
33613         * configure: Regenerated.
33614         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
33615
33616 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
33617
33618         * string/test-strnlen.c: New file.
33619         * string/Makefile (strop-tests): Add strnlen.
33620         * string/tester.c (test_strnlen): Add a few more test cases.
33621         * string/tst-strlen.c: Better error reporting.
33622
33623         * sysdeps/x86_64/strnlen.S: New file.
33624
33625 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
33626
33627         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
33628         lower-latency instructions.
33629
33630 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
33631
33632         * string/test-strcasestr.c: New file.
33633         * string/test-strstr.c: New file.
33634         * string/Makefile (strop-tests): Add strstr and strcasestr.
33635         * string/str-two-way.h: Don't undefine MAX.
33636         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
33637
33638 2010-07-21  Andreas Schwab  <schwab@redhat.com>
33639
33640         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33641         strcasestr-nonascii.
33642         (CFLAGS-strcasestr-nonascii.c): Define.
33643         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
33644         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
33645         Remove unused attribute.
33646
33647 2010-07-20  Roland McGrath  <roland@redhat.com>
33648
33649         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
33650         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
33651         ld.so.cache was broken.  With it, there is no way to disable dsocaps
33652         like LD_HWCAP_MASK can disable hwcaps.
33653
33654 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
33655
33656         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
33657
33658 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
33659
33660         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
33661         call in strcasestr.
33662         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
33663         __strcasestr_sse42_nonascii.
33664         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
33665         strcasestr-nonascii.c.
33666         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
33667
33668 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
33669
33670         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
33671         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
33672         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
33673         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
33674
33675 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
33676
33677         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
33678         fcntl.
33679
33680 2010-07-06  Andreas Schwab  <schwab@redhat.com>
33681
33682         [BZ #11577]
33683         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
33684         dl_signal_cerror.
33685
33686 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
33687
33688         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
33689         _PC_PIPE_BUF using F_GETPIPE_SZ.
33690
33691 2010-07-05  Roland McGrath  <roland@redhat.com>
33692
33693         * manual/arith.texi (Rounding Functions): Fix rint description
33694         implicit in round description.
33695
33696 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
33697
33698         * elf/Makefile: Fix linking for a few tests to make recent linker
33699         happy.
33700
33701 2010-06-30  Andreas Schwab  <schwab@redhat.com>
33702
33703         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
33704         $(common-objpfx)libc_nonshared.a.
33705
33706 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
33707
33708         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
33709         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
33710         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
33711         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
33712         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
33713         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
33714         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
33715         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
33716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
33717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
33718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
33719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
33720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
33721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
33722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
33723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
33724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
33725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
33726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
33727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
33728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
33729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
33730         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
33731         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
33732         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
33733         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
33734         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
33735         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
33736         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
33737         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
33738         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
33739         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
33740         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
33741         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
33742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
33743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
33744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
33745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
33746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
33747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
33748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
33749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
33750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
33751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
33752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
33753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
33754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
33755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
33756
33757 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
33758
33759         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
33760         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
33761         * string/memmove.c (memmove): Renamed to ...
33762         (MEMMOVE): ...this.  Default to memmove.
33763         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
33764         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
33765         (END_CHK): Define.
33766         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33767         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
33768         mempcpy-ssse3-back memmove-ssse3-back.
33769         * sysdeps/x86_64/multiarch/bcopy.S: New file .
33770         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
33771         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
33772         * sysdeps/x86_64/multiarch/memcpy.S: New file.
33773         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
33774         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
33775         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
33776         * sysdeps/x86_64/multiarch/memmove.c: New file.
33777         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
33778         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
33779         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
33780         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
33781         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
33782         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
33783         Define.
33784         (index_Fast_Copy_Backward): Define.
33785         (HAS_ARCH_FEATURE): Define.
33786         (HAS_FAST_REP_STRING): Define.
33787         (HAS_FAST_COPY_BACKWARD): Define.
33788
33789 2010-06-21  Andreas Schwab  <schwab@redhat.com>
33790
33791         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33792         Restore proper fallback handling.
33793
33794 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
33795
33796         [BZ #11701]
33797         * posix/group_member.c (__group_member): Correct checking loop.
33798
33799         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
33800         OOM in getpwuid_r correctly.  Return error number when the caller
33801         should return, otherwise -1.
33802         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
33803         call returning > 0 value.
33804         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
33805
33806 2010-06-07  Andreas Schwab  <schwab@redhat.com>
33807
33808         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
33809         libc_nonshared.a from targets in modules-names.
33810
33811 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
33812
33813         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
33814         requires it.
33815
33816 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
33817
33818         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
33819         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
33820         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
33821         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
33822
33823 2010-06-02  Andreas Schwab  <schwab@redhat.com>
33824
33825         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
33826
33827 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
33828
33829         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
33830         and F_GETPIPE_SZ.
33831         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
33832         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
33833         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
33834         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
33835         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
33836         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
33837
33838 2010-06-14  Roland McGrath  <roland@redhat.com>
33839
33840         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
33841
33842 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
33843
33844         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
33845         __REDIRECT followed by __THROW.
33846         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
33847         * posix/getopt.h (getopt): Likewise.
33848
33849 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
33850
33851         * hurd/lookup-at.c (__file_name_lookup_at): Accept
33852         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
33853         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
33854         in AT_FLAGS.
33855         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
33856         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
33857
33858 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
33859
33860         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
33861
33862 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
33863
33864         [BZ #11640]
33865         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33866         Properly check family and model.
33867
33868 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
33869
33870         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
33871
33872 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
33873
33874         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
33875
33876 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
33877
33878         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
33879         symbol reference.
33880
33881 2010-05-19  Andreas Schwab  <schwab@redhat.com>
33882
33883         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
33884         symbol reference.
33885
33886 2010-05-21  Andreas Schwab  <schwab@redhat.com>
33887
33888         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
33889         and internal_recvmmsg.
33890         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
33891         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
33892         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
33893         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
33894
33895         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
33896         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
33897         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
33898
33899 2010-05-20  Andreas Schwab  <schwab@redhat.com>
33900
33901         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
33902
33903 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
33904
33905         POWER7 optimizations.
33906         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
33907         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
33908
33909 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
33910
33911         * version.h: Update for 2.13 development version.
33912
33913 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
33914
33915         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
33916         exceptions.  Return 0.
33917
33918 2010-05-07  Roland McGrath  <roland@redhat.com>
33919
33920         * elf/ldconfig.c (main): Add a const.
33921
33922 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
33923
33924         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
33925         (args_options): Add no-idn option.
33926         (ahosts_keys_int): Add idn_flags to ai_flags.
33927         (parse_option): Handle 'i' option to clear idn_flags.
33928
33929         * malloc/malloc.c (_int_free): Possible race in the most recently
33930         added check.  Only act on the data if no current modification
33931         happened.
33932
33933 See ChangeLog.17 for earlier changes.